From c1ba6a47a623fa0bcb239e58252ca0d018d2d540 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 2 Mar 2019 16:24:25 -0300 Subject: [skip ci] debug --- npc/000-1/exit.txt | 1 + npc/011-3/flood.txt | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/000-1/exit.txt b/npc/000-1/exit.txt index 6887aa4ba..e819b3036 100644 --- a/npc/000-1/exit.txt +++ b/npc/000-1/exit.txt @@ -18,6 +18,7 @@ OnTalkNearby: } //if (getsavepoint(0) != "000-1") warp getsavepoint(0), getsavepoint(1), getsavepoint(2); + if (getsavepoint(0) != "000-1") debugmes "Emergency Exit - Fallback to savepoint"; if (getsavepoint(0) != "000-1") warp "Save", 0, 0; if (getsavepoint(0) != "000-1") end; savepoint "002-1", 53, 38; diff --git a/npc/011-3/flood.txt b/npc/011-3/flood.txt index d095044d4..be59dc4d6 100644 --- a/npc/011-3/flood.txt +++ b/npc/011-3/flood.txt @@ -50,12 +50,13 @@ OnSkipFlood: delcells "ESwpBridge7"; mapannounce "011-3", "Eternal Swamps: The flood ceases!",bc_all|bc_npc; } else { - debugmes "[Flood] Analysis"; // 40% chances to flood, 75% during night .@odds=40; if (is_night()) .@odds+=35; + debugmes "[Flood] Analysis with %d odds to flood", .@odds; + // Maybe we should flood it if (rand(0,100) < .@odds) { debugmes "[Flood] F - Flooding"; @@ -77,6 +78,8 @@ OnSkipFlood: // TODO: Handle players in bridges debugmes "[Flood] F - Map Timer OK"; maptimer("011-3", "#EternalSwampCore::OnBridgeDown", 10); + } else { + debugmes "[Flood] NF Aborted"; } } -- cgit v1.2.3-70-g09d2