Improve compatibility with legacy versions
This commit is contained in:
parent
4b8094efab
commit
d7997ad65e
2 changed files with 15 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
"id": "Roland",
|
||||
"name": "Roland",
|
||||
"prefix": "Roland",
|
||||
"version": "3.0.2",
|
||||
"version": "3.0.3",
|
||||
"badge_colour": "8BE9FD",
|
||||
"display_name": "Roland",
|
||||
"main_file": "src/main.lua",
|
||||
|
|
@ -15,8 +15,8 @@
|
|||
"Emik"
|
||||
],
|
||||
"dependencies": [
|
||||
"Steamodded (>=1.0.0~BETA-1606b)",
|
||||
"Steamodded (>=1.0.0~BETA-0711a)",
|
||||
"Lovely (>=0.6)",
|
||||
"Bakery (>=3.2.0~*)"
|
||||
"Bakery (>=3.0.0~*)"
|
||||
]
|
||||
}
|
||||
|
|
@ -976,6 +976,10 @@ joker {
|
|||
eternal_compat = true,
|
||||
blueprint_compat = true,
|
||||
perishable_compat = true,
|
||||
inject = not SMODS.Attribute and function(...)
|
||||
SMODS.Joker.inject(...)
|
||||
Bakery_API.double_sided_jokers.j_Roland_nilly = true
|
||||
end or nil,
|
||||
loc_vars = function(_, _, card)
|
||||
local key = card.ability.extra.flipped and "b_Roland_enabled" or "b_Roland_disabled"
|
||||
return {vars = {localize {type = "variable", key = key}}}
|
||||
|
|
@ -1216,6 +1220,10 @@ joker {
|
|||
calc_dollar_bonus = function(_, card)
|
||||
return card.ability.extra.dollars
|
||||
end,
|
||||
inject = not SMODS.Attribute and function(...)
|
||||
SMODS.Joker.inject(...)
|
||||
Bakery_API.double_sided_jokers.j_Roland_nilly = true
|
||||
end or nil,
|
||||
loc_vars = function(_, info_queue, card)
|
||||
local extra = card.ability.extra
|
||||
|
||||
|
|
@ -1278,6 +1286,10 @@ joker {
|
|||
eternal_compat = true,
|
||||
blueprint_compat = true,
|
||||
perishable_compat = true,
|
||||
inject = not SMODS.Attribute and function(...)
|
||||
SMODS.Joker.inject(...)
|
||||
Bakery_API.double_sided_jokers.j_Roland_nilly = true
|
||||
end or nil,
|
||||
loc_vars = function(_, info_queue, card)
|
||||
local extra = card.ability.extra
|
||||
local _ = card.fake_card or table.insert(info_queue, G.P_CENTERS.m_stone)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue