Combat global

Closes #9255 (closed)

Refactors the Combat interface to move all code that has no reason to be restricted to local contexts into common.lua, then makes them available on a global interface.

Also, as a side effect of requiring types in common.lua, menu.lua broke. menu.lua only exists to register the page, but the page will be empty during the main menu if registered from a MENU script anyway so i moved it to a PLAYER script and renamed it.

I have tested the functions added to the global function by invoking them with some sample armors and actors and seeing that the result turn out the same in both local and global contexts, using the in-game lua console.

Merge request reports

Loading
Loading