IceRaptor / HumanResources

Allows you to purchase MechTech, MedTech, and Vehicle crews. Enables loyalty mechanics and various events.
MIT License
3 stars 1 forks source link

Thinks folks are always benched, even if they aren't #6

Closed IceRaptor closed 2 years ago

IceRaptor commented 3 years ago

Ah, I now have another issue: it thinks folks are always benched, even when deployed: 23:09:51.515 Deployed pilots were: Commodore, Brother, Zed, Kraken, Hacker, Turtrus, Slapdash 23:09:51.515 Applying attitude modifiers to pilot: Brother 23:09:51.515 -- combat pilot was benched, adding -2 attitude 23:09:51.530 Crew has payFraction: 1646 => salary: 32920 x hazardPayRatio: 0.05 23:09:51.530 Hazard pay: 1500 => payFraction: 1646 % modulo: 500 = fraction: 3

human_resources.log

IceRaptor commented 2 years ago

This was a bug with the comparison between units. Switched to using a hash of both names and callsign. Should be safer.