treasurelist random potion

A place for people to post strange occurances that could be potential bugs.

Moderator: Board moderators

Post Reply
Aragorn
Newbie
Posts: 7
Joined: Sun Jul 03, 2005 10:46 am

treasurelist random potion

Post by Aragorn »

After installing the server and client snapshots as of may 2005 I soon started to play around with the java map editor.

Inspecting treaseurelists I detected that the chances in random potion add up to 105 %. A bug or a feature? Dont know ...
Ryo
Forum Fanatic
Posts: 752
Joined: Mon May 19, 2003 9:16 pm
Location: Paris, France

Post by Ryo »

That's how chances work in treasure list. It's not a percentage, but a weight, and server chooses a random item based on weight relative to sum of weight - thus you can have 4 as sum, or 5433, it'll work anyway.

Makes it much easier to add items, as you don't have to recalculate all percentages.
Rednaxela
Senior member
Posts: 434
Joined: Wed Jan 26, 2005 5:13 am

Post by Rednaxela »

You might notice though that despite it being weights rather than precents, some lists do happen to add up to 100, which is somewhat nice for reading, but it isn't something to count on being the case
bort
Forum Junkie
Posts: 607
Joined: Sun Jun 20, 2004 9:40 pm
Location: LG

Post by bort »

So if you make a treasure list of potions and stat pots, and all are the same item wieght,
you have a 1/x chance of getting one of the items, than if you set potion x to 50% chance?
lordyoukai.DA
My wraith is cooler than your dragon.
Post Reply