So I wanted to make some rest events, but turns out class Rest(NewStyleJob) is not used atm. Looks like warriors guild has its own resting class, and in brothel you cannot set chars to rest, only to do nothing. Wtf? ![Cheesy :D](https://www.pinkpetal.org/Smileys/DarkB/cheesy.gif)
class Rest(NewStyleJob) is (should be) used, it is impossible to set because it should no longer be bound to place of work but place of residence (home) and I am yet to integrate that logic into GUI and some other places in code.
Guild will require a very thorough rewrite so don't mind that right now. Same Rest class will be used in the future (prolly, unless we'll have special buildings that modify it completely (in some way that cannot be handled with if'elif or is too messy when handled like that) like some magical resting spa or something along those lines). You can add code to set some chars vitality to 0 if you like, should already be the case with Nami, I used her for testing.
=== Edit:
So to clarify, I want Rest to be bound to specialized building
and/or residence, to be added when available. Chars that live on the street/in bad conditions will not have a Rest option, instead None will be used as a bad default of doing nothing while not really resting properly and loosing joy/health. That is not ready yet but Rest itself is working, at least it was last I checked.
It should make more sense once it's done once way or another, my
hope is that once the system is up and working, we'll have a cool gameplay in place with loads of way to expand and enrich it exactly the way we want. Our last code setup was written for a much simpler game and was reaching it's limits... new setup is becoming more and more mature but it is still not integrated into GUI/gameplay properly, I do most of the stuff/testing setups using code right now.
Edit 2:
Rest should now be available in dropdown menu always (for testing purposes). Feel free to add some events there but conciser the new logic and try using char flags to pass around data may that be required, I am not planning to create unique instances for all actions for every character, right now we have just the once instance for all jobs that are working so far, possible exceptions will be jobs like Exploration but even then... I'll prolly use team flags to stay in sync with general design.