v2.2.0: disabled the blacksmith quest for now
This commit is contained in:
+10
-2
@@ -41,6 +41,7 @@ import com.shatteredpixel.shatteredpixeldungeon.windows.WndQuest;
|
|||||||
import com.watabou.noosa.Game;
|
import com.watabou.noosa.Game;
|
||||||
import com.watabou.utils.Bundle;
|
import com.watabou.utils.Bundle;
|
||||||
import com.watabou.utils.Callback;
|
import com.watabou.utils.Callback;
|
||||||
|
import com.watabou.utils.DeviceCompat;
|
||||||
import com.watabou.utils.Random;
|
import com.watabou.utils.Random;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -372,14 +373,21 @@ public class Blacksmith extends NPC {
|
|||||||
rooms.add(new BlacksmithRoom());
|
rooms.add(new BlacksmithRoom());
|
||||||
spawned = true;
|
spawned = true;
|
||||||
|
|
||||||
type = 1+Random.Int(3);
|
//currently the new quest is disabled in production as it is incomplete
|
||||||
alternative = false;
|
if (DeviceCompat.isDebug()){
|
||||||
|
type = 1+Random.Int(3);
|
||||||
|
alternative = false;
|
||||||
|
} else {
|
||||||
|
type = 0;
|
||||||
|
alternative = Random.Int(2) == 0;
|
||||||
|
}
|
||||||
|
|
||||||
given = false;
|
given = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
return rooms;
|
return rooms;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int Type(){
|
public static int Type(){
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-12
@@ -34,6 +34,7 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.traps.BurningTrap;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.tiles.CustomTilemap;
|
import com.shatteredpixel.shatteredpixeldungeon.tiles.CustomTilemap;
|
||||||
import com.watabou.noosa.Tilemap;
|
import com.watabou.noosa.Tilemap;
|
||||||
|
import com.watabou.utils.DeviceCompat;
|
||||||
import com.watabou.utils.Point;
|
import com.watabou.utils.Point;
|
||||||
import com.watabou.utils.Random;
|
import com.watabou.utils.Random;
|
||||||
|
|
||||||
@@ -79,24 +80,25 @@ public class BlacksmithRoom extends StandardRoom {
|
|||||||
} while (level.heaps.get( npc.pos ) != null);
|
} while (level.heaps.get( npc.pos ) != null);
|
||||||
level.mobs.add( npc );
|
level.mobs.add( npc );
|
||||||
|
|
||||||
Random.pushGenerator(Dungeon.seedCurDepth()+1);
|
//currently the new quest is disabled in production as it is incomplete
|
||||||
|
if (DeviceCompat.isDebug()) {
|
||||||
int entrancePos;
|
int entrancePos;
|
||||||
do {
|
do {
|
||||||
entrancePos = level.pointToCell(random( 2 ));
|
entrancePos = level.pointToCell(random( 2 ));
|
||||||
} while (level.heaps.get( npc.pos ) != null || entrancePos == npc.pos);
|
} while (level.heaps.get( npc.pos ) != null || entrancePos == npc.pos);
|
||||||
Random.popGenerator();
|
|
||||||
|
|
||||||
QuestEntrance vis = new QuestEntrance();
|
QuestEntrance vis = new QuestEntrance();
|
||||||
vis.pos(entrancePos, level);
|
vis.pos(entrancePos, level);
|
||||||
level.customTiles.add(vis);
|
level.customTiles.add(vis);
|
||||||
|
|
||||||
level.transitions.add(new LevelTransition(level,
|
level.transitions.add(new LevelTransition(level,
|
||||||
entrancePos,
|
entrancePos,
|
||||||
LevelTransition.Type.BRANCH_EXIT,
|
LevelTransition.Type.BRANCH_EXIT,
|
||||||
Dungeon.depth,
|
Dungeon.depth,
|
||||||
Dungeon.branch+1,
|
Dungeon.branch + 1,
|
||||||
LevelTransition.Type.BRANCH_ENTRANCE));
|
LevelTransition.Type.BRANCH_ENTRANCE));
|
||||||
Painter.set(level, entrancePos, Terrain.EXIT);
|
Painter.set(level, entrancePos, Terrain.EXIT);
|
||||||
|
}
|
||||||
|
|
||||||
for(Point p : getPoints()) {
|
for(Point p : getPoints()) {
|
||||||
int cell = level.pointToCell(p);
|
int cell = level.pointToCell(p);
|
||||||
|
|||||||
Reference in New Issue
Block a user