Optimized Weighted Random Dungeon Selection #27

Merged
SenseiKiwi merged 2 commits from master into master 2013-06-18 02:59:20 +00:00

2 Commits

Author SHA1 Message Date
SenseiKiwi
154f896881 Merge remote-tracking branch 'upstream/master' into R1.4.0-improvements 2013-06-17 22:26:59 -04:00
SenseiKiwi
438b251d8f Optimized Weighted Random Dungeon Selection
Optimized the selection of random dungeons with weights applied. We now
have a class called WeightedContainer for taping into Minecraft's
weighted selection code without having to extend the WeightedRandomItem
class. Using that, we no longer need to keep a list with duplicate
dungeons to achieve weighted selection, so I removed that variable.
2013-06-17 22:26:39 -04:00