From 8947147c25e2640519897bfdc8807e97ee291d70 Mon Sep 17 00:00:00 2001 From: KingCol13 <48412633+KingCol13@users.noreply.github.com> Date: Fri, 2 Oct 2020 00:33:32 +0300 Subject: Enchanting table shows detail on hover. Enchanting is deterministic. (#4937) * Use lapis for enchanting, subtract correct number of levels, ClientHandle now selects from pregenerated list. Co-authored-by: Tiger Wang --- src/Items/ItemFishingRod.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Items') diff --git a/src/Items/ItemFishingRod.h b/src/Items/ItemFishingRod.h index 5878890ef..85688c5c1 100644 --- a/src/Items/ItemFishingRod.h +++ b/src/Items/ItemFishingRod.h @@ -175,21 +175,21 @@ public: case 0: { cItem Bow(E_ITEM_BOW, 1, Random.RandInt(50)); - Bow.EnchantByXPLevels(Random.RandInt(22, 30)); + Bow.EnchantByXPLevels(Random.RandInt(22, 30), GetRandomProvider()); Drops.Add(Bow); break; } case 1: { cItem Book(E_ITEM_BOOK); - Book.EnchantByXPLevels(30); + Book.EnchantByXPLevels(30, GetRandomProvider()); Drops.Add(Book); break; } case 2: { cItem Rod(E_ITEM_FISHING_ROD, 1, Random.RandInt(50)); - Rod.EnchantByXPLevels(Random.RandInt(22, 30)); + Rod.EnchantByXPLevels(Random.RandInt(22, 30), GetRandomProvider()); Drops.Add(Rod); break; } -- cgit v1.2.3