added updated to modifiers

This commit is contained in:
2024-08-26 00:00:34 -04:00
parent d612eaa9ff
commit 131d75d943
3 changed files with 10 additions and 13 deletions

View File

@@ -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{

View File

@@ -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

View File

@@ -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 {