From 9584d85bc84fc367147f405403b16eb06daa1ac8 Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Mon, 16 Oct 2023 03:17:20 +0000 Subject: Equipment stats use --- world/map/npc/magic/_procedures.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'world/map/npc/magic/_procedures.txt') 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; -- cgit v1.2.3-60-g2f50