Just do this:
Before:
Code:
if Attack.act_human(0) then
if Attack.act_name(0) == "alchemist" then
if Logic.hero_lu_item_on_body("alchemist_toolkit") then
if 10 >= Game.CurLocRand(1, 100) then
charge = charge + 1
end
end
end
end
After:
Code:
if Attack.act_human( 0 ) then
if Attack.act_name( 0 ) == "alchemist" then
local chance = 10
if Logic.hero_lu_item_on_body( "alchemist_toolkit" ) then
chance = chance + 10
end
if chance >= Game.CurLocRand( 1, 100 ) then
charge = charge + 1
end
end
end
The descriptions say 1 to 2 charges, but do not list a percent chance of that happening, the Toolkit description says +10% chance - the code above would cover both bases...
/C\/C\
Quote:
Originally Posted by camelotcrusade
I bet that is the problem - good find. I don't have that item so it's never creating 2 bottles. However, the description on remix clearly says "Create 1-2 charges of X." I guess they put that in as a catchall? Seems misleading if you ask me, especially since your chances of finding one specific item could be low.
Imo, it should always have that 10% chance and having the item (after all, it's a belt slot!) should give you an extra 10% chance. Either that or the description should say 1 item... but then it won't be accurate when you DO have that item. Aargh.
Thoughts?
|