From a181e313cd3b6ef05bd24f9997274a32eaac59e2 Mon Sep 17 00:00:00 2001 From: WarrentyExpired Date: Fri, 28 Aug 2026 20:58:02 -0400 Subject: [PATCH] #W# Change: Mining now only produces the large graphic. --- .../UOContent/Items/Resources/Blacksmithing/Ore.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Projects/UOContent/Items/Resources/Blacksmithing/Ore.cs b/Projects/UOContent/Items/Resources/Blacksmithing/Ore.cs index 6ae0c71c3..4c6ebbbd0 100644 --- a/Projects/UOContent/Items/Resources/Blacksmithing/Ore.cs +++ b/Projects/UOContent/Items/Resources/Blacksmithing/Ore.cs @@ -2,17 +2,19 @@ using ModernUO.Serialization; using Server.Engines.Craft; using Server.Mobiles; using Server.Targeting; +using System.Collections.Generic; namespace Server.Items; [SerializationGenerator(2, false)] public abstract partial class BaseOre : Item { - public BaseOre(CraftResource resource, int amount = 1) : base(RandomSize()) + public BaseOre(CraftResource resource, int amount = 1) : base(0x19B9) { Stackable = true; Amount = amount; Hue = CraftResources.GetHue(resource); + Weight = 1.0; _resource = resource; } @@ -49,15 +51,6 @@ public abstract partial class BaseOre : Item // _resource = (CraftResource)reader.ReadInt(); } - private static int RandomSize() => - Utility.RandomDouble() switch - { - < 0.125 => 0x19B7, // Small - < 0.1875 => 0x19B8, // Medium clump - < 0.25 => 0x19BA, // Medium - _ => 0x19B9 // Large - }; - public override bool CanStackWith(Item dropped) => base.CanStackWith(dropped) && (dropped as BaseOre)?._resource == _resource;