summaryrefslogtreecommitdiff
path: root/npc/functions/siege.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-18 15:05:32 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-18 15:05:32 -0300
commitc9173a4e2e55b0fdf4df0d99920c556548a81e4b (patch)
tree885d66f5e10289843fa71a4316fe49a454c47c01 /npc/functions/siege.txt
parent9222961a0b3b38aee2f01a1d53c8a08e174488e2 (diff)
parent7c8417bb63afb65516852da1b9eb8ff0b4d2877f (diff)
downloadserverdata-c9173a4e2e55b0fdf4df0d99920c556548a81e4b.tar.gz
serverdata-c9173a4e2e55b0fdf4df0d99920c556548a81e4b.tar.bz2
serverdata-c9173a4e2e55b0fdf4df0d99920c556548a81e4b.tar.xz
serverdata-c9173a4e2e55b0fdf4df0d99920c556548a81e4b.zip
Merge branch 'master' into testserver
Conflicts solved with -X theirs
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r--npc/functions/siege.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index d4d56ac45..e8f40b229 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -191,10 +191,11 @@ function script siege_check {
.@mb+=mobcount(.@m$, "#SiegeCtrl::OnColonelDeath");
.@mb+=mobcount(.@m$, "#SiegeCtrl::OnGeneralDeath");
- // Players failed, so reduce score in 1
+ // Players failed, so reduce score in 1~10 (like Sergeant~General).
+ // In future, it could be inverse proportion (-9 for sergeant, -1 for general)
if (.@mb) {
if ($GAME_STORYLINE == 2)
- $MK_TEMPVAR-=1;
+ $MK_TEMPVAR-=rand2(1, 10);
kamibroadcast("Players failed to defend the city!!");
debugmes "Number of boss grade monsters found: %d", .@mb;
$SIEGE_DIFFICULTY=max(1, ($SIEGE_DIFFICULTY/2));