From f1115c4a0a284eaff84d985a040f687fc5035117 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 3 Nov 2017 19:50:22 +0100 Subject: [PATCH] Halloween on a Torus --- landgen.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/landgen.cpp b/landgen.cpp index 80cf4b09..2ba5bb5b 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -934,6 +934,11 @@ void giantLandSwitch(cell *c, int d, cell *from) { if(quotient && zebra40(c) == 5) { c->wall = waChasm; } + if(torus) { + int i = hrand(100); + if(i == 0) c->item = itTreat; + else if(i < 5) c->wall = waChasm; + } } break;