コード例 #1
0
 private static void BlockStats(Player player, StringBuilder sb)
 {
     ItemDrop.ItemData cb = player.GetCurrentBlocker();
     if (cb != null)
     {
         float sf = player.GetSkillFactor(Skills.SkillType.Blocking);
         sb.AppendFormat("\n\n$item_blockpower: <color=orange>{0}</color>", Convert.ToInt32(cb.GetBlockPower(sf)));
         if (cb.m_shared.m_timedBlockBonus > 1f)
         {
             sb.AppendFormat("\n$item_deflection: <color=orange>{0}</color>", cb.GetDeflectionForce(cb.m_quality));
             sb.AppendFormat("\n$item_parrybonus: <color=orange>{0}x</color>", cb.m_shared.m_timedBlockBonus);
         }
     }
 }