summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/event.txt4
-rw-r--r--npc/commands/rate-management.txt8
-rw-r--r--npc/dev/ci_test.txt1
3 files changed, 13 insertions, 0 deletions
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index 95704009b..8b1dc023c 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -8,6 +8,10 @@
// WARNING, possibly dangerous.
function script sClear {
+ // Obviously CI does not need this
+ if ($@CI_MODE)
+ end;
+
// Delete all Easter Stuff
if ($EVENT$ != "Easter") {
DelItemFromEveryPlayer(SilverEasteregg);
diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt
index a750e571e..52151777b 100644
--- a/npc/commands/rate-management.txt
+++ b/npc/commands/rate-management.txt
@@ -39,6 +39,8 @@
OnCall:
if (!is_gm())
end;
+ if ($@CI_MODE)
+ end;
.@special$ = strip(.@atcmd_parameters$[0]); // special value
.@new_rate = min(atoi(.@special$), 1000); // or just a regular integer
@@ -105,6 +107,8 @@ OnCall:
end;
OnPlayerCall:
+ if ($@CI_MODE)
+ end;
/*
// GM calls take precedence at any time!
if (.max_hours > 0 || .hours > 0)
@@ -248,6 +252,8 @@ OnCall:
if (!is_gm()) {
end;
}
+ if ($@CI_MODE)
+ end;
.@special$ = strip(.@atcmd_parameters$[0]); // special value
.@new_rate = min(atoi(.@special$), 1000); // or just a regular integer
@@ -333,6 +339,8 @@ OnReload:
debugmes("Drop Reload refused: Test server");
end;
}
+ if ($@CI_MODE)
+ end;
.@new_rate = dropRecalc(.current_rate);
setbattleflag("item_rate_common", .@new_rate);
setbattleflag("item_rate_common_boss", .@new_rate);
diff --git a/npc/dev/ci_test.txt b/npc/dev/ci_test.txt
index 6ee12452a..c1735bc68 100644
--- a/npc/dev/ci_test.txt
+++ b/npc/dev/ci_test.txt
@@ -41,6 +41,7 @@
end;
OnInit:
+ $@CI_MODE = true;
.@val = callfunc("HerculesSelfTestHelper");
mapquit(.@val);
end;