Account for quantity in leveling up
This commit is contained in:
parent
f126173091
commit
178e415614
2 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"id": "Roland",
|
"id": "Roland",
|
||||||
"name": "Roland",
|
"name": "Roland",
|
||||||
"prefix": "Roland",
|
"prefix": "Roland",
|
||||||
"version": "2.9.85",
|
"version": "2.9.86",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"display_name": "Roland",
|
"display_name": "Roland",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ local orig_use_consumeable = Card.use_consumeable
|
||||||
function Card:use_consumeable(area, copier, ...)
|
function Card:use_consumeable(area, copier, ...)
|
||||||
if SMODS.Mods.Roland.config.faster_planets and self.ability.consumeable.hand_type then
|
if SMODS.Mods.Roland.config.faster_planets and self.ability.consumeable.hand_type then
|
||||||
set_consumeable_usage(self)
|
set_consumeable_usage(self)
|
||||||
level_up_hand(copier or self, self.ability.consumeable.hand_type, true)
|
level_up_hand(copier or self, self.ability.consumeable.hand_type, true, self.ability.qty or 1)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue