summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-02 15:22:49 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-02 15:22:49 -0300
commit55dc3f88e4eec4d96abeae645fd23cea645e9250 (patch)
tree89e05cd1eb2c781da15af091f817d9df36eb10e1 /npc
parentf020e29db429743bcb2326d7ef53f5bdb5c0182d (diff)
downloadserverdata-55dc3f88e4eec4d96abeae645fd23cea645e9250.tar.gz
serverdata-55dc3f88e4eec4d96abeae645fd23cea645e9250.tar.bz2
serverdata-55dc3f88e4eec4d96abeae645fd23cea645e9250.tar.xz
serverdata-55dc3f88e4eec4d96abeae645fd23cea645e9250.zip
Fighting against legendary mobs penalties, trait to nullify them.
Also possible to nullify the penalties with Savior race, but the trait grants a bonus if the target monster DEF is higher than yours. Penalty: -25% crit, -40% ATK, -20% MATK, -5 MP/hit
Diffstat (limited to 'npc')
-rw-r--r--npc/025-1/phoenix.txt3
-rw-r--r--npc/functions/hub.txt9
2 files changed, 11 insertions, 1 deletions
diff --git a/npc/025-1/phoenix.txt b/npc/025-1/phoenix.txt
index f3dc8a318..1a380f331 100644
--- a/npc/025-1/phoenix.txt
+++ b/npc/025-1/phoenix.txt
@@ -99,7 +99,8 @@
rif(!(PCBONUS & PCB_EXPBONUS), l("EXP Gain +10%")), PCB_EXPBONUS,
rif(!(PCBONUS & PCB_NOKNOCKBACK), l("Knockback Immunity")), PCB_NOKNOCKBACK,
rif(REBIRTH && !(PCBONUS & PCB_SPLASHMASTER), l("AoE (not stackable)")), PCB_SPLASHMASTER,
- rif(REBIRTH && !(PCBONUS & PCB_RANGEMASTER), l("Atk Range +1")), PCB_RANGEMASTER;
+ rif(REBIRTH && !(PCBONUS & PCB_RANGEMASTER), l("Atk Range +1")), PCB_RANGEMASTER,
+ rif(REBIRTH < 5 && !(PCBONUS & PCB_LEGENDARY), l("No penalty against Legendary mobs")), PCB_LEGENDARY;
if (@menuret == 0) return;
PCBONUS=PCBONUS|@menuret;
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index ed78eaf49..a8f21454d 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -989,6 +989,15 @@ function script HUB_PCBonus {
if (PCBONUS & PCB_RANGEMASTER) {
bonus bAtkRange, 1;
}
+ if (Class != Savior && !(PCBONUS & PCB_LEGENDARY)) {
+ bonus2 bCriticalAddRace, RC_Legendary, -25;
+ bonus2 bSPDrainValueRace, RC_Legendary, -5;
+ bonus2 bAddRace, RC_Legendary, -40;
+ bonus2 bMagicAddRace, RC_Legendary, -20;
+ }
+ if (PCBONUS & PCB_LEGENDARY) {
+ bonus bDefRatioAtkRace, RC_Legendary;
+ }
return;
}