Page 1 of 1

treasurelist random potion

Posted: Mon Jul 04, 2005 9:44 am
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 ...

Posted: Mon Jul 04, 2005 11:56 am
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.

Posted: Mon Jul 04, 2005 6:36 pm
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

Posted: Mon Jul 04, 2005 6:39 pm
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?