From 59aa2316201d785beee4abe7a4cfe6b87f53beb1 Mon Sep 17 00:00:00 2001 From: "Hello=)" Date: Sun, 18 Aug 2024 15:03:43 +0300 Subject: This restores GPs yield of #kularzunevelafrill. Ledmitz nerfed bone arrow price in one of previous commits: NPC -> player vending price: 50 GP -> 8 GP (nerf factor of 6.25) Player -> NPC selling price: 20GP -> 4 GP (nerf factor of 5) This commit re-scales yield of spell to restore GP output, roughly same as its been before nerf. Rescale factor choosen 5.333 which fits between of 5 and 6.25 nicely and convenient as it allows just minimal /32 -> /6 divisor change. As far as I experimented, yield remains roughly same, about 740 vs 756 GP. Slightly imperfect due to integer rounding, if this is a big deal I can use more complicated formulae. --- world/map/npc/magic/level2-make-bones.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world/map/npc/magic/level2-make-bones.txt b/world/map/npc/magic/level2-make-bones.txt index bc9bc6e5..b84cae6c 100644 --- a/world/map/npc/magic/level2-make-bones.txt +++ b/world/map/npc/magic/level2-make-bones.txt @@ -25,7 +25,7 @@ L_Resume: set CASTS, CASTS + 1; if (CASTS < 0) set CASTS, 1; // overflow misceffect FX_MAGIC_ARROW_CAST, strcharinfo(0); - setarray @create_params[0], (@spellpower/32)+1+(rand(max(1,(800-@spellpower)))/80), 500; + setarray @create_params[0], (@spellpower/6)+1+(rand(max(1,(800-@spellpower)))/80), 500; setarray @create_items$[0], "BoneArrows", "IronArrow"; callfunc "magic_create_item"; callfunc "magic_exp"; -- cgit v1.2.3-70-g09d2