Vitals.Vitals.hit_gate: def of gralha-bendquest@0.1.0.0 Import: import gralha-bendquest@0.1.0.0/vitals.bend as Vitals Lines 76-82 of gralha-bendquest@0.1.0.0/vitals.bend: https://jend.leeeet.dev/read.txt?path=gralha-bendquest@0.1.0.0/vitals.bend&start_line=76&end_line=82 import Base import gralha-bendquest@0.1.0.0/health.bend as H def Vitals.hit_gate(is_dead: Bool, +state: Vitals.State, damage: U32, timer: U32) -> Vitals.Hit: match is_dead: case True{}: Vitals.Hit{state, False{}} case False{}: +remaining = H.Health.hurt_word(Vitals.hp(state), damage) Vitals.finish_hit(U32.to_nat(remaining), remaining, state, timer) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/health.bend&name=Health.hurt_word https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/vitals.bend&name=Vitals.Hit https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/vitals.bend&name=Vitals.State https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/vitals.bend&name=Vitals.finish_hit https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/vitals.bend&name=Vitals.hp