mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-03 19:27:54 +00:00
option -WT to teleport to a land, but without safety generation
This commit is contained in:
9
game.cpp
9
game.cpp
@@ -218,7 +218,7 @@ EX void saveRecall(cellwalker cw2) {
|
||||
}
|
||||
}
|
||||
|
||||
EX void activateSafety(eLand l) {
|
||||
EX void teleportToLand(eLand l, bool make_it_safe) {
|
||||
if(recallCell.at && activateRecall())
|
||||
return;
|
||||
savePrincesses();
|
||||
@@ -242,7 +242,7 @@ EX void activateSafety(eLand l) {
|
||||
safetyland = l;
|
||||
safetyseed = hrandpos();
|
||||
clear_euland(firstland);
|
||||
safety = true; avengers = 0;
|
||||
safety = make_it_safe; avengers = 0;
|
||||
clearMemory();
|
||||
initcells();
|
||||
initgame();
|
||||
@@ -255,6 +255,11 @@ EX void activateSafety(eLand l) {
|
||||
restartGraph();
|
||||
}
|
||||
|
||||
|
||||
EX void activateSafety(eLand l) {
|
||||
teleportToLand(l, true);
|
||||
}
|
||||
|
||||
EX void placeGolem(cell *on, cell *moveto, eMonster m) {
|
||||
if(on->monst == moFriendlyIvy)
|
||||
killMonster(on, moPlayer);
|
||||
|
Reference in New Issue
Block a user