Fixes to Mod Logics

Fixes to logic that goes unused in the unmodded game, or at least not used to its full capabilities i.e. game logic that often does not work as expected when used in mods.