Skip to content

Commit

Permalink
Merge PR #52: zero-pad 4-digit evo factor fraction
Browse files Browse the repository at this point in the history
Kind of an urgent fix, so merging immediately.
  • Loading branch information
narc0tiq committed Mar 18, 2016
2 parents 48abd44 + 865dadc commit cc68a9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.4.11
0.4.12
1 change: 1 addition & 0 deletions value_sensors/evolution_factor.lua
Expand Up @@ -10,6 +10,7 @@ function sensor:get_line(player)
local fractional_component = math.floor((percent_evo_factor - whole_number) * 10)
if self.settings.extra_precision then
fractional_component = math.floor((percent_evo_factor - whole_number) * 10000)
return {self.format_key, string.format("%d.%04d%%", whole_number, fractional_component)}
end

return {self.format_key, string.format("%d.%d%%", whole_number, fractional_component)}
Expand Down

0 comments on commit cc68a9a

Please sign in to comment.