Commit c766b28bff8562c2d7a90a713384cb681983d77c

Authored by yutio888
1 parent d6112422

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 math.round(data.threshold) 754 + return math.ceil(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 math.round(data.blocks + data.inc_stat) 758 + return math.ceil(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)