bugfix - double and triple tanks were returning empty singles when used up

master^2
FaceDeer 2021-03-11 22:46:11 -07:00
parent f123f8d3b6
commit 1e85d0c309
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ local function register_air_tank_2(name, desc, color, uses)
_doc_items_longdesc = S("A pair of tanks containing compressed air."),
_doc_items_usagehelp = S("If you're underwater and you're running out of breath, wield this item and use it to replenish 5 bubbles on your breath bar. When fully charged these tanks have @1 uses before it becomes empty.", uses),
_airtank_uses = uses,
_airtank_empty = "airtanks:empty_"..name.."_tank",
_airtank_empty = "airtanks:empty_"..name.."_tank_2",
groups = {not_repaired_by_anvil = 1, airtank = 1},
inventory_image = "airtanks_airtank_two.png^[colorize:"..color.."^[mask:airtanks_airtank_two.png",
wield_image = "airtanks_airtank_two.png^[colorize:"..color.."^[mask:airtanks_airtank_two.png",
@ -243,7 +243,7 @@ local function register_air_tank_3(name, desc, color, uses)
_doc_items_longdesc = S("A set of three tanks containing compressed air."),
_doc_items_usagehelp = S("If you're underwater and you're running out of breath, wield this item and use it to replenish 5 bubbles on your breath bar. When fully charged these tanks have @1 uses before it becomes empty.", uses),
_airtank_uses = uses,
_airtank_empty = "airtanks:empty_"..name.."_tank",
_airtank_empty = "airtanks:empty_"..name.."_tank_3",
groups = {not_repaired_by_anvil = 1, airtank = 1},
inventory_image = "airtanks_airtank_three.png^[colorize:"..color.."^[mask:airtanks_airtank_three.png",
wield_image = "airtanks_airtank_three.png^[colorize:"..color.."^[mask:airtanks_airtank_three.png",