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

Sleep deprivation cleanup #37423

Merged
merged 1 commit into from Jan 28, 2020
Merged

Conversation

anothersimulacrum
Copy link
Member

Summary

SUMMARY: None

Purpose of change

There wasn't really any reason for the melatonin tablet to have a separate iuse, instead of using the consume drug actor.
Because there no longer is a sleep deprivation mod, there is no longer a need for an external option toggling it.
While converting the melatonin tablet to the consume drug iuse, I noticed it could not use time_duration strings, so I enabled the use of those for it.

This caused tests to fail again, so I added more clearing of effects to prevent the test failures.

Describe the solution

Remove MELATONIN_TABLET use action.
Remove SLEEP_DEPRIVATION external option.
Remove unused code left after that.
Convert the melatonin tablet to the consume_drug, iuse and make changes necessary to load_effect_data for it to accept time durations.

Clear fatigue and sleep deprivation when passing time in tests.

Testing

Tests run correctly.
Melatonin tablet applies melatonin effect.

There wasn't really any reason for the melatonin tablet to have a
separate iuse, instead of using the consume drug actor.

The external option for sleep deprivation was also not very useful, and
was removed as such.

While converting the melatonin tablet to the consume drug iuse, I
noticed it could not use time_duration strings, so I enabled the use of
those for it.

Making these changes trigerred test failures, so I made adjustments to
the tests to fix those.
@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON labels Jan 27, 2020
@ZhilkinSerg ZhilkinSerg merged commit a28eeb9 into CleverRaven:master Jan 28, 2020
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` [JSON] Changes (can be) made in JSON
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants