Fixed bug with menus, modals, or buttons appearing while in battle animation sequence. Replaced "ig.game" with "this" in main.js where appropriate.
Fixed bug where swapping items does not swap item uses.
Reduced extra parameters in clearMod() and swapItems() functions by referencing unit entity instead of unit's properties.
Reduced extra parameters in tradeItems() functions by referencing unit entity instead of unit's properties.
Fixing bugs with weapon bonus computation
Merging