Page 1 of 1

[1.2.1] "die at greater" power bug

Posted: Mon Jun 09, 2014 9:33 pm
by Alisar
randart power generation in GameState.lua line 416:

Code: Select all

if dst[k] > e.max * scale then --Adjust maximum values for higher levels
	dst[k] = math.floor(e.max * scale)
end
this breaks when the numbers are negative like:

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), },
}
e.max would be -80, making the comparison almost always trigger and max the stat

Re: [1.2.1] "die at greater" power bug

Posted: Mon Jun 09, 2014 10:18 pm
by darkgod
thanks :)