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,39 @@
using System;
using Server.Items;
namespace Server.Mobiles
{
public class BeverageBuyInfo : GenericBuyInfo
{
private readonly BeverageType m_Content;
public BeverageBuyInfo(Type type, BeverageType content, int price, int amount, int itemID, int hue)
: this(null, type, content, price, amount, itemID, hue)
{
}
public BeverageBuyInfo(string name, Type type, BeverageType content, int price, int amount, int itemID, int hue)
: base(name, type, price, amount, itemID, hue)
{
m_Content = content;
if (type == typeof(Pitcher))
Name = (1048128 + (int)content).ToString();
else if (type == typeof(BeverageBottle))
Name = (1042959 + (int)content).ToString();
else if (type == typeof(Jug))
Name = (1042965 + (int)content).ToString();
}
public override bool CanCacheDisplay
{
get
{
return false;
}
}
public override IEntity GetEntity()
{
return (IEntity)Activator.CreateInstance(Type, new object[] { m_Content });
}
}
}