Module:Sandbox/LVL: Difference between revisions

LVL (talk | contribs)
reload time, spirit first
LVL (talk | contribs)
No edit summary
Line 280: Line 280:
             append_scaling(level_val, "Level")
             append_scaling(level_val, "Level")


             -- Update the stat value for display
             -- Update the stat value for display (only if numeric)
             stat_value = stat_value + (spirit_power * spirit_val)
             if type(stat_value) == "number" then
            stat_value = stat_value + (power_increases * level_val)
                stat_value = stat_value + (spirit_power * spirit_val)
                stat_value = stat_value + (power_increases * level_val)
            end


             spirit_scale = spirit_val
             spirit_scale = spirit_val
Line 290: Line 292:
         if attr_key == "TechPower" and spirit_scale == 0 then
         if attr_key == "TechPower" and spirit_scale == 0 then
             spirit_scale = 1.0
             spirit_scale = 1.0
             stat_value   = stat_value + (spirit_power * spirit_scale)
             if type(stat_value) == "number" then
                stat_value = stat_value + (spirit_power * spirit_scale)
            end
         end
         end