I guess you rewrited it for blueprint ?
L.915 if you want
SMODS.Jokers.j_box_of_stuff.calculate = function(self, context)
if context.setting_blind and context.blind.boss and not self.getting_sliced then
G.E_MANAGER:add_event(Event({
func = (function()
add_tag(Tag('tag_standard'))
add_tag(Tag('tag_standard'))
add_tag(Tag('tag_standard'))
play_sound('generic1', 0.6 + math.random()*0.1, 0.8)
play_sound('holo1', 1.1 + math.random()*0.1, 0.4)
self.T.r = -0.2
self:juice_up(0.3, 0.4)
self.states.drag.is = true
self.children.center.pinch.x = true
return true
end)
}))
if context.blueprint then
G.E_MANAGER:add_event(Event({
func = (function()
add_tag(Tag('tag_standard'))
add_tag(Tag('tag_standard'))
add_tag(Tag('tag_standard'))
play_sound('generic1', 0.6 + math.random()*0.1, 0.8)
play_sound('holo1', 1.1 + math.random()*0.1, 0.4)
self.T.r = -0.2
self:juice_up(0.3, 0.4)
self.states.drag.is = true
self.children.center.pinch.x = true
return true
end)
}))
end
G.E_MANAGER:add_event(Event({trigger = 'after', delay = 0.3, blockable = false,
func = function()
G.jokers:remove_card(self)
self:remove()
self = nil
return true; end}))
end
end```