Move the global 1/15 chance to not drop charms from code to data.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,10 @@ class NPCDropTable : WeightBasedTable() {
|
|||||||
val items= ArrayList<Item>(3)
|
val items= ArrayList<Item>(3)
|
||||||
items.addAll(guaranteedItems.map { it.getItem() }.toList())
|
items.addAll(guaranteedItems.map { it.getItem() }.toList())
|
||||||
|
|
||||||
if(RandomFunction.random(1,15) == 5){
|
// Charms table is always rolled, and should contain explicit "Nothing"
|
||||||
|
// entries at the data level to account for the chance to not drop a charm.
|
||||||
items.addAll(charmDrops.roll(null))
|
items.addAll(charmDrops.roll(null))
|
||||||
}
|
|
||||||
if(size == 1){
|
if(size == 1){
|
||||||
items.add(get(0).getItem())
|
items.add(get(0).getItem())
|
||||||
return items
|
return items
|
||||||
|
|||||||
Reference in New Issue
Block a user