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

improve: added monster count to create monster talkaction #1861

Merged
merged 6 commits into from
Nov 21, 2023

Conversation

dudantas
Copy link
Member

This introduces an improved algorithm for spawning monsters around the player. The enhanced function createCreaturesAround now generates creatures in a concentric pattern, starting from the player's position and expanding outwards up to a specified radius. This mechanism ensures a more balanced and controlled distribution of monsters.

Key Features:

  • Monsters are spawned in a pattern that expands from 1x1 to a maximum of defined tiles around the player.
  • The function supports customization of the monster type, count, and specific forge options.
  • Incorporates an option to force spawn monsters, even on occupied tiles.
  • Ensures game playability by respecting immovable and solid property checks on tiles.

This update aims to provide a more dynamic and better testing environment.

@dudantas dudantas merged commit cf1963a into main Nov 21, 2023
18 checks passed
@dudantas dudantas deleted the improve-create-monster-talkaction branch November 21, 2023 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants