Skip to content

Commit 7f9f0b5

Browse files
Fix Copies+ replacing tags in the collection
so convenient that this has a for_collection argument built in yey
1 parent 22e7c8a commit 7f9f0b5

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

items/voucher.lua

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,22 @@ local copies = { --Double tags become Triple Tags and are 2X as common
3737
init = function(self)
3838
--Copies and upgrades
3939
local tinit = Tag.init
40-
function Tag:init(tag, y, z)
41-
if tag == "tag_double" and G.GAME.used_vouchers.v_cry_copies then
42-
tag = "tag_cry_triple"
43-
end
44-
if (tag == "tag_double" or tag == "tag_cry_triple") and G.GAME.used_vouchers.v_cry_tag_printer then
45-
tag = "tag_cry_quadruple"
46-
end
47-
if
48-
(tag == "tag_double" or tag == "tag_cry_triple" or tag == "tag_cry_quadruple")
49-
and G.GAME.used_vouchers.v_cry_clone_machine
50-
then
51-
tag = "tag_cry_quintuple"
40+
function Tag:init(tag, for_collection, _blind_type)
41+
if not for_collection then
42+
if tag == "tag_double" and G.GAME.used_vouchers.v_cry_copies then
43+
tag = "tag_cry_triple"
44+
end
45+
if (tag == "tag_double" or tag == "tag_cry_triple") and G.GAME.used_vouchers.v_cry_tag_printer then
46+
tag = "tag_cry_quadruple"
47+
end
48+
if
49+
(tag == "tag_double" or tag == "tag_cry_triple" or tag == "tag_cry_quadruple")
50+
and G.GAME.used_vouchers.v_cry_clone_machine
51+
then
52+
tag = "tag_cry_quintuple"
53+
end
5254
end
53-
return tinit(self, tag, y, z)
55+
return tinit(self, tag, for_collection, _blind_type)
5456
end
5557
end,
5658
}

0 commit comments

Comments
 (0)