Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2623

LunaLua • Re: modernReserveItems.lua v2.0 - SM3DL/SM3DW reserve mechanics

$
0
0
so uh. after forgetting to fix AppleTheTomato's problem for a bit, i kinda... throw out the whole patterns part of the library (basically half of it lol) and replaced it with a configs systems taken from the NPC.config system. i figure that warrants a new major version. this will not be compatible with older code relying on 1.3, you have been warned.
changelog:

-- v2.0 (4/14/2024) --
  • rebuilt/took config system from npcconfig_core.lua. this reduces alot of repeat code.
  • patterns have been completely removed as a result of the config system overhaul.
  • resolveThrowSettings has been removed due to config overhaul as well.
  • removed an unnecessary loop for warp checking.
  • more code comments (for personal rememberance).
  • any mem addresses that have field equivalents in B5 have been updated.
  • isMega has been completely removed.
  • isContained & containedID have been combined into one config, forcedState.
  • allowContainedItems has been renamed allowForcedStateItems as following the config renamed
  • isEgg has been replaced by idOverwrite. useful for container npcs.
  • SFX has been renamed to sfx.
  • the ai config table has been separated into indivdual ai# fields (1-6).
  • onReserveUse has lost the throwSettings argument following config overhaul.
  • fixed onPostReserveUse not returning the resulting npc from .drop
  • onReserveUse and onPostReserveUse have been made to work across mulitle lua files (see included example materials for how)
the top post has been updated, see it for more details.

Statistics: Posted by KBM-Quine — Sun Apr 14, 2024 9:27 am



Viewing all articles
Browse latest Browse all 2623

Trending Articles