Module:Abilities/card: Difference between revisions

Fixed upgrade description generation returning empty string if there is scaling
Added rounding to generated descriptions
Line 442: Line 442:
     local value
     local value
         if type(v) == 'table' then
         if type(v) == 'table' then
         value = v.Value
         value = commonutils.round_to_sig_fig(v.Value, 4)
         else  
         else  
         value = v
         value = commonutils.round_to_sig_fig(v, 4)
    end
    end