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

@ -12,21 +12,21 @@ namespace Server.Engines.Quests.Samurai
get
{
/* <I><U>Important Quest Information</U></I><BR><BR>
*
*
* During your quest, any important information that a
* <a href = "?ForceTopic31">NPC</a> gives you, will appear in a window
* such as this one. You can review the information at any time during your
* quest.<BR><BR>
*
*
* <U>Getting Help</U><BR><BR>
*
*
* Some of the text you will come across during your quest,
* will be underlined <a href = "?ForceTopic73">links to the codex of wisdom</a>,
* or online help system. You can click on the text to get detailed information
* on the underlined subject. You may also access the Codex Of Wisdom by
* pressing "F1" or by clicking on the "?" on the toolbar at the top of
* your screen.<BR><BR><U>Context Menus</U><BR><BR>
*
*
* Context menus can be called up by single left-clicking (or Shift + single
* left-click, if you changed it) on most objects or NPCs in the world.
* Nearly everything, including your own avatar will have context menus available.
@ -54,11 +54,11 @@ namespace Server.Engines.Quests.Samurai
get
{
/* To view the surrounding area, you should learn about the Radar Map.<BR><BR>
*
*
* The Radar Map (or Overhead View) can be opened by pressing 'ALT-R'
* on your keyboard. It shows your immediate surroundings from a
* bird's eye view.<BR><BR>
*
*
* Pressing ALT-R twice, will enlarge the Radar Map a little.
* Use the Radar Map often as you travel throughout the world
* to familiarize yourself with your surroundings.
@ -67,7 +67,7 @@ namespace Server.Engines.Quests.Samurai
}
}
public override bool Logged{ get{ return false; } }
public override bool Logged => false;
public RadarConversation()
{
@ -81,24 +81,24 @@ namespace Server.Engines.Quests.Samurai
get
{
/* Greetings. I am Daimyo Haochi, the Feudal Lord of this region. <BR><BR>
*
*
* Since you are here at my side, you must wish to learn the ways of the Samurai.<BR><BR>
*
* Wielding a blade is easy, anyone can grasp a sword’s hilt. Learning how to
*
* Wielding a blade is easy, anyone can grasp a sword<EFBFBD>s hilt. Learning how to
* fight properly and skillfully is to become an Armsman.<BR><BR>
*
*
* Learning how to master weapons, and even more importantly when not to use
* them, is the Way of the Warrior. The Way of the Samurai. The Code of the
* Bushido. That is why you are here. <BR><BR>
*
*
* You will go through 7 trials to prove your adherence to the Samurai code. <BR><BR>
*
*
* The first trial will test your decision making skills. You only have to enter
* the area beyond the green passageway. <BR><BR>
*
*
* Do not attempt to hurry your trials. The guards will only let you through
* to each trial when I have deemed you ready.<br><br>
*
*
* As a last resort you may use the golden teleporter tiles in each trial area
* but do so at your own risk. You may not be able to return and complete your
* trials once you have chosen to escape.
@ -124,20 +124,20 @@ namespace Server.Engines.Quests.Samurai
get
{
/* Beyond you are two troubled groups.<BR><BR>
*
*
* The Cursed Souls were once proud warriors that were ensorcelled
* by an evil mage. The mage trapped and killed them later but the spell
* has not lifted from their souls in death. <BR><BR>
*
*
* The Young Ronin were former Samurai in training who lost their way.
* They are loyal only to those with enough coin in their pocket. <BR><BR>
*
*
* You must decide who needs to be fought to the death. You may wish to
* <a href="?ForceTopic27">review combat techniques</a> as well as
* <a href = "?ForceTopic29">information on healing yourself</a>. <BR><BR>
*
*
* Return to Daimyo Haochi after you have finished with your trial.<br><br>
*
*
* If you should die during any of your trials, visit one of the Ankh Shrines
* and you will be resurrected. You should retrieve your belongings from your
* body before returning to the Daimyo or you may not be able to return to your corpse.
@ -175,7 +175,7 @@ namespace Server.Engines.Quests.Samurai
}
}
public override bool Logged{ get{ return false; } }
public override bool Logged => false;
private bool m_CursedSoul;
@ -214,9 +214,9 @@ namespace Server.Engines.Quests.Samurai
/* It is good that you rid the land of the Cursed Souls so they can
* be at peace in death. They had been cursed for doing what they
* thought was an honorable deed. Now they can have respect in their death.<BR><BR>
*
*
* I have placed a reward in your pack. <BR><BR>
*
*
* The second trial will test your courage. You only have to follow the yellow
* path to see what awaits you.
*/
@ -226,9 +226,9 @@ namespace Server.Engines.Quests.Samurai
{
/* It is good that you rid the land of those dishonorable Samurai.
* Perhaps they will learn a greater lesson in death.<BR><BR>
*
*
* I have placed a reward in your pack.<BR><BR>
*
*
* The second trial will test your courage. You only have to follow
* the yellow path to see what awaits you.
*/
@ -277,10 +277,10 @@ namespace Server.Engines.Quests.Samurai
/* Beyond the guards is a test of courage. You must face your fear and attack a
* great beast. You must choose which beast to slay for there is more than
* one beyond the courtyard doors. <BR><BR>
*
*
* The imp entered the courtyard unaware of its surroundings. The dragon came
* knowingly, hunting for the flesh of humans – A feast for the beast. <BR><BR>
*
* knowingly, hunting for the flesh of humans <EFBFBD> A feast for the beast. <BR><BR>
*
* You must rid the courtyard of these beasts but you may only choose one to
* attack. Go and choose wisely.
*/
@ -308,14 +308,14 @@ namespace Server.Engines.Quests.Samurai
{
/* You faced the dragon knowing it would be your certain death.
* That is the courage of a Samurai. <BR><BR>
*
*
* Your spirit speaks as a Samurai already. <BR><BR>
*
*
* In these lands, death is not forever. The shrines can make you whole
* again as can a helpful mage or healer. <BR><BR>
*
*
* Seek them out when you have been mortally wounded. <BR><BR>
*
*
* The next trial will test your benevolence. You only have to walk the blue path.
*/
return 1063060;
@ -324,16 +324,16 @@ namespace Server.Engines.Quests.Samurai
{
/* Fear remains in your eyes but you have learned that not all is
* what it appears to be. <BR><BR>
*
*
* You must have known the dragon would slay you instantly.
* You elected the weaker opponent though the imp did not come
* here to destroy. You have much to learn. <BR><BR>
*
*
* In these lands, death is not forever. The shrines can make you whole
* again as can a helpful mage or healer. <BR><BR>
*
*
* Seek them out when you have been mortally wounded. <BR><BR>
*
*
* The next trial will test your benevolence. You only have to walk the blue path.
*/
return 1063059;
@ -380,7 +380,7 @@ namespace Server.Engines.Quests.Samurai
{
/* A pack of wolves circle your feet. They have been injured and are in pain.
* A quick death will end their suffering.<br><br>
*
*
* Use your Honorable Execution skill or other means to finish off a wounded wolf.
* Do so and return to Daimyo Haochi.
*/
@ -405,13 +405,13 @@ namespace Server.Engines.Quests.Samurai
get
{
/* <I>Daimyo Haochi smiles as you walk up to him. Quietly he says:</I><BR><BR>
*
*
* A Samurai understands the need to help others even as he wields a blade against
* them. <BR><BR>
*
*
* You have shown compassion. A true Samurai is benevolent even to an enemy.
* For this you have been rewarded. <BR><BR>
*
*
* And now you must prove yourself again. Walk the red path.
* We will talk again later.
*/
@ -437,17 +437,17 @@ namespace Server.Engines.Quests.Samurai
{
/* <I>You approach a disheveled gypsy standing near a small shed.
* You sense that she has not eaten nor bathed in quite some time. <BR><BR>
*
*
* Around her is a large colony of mangy and diseased cats. It appears
* she has spent what little money she’s earned to feed the cats instead
* she has spent what little money she<EFBFBD>s earned to feed the cats instead
* of herself. <BR><BR>
*
*
* You have a decision to make. You can give her gold so she can buy some
* food for her animals and herself. You can also remove the necessity
* of the extra mouths to feed so she may concentrate on saving herself.</i><br><br>
*
*
* If you elect to give the gypsy money, you can do so by clicking your stack
* of gold and selecting ‘1’. Then dragging it and dropping it on the Gypsy.
* of gold and selecting <EFBFBD>1<EFBFBD>. Then dragging it and dropping it on the Gypsy.
*/
return 1063067;
}
@ -475,7 +475,7 @@ namespace Server.Engines.Quests.Samurai
* By denying the gypsy her animals, you negate the respect she is due.
* Perhaps you will have learned something to use next time a similar
* situation arises. <BR><BR>
*
*
* And now you must prove yourself again. Please retrieve my katana
* from the treasure room and return it to me.
*/
@ -485,15 +485,15 @@ namespace Server.Engines.Quests.Samurai
{
/* You showed respect by helping another out while allowing the gypsy
* what little dignity she has left. <BR><BR>
*
*
* Now she will be able to feed herself and gain enough energy to walk
* to her camp. <BR><BR>
*
* The cats are her family members– cursed by an evil mage. <BR><BR>
*
*
* The cats are her family members<EFBFBD> cursed by an evil mage. <BR><BR>
*
* Once she has enough strength to walk back to the camp, she will be
* able to undo the spell. <BR><BR>
*
*
* You have been rewarded for completing your trial. And now you must
* prove yourself again. <BR><BR>Please retrieve my katana from the
* treasure room and return it to me.
@ -544,7 +544,7 @@ namespace Server.Engines.Quests.Samurai
* you walk into the Daimyo's treasure cache. A vast fortune in gold,
* gemstones, and jewelry is stored here! Surely, the Daimyo wouldn't
* miss a single small item...<br><br>
*
*
* You spot the sword quickly amongst the cache of gemstones and other valuables.
* In one quick motion you retrieve it and stash it in your pack.</i>
*/
@ -573,7 +573,7 @@ namespace Server.Engines.Quests.Samurai
}
}
public override bool Logged{ get{ return false; } }
public override bool Logged => false;
public LostSwordConversation()
{
@ -590,12 +590,12 @@ namespace Server.Engines.Quests.Samurai
{
/* I thank you for returning this sword. However, you should admonished
* for also taking treasure that was not asked for nor given back. <BR><BR>
*
*
* Think about your actions youngling. <BR><BR>
*
*
* Your training is nearly complete. Before you have your final trial,
* you should pay homage to Samurai who came before you. <BR><BR>
*
*
* Go into the Altar Room and light a candle for them.
* Afterwards, return to me.
*/
@ -605,10 +605,10 @@ namespace Server.Engines.Quests.Samurai
{
/* Thank you for returning this sword to me and leaving the remaining
* treasure alone. <BR><BR>
*
*
* Your training is nearly complete. Before you have your final trial,
* you should pay homage to Samurai who came before you. <BR><BR>
*
*
* Go into the Altar Room and light a candle for them. Afterwards, return to me.
*/
return 1063076;
@ -654,12 +654,12 @@ namespace Server.Engines.Quests.Samurai
get
{
/* You have done well young Samurai. There is but one thing left to do. <BR><BR>
*
*
* In the final room is the holding cell containing young Ninjas who came to
* take my life. They were caught and placed in my custody. <BR><BR>
*
*
* Take care of these miscreants and show them where your loyalty lies. <BR><BR>
*
*
* This is your final act as a Samurai in training.
*/
return 1063079;
@ -684,16 +684,16 @@ namespace Server.Engines.Quests.Samurai
{
/* You have proven yourself young one. You will continue to improve as your skills
* are honed with age. <BR><BR>
*
*
* Now it is time for you to explore the lands. Beyond this path lies Zento
* City, your future home. On these grounds you will find a golden oval object
* known as a Moongate, step through it and you'll find yourself in Zento.<BR><BR>
*
*
* You may want to visit Ansella Gryen when you arrive. <BR><BR>
*
*
* You have learned the ways. You are an honorable warrior, a Samurai in
* the highest regards. <BR><BR>
*
*
* Please accept the gifts I have placed in your pack. You have earned them.
* Farewell for now.
*/
@ -710,4 +710,4 @@ namespace Server.Engines.Quests.Samurai
System.Complete();
}
}
}
}

View file

@ -64,14 +64,14 @@ namespace Server.Engines.Quests.Samurai
{
/* <i>As you enter the courtyard you notice a faded sign.
* It reads: </i><br><br>
*
*
* Welcome to your new home, Samurai.<br><br>
*
*
* Though your skills are only a shadow of what they can be some day,
* you must prove your adherence to the code of the Bushido.<br><br>
*
*
* Seek Daimyo Haochi for guidance.<br><br>
*
*
* <i>Will you accept the challenge?</i>
*/
return 1063023;
@ -79,7 +79,7 @@ namespace Server.Engines.Quests.Samurai
}
public override TimeSpan RestartDelay{ get{ return TimeSpan.MaxValue; } }
public override bool IsTutorial{ get{ return true; } }
public override bool IsTutorial => true;
public override int Picture{ get{ return 0x15D7; } }
@ -148,4 +148,4 @@ namespace Server.Engines.Quests.Samurai
return false;
}
}
}
}

View file

@ -6,11 +6,12 @@ namespace Server.Engines.Quests.Samurai
{
public class HaochisKatanaGenerator : Item
{
public override string DefaultName => "Haochi's katana generator";
[Constructible]
public HaochisKatanaGenerator() : base( 0x1B7B )
{
Visible = false;
Name = "Haochi's katana generator";
Movable = false;
}
@ -77,4 +78,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadEncodedInt();
}
}
}
}

View file

@ -20,7 +20,7 @@ namespace Server.Engines.Quests.Samurai
{
}
public override bool IsDecoContainer{ get{ return false; } }
public override bool IsDecoContainer => false;
private void GenerateTreasure()
{
@ -102,4 +102,4 @@ namespace Server.Engines.Quests.Samurai
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( GenerateTreasure ) );
}
}
}
}

View file

@ -7,10 +7,11 @@ namespace Server.Engines.Quests.Samurai
[CorpseName( "a cursed soul corpse" )]
public class CursedSoul : BaseCreature
{
public override string DefaultName => "a cursed soul";
[Constructible]
public CursedSoul() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a cursed soul";
Body = 3;
BaseSoundID = 471;
@ -67,4 +68,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadEncodedInt();
}
}
}
}

View file

@ -5,10 +5,11 @@ namespace Server.Engines.Quests.Samurai
{
public class DeadlyImp : BaseCreature
{
public override string DefaultName => "a deadly imp";
[Constructible]
public DeadlyImp() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a deadly imp";
Body = 74;
BaseSoundID = 422;
Hue = 0x66A;
@ -77,4 +78,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadEncodedInt();
}
}
}
}

View file

@ -5,10 +5,11 @@ namespace Server.Engines.Quests.Samurai
{
public class DiseasedCat : BaseCreature
{
public override string DefaultName => "a diseased cat";
[Constructible]
public DiseasedCat() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a diseased cat";
Body = 0xC9;
Hue = Utility.RandomAnimalHue();
BaseSoundID = 0x69;
@ -33,7 +34,7 @@ namespace Server.Engines.Quests.Samurai
VirtualArmor = 8;
}
public override bool AlwaysMurderer{ get{ return true; } }
public override bool AlwaysMurderer => true;
public DiseasedCat( Serial serial ) : base( serial )
{
@ -51,9 +52,6 @@ namespace Server.Engines.Quests.Samurai
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
if( Name == "a deseased cat" )
Name = "a diseased cat";
}
}
}
}

View file

@ -5,10 +5,11 @@ namespace Server.Engines.Quests.Samurai
{
public class FierceDragon : BaseCreature
{
public override string DefaultName => "a fierce dragon";
[Constructible]
public FierceDragon() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Name = "a fierce dragon";
Body = 103;
BaseSoundID = 362;
@ -99,4 +100,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadEncodedInt();
}
}
}
}

View file

@ -8,6 +8,8 @@ namespace Server.Engines.Quests.Samurai
{
public class Haochi : BaseQuester
{
public override string DefaultName => "Daimyo Haochi";
[Constructible]
public Haochi() : base( "the Honorable Samurai Legend" )
{
@ -21,7 +23,6 @@ namespace Server.Engines.Quests.Samurai
Female = false;
Body = 0x190;
Name = "Daimyo Haochi";
}
public override void InitOutfit()
@ -179,4 +180,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadInt();
}
}
}
}

View file

@ -6,11 +6,12 @@ namespace Server.Engines.Quests.Samurai
[CorpseName( "an injured wolf corpse" )]
public class InjuredWolf : BaseCreature
{
public override string DefaultName => "an injured wolf";
[Constructible]
public InjuredWolf() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Body = 0xE1;
Name = "an injured wolf";
BaseSoundID = 0xE5;
Hue = Utility.RandomAnimalHue();
@ -56,4 +57,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadEncodedInt();
}
}
}
}

View file

@ -8,6 +8,8 @@ namespace Server.Engines.Quests.Samurai
{
public class Relnia : BaseQuester
{
public override string DefaultName => "Disheveled Relnia";
[Constructible]
public Relnia() : base( "the Gypsy" )
{
@ -21,7 +23,6 @@ namespace Server.Engines.Quests.Samurai
Female = true;
Body = 0x191;
Name = "Disheveled Relnia";
}
public override void InitOutfit()
@ -93,4 +94,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadEncodedInt();
}
}
}
}

View file

@ -8,6 +8,8 @@ namespace Server.Engines.Quests.Samurai
[CorpseName( "a young ninja's corpse" )]
public class YoungNinja : BaseCreature
{
public override string DefaultName => "a young ninja";
[Constructible]
public YoungNinja() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
@ -16,7 +18,6 @@ namespace Server.Engines.Quests.Samurai
Hue = Utility.RandomSkinHue();
Body = 0x190;
Name = "a young ninja";
Utility.AssignRandomHair( this );
Utility.AssignRandomFacialHair( this );
@ -39,7 +40,7 @@ namespace Server.Engines.Quests.Samurai
SetSkill( SkillName.Tactics, 50.0 );
}
public override bool AlwaysMurderer{ get{ return true; } }
public override bool AlwaysMurderer => true;
public YoungNinja( Serial serial ) : base( serial )
{
@ -59,4 +60,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadEncodedInt();
}
}
}
}

View file

@ -8,6 +8,8 @@ namespace Server.Engines.Quests.Samurai
[CorpseName( "a young ronin's corpse" )]
public class YoungRonin : BaseCreature
{
public override string DefaultName => "a young ronin";
[Constructible]
public YoungRonin() : base( AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
@ -16,7 +18,6 @@ namespace Server.Engines.Quests.Samurai
Hue = Utility.RandomSkinHue();
Body = 0x190;
Name = "a young ronin";
Utility.AssignRandomHair( this );
Utility.AssignRandomFacialHair( this );
@ -45,7 +46,7 @@ namespace Server.Engines.Quests.Samurai
SetSkill( SkillName.Tactics, 50.0 );
}
public override bool AlwaysMurderer{ get{ return true; } }
public override bool AlwaysMurderer => true;
public YoungRonin( Serial serial ) : base( serial )
{
@ -65,4 +66,4 @@ namespace Server.Engines.Quests.Samurai
int version = reader.ReadEncodedInt();
}
}
}
}