WohlSoft / LunaLua

LunaLua - LunaDLL with Lua, is a free extension mod for SMBX 1.3 game engine, core of the X2 project.
https://codehaus.moe/
GNU General Public License v3.0
33 stars 12 forks source link

onPOW hooks #50

Closed krazybluemonkey closed 1 year ago

krazybluemonkey commented 1 year ago

hooks for a simple onPOW event for the 1.3 POW code. this would require "onPow", to be added to the end of Misc.LUNALUA_EVENTS in main_events.lua. tested and all seems well. Misc.doPOW() works fine with it to boot.

Bluenaxela commented 1 year ago

This looks good to me. I was about to merge it but looks like the added code has tab indentation instead of 4-space indentation, making things inconsistent in the files.

krazybluemonkey commented 1 year ago

This looks good to me. I was about to merge it but looks like the added code has tab indentation instead of 4-space indentation, making things inconsistent in the files.

sorry about that, a bit too used to the lua side of things. should be uniform now with that last commit