This commit is contained in:
parent
b9e4f72708
commit
b2356de9b4
10 changed files with 141 additions and 24 deletions
|
|
@ -49,6 +49,29 @@ namespace Server.Engines.Craft
|
|||
return 0;
|
||||
}
|
||||
|
||||
private static Type[] m_TailorColorables = new Type[]
|
||||
{
|
||||
typeof( GozaMatEastDeed ), typeof( GozaMatSouthDeed ),
|
||||
typeof( SquareGozaMatEastDeed ), typeof( SquareGozaMatSouthDeed ),
|
||||
typeof( BrocadeGozaMatEastDeed ), typeof( BrocadeGozaMatSouthDeed ),
|
||||
typeof( BrocadeSquareGozaMatEastDeed ), typeof( BrocadeSquareGozaMatSouthDeed )
|
||||
};
|
||||
|
||||
public override bool RetainsColorFrom( CraftItem item, Type type )
|
||||
{
|
||||
if ( !type.IsSubclassOf( typeof( Cloth ) ) )
|
||||
return false;
|
||||
|
||||
type = item.ItemType;
|
||||
|
||||
bool contains = false;
|
||||
|
||||
for ( int i = 0; !contains && i < m_TailorColorables.Length; ++i )
|
||||
contains = ( m_TailorColorables[i] == type );
|
||||
|
||||
return contains;
|
||||
}
|
||||
|
||||
public override void PlayCraftEffect( Mobile from )
|
||||
{
|
||||
from.PlaySound( 0x248 );
|
||||
|
|
|
|||
|
|
@ -55,12 +55,6 @@ namespace Server.Engines.Craft
|
|||
return 0;
|
||||
}
|
||||
|
||||
public override void PlayCraftEffect( Mobile from )
|
||||
{
|
||||
// no sound
|
||||
//from.PlaySound( 0x241 );
|
||||
}
|
||||
|
||||
private static Type[] m_TinkerColorables = new Type[]
|
||||
{
|
||||
typeof( ForkLeft ), typeof( ForkRight ),
|
||||
|
|
@ -90,6 +84,12 @@ namespace Server.Engines.Craft
|
|||
return contains;
|
||||
}
|
||||
|
||||
public override void PlayCraftEffect( Mobile from )
|
||||
{
|
||||
// no sound
|
||||
//from.PlaySound( 0x241 );
|
||||
}
|
||||
|
||||
public override int PlayEndingEffect( Mobile from, bool failed, bool lostMaterial, bool toolBroken, int quality, bool makersMark, CraftItem item )
|
||||
{
|
||||
if ( toolBroken )
|
||||
|
|
|
|||
|
|
@ -185,6 +185,10 @@ namespace Server.Engines.Help
|
|||
{
|
||||
m_Entry.Sender.SendLocalizedMessage( 1008077, true, (index + 1).ToString() ); // Thank you for paging. Queue status :
|
||||
m_Entry.Sender.SendLocalizedMessage( 1008084 ); // You can reference our website at www.uo.com or contact us at support@uo.com. To cancel your page, please select the help button again and select cancel.
|
||||
|
||||
if ( m_Entry.Handler != null && m_Entry.Handler.NetState == null ) {
|
||||
m_Entry.Handler = null;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue