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

Spawn item from quest step #674

Merged
merged 5 commits into from
Feb 14, 2025
Merged

Conversation

snipercup
Copy link
Collaborator

This pr enables a quest step to spawn an item onto the map that the player is currently on.

The user specifies an item id and an amount inside the quest step. When the quest reaches this step, the item is spawned onto the map and the quest immediately moves onto the next step.

It will try to spawn the item inside a static furniture container on the same y level as the player. If no furniture like that can be found, nothing happens. No filtering of furniture takes place, so the item could pawn inside a tree.

The next step is to spawn the item on a random empty tile, but that's not implemented in this pr.

@snipercup snipercup added the enhancement New feature or request label Feb 13, 2025
@snipercup snipercup mentioned this pull request Feb 13, 2025
@snipercup snipercup merged commit 016378e into Khaligufzel:main Feb 14, 2025
@snipercup snipercup deleted the spawn-item branch February 14, 2025 11:21
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.

1 participant