summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/_procedures.txt
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2023-10-16 03:17:20 +0000
committerLed Mitz <smoothshifter@tuta.io>2023-10-16 03:17:20 +0000
commit9584d85bc84fc367147f405403b16eb06daa1ac8 (patch)
treefb6de00b3eb982a9e7044fe84f2bcda9c32068c5 /world/map/npc/magic/_procedures.txt
parented5b7c7df1a770d69c0f60463bd324f762daa078 (diff)
downloadserverdata-9584d85bc84fc367147f405403b16eb06daa1ac8.tar.gz
serverdata-9584d85bc84fc367147f405403b16eb06daa1ac8.tar.bz2
serverdata-9584d85bc84fc367147f405403b16eb06daa1ac8.tar.xz
serverdata-9584d85bc84fc367147f405403b16eb06daa1ac8.zip
Equipment stats use
Diffstat (limited to 'world/map/npc/magic/_procedures.txt')
-rw-r--r--world/map/npc/magic/_procedures.txt4
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;