using System;
using Server.Items;
using Server.Mobiles;
using Server.Network;
namespace Server.Engines.Craft
{
public class DefEthereal : CraftSystem
{
public override SkillName MainSkill
{
get { return SkillName.Carpentry; }
}
public override string GumpTitleString
{
get { return "<BASEFONT COLOR=#FF0000><CENTER>ETHEREAL CRAFT MENU</CENTER></BASEFONT>"; }
}
private static CraftSystem m_CraftSystem;
public static CraftSystem CraftSystem
{
get
{
if ( m_CraftSystem == null )
m_CraftSystem = new DefEthereal();
return m_CraftSystem;
}
}
public override double GetChanceAtMin( CraftItem item )
{
return 0.0; // 50%
}
private DefEthereal() : base( 1, 1, 1.25 )// base( 1, 1, 3.0 )
{
}
public override int CanCraft( Mobile from, BaseTool tool, Type typeItem )
{
if ( tool.Deleted || tool.UsesRemaining < 0 )
return 1044038; // You have worn out your tool!
return 0;
}
public override void PlayCraftEffect( Mobile from )
{
from.PlaySound( 0x23D );
}
public override int PlayEndingEffect( Mobile from, bool failed, bool lostMaterial, bool toolBroken, int quality, bool makersMark, CraftItem item )
{
Container pack = from.Backpack;
if ( toolBroken )
from.SendMessage( "You have worn out your tool"); // You have worn out your tool
if ( failed )
{
return 1044043; // You failed to create the item, and some of your materials are lost.
}
else
{
return 1044154; // You create the item.
}
}
public override void InitCraftList()
{
//Ethereals
AddCraft( typeof( EtherealHorse ), "Ethereals", "Ethereal Horse", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealLlama ), "Ethereals", "Ethereal Llama", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealOstard ), "Ethereals", "Ethereal Ostard", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealBeetle ), "Ethereals", "Ethereal Beetle", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealSwampDragon ), "Ethereals", "Ethereal Swamp Dragon", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealKirin ), "Ethereals", "Ethereal Kirin", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
AddCraft( typeof( EtherealUnicorn ), "Ethereals", "Ethereal Unicorn", 100.0, 110.0, typeof( EtherealDust ), "Ethereal Dust", 50 );
}
}
}