summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-03-15 23:18:37 +0100
committerFedja Beader <fedja@protonmail.ch>2025-03-15 23:19:16 +0100
commit90747f76a848602a7ff59e6e555b8a6ab9a81ddf (patch)
treeeacfd1d051cd3a3099879d3b32d62d02cfbdff45
parentfe1802bd441b248110a4e6006ee3e18788d35a9f (diff)
downloadserverdata-fortress_box_return.tar.gz
serverdata-fortress_box_return.tar.bz2
serverdata-fortress_box_return.tar.xz
serverdata-fortress_box_return.zip
Allow returning to the fortress area with trait selection box.fortress_box_return
For grinding or whatever (it just doesen't make sense to be unable to return once ladder illusion is gone). + I'm not sure if the q1 checks are necessary at all, but left them in regardless. (also renamed .@q to .@q1 for consistency and removed unused .q3)
-rw-r--r--npc/025-4/main.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/npc/025-4/main.txt b/npc/025-4/main.txt
index 68668ab0e..32a08b76f 100644
--- a/npc/025-4/main.txt
+++ b/npc/025-4/main.txt
@@ -298,17 +298,15 @@ OnKill:
end;
OnTouch:
- .@q=getq(General_Narrator);
+ .@q1=getq(General_Narrator);
.@q2=getq2(General_Narrator);
- .@q3=getq3(General_Narrator);
- if (.@q > 22) end;
- // Cheater Detected
- if (.@q < 22 || !(.@q2 & FRAG_EXPLOREDCAMP)) {
+ if (.@q1 < 22 || !(.@q2 & FRAG_EXPLOREDCAMP)) {
warp "Save", 0, 0;
die();
end;
}
- if (!(.@q2 & FRAG_LADDER) && .@q < 23) {
+
+ if (.@q1 < 23 && !(.@q2 & FRAG_LADDER)) {
slide 25, 57;
dispbottom l("The stair is broken; we cannot go up.");
end;