-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Allow plant mutants to sleep in planter furniture #36005
Allow plant mutants to sleep in planter furniture #36005
Conversation
to allow roots2/3 mutation use planter
to allow chloromorps to sleep in soil planter
Well, you asked for it... 😈
Anyway, these are quibbles, you illustrated all your points well; I wasn't confused by your meaning while reading. Also -- great work, this sounds like a good change! |
to make sure that sleeping surface is comfortable
Thanks for the corrections, my article game is worse than I imagined! =) |
Could you make a flag like ALLOW_ROOT for exemple to add to furniture instead of making a special case for f_planter? |
to represent abulity to root on some furniture and surface accordingly
Sure, did as per your request. |
As a side note, CI builds whole project every time from scratch. Seems like a waste, maybe there is some way to improve it? Like having pre-built artifact of the latest master and uploading it on CI machine before building? I'm not familiar with github CI/CD, to confirm it is possible though.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please document the flags you added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please document the flags you added.
I added it to mapdata.h description. Is this sufficient?
No, they need to be documented in |
Done |
I’m the long term it’d be super cool to let Plant Mutant players set themselves up with fertilized plant beds and indoor grow lights. Hopefully when someone gets around to working on indoor farming that’ll be more feasible. |
I'll look into it, but no promises - I've only recently started to look into actual source code of the game and C++ is a new language for me. I saw a hydroponics mod, and as I know there is some kind of interface to load charges of coal into forge, so I might try to combine the two and make hydroponics furniture which require fertilizer and/or water charges, but provide some benefits of sleeping on actual soil + daylight lamp to supplement for sunlight (maybe I could reuse flashlight code, with adjusted power consumption?). I just really enjoy playing plant, am I strange? 😂 |
I've resolved merging conflict, should be all good now. |
Feel free to reopen if you want working on it again. |
This is a cool idea, was this PR ready to go or did it need more work? |
Definitely needed more work because it wasn't passing even the basic "does it build" check. |
Summary
SUMMARY: Features "Allow plant mutants to sleep in planter furniture"
Purpose of change
Currently plant mutants can't sleep anywhere except outside, which could be a little punishing during winter. Also it seems logical to be able to craft something like "soil bed", planter furniture seems ideal for this purpose.
Describe the solution
I've added new conditions when checking for
plantsleep
locations, to make sure that plant mutant can sleep on diggable soil AND f_planter and not on any other furniture and terrain.I've added PLOWABLE flag to the f_planter furniture in order to make ROOTS2/3 mutation trigger when standing on planter furniture.
Describe alternatives you've considered
Don't do it.
Testing
Additional context
It feels like sleeping in planter should give some benefits, not all of them, but some. Maybe thirst reduction, but no nutrition value? I can make this change if anyone thinks it would be viable.
Feel free to correct my grammar and ask for clarifications, as I understand that my language skills are far from perfect.