[1.2.1] "die at greater" power bug

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Alisar
Cornac
Posts: 44
Joined: Sat May 31, 2014 7:54 pm

[1.2.1] "die at greater" power bug

#1 Post 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

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

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

#2 Post by darkgod »

thanks :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply