Adds assemblies config, fixes crash bugs. (#134)

This commit is contained in:
Kamron Batman 2020-05-09 12:55:56 -07:00 • committed by GitHub
parent 0140eb73b4
commit 8ec166bcd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3223 changed files with 191 additions and 191 deletions

View file

@ -1,32 +0,0 @@
using System;
using Server.Items;
using Server.Utilities;
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 => false;
public override IEntity GetEntity() => (IEntity)ActivatorUtil.CreateInstance(Type, m_Content);
}
}