Battle-Modders / mod-reforged

The main repository for the Battle Brothers Reforged mod.
16 stars 0 forks source link

fix: barbarian unholds spawning in the wrong order #583

Closed Darxo closed 3 weeks ago

Darxo commented 3 weeks ago

Currently Armored Unholds spawn early and normal Unholds spawn late. That is likely because all 4 options cost the same amount of resources. When they get sorted, their order is undefined.

This is a bandaid fix that solves the issue by giving them all slightly different costs to preserve the correct order.

This fix might just bury the underlying problem. I don't know how the subparty system was supposed to work and currently works. Maybe it was supposed to raise the cost of the individual unit options by the cost of their subparties during sorting, which would have solved this issue.