#W# Initial Commit: Avatars Conquest
This commit is contained in:
commit
5df497787a
7510 changed files with 416048 additions and 0 deletions
34
Scripts/Mobiles/Base/BeverageBuy.cs
Normal file
34
Scripts/Mobiles/Base/BeverageBuy.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class BeverageBuyInfo : GenericBuyInfo
|
||||
{
|
||||
private BeverageType m_Content;
|
||||
|
||||
public override bool CanCacheDisplay{ get{ return false; } }
|
||||
|
||||
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 IEntity GetEntity()
|
||||
{
|
||||
return (IEntity)Activator.CreateInstance( Type, new object[]{ m_Content } );
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue