law Health.hurt_survives

gralha-bendquest@0.1.0.0 · health.bend:305

import gralha-bendquest@0.1.0.0/health.bend as Health
import Base
import gralha-bendquest@0.1.0.0/game.bend as G

305law Health.hurt_survives:
306  for +hp: Nat
307  for +damage: Nat
308  for +below: {G.Bq.Nat.lt(damage, hp) == True{} : Bool}
309  {G.Bq.Nat.le(1n, Health.hurt(hp, damage)) == True{} : Bool}

Uses (9)

Used by (1)