Function item_experience

Source
pub fn item_experience(level: f64, quality: f64) -> i64
Expand description

Character XP paid by selling one item, from the item’s snapshot character level and its quality multiplier quality (the rarity axis M).

Level and quality are the ONLY inputs: two items of the same level and quality pay the same XP regardless of stat roll, optional stats or power_bonus. No per-sale cap — a lucky sale may carry the player through several levels and the whole overflow is kept.

Env overrides (sim sweep): OVERLORD_BAL_ITEM_XP_COEF, OVERLORD_BAL_ITEM_XP_EXP, OVERLORD_BAL_ITEM_XP_LATE_EXP.