diff --git a/internal/config/modifier.go b/internal/config/modifier.go index acde6a9..60de9bc 100644 --- a/internal/config/modifier.go +++ b/internal/config/modifier.go @@ -34,7 +34,7 @@ var QualityModifiers = map[int]float64{ 2: 1.0, // UnCommon 3: 1.2, // Rare 4: 1.4, // Epic - 5: 5.0, // Legendary + 5: 1.8, // Legendary } var MaterialModifiers = map[int]float64{ diff --git a/internal/items/items.go b/internal/items/items.go index 10dab41..3745843 100644 --- a/internal/items/items.go +++ b/internal/items/items.go @@ -487,6 +487,10 @@ func (item *Item) ScaleItem(itemLevel int, itemQuality int) (bool, error) { stat.Value = scaleStatv3(scaleParams) // stat.Value = scaleStatv2(itemLevel, *item.InventoryType, *item.Quality, stat.Percent, config.StatModifiers[statId]) + if statId == 45 && stat.Value < 100 { + stat.Value = int(math.Round(float64(stat.Value) * 2.3785)) + } + log.Printf(">>>>>> Scaled : StatId: %v Type: %s Orig: %v - New Value: %v Percent: %v", statId, stat.Type, origValue, stat.Value, stat.Percent) } @@ -740,20 +744,10 @@ func scaleStatv3(scaleParams StatScaleParams) int { func ItemToSql(item Item, reqLevel int, difficulty int) string { - var name string + var name string = item.Name entryBump := 20000000 spellBump := 30000000 - name = "Mythic " + item.Name - - if difficulty == 4 { - entryBump = 21000000 - name = "Legendary " + item.Name - } - if difficulty == 5 { - name = "Godlike " + item.Name - entryBump = 22000000 - } if *item.Quality == 4 { spellBump = 31000000 diff --git a/main.go b/main.go index fd79619..8331bc9 100644 --- a/main.go +++ b/main.go @@ -164,7 +164,10 @@ func main() { // check if it is the final boss if mysql.IsFinalBoss(lookupItem.CreatureId) { finalBonus = 5 - quality = 5 + + if *difficulty >= 4 { + quality = 5 + } } // if the item is from a boss fight if lookupItem.DungeonLevel < 60 {