Using Enum_Ext for the first time, how to register slugcatstates name so my mod class recognizes it? #26
-
Hi! Working on my first ever mod (I have some programming education but have never put it to use.) I'm trying to make KarmaFlowers and Mushrooms give food points for my slugbase character. I've followed the instructions on the enum extender page on the wiki, can't build my project now though because SlugcatStats.Name doesn't contain my enum. How do I reference this correctly so I can use my enum in the code and my project will build? As an aside, right now I have a functional but not really optimal if-statement hooked into ObjectEaten that adds the food points if they're the correct item. I've looked into IL hooking, but it seems pretty intimidating, especially since I don't really know what I'm doing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To anyone who finds this, enum ext for SlugCatStats.Name apparently doesn't work well with slugbase. Instead the character should be checked by comparing with the Mod ID, other enums should work fine though I'm told. |
Beta Was this translation helpful? Give feedback.
To anyone who finds this, enum ext for SlugCatStats.Name apparently doesn't work well with slugbase. Instead the character should be checked by comparing with the Mod ID, other enums should work fine though I'm told.