2021-07-17 21:31:42 +02:00
|
|
|
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)
|
2021-07-19 12:13:24 +02:00
|
|
|
return (Conditions.qteSuccess(cond, predicate, asker) == false)
|
2021-07-17 21:31:42 +02:00
|
|
|
end
|
2021-07-17 21:53:10 +02:00
|
|
|
|
2021-07-17 21:31:42 +02:00
|
|
|
function Conditions.none(cond, predicate, asker)
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
|
2021-07-17 21:53:10 +02:00
|
|
|
function Conditions.actionFinished(cond, predicate, asker)
|
|
|
|
return asker:testTagAction(cond[2], 2)
|
|
|
|
end
|
|
|
|
|
|
|
|
function Conditions.actionStarted(cond, predicate, asker)
|
|
|
|
return asker:testTagAction(cond[2], 1)
|
|
|
|
end
|
|
|
|
|
2021-07-18 08:59:01 +02:00
|
|
|
function Conditions.counter(cond, predicate, asker)
|
|
|
|
return predicate.utils.testVariables(asker:getCounter(cond[2]), cond[3], cond[4])
|
|
|
|
end
|
|
|
|
|
2021-07-18 19:17:45 +02:00
|
|
|
function Conditions.haveFrameSignal(cond, predicate, asker)
|
|
|
|
return asker:haveFrameSignal(cond[2])
|
|
|
|
end
|
|
|
|
|
2021-07-17 21:31:42 +02:00
|
|
|
return Conditions
|