This commit is contained in:
parent
8ff1a903a0
commit
14873aaa3e
78 changed files with 360 additions and 231 deletions
|
|
@ -81,7 +81,6 @@ namespace Server.Engines.Craft
|
|||
m_Recipe = new Recipe( id, system, this );
|
||||
}
|
||||
|
||||
|
||||
private static Dictionary<Type, int> _itemIds = new Dictionary<Type, int>();
|
||||
|
||||
public static int ItemIDOf( Type type ) {
|
||||
|
|
@ -396,11 +395,6 @@ namespace Server.Engines.Craft
|
|||
|
||||
public bool RetainsColorFrom( CraftSystem system, Type type )
|
||||
{
|
||||
if (DefTailoring.IsNonColorable(m_Type))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( system.RetainsColorFrom( this, type ) )
|
||||
return true;
|
||||
|
||||
|
|
|
|||
|
|
@ -316,6 +316,10 @@ namespace Server.Engines.Craft
|
|||
{
|
||||
number = 1044275; // The item must be in your backpack to repair it.
|
||||
}
|
||||
else if ( !Core.AOS && weapon.PoisonCharges != 0 )
|
||||
{
|
||||
number = 1005012; // You cannot repair an item while a caustic substance is on it.
|
||||
}
|
||||
else if ( weapon.MaxHitPoints <= 0 || weapon.HitPoints == weapon.MaxHitPoints )
|
||||
{
|
||||
number = 1044281; // That item is in full repair
|
||||
|
|
|
|||
|
|
@ -48,6 +48,10 @@ namespace Server.Engines.Craft
|
|||
{
|
||||
try
|
||||
{
|
||||
|
||||
if ( Ethics.Ethic.IsImbued( item ) )
|
||||
return SmeltResult.Invalid;
|
||||
|
||||
if ( CraftResources.GetType( resource ) != CraftResourceType.Metal )
|
||||
return SmeltResult.Invalid;
|
||||
|
||||
|
|
@ -122,7 +126,7 @@ namespace Server.Engines.Craft
|
|||
else if ( !forge )
|
||||
num = 1044265; // You must be near a forge.
|
||||
}
|
||||
|
||||
|
||||
from.SendGump( new CraftGump( from, m_CraftSystem, m_Tool, num ) );
|
||||
}
|
||||
else
|
||||
|
|
@ -154,7 +158,7 @@ namespace Server.Engines.Craft
|
|||
case SmeltResult.NoSkill: message = 1044269; break; // You have no idea how to work this metal.
|
||||
case SmeltResult.Success: message = isStoreBought ? 500418 : 1044270; break; // You melt the item down into ingots.
|
||||
}
|
||||
|
||||
|
||||
from.SendGump( new CraftGump( from, m_CraftSystem, m_Tool, message ) );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue