Upper level and lower level spawning now distinguished in map editor.

This commit is contained in:
2023-07-10 19:22:33 -05:00
parent 0349e5d16e
commit 228a3caa0e
8 changed files with 39 additions and 15 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ Key Player::GetFacingDirection(){
void Player::Moved(){
for(MonsterSpawner&spawner:SPAWNER_LIST){
if(!spawner.SpawnTriggered()&&geom2d::contains(geom2d::rect<float>{spawner.GetPos(),spawner.GetRange()},pos)){
if(!spawner.SpawnTriggered()&&spawner.DoesUpperLevelSpawning()==OnUpperLevel()&&geom2d::contains(geom2d::rect<float>{spawner.GetPos(),spawner.GetRange()},pos)){
spawner.SetTriggered(true);
}
}