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

Update random dungeon chest spawning conditions #723

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BenCheung0422
Copy link
Member

@BenCheung0422 BenCheung0422 commented Nov 28, 2024

Someone mentioned that dungeon chests may sometimes spawned in walls or overlapped another chest. Spawning in walls may not be an issue, but overlapping could bother gameplay experience by the chest interactions since one of them may not be usable at the same time.

This only updates the world generation system afterwards, so the worlds generated before this may have introduced this overlapping issue. However, the fix is simple that, unlocked and empty dungeon chest should be able to be picked up into inventory or moved elsewhere to access the overlapped chest.

Now, it skips if the checked tile exists a dungeon chest and replaces the wall with raw obsidian if it was. Actually the arbitrary numbers in the code confused me about the logics.

By the way, it seems like that dungeon chests would be regenerated to desired number of chests each time loading the world (so new chests appear if some chests were removed), but I am not sure if it is intended, since I think it could break balancing.

@BenCheung0422 BenCheung0422 added Bug Something that shouldn't happen. UX/QoL labels Nov 28, 2024
@Makkkkus Makkkkus removed World generation Bug Something that shouldn't happen. labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants