mirror of
https://github.com/araxiaonline/wow-item-generator.git
synced 2026-06-13 03:02:22 -04:00
added updated to modifiers
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user