Skip to content

Fix Enemy Registration with Rarity Tables#65

Merged
EvaisaDev merged 1 commit into
EvaisaDev:mainfrom
Hamunii:main
Mar 15, 2024
Merged

Fix Enemy Registration with Rarity Tables#65
EvaisaDev merged 1 commit into
EvaisaDev:mainfrom
Hamunii:main

Conversation

@Hamunii

@Hamunii Hamunii commented Mar 15, 2024

Copy link
Copy Markdown
Collaborator

Fixes #64 by doing the following:

  • Adds the Enemy to spawnableEnemies
  • Uses levelRarities list instead of spawnLevels for finding out if the enemy should be added to a level
    • This is because spawnLevels is never set when registering using Rarity Tables

@zealsprince zealsprince left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - applies the fix I proposed. Just tested and appears to work without any side effects.

@EvaisaDev EvaisaDev merged commit 23b3df7 into EvaisaDev:main Mar 15, 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.

Registering an enemy with rarity table method does not add the enemy to the spawn list

3 participants