Commit d61124224289df4dc373d3b2d3fc6f59f333af79
1 parent
123b0aef
Stormshield rune's block nb and threshold should be an integer
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -751,11 +751,11 @@ newInscription{ |
751 | 751 | end, |
752 | 752 | getThreshold = function(self, t) |
753 | 753 | local data = self:getInscriptionData(t.short_name) |
754 | - return data.threshold | |
754 | + return math.round(data.threshold) | |
755 | 755 | end, |
756 | 756 | getBlocks = function(self, t) |
757 | 757 | local data = self:getInscriptionData(t.short_name) |
758 | - return data.blocks + data.inc_stat | |
758 | + return math.round(data.blocks + data.inc_stat) | |
759 | 759 | end, |
760 | 760 | action = function(self, t) |
761 | 761 | local data = self:getInscriptionData(t.short_name) | ... | ... |
-
Please register or login to post a comment