law Health.heal_never_harms

gralha-bendquest@0.1.0.0 · health.bend:283

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

283law Health.heal_never_harms:
284  for +hp: Nat
285  for +amount: Nat
286  for +maximum: Nat
287  for +valid: {G.Bq.Nat.le(hp, maximum) == True{} : Bool}
288  {G.Bq.Nat.le(hp, Health.heal(hp, amount, maximum)) == True{} : Bool}

Uses (8)

Used by (1)