summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/_procedures.txt
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2023-10-13 20:47:28 +0200
committerHoraK-FDF <horak-fdf@web.de>2023-10-13 20:47:28 +0200
commita14045a91282bdf323c09bbb178c4bac7fe89b4f (patch)
tree964bc1315e9519a09c8559390761a7c757707f70 /world/map/npc/magic/_procedures.txt
parent1e744578cf217ee7cd8213b49a5f2e7ca789a2ac (diff)
downloadserverdata-a14045a91282bdf323c09bbb178c4bac7fe89b4f.tar.gz
serverdata-a14045a91282bdf323c09bbb178c4bac7fe89b4f.tar.bz2
serverdata-a14045a91282bdf323c09bbb178c4bac7fe89b4f.tar.xz
serverdata-a14045a91282bdf323c09bbb178c4bac7fe89b4f.zip
stats from equipment addequipment_stats
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;