Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,81 @@
using System;
namespace Server.Engines.Craft
{
public class CraftRes
{
private readonly Type m_Type;
private readonly int m_Amount;
private readonly string m_MessageString;
private readonly int m_MessageNumber;
private readonly string m_NameString;
private readonly int m_NameNumber;
public CraftRes(Type type, int amount)
{
this.m_Type = type;
this.m_Amount = amount;
}
public CraftRes(Type type, TextDefinition name, int amount, TextDefinition message)
: this(type, amount)
{
this.m_NameNumber = name;
this.m_MessageNumber = message;
this.m_NameString = name;
this.m_MessageString = message;
}
public Type ItemType
{
get
{
return this.m_Type;
}
}
public string MessageString
{
get
{
return this.m_MessageString;
}
}
public int MessageNumber
{
get
{
return this.m_MessageNumber;
}
}
public string NameString
{
get
{
return this.m_NameString;
}
}
public int NameNumber
{
get
{
return this.m_NameNumber;
}
}
public int Amount
{
get
{
return this.m_Amount;
}
}
public void SendMessage(Mobile from)
{
if (this.m_MessageNumber > 0)
from.SendLocalizedMessage(this.m_MessageNumber);
else if (!String.IsNullOrEmpty(this.m_MessageString))
from.SendMessage(this.m_MessageString);
else
from.SendLocalizedMessage(502925); // You don't have the resources required to make that item.
}
}
}