v3.3.0: Fixed spawner spawn recording on act instead of on create

This commit is contained in:
Evan Debenham
2025-12-02 16:53:58 -05:00
parent 92324143c6
commit aeaa169cb1
2 changed files with 3 additions and 1 deletions

View File

@@ -24,7 +24,6 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.mobs;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.AscensionChallenge;
import com.shatteredpixel.shatteredpixeldungeon.effects.Pushing;
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfHealing;
@@ -78,6 +77,7 @@ public class DemonSpawner extends Mob {
private float spawnCooldown = 0;
//pre-v3.3.0 , leftover from when these could record their spawn on act
public boolean spawnRecorded = false;
@Override

View File

@@ -49,6 +49,8 @@ public class DemonSpawnerRoom extends SpecialRoom {
DemonSpawner spawner = new DemonSpawner();
spawner.pos = cx + cy * level.width();
Statistics.spawnersAlive++;
spawner.spawnRecorded = true;
level.mobs.add( spawner );
CustomFloor vis = new CustomFloor();