law Vitals.live_tick_ok

gralha-bendquest@0.1.0.0 · vitals.bend:188

import gralha-bendquest@0.1.0.0/vitals.bend as Vitals
import Base
import gralha-bendquest@0.1.0.0/game.bend as G

188law Vitals.live_tick_ok:
189  for +state: Vitals.State
190  for +amount: U32
191  for +maximum: U32
192  for +bound: {G.Bq.Nat.le(U32.to_nat(Vitals.hp(state)), U32.to_nat(maximum)) == True{} : Bool}
193  for +positive: {G.Bq.Nat.le(1n, U32.to_nat(Vitals.hp(state))) == True{} : Bool}
194  Vitals.OK<Vitals.live_tick(state, amount, maximum), maximum>

Uses (13)

Used by (1)