summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
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/functions/hub.txt
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/functions/hub.txt')
-rw-r--r--npc/functions/hub.txt9
1 files changed, 9 insertions, 0 deletions
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;
}