public BodyPartGroupDef AdjustedLinkedBodyPartsGroupCE(ToolCE tool) { if (tool != null) { return(tool.linkedBodyPartsGroup); } return(this.linkedBodyPartsGroup); }
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); }
public static float GetAdjustedDamage(ToolCE tool, Thing thingOwner) { return(tool.AdjustedBaseMeleeDamageAmount(thingOwner, tool.capacities?.First()?.VerbsProperties?.First()?.meleeDamageDef)); }