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

Investigate issue of "Threat Level" increasing before enemies have actually spawned #3

Closed
AidanTweedy opened this issue Mar 30, 2024 · 0 comments · Fixed by #4
Closed
Assignees

Comments

@AidanTweedy
Copy link
Owner

AidanTweedy commented Mar 30, 2024

It appears that the "Threat Level" of the current moon, which is determined with RoundManager.Instance.currentEnemyPower, is updated when an enemy is chosen to spawn, not when it actually spawns. This results in the threat level increasing before the enemy is spawned from a vent.

My proposed solution to this is to calculate the current threat level by checking the list of currently spawned entities, rather than relying on the RoundManager's number.

In addition, the threat level system needs to be tweaked slightly to properly account for inside vs outside power levels.

@AidanTweedy AidanTweedy self-assigned this Mar 30, 2024
@AidanTweedy AidanTweedy linked a pull request Mar 31, 2024 that will close this issue
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 a pull request may close this issue.

1 participant