BattletechModders / CBTBehaviorsEnhanced

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

Another Bug in MechExtensions.cs #88

Closed fmnatic closed 3 years ago

fmnatic commented 3 years ago
public static float ChargeTargetInstability(
      this Mech mech,
      float targetTonnage,
      int hexesMoved)
    {
      float num1 = (float) Math.Ceiling((double) Mod.Config.Melee.Charge.TargetInstabilityPerAttackerTon * (double) targetTonnage * (double) hexesMoved);

Should be mech.tonnage and not targetTonnage since its TargetInstabilityPerAttackerTon

IceRaptor commented 3 years ago

Will be fixed in 0.6.6