Skip to content

Commit

Permalink
Fixed Beacon FRW. Hopefully didn't break anything else.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyromyr committed Feb 10, 2017
1 parent 7be0643 commit 6bbaf83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions D2Stats.au3
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func UpdateStatValues()
endif
endfunc

func FixStatVelocities()
func FixStatVelocities() ; This game is stupid
for $i = 67 to 69
$stats_cache[1][$i] = 0
next
Expand All @@ -242,7 +242,7 @@ func FixStatVelocities()
$index = _MemoryRead($pStats + $i*8 + 2, $d2handle, "word")
$val = _MemoryRead($pStats + $i*8 + 4, $d2handle, "int")

if ($index == 350) then $skill = $val
if ($index == 350 and $val <> 511) then $skill = $val
if ($ownerType == 4 and $index == 67) then $stats_cache[1][$index] += $val ; Armor FRW penalty
next
if ($ownerType == 4) then continueloop
Expand Down

0 comments on commit 6bbaf83

Please sign in to comment.