v3.3.0: Fixed spawner spawn recording on act instead of on create
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user