The Spice of Life

The Spice of Life

16M Downloads

Add configurable events (rewards/punishments) on food being eaten

squeek502 opened this issue ยท 0 comments

commented

It's been suggested many times before, but I haven't really considered potential implementations until now. See this reddit thread for what sparked this

Here's what I'm thinking for possible implementation:

  • Add a config category for on eaten events
  • Add a config option for a list of negative potion effects (not sure how these would be specified, need to look into that), to be chosen at random whenever a food is eaten at less than 100% nutritional value
  • Add a config option for a list of positive potion effects (not sure how these would be specified, need to look into that), to be chosen at random whenever a food is eaten at more than 100% nutritional value
  • Add a formula config option that would be used to calculate the duration of these potion effects, so that eating something at 99% nutritional value could give you a tiny effect, while eating something at 25% would give you a long duration potion effect
  • Add a config option for XP being added when food is eaten, and a formula config option for determining how much based on the current context (inspired by this comment, could be split off into its own tiny mini-mod, as it might be nice to have even without TSoL installed)