Skip to content
Battletch Game : Fix Floating Point Math in mech lab tonnage validation
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Properties
.gitattributes
.gitignore
BT-MechTonnageFloatingPointFix.sln
Calculator.cs
Core.cs
LICENSE
Logger.cs
MechTonnageFloatingPointFixer.csproj
README.md
Settings.cs
ValidateMechTonnage_Patch.cs
mod.json

README.md

BT-MechTonnageFloatingPointFixer

Make the check for underweight and overweight mechs in mech lab use less precision. Floating point math around the check can cause false postives in mech validation.

Settings

Setting Type Default Description
epsilon float 0.0001 Any difference between max chassis tonnage and current tonnage less than this number is considered 0
debug bool false enable debug logging

LICENSE

MIT licensed.

You can’t perform that action at this time.