v1.3.2: fixed further levelgen inconsistencies caused by champions
This commit is contained in:
+14
-14
@@ -100,21 +100,21 @@ public abstract class ChampionEnemy extends Buff {
|
|||||||
|
|
||||||
Dungeon.mobsToChampion--;
|
Dungeon.mobsToChampion--;
|
||||||
|
|
||||||
if (Dungeon.mobsToChampion <= 0){
|
//we roll for a champion enemy even if we aren't spawning one to ensure that
|
||||||
Class<?extends ChampionEnemy> buffCls;
|
//mobsToChampion does not affect levelgen RNG (number of calls to Random.Int() is constant)
|
||||||
switch (Random.Int(6)){
|
Class<?extends ChampionEnemy> buffCls;
|
||||||
case 0: default: buffCls = Blazing.class; break;
|
switch (Random.Int(6)){
|
||||||
case 1: buffCls = Projecting.class; break;
|
case 0: default: buffCls = Blazing.class; break;
|
||||||
case 2: buffCls = AntiMagic.class; break;
|
case 1: buffCls = Projecting.class; break;
|
||||||
case 3: buffCls = Giant.class; break;
|
case 2: buffCls = AntiMagic.class; break;
|
||||||
case 4: buffCls = Blessed.class; break;
|
case 3: buffCls = Giant.class; break;
|
||||||
case 5: buffCls = Growing.class; break;
|
case 4: buffCls = Blessed.class; break;
|
||||||
}
|
case 5: buffCls = Growing.class; break;
|
||||||
|
}
|
||||||
|
|
||||||
if (Dungeon.isChallenged(Challenges.CHAMPION_ENEMIES)) {
|
if (Dungeon.mobsToChampion <= 0 && Dungeon.isChallenged(Challenges.CHAMPION_ENEMIES)) {
|
||||||
Buff.affect(m, buffCls);
|
Buff.affect(m, buffCls);
|
||||||
m.state = m.WANDERING;
|
m.state = m.WANDERING;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user