diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-07 14:16:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-07 14:16:13 -0300 |
commit | 841d1b2df16941acb4c6b61c602f0a23dfbbf5b0 (patch) | |
tree | 32401a71c3b2f1d71c556db5d1dd04f036e883b1 /npc/craft | |
parent | 7485fde54b1077c314f54e1cf2d2bef437a85637 (diff) | |
download | serverdata-841d1b2df16941acb4c6b61c602f0a23dfbbf5b0.tar.gz serverdata-841d1b2df16941acb4c6b61c602f0a23dfbbf5b0.tar.bz2 serverdata-841d1b2df16941acb4c6b61c602f0a23dfbbf5b0.tar.xz serverdata-841d1b2df16941acb4c6b61c602f0a23dfbbf5b0.zip |
Legendary Weapons now get +50% bonuses when tweaking
Diffstat (limited to 'npc/craft')
-rw-r--r-- | npc/craft/options.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 4570a7b25..b61dfb1fd 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -440,6 +440,10 @@ function script csys_ArmorFix { // Special sets if (compare("savior", strtolower(getitemname(getarg(0))))) @csysArmor=@csysArmor|CSYS_SAVIOR; + + // Legendary Weapons, this formula is hardcoded in C + if (is_between(3600, 3610, getarg(0))) + @csysArmor=@csysArmor|CSYS_LEGENDARY; return; } @@ -479,7 +483,11 @@ function script csys_WeaponFix { if (compare("savior", strtolower(getitemname(getarg(0))))) @csysArmor=@csysArmor|CSYS_SAVIOR; - // Lightbringer + // Legendary Weapons, this formula is hardcoded in C + if (is_between(3600, 3610, getarg(0))) + @csysArmor=@csysArmor|CSYS_LEGENDARY; + + // Lightbringer have even higher bonuses if (getarg(0) == Lightbringer) @csysArmor=@csysArmor|CSYS_SAVIOR; @@ -504,6 +512,10 @@ function script csys_BonusCalc { if (.@base >= (.@avg+1)*7/10) .@base=rand2(1, .@avg+1); + // Legendary Weapon? Effects +50% + if (@csysArmor & CSYS_LEGENDARY) + .@base=max(1, .@base*3/2); + // Savior Set? Effects +20% if (@csysArmor & CSYS_SAVIOR) .@base=max(1, .@base*6/5); |