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

Fix items spawning with bday at 0 instead of calendar::start_of_cataclysm #33714

Merged
merged 1 commit into from
Aug 31, 2019

Conversation

Hirmuolio
Copy link
Contributor

@Hirmuolio Hirmuolio commented Aug 31, 2019

Summary

SUMMARY: Bugfixes "Fix items spawning with bday at 0"

Purpose of change

Items in some locations would spawn with their bday at 0. This is wrong and they all should spawn with bday at calendar::start_of_cataclysm.

The wron bday leads to wrong rot when starting day is not zero.

Sequel for #33345

Describe the solution

Replace 0 with calendar::start_of_cataclysm in all the place_items() instances that had wrong time.

Describe alternatives you've considered

Additional context

Rot going massively negative when bday is before calendar::start_of_cataclysm should probably be fixed too. But since items should never even have bday there that isn't important thing to fix. Negative rot also makes it easier to see that the bday is wrong (if things worked as they should most of these items would have rotted away).

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) Character / World Generation Issues and enhancements concerning stages of creating a character or a world Items / Item Actions / Item Qualities Items and how they work and interact Time / Turns / Duration / Date Issues concerning any activities being too fast or too slow. Also issues about time and date ingame labels Aug 31, 2019
@ZhilkinSerg ZhilkinSerg merged commit 4ca6e80 into CleverRaven:master Aug 31, 2019
@Hirmuolio Hirmuolio deleted the Hirmuolio-spawn-time branch September 2, 2019 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) Character / World Generation Issues and enhancements concerning stages of creating a character or a world Items / Item Actions / Item Qualities Items and how they work and interact Time / Turns / Duration / Date Issues concerning any activities being too fast or too slow. Also issues about time and date ingame
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants