summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-17 01:53:31 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-17 01:53:31 -0300
commit408b323da151252b9173762a1759cfecdbda7d8b (patch)
tree54adc9b602ee6762ec7e8d426357b20501181c48 /npc
parentd2158fca8661c4416d13f3eee5a5a540741c2531 (diff)
downloadserverdata-408b323da151252b9173762a1759cfecdbda7d8b.tar.gz
serverdata-408b323da151252b9173762a1759cfecdbda7d8b.tar.bz2
serverdata-408b323da151252b9173762a1759cfecdbda7d8b.tar.xz
serverdata-408b323da151252b9173762a1759cfecdbda7d8b.zip
Fortress Gate had been incorrectly not configured to scale.
It now scales, +8000 HP per successful attempt
Diffstat (limited to 'npc')
-rw-r--r--npc/025-1/ctrl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/025-1/ctrl.c b/npc/025-1/ctrl.c
index 327d0cc58..f8f197ae4 100644
--- a/npc/025-1/ctrl.c
+++ b/npc/025-1/ctrl.c
@@ -88,6 +88,7 @@ function script FTStatue {
// Break the statues?
mesc l("Break the Statue?"), 1;
+ mesc l("* Will be stun you for 10 seconds!");
next;
if (askyesno() == ASK_YES) {
if ($@FORTRESS_STATUE & .@id)
@@ -174,7 +175,11 @@ function script FTStatue {
$@FORTRESS_STATUE=2048;
// Spawn the gate
- monster("025-1", 99, 113, strmobinfo(1, FortressGate), FortressGate, 1, "Gate#F::OnSesame");
+ .@g=monster("025-1", 99, 113, strmobinfo(1, FortressGate), FortressGate, 1, "Gate#F::OnSesame");
+ .@bhp=getunitdata(.@g, UDT_MAXHP);
+ .@bhp=.@bhp*(25+$MK_TEMPVAR)/25; // +4% per success or 8,000 HP
+ setunitdata(.@g, UDT_MAXHP, .@bhp);
+ setunitdata(.@g, UDT_HP, .@bhp);
// Initial defending waves
spawnCore(true);