Add DefaultName property to Mobiles & Items (#18)

This commit is contained in:
Kamron Batman 2018-08-09 17:18:41 -07:00 • committed by GitHub
parent b06f5bf60d
commit 8ee42c8ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
713 changed files with 5112 additions and 4987 deletions

View file

@ -410,7 +410,7 @@ namespace Server.Engines.CannedEvil
private ScrollofTranscendence CreateRandomSoT( bool felucca )
{
int level = Utility.RandomMinMax( 1, 5 );
if ( felucca )
level += 5;
@ -427,7 +427,7 @@ namespace Server.Engines.CannedEvil
killer.SendLocalizedMessage( 1094936 ); // You have received a Scroll of Transcendence!
else
killer.SendLocalizedMessage( 1049524 ); // You have received a scroll of power!
if ( killer.Alive )
killer.AddToBackpack( scroll );
else
@ -437,13 +437,13 @@ namespace Server.Engines.CannedEvil
else
killer.AddToBackpack( scroll );
}
// Justice reward
PlayerMobile pm = (PlayerMobile)killer;
for (int j = 0; j < pm.JusticeProtectors.Count; ++j)
{
Mobile prot = (Mobile)pm.JusticeProtectors[j];
if ( prot.Map != killer.Map || prot.Kills >= 5 || prot.Criminal || !JusticeVirtue.CheckMapRegion( killer, prot ) )
continue;
@ -463,7 +463,7 @@ namespace Server.Engines.CannedEvil
prot.SendLocalizedMessage( 1049368 ); // You have been rewarded for your dedication to Justice!
SpecialScroll scrollDupe = Activator.CreateInstance( scroll.GetType() ) as SpecialScroll;
if ( scrollDupe != null )
{
scrollDupe.Skill = scroll.Skill;
@ -547,7 +547,7 @@ namespace Server.Engines.CannedEvil
{
PlayerMobile pm = (PlayerMobile)killer;
double random = Utility.Random ( 49 );
if ( random <= 24 )
{
ScrollofTranscendence SoTF = CreateRandomSoT( true );
@ -1258,7 +1258,7 @@ namespace Server.Engines.CannedEvil
public class ChampionSpawnRegion : BaseRegion
{
public override bool YoungProtected { get { return false; } }
public override bool YoungProtected => false;
private ChampionSpawn m_Spawn;

View file

@ -78,7 +78,7 @@ namespace Server.Engines.CannedEvil
} ),
new ChampionSpawnInfo( "Unholy Terror", typeof( Neira ), new string[]{ "Scourge", "Punisher", "Nemesis" }, new Type[][] // Unholy Terror
{ // Unholy Terror
(Core.AOS ?
(Core.AOS ?
new Type[]{ typeof( Bogle ), typeof( Ghoul ), typeof( Shade ), typeof( Spectre ), typeof( Wraith ) } // Level 1 (Pre-AoS)
: new Type[]{ typeof( Ghoul ), typeof( Shade ), typeof( Spectre ), typeof( Wraith ) } ), // Level 1
@ -98,7 +98,7 @@ namespace Server.Engines.CannedEvil
new Type[]{ typeof( Pixie ), typeof( ShadowWisp ) },
new Type[]{ typeof( Centaur ), typeof( MLDryad ) },
new Type[]{ typeof( Satyr ), typeof( CuSidhe ) },
new Type[]{ typeof( FerelTreefellow ), typeof( RagingGrizzlyBear ) }
new Type[]{ typeof( FeralTreefellow ), typeof( RagingGrizzlyBear ) }
} ),
new ChampionSpawnInfo( "The Corrupt", typeof( Ilhenir ), new string[]{ "Cleanser", "Expunger", "Depurator" } , new Type[][]
{ // Unholy Terror
@ -119,4 +119,4 @@ namespace Server.Engines.CannedEvil
return m_Table[v];
}
}
}
}