-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Further effects json support (morale, focus) #35882
Comments
Nevermind, realized you want it to get worse over time. |
Yeah, similar need for better granularity but in this case more of a "omg I need to stop living off these terrible protein bars" thing. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
We're still going to need this for jsonizing drugs and things |
I am going to take a stab at this. I am relatively new to the game and very new to its code, but I'm motivated. |
Cool, tag me on the pr |
@I-am-Erk: I've been looking through the code today and see that the general pattern is to move move control into the json files. But there is still a lot of game behavior in the code. Given that, I'd want to make sure I implement the functionality you want. Above you state you want "A json effect flag for "morale_mod" similar to every other effect flag". Can you please give me an example of one of these other effect flags you want morale to model? Or put another way, what would you expect the json to look like one the feature is in place. For example, here is a portion of the json for aspirin:
Would you want something like?:
|
Do @Ramza13 's |
In #48683, Ramza13 stated (admittedly a bit back) that one for morale was waiting on a use case. |
Yup I have that already written. I'll make a PR. |
Awesome. Pester me when it's done and I'll see about adjusting some drugs. |
@I-am-Erk There should now be the tools you need to do this in json. Let me know if you need anything else. |
@I-am-Erk Do we need to close this issue? |
Is your feature request related to a problem? Please describe.
I was creating an effect that impacts morale over time, and realized it is not possible to define effects that impact morale or focus in JSON. Or, if it is, it is not documented.
Describe the solution you'd like
A json effect flag for "morale_mod" similar to every other effect flag. I don't think morale effects need to be impacted by all the other effect stuff like _min / _max / _tick.
Stretch goal: While in there it might be reasonable to have effects that directly impact Focus as well, since this is a stat that should be impacted by a lot of drugs and things. That would probably need to be a full set of effect flags, focus_amount and focus_min and such.
Describe alternatives you've considered
Hacking together effects in hard code, but no.
Additional context
I need this to make it depressing to eat gross protein bars all the time and I can't :(
I believe this is a fairly simple C++ addition and might be easy for someone trying to learn to JSONify C++ code... I think. Take that with a grain of salt since I cannot in fact code in C++
The text was updated successfully, but these errors were encountered: