Create talker item, paving way for greater item json interactions. #49950
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Infrastructure "Create talker item, add consumption_eocs"
Purpose of change
Allow item EOC's to run functions on the item. At present location functions and allowing setting and accessing variables are the only supported functions.
Add consumption_eocs, effect on conditions run after consuming an item.
Describe the solution
talker_item has been a to-do for a number of projects and here is a basic version. This is a step towards having a conversation with an item.
Also part of my goal of creating migo bio technology. I want each piece to use a random function that once assigned doesn't change or does so in a controlled manner. So they all have the same name and you don't know what you are getting.
There has been discord talk of creating books with random quotes that don't change, this is a piece of that or even the whole thing if you are a masochist.
Also added consumption eoc's. These are for #35882. They are just effect_on_conditions run after consuming something. They are the second commit and could be seperate but are small and use talker_item.
Describe alternatives you've considered
Testing
Played around with this json
For consumption eocs just add the line: "consumption_effect_on_conditions":["EOC_SLEEP"],
to a food. I did protein_bar_evac since thats where this is planning to be used.
Additional context