Health.Health.clamp_word: def of gralha-bendquest@0.1.0.0 Import: import gralha-bendquest@0.1.0.0/health.bend as Health Lines 315-318 of gralha-bendquest@0.1.0.0/health.bend: https://jend.leeeet.dev/read.txt?path=gralha-bendquest@0.1.0.0/health.bend&start_line=315&end_line=318 import Base # Existing U32 records enter the rules here. The refinement and preservation # theorems below prove these exact word wrappers cannot wrap their results. def Health.clamp_word(hp: U32, maximum: U32) -> U32: U32.from_nat(Health.clamp(U32.to_nat(hp), U32.to_nat(maximum))) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat 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.clamp