Skip to content
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 pillows in pillowcases to act as SLEEP_AIDs #46068

Merged
merged 4 commits into from
Dec 24, 2020

Conversation

anothersimulacrum
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Based on #46067.
That PR breaks the behavior of pillows as SLEEP_AIDs because they are now contained in pillowcases.

Describe the solution

Add a SLEEP_AID_CONTAINER flag, and allow items in items with this flag to work as normal SLEEP_AIDs

Testing

Added a message showing the name of the sleep aid I was using when I was using a sleep aid. It correctly showed pillows within pillowcases acting as SLEEP_AIDs.

Additional Context

This will probably generate merge conflicts when #46067 is merged due to sharing commits with that.

BigHatRince and others added 3 commits December 15, 2020 16:48
Added pillowcases and made pillows spawn inside them
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
@anothersimulacrum anothersimulacrum added the [C++] Changes (can be) made in C++. Previously named `Code` label Dec 16, 2020
data/json/items/generic/bedding.json Show resolved Hide resolved
src/character.cpp Show resolved Hide resolved
The code's a bit ugly, but it works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants