コード例 #1
0
 public BodyPartGroupDef AdjustedLinkedBodyPartsGroupCE(ToolCE tool)
 {
     if (tool != null)
     {
         return(tool.linkedBodyPartsGroup);
     }
     return(this.linkedBodyPartsGroup);
 }
コード例 #2
0
        public float AdjustedArmorPenetrationCE(ToolCE tool, Pawn attacker, Thing equipment, HediffComp_VerbGiver hediffCompSource)
        {
            float num;

            if (tool != null)
            {
                num = tool.armorPenetration;
            }
            else
            {
                num = this.meleeArmorPenetrationBase;
            }
            if (num < 0f)
            {
                float num2 = this.AdjustedMeleeDamageAmount(tool, attacker, equipment, hediffCompSource);
                num = num2 * 0.015f;
            }
            return(num);
        }
コード例 #3
0
 public static float GetAdjustedDamage(ToolCE tool, Thing thingOwner)
 {
     return(tool.AdjustedBaseMeleeDamageAmount(thingOwner, tool.capacities?.First()?.VerbsProperties?.First()?.meleeDamageDef));
 }