| 12345678910111213141516171819 |
- package data
- import (
- "f1-game/internal/constant"
- "f1-game/internal/extend/math"
- "f1-game/internal/types"
- )
- func (p *EquipLevelRow) EnhanceFailReturn() types.Assets {
- assets := types.Assets{}
- for _, cost := range p.EnhanceCosts {
- assets = append(assets, &types.Asset{
- ID: cost.ID,
- Num: math.Round[float64, int64](float64(cost.Num) * Const.EquipEnhanceFailReturn / constant.RatioBase),
- })
- }
- return assets
- }
|