v0.3.2: fixed a bug that coul cause the wandmaker to spawn twice or more.
This commit is contained in:
parent
22a34cc9b7
commit
b04cadcbf4
|
@ -326,8 +326,7 @@ public class Wandmaker extends NPC {
|
|||
}
|
||||
|
||||
public static boolean spawn( PrisonLevel level, Room room, Collection<Room> rooms ) {
|
||||
if (!spawned && Dungeon.depth > 6 && Random.Int( 10 - Dungeon.depth ) == 0
|
||||
|| type != 0) {
|
||||
if (!spawned && (type != 0 || (Dungeon.depth > 6 && Random.Int( 10 - Dungeon.depth ) == 0))) {
|
||||
// decide between 1,2, or 3 for quest type.
|
||||
// but if the no herbalism challenge is enabled, only pick 1 or 2, no rotberry.
|
||||
if (type == 0) type = Random.Int(Dungeon.isChallenged(Challenges.NO_HERBALISM) ? 2 : 3)+1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user