diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-01-23 19:54:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-01-23 19:54:50 -0300 |
commit | c9a72302eccbf1412214f4c85462f9a9788935ed (patch) | |
tree | 289614320e79b005b380a92cd36fb5f60b5ecf24 | |
parent | 620db53a8952ce8e9ad17b60e3b96ccd3af2d70c (diff) | |
download | serverdata-c9a72302eccbf1412214f4c85462f9a9788935ed.tar.gz serverdata-c9a72302eccbf1412214f4c85462f9a9788935ed.tar.bz2 serverdata-c9a72302eccbf1412214f4c85462f9a9788935ed.tar.xz serverdata-c9a72302eccbf1412214f4c85462f9a9788935ed.zip |
Make Death Touch more dangerous
-rw-r--r-- | npc/026-7/boss.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/026-7/boss.txt b/npc/026-7/boss.txt index 573eb915f..66a246168 100644 --- a/npc/026-7/boss.txt +++ b/npc/026-7/boss.txt @@ -49,6 +49,7 @@ OnBegin: end; // Lock the MK in the showdown $@MK_SCENE=MK_SHOWDOWN; + .start_time = gettimetick(2); // Controls Death Touch // Initial assortment of monsters //siege_cast("026-7", .name$, 15, TP_TULIM|TP_HURNS|TP_NIVAL); areamonster("026-7", 30, 27, 50, 50, "Heart's Curse", EvilWisp, 1); @@ -118,6 +119,7 @@ OnBegin: .@bs1 += .@leg; setunitdata(.MK, UDT_SPEED, .@bs1); setunitdata(.MK, UDT_ATKRANGE, .@bs2); + .mana += .@leg; } // The Four Generals which command his immortality .GUARD1=monster("026-7", 35, 30, "Air General", MonsterGeneral, 1); @@ -254,6 +256,12 @@ OnTimer10000: getunittype(.GUARD2) < 0 && getunittype(.GUARD3) < 0 && getunittype(.GUARD4) < 0) { + // Secondary throttle (1m), see code copy-pasta below + if (.start_time < gettimetick(2) + 60) { + unittalk(.MK, "Death touch!"); + maptimer2("026-7", 10, "Impregnable#B7F::OnDeathTouch"); + } + // Remove the immortality and reset Death Touch timer .immortal = false; kamibroadcast("The Monster King has lost his immortality.", "Monster King"); setunitdata(.MK, UDT_HP, .maxhp); @@ -524,6 +532,11 @@ OnDeathTouch: percentheal 0, -10; else percentheal 0, -25; + // If you ran out of MP, consume 1/3 HP (Death Touch) + if (Sp < 10) { + dispbottom l("Death grazes your soul (-%s HP)", fnum(Hp*3/10)); + percentheal -30, 0; + } end; // Monster King was defeated - game won |