sonic-radiance/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/conditions.lua

18 lines
440 B
Lua
Raw Normal View History

local Conditions = {}
function Conditions.sentDamage(cond, predicate, asker)
return asker.haveSentDamage
end
function Conditions.qteSuccess(cond, predicate, asker)
return asker:isQteSuccess(tonumber(cond[2]))
end
function Conditions.qteFailure(cond, predicate, asker)
return (Conditions.isQteSuccess(cond, predicate, asker) == false)
end
function Conditions.none(cond, predicate, asker)
return true
end
return Conditions