#W# Change: Mining now only produces the large graphic.
This commit is contained in:
parent
6429c4a1dd
commit
a181e313cd
1 changed files with 3 additions and 10 deletions
|
|
@ -2,17 +2,19 @@ using ModernUO.Serialization;
|
||||||
using Server.Engines.Craft;
|
using Server.Engines.Craft;
|
||||||
using Server.Mobiles;
|
using Server.Mobiles;
|
||||||
using Server.Targeting;
|
using Server.Targeting;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Server.Items;
|
namespace Server.Items;
|
||||||
|
|
||||||
[SerializationGenerator(2, false)]
|
[SerializationGenerator(2, false)]
|
||||||
public abstract partial class BaseOre : Item
|
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;
|
Stackable = true;
|
||||||
Amount = amount;
|
Amount = amount;
|
||||||
Hue = CraftResources.GetHue(resource);
|
Hue = CraftResources.GetHue(resource);
|
||||||
|
Weight = 1.0;
|
||||||
|
|
||||||
_resource = resource;
|
_resource = resource;
|
||||||
}
|
}
|
||||||
|
|
@ -49,15 +51,6 @@ public abstract partial class BaseOre : Item
|
||||||
// _resource = (CraftResource)reader.ReadInt();
|
// _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) =>
|
public override bool CanStackWith(Item dropped) =>
|
||||||
base.CanStackWith(dropped) &&
|
base.CanStackWith(dropped) &&
|
||||||
(dropped as BaseOre)?._resource == _resource;
|
(dropped as BaseOre)?._resource == _resource;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue