Skip to content

Commit

Permalink
Make scroll trade replace special trade instead of one of the 5 junks
Browse files Browse the repository at this point in the history
  • Loading branch information
Robotgiggle committed Jan 24, 2025
1 parent f30d22e commit 2134295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public interface ServerConfigAccess {
int DEFAULT_MAX_SPELL_CIRCLE_LENGTH = 1024;
int DEFAULT_OP_BREAK_HARVEST_LEVEL = 3;

double DEFAULT_TRADER_SCROLL_CHANCE = 0.4;
double DEFAULT_TRADER_SCROLL_CHANCE = 0.2;

boolean DEFAULT_VILLAGERS_DISLIKE_MIND_MURDER = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private void addNewTrades(CallbackInfo ci) {
ItemStack scroll = new ItemStack(HexItems.SCROLL_LARGE);
AddPerWorldPatternToScrollFunc.doStatic(scroll, rand, self.getServer().overworld());
NBTHelper.putBoolean(scroll, ItemScroll.TAG_NEEDS_PURCHASE, true);
offerList.set(rand.nextInt(5), new MerchantOffer(new ItemStack(Items.EMERALD, 12), scroll, 1, 1, 1));
offerList.set(5, new MerchantOffer(new ItemStack(Items.EMERALD, 12), scroll, 1, 1, 1));
}
}
}

0 comments on commit 2134295

Please sign in to comment.