law Health.hurt_preserves_bound

gralha-bendquest@0.1.0.0 · health.bend:294

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

294law Health.hurt_preserves_bound:
295  for +hp: Nat
296  for +damage: Nat
297  for +maximum: Nat
298  for +valid: {G.Bq.Nat.le(hp, maximum) == True{} : Bool}
299  {G.Bq.Nat.le(Health.hurt(hp, damage), maximum) == True{} : Bool}

Uses (8)

Used by (1)