diff options
author | Led Mitz <smoothshifter@tuta.io> | 2023-10-16 03:17:20 +0000 |
---|---|---|
committer | Led Mitz <smoothshifter@tuta.io> | 2023-10-16 03:17:20 +0000 |
commit | 569602b26bd80cf00e02b0ab0570c0c8684fb86b (patch) | |
tree | f9afa4c95665265b65bd66d165b061beb2c85f16 /world/map/npc/magic/_procedures.txt | |
parent | aac3cffefd6259f20ccade8d2179dff430eae6e3 (diff) | |
parent | 9584d85bc84fc367147f405403b16eb06daa1ac8 (diff) | |
download | serverdata-569602b26bd80cf00e02b0ab0570c0c8684fb86b.tar.gz serverdata-569602b26bd80cf00e02b0ab0570c0c8684fb86b.tar.bz2 serverdata-569602b26bd80cf00e02b0ab0570c0c8684fb86b.tar.xz serverdata-569602b26bd80cf00e02b0ab0570c0c8684fb86b.zip |
Merge branch 'equipment_stats_use' into 'master'
Equipment stats use
See merge request legacy/serverdata!682
Diffstat (limited to 'world/map/npc/magic/_procedures.txt')
-rw-r--r-- | world/map/npc/magic/_procedures.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/world/map/npc/magic/_procedures.txt b/world/map/npc/magic/_procedures.txt index 66f356c7..eaacd774 100644 --- a/world/map/npc/magic/_procedures.txt +++ b/world/map/npc/magic/_procedures.txt @@ -127,7 +127,7 @@ function|script|magic_create_item set @create_params[2], 1; // success flag if (.@score >= @create_params[1]) goto L_Perfect; set @create_params[2], 0; // success flag - set .@score, .@score + rand(Luk) + rand(Luk); + set .@score, .@score + rand((Luk+Luk2)) + rand((Luk+Luk2)); if (.@score < (@create_params[1] / 3)) goto L_Backfire; if (.@score < ((@create_params[1] * 2) / 3)) goto L_Iten; message strcharinfo(0), "Magic : ##3##BYour spell takes on a mind of its own!"; @@ -146,7 +146,7 @@ L_Escape: L_Backfire: message strcharinfo(0), "Magic : ##3##BYour spell backfires!"; - if (rand(110) < Luk) heal 0 - ((BaseLevel+1)*(BaseLevel+2)*(rand(28)+3)), 0; + if (rand(110) < (Luk+Luk2)) heal 0 - ((BaseLevel+1)*(BaseLevel+2)*(rand(28)+3)), 0; else heal 0 - (BaseLevel + 1), 0; return; |