law Health.spec_heal_never_harms

gralha-bendquest@0.1.0.0 · health.bend:146

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

146law Health.spec_heal_never_harms:
147  for +hp: Nat
148  for +amount: Nat
149  for +maximum: Nat
150  for +valid: {G.Bq.Nat.le(hp, maximum) == True{} : Bool}
151  {G.Bq.Nat.le(hp, Health.spec_heal(hp, amount, maximum)) == True{} : Bool}

Uses (7)

Used by (1)