fn stat_to_buff_effect( data: &ResolvedGameData, stat: WeaponEnchantStat, amount: f64, ) -> Result<Option<BuffEffect>, EngineError>