diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-18 01:26:39 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-18 01:26:39 -0300 |
commit | 960dee60bbd65262c951bfed1f8eea067d26a35f (patch) | |
tree | 653d0a3277ebbd4eceb9f093e2fdc364b1515e50 /npc/functions/siege.txt | |
parent | 7e6b82f9ee252e862e551493dc0836b0d98047f0 (diff) | |
download | serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.tar.gz serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.tar.bz2 serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.tar.xz serverdata-960dee60bbd65262c951bfed1f8eea067d26a35f.zip |
Minor improvements and corrections. This allows sieges to keep happening until
the Fortress is sieged itself.
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r-- | npc/functions/siege.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt index baca59a63..98a600dc8 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)); |