Rewards.Rewards.charm_bonus: def of gralha-bendquest@0.1.0.0 Import: import gralha-bendquest@0.1.0.0/rewards.bend as Rewards Lines 27-32 of gralha-bendquest@0.1.0.0/rewards.bend: https://jend.leeeet.dev/read.txt?path=gralha-bendquest@0.1.0.0/rewards.bend&start_line=27&end_line=32 import Base import gralha-bendquest@0.1.0.0/game.bend as G def Rewards.charm_bonus(charm: G.Bq.Maybe(Nat)) -> U32: match charm: case Fail{unit}: 0 case Done{kind}: Rewards.charm_amount(U32.is_eq(U32.from_nat(kind), 17)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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.is_eq https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/game.bend&name=Bq.Maybe https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/rewards.bend&name=Rewards.charm_amount