From b90e3a4ed26b379731bd0fc247f77b8cdc1592e9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 21 Dec 2018 14:43:38 +0100 Subject: [PATCH] improved reptilecheat --- hyper.h | 4 +++- landgen.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hyper.h b/hyper.h index 33297b8c..a6951bea 100644 --- a/hyper.h +++ b/hyper.h @@ -4596,7 +4596,9 @@ namespace brownian { } #endif -#define ONEMPTY if(d == 7 && passable(c, NULL, 0) && !safety) +#define ONEMPTY if(d == 7 && passable(c, NULL, 0) && !safety && !reptilecheat) + +extern bool reptilecheat; void enable_cheat(); diff --git a/landgen.cpp b/landgen.cpp index e0c02145..6f3329b5 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -598,7 +598,7 @@ void giantLandSwitch(cell *c, int d, cell *from) { } } } - if(d == 7 && c->wall == waVinePlant && hrand(100) < (randomPatternsMode ? 2 : 10) && !peace::on) + if(d == 7 && c->wall == waVinePlant && hrand(100) < (randomPatternsMode ? 2 : 10) && !peace::on && !reptilecheat) c->monst = moVineSpirit; ONEMPTY { if(hrand(5000) < PT(100 + 2 * (kills[moVineBeast] + kills[moVineSpirit]), 200) && notDippingFor(itWine)) @@ -723,7 +723,7 @@ void giantLandSwitch(cell *c, int d, cell *from) { break; case laIce: - if(d == 9) { + if(d == 9 && !reptilecheat) { if(randomPatternsMode) c->wall = RANDPAT ? waIcewall : waNone; else if(hrand(100) < 5 && c->wall != waBarrier) { c->wall = waIcewall;