#suggestion to use enum for ingredient criteria

1 messages · Page 1 of 1 (latest)

dense trout
#

Obviously idk the implementation details of this game and this is a total guess based on Fem’s latest update on the spinach salad bug and the missing “s”, so pls disregard if this suggestion does not make sense in this case.

If the bug was caused by a misspelled string not matching the expected value, perhaps a similar bug can be avoided in the future (if you were to add more recipes for example) by using enums in place of pure strings for the “tag” that is supposedly used in the ingredient criteria. That way the code will show a compile error when the enum is misspelled (either on the recipe or an ingredient item) and the bug is more easily caught.

I did find the update to be funny though, kudos hehe

shut nymph
#

This might work better in #1250882189302825031 . This area is to ask the devs things only they can answer based on their experiences in making the game. katluv

burnt umbra
#

Hey kellco!

In hindsight, yeah enums would've been better. We have a different sort of key system for story keys (essentially telling the game what is done and what isn't done in story) and that is a name varible (similar to a string) and it works because of just how many of them we have.

But yeah for cooking tags, when I made the system I expected there to be way more tags that we ended up with so enums would've been a lot cleaner and error-free mayumiYes

#

So yeah, just a not so great expectation of our needs on my part, and it's too late now to change it!

dense trout
#

Gotcha, thanks for taking the time to respond! Super cool to get dev insight 😊

And sorry Rin if I misunderstood the purpose of this channel 😅