update runeword Hysterial và Mania
This commit is contained in:
@@ -91,6 +91,8 @@ const (
|
|||||||
RunewordWrath RunewordName = "Wrath"
|
RunewordWrath RunewordName = "Wrath"
|
||||||
RunewordZephyr RunewordName = "Zephyr"
|
RunewordZephyr RunewordName = "Zephyr"
|
||||||
RunewordHustle RunewordName = "Hustle"
|
RunewordHustle RunewordName = "Hustle"
|
||||||
|
RunewordMania RunewordName = "Mania"
|
||||||
|
RunewordHysteria RunewordName = "Hysteria"
|
||||||
RunewordMosaic RunewordName = "Mosaic"
|
RunewordMosaic RunewordName = "Mosaic"
|
||||||
RunewordMetamorphosis RunewordName = "Metamorphosis"
|
RunewordMetamorphosis RunewordName = "Metamorphosis"
|
||||||
RunewordGround RunewordName = "Ground"
|
RunewordGround RunewordName = "Ground"
|
||||||
|
|||||||
@@ -260,12 +260,6 @@ func (gd *GameReader) Inventory(rawPlayerUnits RawPlayerUnits, hover data.HoverD
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set runeword name if applicable
|
|
||||||
if itm.IsRuneword {
|
|
||||||
if runeword, exists := item.RunewordIDMap[prefixes[0]]; exists {
|
|
||||||
itm.RunewordName = runeword
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Determine item location
|
// Determine item location
|
||||||
location := item.LocationUnknown
|
location := item.LocationUnknown
|
||||||
switch itemLoc {
|
switch itemLoc {
|
||||||
@@ -374,6 +368,21 @@ func (gd *GameReader) Inventory(rawPlayerUnits RawPlayerUnits, hover data.HoverD
|
|||||||
statsListExPtr := uintptr(ReadUIntFromBuffer(itemDataBuffer, 0x88, Uint64))
|
statsListExPtr := uintptr(ReadUIntFromBuffer(itemDataBuffer, 0x88, Uint64))
|
||||||
itm.BaseStats, itm.Stats = gd.getItemStats(statsListExPtr)
|
itm.BaseStats, itm.Stats = gd.getItemStats(statsListExPtr)
|
||||||
|
|
||||||
|
// Set runeword name if applicable
|
||||||
|
if itm.IsRuneword {
|
||||||
|
if runeword, exists := item.RunewordIDMap[prefixes[0]]; exists {
|
||||||
|
itm.RunewordName = runeword
|
||||||
|
}
|
||||||
|
|
||||||
|
if itm.RunewordName == "" || itm.RunewordName == item.RunewordHustle {
|
||||||
|
if FasterRunWalk, found := itm.Stats.FindStat(stat.FasterRunWalk, 0); found && FasterRunWalk.Value == 65 {
|
||||||
|
itm.RunewordName = item.RunewordHysteria
|
||||||
|
} else if Fanaticism, found := itm.Stats.FindStat(stat.Aura, 122); found && Fanaticism.Value == 1 {
|
||||||
|
itm.RunewordName = item.RunewordHysteria
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// stack quantity as item property
|
// stack quantity as item property
|
||||||
stackQty := gd.Process.ReadUInt(unitDataPtr+0x9C, Uint32)
|
stackQty := gd.Process.ReadUInt(unitDataPtr+0x9C, Uint32)
|
||||||
itm.StackedQuantity = int(stackQty)
|
itm.StackedQuantity = int(stackQty)
|
||||||
|
|||||||
Reference in New Issue
Block a user