servuo/Scripts/Services/Craft/Core/CustomCraft.cs
Dexter 1f1050f95b -Converted BaseTool references to ITool for support of sledge hammer and smithy hammers, post-AOS.
-Added Smithy Hammer and Sledgh Hammer to loot drops
-Added Void Spawn to Shame Level 3
-Fel/Tram now have their own instance to void pool stats
-Void Pool Gump context menu entry is now accessible anywhere
-Skree AI is now mage
-Fixed kindling weight
-Putrid hearts no longer to go internal map
2017-12-18 19:52:23 -07:00

70 lines
No EOL
1.6 KiB
C#

using System;
using Server.Items;
namespace Server.Engines.Craft
{
public abstract class CustomCraft
{
private readonly Mobile m_From;
private readonly CraftItem m_CraftItem;
private readonly CraftSystem m_CraftSystem;
private readonly Type m_TypeRes;
private readonly ITool m_Tool;
private readonly int m_Quality;
public CustomCraft(Mobile from, CraftItem craftItem, CraftSystem craftSystem, Type typeRes, ITool tool, int quality)
{
this.m_From = from;
this.m_CraftItem = craftItem;
this.m_CraftSystem = craftSystem;
this.m_TypeRes = typeRes;
this.m_Tool = tool;
this.m_Quality = quality;
}
public Mobile From
{
get
{
return this.m_From;
}
}
public CraftItem CraftItem
{
get
{
return this.m_CraftItem;
}
}
public CraftSystem CraftSystem
{
get
{
return this.m_CraftSystem;
}
}
public Type TypeRes
{
get
{
return this.m_TypeRes;
}
}
public ITool Tool
{
get
{
return this.m_Tool;
}
}
public int Quality
{
get
{
return this.m_Quality;
}
}
public abstract void EndCraftAction();
public abstract Item CompleteCraft(out int message);
}
}