summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-05-04 11:40:28 -0300
committerJesusaves <cpntb1@ymail.com>2022-05-04 11:40:28 -0300
commit90543da98ee7aefd54bb1b4c8b227927b22227f4 (patch)
treef686954167895b79112ea8400681d55613af87dc /npc
parent84b3d3ee3cf95aff0d9fa273c0d6c2927ce8b9fc (diff)
downloadserverdata-90543da98ee7aefd54bb1b4c8b227927b22227f4.tar.gz
serverdata-90543da98ee7aefd54bb1b4c8b227927b22227f4.tar.bz2
serverdata-90543da98ee7aefd54bb1b4c8b227927b22227f4.tar.xz
serverdata-90543da98ee7aefd54bb1b4c8b227927b22227f4.zip
CI mode flag
Diffstat (limited to 'npc')
-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;