From 2678fd93f0f6340e4eabf8475f5bc0d32d2751b5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 3 Jan 2018 21:49:31 +0100 Subject: [PATCH] added an unlock rule for the Ruins --- help.cpp | 3 +++ landlock.cpp | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/help.cpp b/help.cpp index e10a454f..edb6db47 100644 --- a/help.cpp +++ b/help.cpp @@ -545,6 +545,9 @@ string generateHelpForLand(eLand l) { KILLREQ(moAirElemental, laWhirlwind); } + if(l == laInvincible) + KILLREQ(moSkeleton, laPalace); + if(l == laTrollheim) { KILLREQ(moTroll, laCaves); KILLREQ(moFjordTroll, laLivefjord); diff --git a/landlock.cpp b/landlock.cpp index b4cf300c..7d39ea00 100644 --- a/landlock.cpp +++ b/landlock.cpp @@ -211,6 +211,10 @@ int isNative(eLand l, eMonster m) { case laSwitch: return m == moSwitch1 || m == moSwitch2 ? 2 : 0; + + case laInvincible: + return among(m, moPair, moHexDemon, moAltDemon, moMonk, moCrusher) ? 2 : + m == moSkeleton ? 1 : 0; } return false; } @@ -542,6 +546,9 @@ bool landUnlocked(eLand l) { case laSwitch: return gold() >= R90; + + case laInvincible: + return kills[moSkeleton]; } return false; } @@ -801,6 +808,7 @@ eLand getNewLand(eLand old) { tab[cnt++] = laPalace; if(old == laDragon && items[itElixir] >= U10) LIKELY tab[cnt++] = laReptile; if(kills[moVizier]) tab[cnt++] = laEmerald; + if(kills[moSkeleton]) tab[cnt++] = laInvincible; if(items[itFeather] >= U10) { tab[cnt++] = laZebra; if(old == laMotion || old == laHunting) LIKELY2 tab[cnt++] = laZebra;