Inital Commit
This commit is contained in:
@@ -3,6 +3,7 @@ using Server.Items;
|
||||
using Server.Mobiles;
|
||||
using Server.Targeting;
|
||||
using Server.Factions;
|
||||
using Server.Custom;
|
||||
|
||||
namespace Server.Engines.Craft
|
||||
{
|
||||
@@ -225,6 +226,20 @@ namespace Server.Engines.Craft
|
||||
|
||||
return;
|
||||
}
|
||||
// ===============================
|
||||
// CUSTOM REPAIR LOCK ENFORCEMENT
|
||||
// ===============================
|
||||
Item it = targeted as Item;
|
||||
|
||||
if (it != null && it.GetRepairLocked())
|
||||
{
|
||||
from.SendMessage("This item has been fortified and cannot be repaired until it is restored.");
|
||||
|
||||
if (m_Addon != null)
|
||||
m_Addon.Using = false;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_CraftSystem.CanCraft(from, m_Tool, targeted.GetType()) == 1044267)
|
||||
{
|
||||
@@ -638,7 +653,7 @@ namespace Server.Engines.Craft
|
||||
|
||||
if (toDelete)
|
||||
m_Deed.Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user