Skip to content

Commit 3b034d6

Browse files
committed
molly medition mow makes mall mords mart mith m magain
1 parent 44b6bd3 commit 3b034d6

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

items/misc.lua

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,19 +1093,12 @@ local jollyedition = {
10931093
local full_UI_table =
10941094
gcui(_c, full_UI_table, specific_vars, card_type, badges, hide_desc, main_start, main_end, card)
10951095
if
1096-
card
1097-
and card.edition
1098-
and card.edition.cry_m
1099-
and (not card.ability or card.ability.set ~= "Edition")
1100-
and full_UI_table
1101-
and full_UI_table.name
1102-
and type(full_UI_table.name) == "table"
1103-
and full_UI_table.name[1]
1104-
and full_UI_table.name[1].config
1105-
and full_UI_table.name[1].config.object
1106-
and full_UI_table.name[1].config.object.config
1096+
card and Cryptid.safe_get(card, "edition", "cry_m")
1097+
and ((not card.ability) or card.ability.set ~= "Edition")
1098+
and type(Cryptid.safe_get(full_UI_table, "name")) == "table"
1099+
and Cryptid.safe_get(full_UI_table.name, 1, "nodes", 1, "config", "object", "config")
11071100
then
1108-
local conf = full_UI_table.name[1].config.object.config
1101+
local conf = full_UI_table.name[1].nodes[1].config.object.config
11091102
if conf.string and #conf.string > 0 then
11101103
local function m_ify_word(text)
11111104
-- Define a pattern for vowels
@@ -1140,8 +1133,8 @@ local jollyedition = {
11401133
return result
11411134
end
11421135
conf.string[1] = m_ify(conf.string[1])
1143-
full_UI_table.name[1].config.object:remove()
1144-
full_UI_table.name[1].config.object = DynaText(conf)
1136+
full_UI_table.name[1].nodes[1].config.object:remove()
1137+
full_UI_table.name[1].nodes[1].config.object = DynaText(conf)
11451138
end
11461139
end
11471140
return full_UI_table

0 commit comments

Comments
 (0)