diff --git a/CHANGELOG.md b/CHANGELOG.md index d55dfda..866ec9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 0.9.13 - Add configurable bonus roll chance +- Reduce default drop chance for Novice Wand # 0.9.12 diff --git a/common/src/main/java/net/wizards/config/Default.java b/common/src/main/java/net/wizards/config/Default.java index bf8eeb3..a3c8fda 100644 --- a/common/src/main/java/net/wizards/config/Default.java +++ b/common/src/main/java/net/wizards/config/Default.java @@ -25,6 +25,8 @@ public class Default { lootConfig = new LootConfig(); lootConfig.item_groups.put("wands_tier_0", new LootConfig.ItemGroup(List.of( Weapons.noviceWand.id().toString()), + 0.25F, + 1F, 1 )); lootConfig.item_groups.put("wands_tier_1", new LootConfig.ItemGroup(List.of( diff --git a/common/src/main/java/net/wizards/config/LootConfig.java b/common/src/main/java/net/wizards/config/LootConfig.java index 31dc271..a02a952 100644 --- a/common/src/main/java/net/wizards/config/LootConfig.java +++ b/common/src/main/java/net/wizards/config/LootConfig.java @@ -16,6 +16,13 @@ public ItemGroup(List ids, int weight) { this.weight = weight; } + public ItemGroup(List ids, float chance, float bonus_roll_chance, int weight) { + this.ids = ids; + this.chance = chance; + this.bonus_roll_chance = bonus_roll_chance; + this.weight = weight; + } + public ItemGroup chance(float chance_multiplier) { this.chance = chance_multiplier; return this;