From 271b916174350646bf3e57c05d2a15deeb64e0a9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 13 Feb 2018 20:41:56 +0100 Subject: [PATCH] Tuning the Snake Nest --- landgen.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/landgen.cpp b/landgen.cpp index a6dbd5f6..6b12a737 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -1534,15 +1534,21 @@ void giantLandSwitch(cell *c, int d, cell *from) { case laSnakeNest: ONEMPTY { - if(hrand(30000) < 30+items[itRedGem]+yendor::hardness() && !c->monst && !c->wall && !peace::on) { + if(hrand(30000) < 30+items[itSnake]+yendor::hardness() && !c->monst && !c->wall && !peace::on) { vector gooddir; for(int t=0; ttype; t++) if(c->mov[t]->mpdist > c->mpdist) gooddir.push_back(t); if(size(gooddir)) generateSnake(c, gooddir[hrand(size(gooddir))]); } - else if(hrand(16000) < kills[moHexSnake] * 100 && c->wall == waNone) - c->item = itSnake, c->wall = waRed3; + else if(hrand(10000) < items[itSnake] - 10 + yendor::hardness() && !c->monst && !c->wall && !peace::on) { + c->monst = pick(moRedTroll, moMiner, moSkeleton, moBomberbird); + c->hitpoints = 3; + } + else if(hrand(16000) < sqrt(kills[moHexSnake] * 10000) && c->wall == waNone) { + c->item = itSnake; + if(hrand(30) >= items[itSnake] - 10) c->wall = waRed3; + } } break;