fix: Codegens resources (#1272)
This commit is contained in:
parent
59ed0a5bb4
commit
82637a77cd
59 changed files with 2435 additions and 2695 deletions
|
|
@ -3,446 +3,445 @@ using Server.Engines.Craft;
|
|||
using Server.Mobiles;
|
||||
using Server.Targeting;
|
||||
|
||||
namespace Server.Items
|
||||
namespace Server.Items;
|
||||
|
||||
[SerializationGenerator(2, false)]
|
||||
public abstract partial class BaseOre : Item
|
||||
{
|
||||
[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(RandomSize())
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
Hue = CraftResources.GetHue(resource);
|
||||
|
||||
_resource = resource;
|
||||
}
|
||||
|
||||
[InvalidateProperties]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
[SerializableField(0)]
|
||||
private CraftResource _resource;
|
||||
|
||||
public override int LabelNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
Stackable = true;
|
||||
Amount = amount;
|
||||
Hue = CraftResources.GetHue(resource);
|
||||
|
||||
_resource = resource;
|
||||
}
|
||||
|
||||
[InvalidateProperties]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
[SerializableField(0)]
|
||||
private CraftResource _resource;
|
||||
|
||||
public override int LabelNumber
|
||||
{
|
||||
get
|
||||
if (_resource is >= CraftResource.DullCopper and <= CraftResource.Valorite)
|
||||
{
|
||||
if (_resource is >= CraftResource.DullCopper and <= CraftResource.Valorite)
|
||||
{
|
||||
return 1042845 + (_resource - CraftResource.DullCopper);
|
||||
}
|
||||
|
||||
return 1042853; // iron ore;
|
||||
return 1042845 + (_resource - CraftResource.DullCopper);
|
||||
}
|
||||
|
||||
return 1042853; // iron ore;
|
||||
}
|
||||
}
|
||||
|
||||
public abstract BaseIngot GetIngot();
|
||||
public abstract BaseIngot GetIngot();
|
||||
|
||||
private void Deserialize(IGenericReader reader, int version)
|
||||
private void Deserialize(IGenericReader reader, int version)
|
||||
{
|
||||
// Use this line instead if you are getting world loading issues
|
||||
_resource = (CraftResource)reader.ReadByte();
|
||||
// _resource = (CraftResource)reader.ReadInt();
|
||||
}
|
||||
|
||||
private static int RandomSize() =>
|
||||
Utility.RandomDouble() switch
|
||||
{
|
||||
// Use this line instead if you are getting world loading issues
|
||||
_resource = (CraftResource)reader.ReadByte();
|
||||
// _resource = (CraftResource)reader.ReadInt();
|
||||
< 0.125 => 0x19B7, // Small
|
||||
< 0.1875 => 0x19B8, // Medium clump
|
||||
< 0.25 => 0x19BA, // Medium
|
||||
_ => 0x19B9 // Large
|
||||
};
|
||||
|
||||
public override bool CanStackWith(Item dropped) =>
|
||||
dropped.Stackable && Stackable && dropped.Hue == Hue &&
|
||||
dropped.GetType() == GetType() && dropped.ItemID == ItemID &&
|
||||
(dropped as BaseOre)?._resource == _resource && dropped.Name == Name &&
|
||||
dropped.Amount + Amount <= 60000 && dropped != this;
|
||||
|
||||
public override void AddNameProperty(IPropertyList list)
|
||||
{
|
||||
if (Amount > 1)
|
||||
{
|
||||
list.Add(1050039, $"{Amount}\t{1026583:#}"); // ~1_NUMBER~ ~2_ITEMNAME~
|
||||
}
|
||||
|
||||
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) =>
|
||||
dropped.Stackable && Stackable && dropped.Hue == Hue &&
|
||||
dropped.GetType() == GetType() && dropped.ItemID == ItemID &&
|
||||
(dropped as BaseOre)?._resource == _resource && dropped.Name == Name &&
|
||||
dropped.Amount + Amount <= 60000 && dropped != this;
|
||||
|
||||
public override void AddNameProperty(IPropertyList list)
|
||||
else
|
||||
{
|
||||
if (Amount > 1)
|
||||
list.Add(1026583); // ore
|
||||
}
|
||||
}
|
||||
|
||||
public override void GetProperties(IPropertyList list)
|
||||
{
|
||||
base.GetProperties(list);
|
||||
|
||||
if (!CraftResources.IsStandard(_resource))
|
||||
{
|
||||
var num = CraftResources.GetLocalizationNumber(_resource);
|
||||
|
||||
if (num > 0)
|
||||
{
|
||||
list.Add(1050039, $"{Amount}\t{1026583:#}"); // ~1_NUMBER~ ~2_ITEMNAME~
|
||||
list.Add(num);
|
||||
}
|
||||
else
|
||||
{
|
||||
list.Add(1026583); // ore
|
||||
list.Add(CraftResources.GetName(_resource));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void GetProperties(IPropertyList list)
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (!Movable)
|
||||
{
|
||||
base.GetProperties(list);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!CraftResources.IsStandard(_resource))
|
||||
if (RootParent is BaseCreature)
|
||||
{
|
||||
from.SendLocalizedMessage(500447); // That is not accessible
|
||||
}
|
||||
else if (from.InRange(GetWorldLocation(), 2))
|
||||
{
|
||||
// Select the forge on which to smelt the ore, or another pile of ore with which to combine it.
|
||||
from.SendLocalizedMessage(501971);
|
||||
from.Target = new InternalTarget(this);
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendLocalizedMessage(501976); // The ore is too far away.
|
||||
}
|
||||
}
|
||||
|
||||
private class InternalTarget : Target
|
||||
{
|
||||
private readonly BaseOre m_Ore;
|
||||
|
||||
public InternalTarget(BaseOre ore) : base(2, false, TargetFlags.None) => m_Ore = ore;
|
||||
|
||||
private bool IsForge(object obj)
|
||||
{
|
||||
if (Core.ML && obj is Mobile { IsDeadBondedPet: true })
|
||||
{
|
||||
var num = CraftResources.GetLocalizationNumber(_resource);
|
||||
|
||||
if (num > 0)
|
||||
{
|
||||
list.Add(num);
|
||||
}
|
||||
else
|
||||
{
|
||||
list.Add(CraftResources.GetName(_resource));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
if (obj.GetType().IsDefined(typeof(ForgeAttribute), false))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
var itemID = obj switch
|
||||
{
|
||||
Item item => item.ItemID,
|
||||
StaticTarget target => target.ItemID,
|
||||
_ => 0
|
||||
};
|
||||
|
||||
return itemID is 4017 or >= 6522 and <= 6569 or 11736;
|
||||
}
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
protected override void OnTarget(Mobile from, object targeted)
|
||||
{
|
||||
if (!Movable)
|
||||
if (m_Ore.Deleted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (RootParent is BaseCreature)
|
||||
{
|
||||
from.SendLocalizedMessage(500447); // That is not accessible
|
||||
}
|
||||
else if (from.InRange(GetWorldLocation(), 2))
|
||||
{
|
||||
// Select the forge on which to smelt the ore, or another pile of ore with which to combine it.
|
||||
from.SendLocalizedMessage(501971);
|
||||
from.Target = new InternalTarget(this);
|
||||
}
|
||||
else
|
||||
if (!from.InRange(m_Ore.GetWorldLocation(), 2))
|
||||
{
|
||||
from.SendLocalizedMessage(501976); // The ore is too far away.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private class InternalTarget : Target
|
||||
{
|
||||
private readonly BaseOre m_Ore;
|
||||
|
||||
public InternalTarget(BaseOre ore) : base(2, false, TargetFlags.None) => m_Ore = ore;
|
||||
|
||||
private bool IsForge(object obj)
|
||||
if (targeted is BaseOre ore)
|
||||
{
|
||||
if (Core.ML && obj is Mobile { IsDeadBondedPet: true })
|
||||
{
|
||||
return false;
|
||||
}
|
||||
OnTargetOre(from, ore);
|
||||
return;
|
||||
}
|
||||
|
||||
if (obj.GetType().IsDefined(typeof(ForgeAttribute), false))
|
||||
if (IsForge(targeted))
|
||||
{
|
||||
var difficulty = m_Ore._resource switch
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
var itemID = obj switch
|
||||
{
|
||||
Item item => item.ItemID,
|
||||
StaticTarget target => target.ItemID,
|
||||
_ => 0
|
||||
CraftResource.DullCopper => 65.0,
|
||||
CraftResource.ShadowIron => 70.0,
|
||||
CraftResource.Copper => 75.0,
|
||||
CraftResource.Bronze => 80.0,
|
||||
CraftResource.Gold => 85.0,
|
||||
CraftResource.Agapite => 90.0,
|
||||
CraftResource.Verite => 95.0,
|
||||
CraftResource.Valorite => 99.0,
|
||||
_ => 50.0
|
||||
};
|
||||
|
||||
return itemID is 4017 or >= 6522 and <= 6569 or 11736;
|
||||
}
|
||||
var minSkill = difficulty - 25.0;
|
||||
var maxSkill = difficulty + 25.0;
|
||||
|
||||
protected override void OnTarget(Mobile from, object targeted)
|
||||
{
|
||||
if (m_Ore.Deleted)
|
||||
if (difficulty > 50.0 && difficulty > from.Skills.Mining.Value)
|
||||
{
|
||||
from.SendLocalizedMessage(501986); // You have no idea how to smelt this strange ore!
|
||||
return;
|
||||
}
|
||||
|
||||
if (!from.InRange(m_Ore.GetWorldLocation(), 2))
|
||||
if (m_Ore.ItemID == 0x19B7 && m_Ore.Amount < 2)
|
||||
{
|
||||
from.SendLocalizedMessage(501976); // The ore is too far away.
|
||||
// There is not enough metal-bearing ore in this pile to make an ingot.
|
||||
from.SendLocalizedMessage(501987);
|
||||
return;
|
||||
}
|
||||
|
||||
if (targeted is BaseOre ore)
|
||||
if (from.CheckTargetSkill(SkillName.Mining, targeted, minSkill, maxSkill))
|
||||
{
|
||||
OnTargetOre(from, ore);
|
||||
return;
|
||||
}
|
||||
var toConsume = m_Ore.Amount;
|
||||
|
||||
if (IsForge(targeted))
|
||||
{
|
||||
var difficulty = m_Ore._resource switch
|
||||
{
|
||||
CraftResource.DullCopper => 65.0,
|
||||
CraftResource.ShadowIron => 70.0,
|
||||
CraftResource.Copper => 75.0,
|
||||
CraftResource.Bronze => 80.0,
|
||||
CraftResource.Gold => 85.0,
|
||||
CraftResource.Agapite => 90.0,
|
||||
CraftResource.Verite => 95.0,
|
||||
CraftResource.Valorite => 99.0,
|
||||
_ => 50.0
|
||||
};
|
||||
|
||||
var minSkill = difficulty - 25.0;
|
||||
var maxSkill = difficulty + 25.0;
|
||||
|
||||
if (difficulty > 50.0 && difficulty > from.Skills.Mining.Value)
|
||||
{
|
||||
from.SendLocalizedMessage(501986); // You have no idea how to smelt this strange ore!
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_Ore.ItemID == 0x19B7 && m_Ore.Amount < 2)
|
||||
if (toConsume <= 0)
|
||||
{
|
||||
// There is not enough metal-bearing ore in this pile to make an ingot.
|
||||
from.SendLocalizedMessage(501987);
|
||||
return;
|
||||
}
|
||||
|
||||
if (from.CheckTargetSkill(SkillName.Mining, targeted, minSkill, maxSkill))
|
||||
if (toConsume > 30000)
|
||||
{
|
||||
var toConsume = m_Ore.Amount;
|
||||
toConsume = 30000;
|
||||
}
|
||||
|
||||
if (toConsume <= 0)
|
||||
int ingotAmount;
|
||||
|
||||
if (m_Ore.ItemID == 0x19B7)
|
||||
{
|
||||
ingotAmount = toConsume / 2;
|
||||
|
||||
if (toConsume % 2 != 0)
|
||||
{
|
||||
// There is not enough metal-bearing ore in this pile to make an ingot.
|
||||
from.SendLocalizedMessage(501987);
|
||||
return;
|
||||
--toConsume;
|
||||
}
|
||||
|
||||
if (toConsume > 30000)
|
||||
{
|
||||
toConsume = 30000;
|
||||
}
|
||||
|
||||
int ingotAmount;
|
||||
|
||||
if (m_Ore.ItemID == 0x19B7)
|
||||
{
|
||||
ingotAmount = toConsume / 2;
|
||||
|
||||
if (toConsume % 2 != 0)
|
||||
{
|
||||
--toConsume;
|
||||
}
|
||||
}
|
||||
else if (m_Ore.ItemID == 0x19B9)
|
||||
{
|
||||
ingotAmount = toConsume * 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
ingotAmount = toConsume;
|
||||
}
|
||||
|
||||
var ingot = m_Ore.GetIngot();
|
||||
ingot.Amount = ingotAmount;
|
||||
|
||||
m_Ore.Consume(toConsume);
|
||||
from.AddToBackpack(ingot);
|
||||
// from.PlaySound( 0x57 );
|
||||
|
||||
// You smelt the ore removing the impurities and put the metal in your backpack.
|
||||
from.SendLocalizedMessage(501988);
|
||||
}
|
||||
else if (m_Ore.ItemID == 0x19B9)
|
||||
{
|
||||
ingotAmount = toConsume * 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_Ore.Amount < 2)
|
||||
{
|
||||
m_Ore.ItemID = m_Ore.ItemID == 0x19B9 ? 0x19B8 : 0x19B7;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Ore.Amount /= 2;
|
||||
}
|
||||
|
||||
// You burn away the impurities but are left with less useable metal.
|
||||
from.SendLocalizedMessage(501990);
|
||||
ingotAmount = toConsume;
|
||||
}
|
||||
|
||||
var ingot = m_Ore.GetIngot();
|
||||
ingot.Amount = ingotAmount;
|
||||
|
||||
m_Ore.Consume(toConsume);
|
||||
from.AddToBackpack(ingot);
|
||||
// from.PlaySound( 0x57 );
|
||||
|
||||
// You smelt the ore removing the impurities and put the metal in your backpack.
|
||||
from.SendLocalizedMessage(501988);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnTargetOre(Mobile from, BaseOre ore)
|
||||
{
|
||||
if (!ore.Movable)
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_Ore == ore)
|
||||
{
|
||||
from.SendLocalizedMessage(501972); // Select another pile or ore with which to combine this.
|
||||
from.Target = new InternalTarget(ore);
|
||||
return;
|
||||
}
|
||||
|
||||
if (ore._resource != m_Ore._resource)
|
||||
{
|
||||
from.SendLocalizedMessage(501979); // You cannot combine ores of different metals.
|
||||
return;
|
||||
}
|
||||
|
||||
var worth = ore.Amount * ore.ItemID switch
|
||||
{
|
||||
0x19B9 => 8,
|
||||
0x19B7 => 2,
|
||||
_ => 4
|
||||
};
|
||||
|
||||
var sourceWorth = m_Ore.Amount * m_Ore.ItemID switch
|
||||
{
|
||||
0x19B9 => 8,
|
||||
0x19B7 => 2,
|
||||
_ => 4
|
||||
};
|
||||
|
||||
worth += sourceWorth;
|
||||
|
||||
var plusWeight = 0;
|
||||
var newID = ore.ItemID;
|
||||
|
||||
if (ore.DefaultWeight != m_Ore.DefaultWeight)
|
||||
{
|
||||
if (ore.ItemID == 0x19B7 || m_Ore.ItemID == 0x19B7)
|
||||
if (m_Ore.Amount < 2)
|
||||
{
|
||||
newID = 0x19B7;
|
||||
}
|
||||
else if (ore.ItemID == 0x19B9)
|
||||
{
|
||||
newID = m_Ore.ItemID;
|
||||
plusWeight = ore.Amount * 2;
|
||||
m_Ore.ItemID = m_Ore.ItemID == 0x19B9 ? 0x19B8 : 0x19B7;
|
||||
}
|
||||
else
|
||||
{
|
||||
plusWeight = m_Ore.Amount * 2;
|
||||
m_Ore.Amount /= 2;
|
||||
}
|
||||
|
||||
// You burn away the impurities but are left with less useable metal.
|
||||
from.SendLocalizedMessage(501990);
|
||||
}
|
||||
|
||||
if (ore.ItemID == 0x19B9 && worth > 120000 ||
|
||||
ore.ItemID is 0x19B8 or 0x19BA && worth > 60000 ||
|
||||
ore.ItemID == 0x19B7 && worth > 30000)
|
||||
{
|
||||
from.SendLocalizedMessage(1062844); // There is too much ore to combine.
|
||||
return;
|
||||
}
|
||||
|
||||
if (ore.RootParent is Mobile mobile &&
|
||||
plusWeight + mobile.Backpack.TotalWeight > mobile.Backpack.MaxWeight)
|
||||
{
|
||||
from.SendLocalizedMessage(501978); // The weight is too great to combine in a container.
|
||||
return;
|
||||
}
|
||||
|
||||
ore.ItemID = newID;
|
||||
|
||||
ore.Amount = ore.ItemID switch
|
||||
{
|
||||
0x19B9 => worth / 8,
|
||||
0x19B7 => worth / 2,
|
||||
_ => worth / 4
|
||||
};
|
||||
|
||||
m_Ore.Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class IronOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public IronOre(int amount = 1) : base(CraftResource.Iron, amount)
|
||||
private void OnTargetOre(Mobile from, BaseOre ore)
|
||||
{
|
||||
}
|
||||
|
||||
public IronOre(bool fixedSize) : this()
|
||||
{
|
||||
if (fixedSize)
|
||||
if (!ore.Movable)
|
||||
{
|
||||
ItemID = 0x19B8;
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_Ore == ore)
|
||||
{
|
||||
from.SendLocalizedMessage(501972); // Select another pile or ore with which to combine this.
|
||||
from.Target = new InternalTarget(ore);
|
||||
return;
|
||||
}
|
||||
|
||||
if (ore._resource != m_Ore._resource)
|
||||
{
|
||||
from.SendLocalizedMessage(501979); // You cannot combine ores of different metals.
|
||||
return;
|
||||
}
|
||||
|
||||
var worth = ore.Amount * ore.ItemID switch
|
||||
{
|
||||
0x19B9 => 8,
|
||||
0x19B7 => 2,
|
||||
_ => 4
|
||||
};
|
||||
|
||||
var sourceWorth = m_Ore.Amount * m_Ore.ItemID switch
|
||||
{
|
||||
0x19B9 => 8,
|
||||
0x19B7 => 2,
|
||||
_ => 4
|
||||
};
|
||||
|
||||
worth += sourceWorth;
|
||||
|
||||
var plusWeight = 0;
|
||||
var newID = ore.ItemID;
|
||||
|
||||
if (ore.DefaultWeight != m_Ore.DefaultWeight)
|
||||
{
|
||||
if (ore.ItemID == 0x19B7 || m_Ore.ItemID == 0x19B7)
|
||||
{
|
||||
newID = 0x19B7;
|
||||
}
|
||||
else if (ore.ItemID == 0x19B9)
|
||||
{
|
||||
newID = m_Ore.ItemID;
|
||||
plusWeight = ore.Amount * 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
plusWeight = m_Ore.Amount * 2;
|
||||
}
|
||||
}
|
||||
|
||||
if (ore.ItemID == 0x19B9 && worth > 120000 ||
|
||||
ore.ItemID is 0x19B8 or 0x19BA && worth > 60000 ||
|
||||
ore.ItemID == 0x19B7 && worth > 30000)
|
||||
{
|
||||
from.SendLocalizedMessage(1062844); // There is too much ore to combine.
|
||||
return;
|
||||
}
|
||||
|
||||
if (ore.RootParent is Mobile mobile &&
|
||||
plusWeight + mobile.Backpack.TotalWeight > mobile.Backpack.MaxWeight)
|
||||
{
|
||||
from.SendLocalizedMessage(501978); // The weight is too great to combine in a container.
|
||||
return;
|
||||
}
|
||||
|
||||
ore.ItemID = newID;
|
||||
|
||||
ore.Amount = ore.ItemID switch
|
||||
{
|
||||
0x19B9 => worth / 8,
|
||||
0x19B7 => worth / 2,
|
||||
_ => worth / 4
|
||||
};
|
||||
|
||||
m_Ore.Delete();
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new IronIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class DullCopperOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public DullCopperOre(int amount = 1) : base(CraftResource.DullCopper, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new DullCopperIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ShadowIronOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public ShadowIronOre(int amount = 1) : base(CraftResource.ShadowIron, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new ShadowIronIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class CopperOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public CopperOre(int amount = 1) : base(CraftResource.Copper, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new CopperIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BronzeOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public BronzeOre(int amount = 1) : base(CraftResource.Bronze, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new BronzeIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class GoldOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public GoldOre(int amount = 1) : base(CraftResource.Gold, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new GoldIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class AgapiteOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public AgapiteOre(int amount = 1) : base(CraftResource.Agapite, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new AgapiteIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class VeriteOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public VeriteOre(int amount = 1) : base(CraftResource.Verite, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new VeriteIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ValoriteOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public ValoriteOre(int amount = 1) : base(CraftResource.Valorite, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new ValoriteIngot();
|
||||
}
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class IronOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public IronOre(int amount = 1) : base(CraftResource.Iron, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public IronOre(bool fixedSize) : this()
|
||||
{
|
||||
if (fixedSize)
|
||||
{
|
||||
ItemID = 0x19B8;
|
||||
}
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new IronIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class DullCopperOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public DullCopperOre(int amount = 1) : base(CraftResource.DullCopper, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new DullCopperIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ShadowIronOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public ShadowIronOre(int amount = 1) : base(CraftResource.ShadowIron, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new ShadowIronIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class CopperOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public CopperOre(int amount = 1) : base(CraftResource.Copper, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new CopperIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class BronzeOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public BronzeOre(int amount = 1) : base(CraftResource.Bronze, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new BronzeIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class GoldOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public GoldOre(int amount = 1) : base(CraftResource.Gold, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new GoldIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class AgapiteOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public AgapiteOre(int amount = 1) : base(CraftResource.Agapite, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new AgapiteIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class VeriteOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public VeriteOre(int amount = 1) : base(CraftResource.Verite, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new VeriteIngot();
|
||||
}
|
||||
|
||||
[SerializationGenerator(0, false)]
|
||||
public partial class ValoriteOre : BaseOre
|
||||
{
|
||||
[Constructible]
|
||||
public ValoriteOre(int amount = 1) : base(CraftResource.Valorite, amount)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseIngot GetIngot() => new ValoriteIngot();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue