[1.2.1] "die at greater" power bug
Posted: Mon Jun 09, 2014 9:33 pm
randart power generation in GameState.lua line 416:
this breaks when the numbers are negative like:
e.max would be -80, making the comparison almost always trigger and max the stat
Code: Select all
if dst[k] > e.max * scale then --Adjust maximum values for higher levels
dst[k] = math.floor(e.max * scale)
end
Code: Select all
newEntity{ theme={physical=true, defense=true}, name="die at greater", points = 1, rarity = 15, level_range = {20, 50},
wielder = { die_at = resolvers.randartmax(-20, -80), },
}