Skip to content

Commit

Permalink
Reduce default drop chance for Novice Wand
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsoltMolnarrr committed Apr 12, 2023
1 parent 2a2ac7e commit 5a6bcf4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 0.9.13

- Add configurable bonus roll chance
- Reduce default drop chance for Novice Wand

# 0.9.12

Expand Down
2 changes: 2 additions & 0 deletions common/src/main/java/net/wizards/config/Default.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
7 changes: 7 additions & 0 deletions common/src/main/java/net/wizards/config/LootConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ public ItemGroup(List<String> ids, int weight) {
this.weight = weight;
}

public ItemGroup(List<String> 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;
Expand Down

0 comments on commit 5a6bcf4

Please sign in to comment.