misc branch sync
This commit is contained in:
parent
6b65990cc6
commit
f61af43f94
5 changed files with 95 additions and 24 deletions
|
|
@ -40,21 +40,7 @@ namespace Server.Engines.MLQuests
|
|||
m_ForceMap = forceMap;
|
||||
|
||||
if ( MLQuestSystem.Debug )
|
||||
{
|
||||
bool found = false;
|
||||
|
||||
foreach ( Region r in Region.Regions )
|
||||
{
|
||||
if ( r.Name == region && ( forceMap == null || r.Map == forceMap ) )
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( !found )
|
||||
Console.WriteLine( "Warning: QuestArea region '{0}' does not exist (ForceMap = {1})", region, ( forceMap == null ) ? "-null-" : forceMap.ToString() );
|
||||
}
|
||||
ValidationQueue<QuestArea>.Add( this );
|
||||
}
|
||||
|
||||
public bool Contains( Mobile mob )
|
||||
|
|
@ -69,5 +55,23 @@ namespace Server.Engines.MLQuests
|
|||
|
||||
return reg.IsPartOf( m_RegionName );
|
||||
}
|
||||
|
||||
// Debug method
|
||||
public void Validate()
|
||||
{
|
||||
bool found = false;
|
||||
|
||||
foreach ( Region r in Region.Regions )
|
||||
{
|
||||
if ( r.Name == m_RegionName && ( m_ForceMap == null || r.Map == m_ForceMap ) )
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( !found )
|
||||
Console.WriteLine( "Warning: QuestArea region '{0}' does not exist (ForceMap = {1})", m_RegionName, ( m_ForceMap == null ) ? "-null-" : m_ForceMap.ToString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -286,14 +286,23 @@ namespace Server.Engines.Plants
|
|||
}
|
||||
else
|
||||
{
|
||||
if ( m_PlantType == PlantType.SugarCanes )
|
||||
list.Add ( 1094703 ); // Decorative Sugar Canes
|
||||
else if ( title == 1080528 )
|
||||
// a decorative ~2_TYPE~
|
||||
list.Add( 1080539, string.Format( "#{0}\t#{1}", title, typeInfo.Name ) );
|
||||
if ( title == 1080528 ) // peculiar
|
||||
{
|
||||
if ( m_PlantHue != PlantHue.None )
|
||||
// a decorative [bright] ~1_COLOR~ ~2_TYPE~
|
||||
list.Add( hueInfo.IsBright() ? 1074267 : 1070973, string.Format( "#{0}\t{1}", hueInfo.Name, ( m_PlantType == PlantType.SugarCanes ) ? "Sugar Canes" : string.Format( "#{0}", typeInfo.Name ) ) );
|
||||
else if ( m_PlantType == PlantType.SugarCanes )
|
||||
// Decorative Sugar Canes
|
||||
list.Add( 1094703 );
|
||||
else
|
||||
// a decorative ~2_TYPE~
|
||||
list.Add( 1080539, string.Format( "#{0}\t#{1}", title, typeInfo.Name ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
// a decorative [bright] ~1_COLOR~ ~2_TYPE~
|
||||
list.Add( hueInfo.IsBright() ? 1074267 : 1070973, string.Format( "#{0}\t#{1}", title, typeInfo.Name ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ( m_PlantStatus >= PlantStatus.Seed )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue