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

Regenerate containers #567

Merged
merged 4 commits into from
Dec 14, 2024
Merged

Conversation

snipercup
Copy link
Collaborator

Fixes #530

Adds a mechanic where containers are reset after some time.

  • Adds a spinbox to the furniture editor that allows the user to specify a number of days before regen happens
  • When the player is close to the furniture, the calculations and regeneration happens. This means that if you put 0.1 days as a regeneration period and approach the furniture after 10 days, it will only have regenerated once.
  • Existing items in the furniture container are lost upon regeneration
  • Trees can be looted and will regenerate after 10 days

Also fixes bugs:

  • The furniture container sprite wouldn't properly show if it was loaded from a save while empty
  • Getting a random mob id was missing from RMobgroup
  • Spriteid was missing from RItemgroup

The container sprite on the furniture may look a little wonky at the moment since all the trees show the container sprite. Might add an option to hide the container sprite for furniture.

@snipercup snipercup added the enhancement New feature or request label Dec 14, 2024
@Elshad19 Elshad19 merged commit 0080f38 into Khaligufzel:main Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reset containers after some time to simulate fruits on a plant
2 participants