sonic-bluestreak/sonic-bluestreak.love/game/events/conditions.lua

12 lines
No EOL
310 B
Lua

local Conditions = {}
function Conditions.haveMoney(cond, predicate, asker)
return predicate.utils.testVariables(game.loot.rings , cond[2], cond[3])
end
function Conditions.default(cond, predicate, asker)
local flag = predicate.utils.merge(cond)
return asker:haveFlag(flag)
end
return Conditions