v0.6.4: fixed item generation errors in pit room and mimic logic
This commit is contained in:
parent
2d58797e32
commit
735b5fc186
|
@ -171,7 +171,7 @@ public class Mimic extends Mob {
|
|||
reward = Generator.random(Generator.Category.RING);
|
||||
break;
|
||||
}
|
||||
} while (reward == null || !Challenges.isItemBlocked(reward));
|
||||
} while (reward == null || Challenges.isItemBlocked(reward));
|
||||
m.items.add(reward);
|
||||
|
||||
return m;
|
||||
|
|
|
@ -66,14 +66,17 @@ public class PitRoom extends SpecialRoom {
|
|||
switch (Random.Int(3)){
|
||||
case 0:
|
||||
mainLoot = Generator.random(Generator.Category.RING);
|
||||
break;
|
||||
case 1:
|
||||
mainLoot = Generator.random(Generator.Category.ARTIFACT);
|
||||
break;
|
||||
case 2:
|
||||
mainLoot = Generator.random(Random.oneOf(
|
||||
Generator.Category.WEAPON,
|
||||
Generator.Category.ARMOR));
|
||||
break;
|
||||
}
|
||||
} while ( mainLoot == null || !Challenges.isItemBlocked(mainLoot));
|
||||
} while ( mainLoot == null || Challenges.isItemBlocked(mainLoot));
|
||||
level.drop(mainLoot, remains);
|
||||
|
||||
int n = Random.IntRange( 1, 2 );
|
||||
|
|
Loading…
Reference in New Issue
Block a user