BattletechModders / CBTBehaviorsEnhanced

Applies Classic BattleTech behaviors to the HBS BattleTech Game
MIT License
5 stars 6 forks source link

Bug in MechExtensions.cs #87

Closed fmnatic closed 3 years ago

fmnatic commented 3 years ago

I believe this is a bug in MechExtensions.cs

        public static float PunchDamage(this Mech mech, MechMeleeCondition attackerCondition)
        {
            if (!attackerCondition.CanPunch()) return 0;

            float tonnageMulti = mech.StatCollection.ContainsStatistic(ModStats.PhysicalWeaponTargetDamage) &&
                mech.StatCollection.GetValue<float>(ModStats.PunchTargetDamage) > 0 ?
                mech.StatCollection.GetValue<float>(ModStats.PunchTargetDamage) :
                Mod.Config.Melee.Punch.TargetDamagePerAttackerTon;

PhysicalWeaponTargetDamage should be PunchTargetDamage

IceRaptor commented 3 years ago

Will be fixed in 0.6.6