fix counting bug in staff power
This commit is contained in:
parent
c0465bc6a1
commit
fcf0bd318d
@ -80,7 +80,7 @@ function staffmagic:countpower(user,staff)
|
||||
for idx,x in pairs(inventory:get_list("main") ) do
|
||||
if x:get_name() == powerup then
|
||||
local count = x:get_count()
|
||||
if count > 10 then count = 100 end
|
||||
if count > 100 then count = 100 end
|
||||
return math.floor(count/10)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user