Issue was that a decrement check was deleting contingencies. Unit upgrade mods create a new copy, change upgrades, then delete old copy. Removing the 'unit' copy before replacing it w updated one was removing contingencies. Remove Contingencies check there and let consolidate() handle it.
Leave a similar check inside Addunit for now because I can't quite nail down where a new list gets initialized. Ideally, list.contingencies would never be null and just change based on numContingencies.
Issue was that a decrement check was deleting contingencies. Unit upgrade mods create a new copy, change upgrades, then delete old copy. Removing the 'unit' copy before replacing it w updated one was removing contingencies. Remove Contingencies check there and let consolidate() handle it.
Leave a similar check inside Addunit for now because I can't quite nail down where a new list gets initialized. Ideally, list.contingencies would never be null and just change based on numContingencies.