Commit d61124224289df4dc373d3b2d3fc6f59f333af79

Authored by yutio888
1 parent 123b0aef

Stormshield rune's block nb and threshold should be an integer

@@ -751,11 +751,11 @@ newInscription{ @@ -751,11 +751,11 @@ newInscription{
751 end, 751 end,
752 getThreshold = function(self, t) 752 getThreshold = function(self, t)
753 local data = self:getInscriptionData(t.short_name) 753 local data = self:getInscriptionData(t.short_name)
754 - return data.threshold 754 + return math.round(data.threshold)
755 end, 755 end,
756 getBlocks = function(self, t) 756 getBlocks = function(self, t)
757 local data = self:getInscriptionData(t.short_name) 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 end, 759 end,
760 action = function(self, t) 760 action = function(self, t)
761 local data = self:getInscriptionData(t.short_name) 761 local data = self:getInscriptionData(t.short_name)