Skip to content

Commit

Permalink
make passive hash not spam consol
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle committed Aug 20, 2024
1 parent 9471d25 commit 5ab3101
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Export/statdesc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,12 @@ function describeStats(stats)
val[spec.v].max, val[spec.v].min = 100 - val[spec.v].min, 100 - val[spec.v].max
elseif spec.k == "negate_and_double" then
val[spec.v].max, val[spec.v].min = -2 * val[spec.v].min, -2 * val[spec.v].max
elseif spec.k == "passive_hash" and val[spec.v].min < 0 then
val[spec.v].min = val[spec.v].min + 65536
val[spec.v].max = val[spec.v].max + 65536
elseif spec.k == "passive_hash" then
-- handled elsewhere
if val[spec.v].min < 0 then
val[spec.v].min = val[spec.v].min + 65536
val[spec.v].max = val[spec.v].max + 65536
end
elseif spec.k == "divide_by_two_0dp" then
val[spec.v].min = val[spec.v].min / 2
val[spec.v].max = val[spec.v].max / 2
Expand Down

0 comments on commit 5ab3101

Please sign in to comment.