law Health.spec_hurt_preserves_bound

gralha-bendquest@0.1.0.0 · health.bend:92

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

92law Health.spec_hurt_preserves_bound:
93  for +hp: Nat
94  for +damage: Nat
95  for +maximum: Nat
96  for +valid: {G.Bq.Nat.le(hp, maximum) == True{} : Bool}
97  {G.Bq.Nat.le(Health.spec_hurt(hp, damage), maximum) == True{} : Bool}

Uses (6)

Used by (1)