def Rewards.maximum

gralha-bendquest@0.1.0.0 · rewards.bend:34

import gralha-bendquest@0.1.0.0/rewards.bend as Rewards
import Base
import gralha-bendquest@0.1.0.0/game.bend as G
import gralha-bendquest@0.1.0.0/growth.bend as Growth

34def Rewards.maximum(+hero: G.Bq.Hero, ceiling: U32) -> U32:
35  match hero:
36    case G.Bq.Hero.Hero{inv, wea, arm, hel, charm, gold, level, strength, agility, vitality, points}:
37      Growth.Growth.maximum(level, vitality, Rewards.charm_bonus(charm), ceiling)

Uses (4)

Used by (11)