Rewards.Rewards.eligible: def of gralha-bendquest@0.1.0.0 Import: import gralha-bendquest@0.1.0.0/rewards.bend as Rewards Lines 42-44 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=42&end_line=44 import Base import gralha-bendquest@0.1.0.0/game.bend as G def Rewards.eligible(+hero: G.Bq.Hero, +xp: U32) -> Bool: +level = U32.from_nat(Rewards.level(hero)) Bool.and(U32.is_lt(level, 20), U32.is_ge(xp, Rewards.cost(level))) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and 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_ge https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/game.bend&name=Bq.Hero https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/rewards.bend&name=Rewards.cost https://jend.leeeet.dev/definition.txt?path=gralha-bendquest@0.1.0.0/rewards.bend&name=Rewards.level