Function item_price

Source
pub fn item_price(ctx: &ItemPriceCtx<'_>) -> Result<Vec<ESCurrencyUnit>>
Expand description

Sell price of an item, via balance::sell_gold: sub-linear in the item’s level-effectiveness, linear in the rarity’s authored sale value. The exponent and coefficient come from game_settings.sell_price_{exp,coef}, falling back to the compiled constants when absent (env OVERLORD_BAL_SELL_* still wins).

This is the only live pricing path — sell_price_with_config survives for its own unit test, so a change here changes every sale in the game.