From 665263cc27ab07bcdcca3803c11729dca27cbb50 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 19 Dec 2018 03:24:26 -0200 Subject: I don't think anyone would be insane enough to even attempt it, but add Master Dungeon. Once we estabilish the victory conditions, we can worry with rewards. (probably involves turning on a lot of switches and opening invisible walls) --- npc/018-2-2/main.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc/018-2-2/main.txt') diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt index d504b072f..1fd22c882 100644 --- a/npc/018-2-2/main.txt +++ b/npc/018-2-2/main.txt @@ -17,6 +17,10 @@ OnPlayerCycle: end; } // TODO: Handle traps (We'll use isin() command because you can give 3~4 steps each counter) + if (rand(0,1000) <= @HH_LEVEL) { + dispbottom l("You step on a trap!"); + heal -(@HH_LEVEL*rand(2,5)), 0; + } // Continue the execution addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle"); @@ -271,6 +275,14 @@ OnInstanceInit: } freeloop(false); } + // HH_MASTER + freeloop(true); + for (.@i=0;.@i