def Vitals.revive

gralha-bendquest@0.1.0.0 · vitals.bend:32

import gralha-bendquest@0.1.0.0/vitals.bend as Vitals
import Base

32def Vitals.revive(state: Vitals.State, maximum: U32) -> Vitals.State:
33  match state:
34    case Vitals.State{hp, xp, dead, respawn, attack, spin}:
35      Vitals.State{maximum, xp, 0, 0, 0, 0}

Uses (2)

Used by (2)