Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -3,88 +3,90 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.Quests.Hag
|
||||
{
|
||||
public class WitchApprenticeQuest : QuestSystem
|
||||
{
|
||||
private static Type[] m_TypeReferenceTable = {
|
||||
typeof( FindApprenticeObjective ),
|
||||
typeof( FindGrizeldaAboutMurderObjective ),
|
||||
typeof( KillImpsObjective ),
|
||||
typeof( FindZeefzorpulObjective ),
|
||||
typeof( ReturnRecipeObjective ),
|
||||
typeof( FindIngredientObjective ),
|
||||
typeof( ReturnIngredientsObjective ),
|
||||
typeof( DontOfferConversation ),
|
||||
typeof( AcceptConversation ),
|
||||
typeof( HagDuringCorpseSearchConversation ),
|
||||
typeof( ApprenticeCorpseConversation ),
|
||||
typeof( MurderConversation ),
|
||||
typeof( HagDuringImpSearchConversation ),
|
||||
typeof( ImpDeathConversation ),
|
||||
typeof( ZeefzorpulConversation ),
|
||||
typeof( RecipeConversation ),
|
||||
typeof( HagDuringIngredientsConversation ),
|
||||
typeof( BlackheartFirstConversation ),
|
||||
typeof( BlackheartNoPirateConversation ),
|
||||
typeof( BlackheartPirateConversation ),
|
||||
typeof( EndConversation ),
|
||||
typeof( RecentlyFinishedConversation )
|
||||
};
|
||||
public class WitchApprenticeQuest : QuestSystem
|
||||
{
|
||||
private static Type[] m_TypeReferenceTable =
|
||||
{
|
||||
typeof(FindApprenticeObjective),
|
||||
typeof(FindGrizeldaAboutMurderObjective),
|
||||
typeof(KillImpsObjective),
|
||||
typeof(FindZeefzorpulObjective),
|
||||
typeof(ReturnRecipeObjective),
|
||||
typeof(FindIngredientObjective),
|
||||
typeof(ReturnIngredientsObjective),
|
||||
typeof(DontOfferConversation),
|
||||
typeof(AcceptConversation),
|
||||
typeof(HagDuringCorpseSearchConversation),
|
||||
typeof(ApprenticeCorpseConversation),
|
||||
typeof(MurderConversation),
|
||||
typeof(HagDuringImpSearchConversation),
|
||||
typeof(ImpDeathConversation),
|
||||
typeof(ZeefzorpulConversation),
|
||||
typeof(RecipeConversation),
|
||||
typeof(HagDuringIngredientsConversation),
|
||||
typeof(BlackheartFirstConversation),
|
||||
typeof(BlackheartNoPirateConversation),
|
||||
typeof(BlackheartPirateConversation),
|
||||
typeof(EndConversation),
|
||||
typeof(RecentlyFinishedConversation)
|
||||
};
|
||||
|
||||
public override Type[] TypeReferenceTable => m_TypeReferenceTable;
|
||||
private static Point3D[] m_ZeefzorpulLocations =
|
||||
{
|
||||
new Point3D(1226, 1573, 0),
|
||||
new Point3D(1929, 1148, 0),
|
||||
new Point3D(1366, 2723, 0),
|
||||
new Point3D(1675, 2984, 0),
|
||||
new Point3D(2177, 3367, 10),
|
||||
new Point3D(1171, 3594, 0),
|
||||
new Point3D(1010, 2667, 5),
|
||||
new Point3D(1591, 2156, 5),
|
||||
new Point3D(2592, 464, 60),
|
||||
new Point3D(474, 1654, 0),
|
||||
new Point3D(897, 2411, 0),
|
||||
new Point3D(1471, 2505, 5),
|
||||
new Point3D(1257, 872, 16),
|
||||
new Point3D(2581, 1118, 0),
|
||||
new Point3D(2513, 1102, 0),
|
||||
new Point3D(1608, 3371, 0),
|
||||
new Point3D(4687, 1179, 0),
|
||||
new Point3D(3704, 2196, 20),
|
||||
new Point3D(3346, 572, 0),
|
||||
new Point3D(569, 1309, 0)
|
||||
};
|
||||
|
||||
public override object Name => 1055042;
|
||||
public WitchApprenticeQuest(PlayerMobile from) : base(from)
|
||||
{
|
||||
}
|
||||
|
||||
public override object OfferMessage => 1055001;
|
||||
// Serialization
|
||||
public WitchApprenticeQuest()
|
||||
{
|
||||
}
|
||||
|
||||
public override TimeSpan RestartDelay => TimeSpan.FromMinutes( 5.0 );
|
||||
public override bool IsTutorial => false;
|
||||
public override Type[] TypeReferenceTable => m_TypeReferenceTable;
|
||||
|
||||
public override int Picture => 0x15D3;
|
||||
public override object Name => 1055042;
|
||||
|
||||
public WitchApprenticeQuest( PlayerMobile from ) : base( from )
|
||||
{
|
||||
}
|
||||
public override object OfferMessage => 1055001;
|
||||
|
||||
// Serialization
|
||||
public WitchApprenticeQuest()
|
||||
{
|
||||
}
|
||||
public override TimeSpan RestartDelay => TimeSpan.FromMinutes(5.0);
|
||||
public override bool IsTutorial => false;
|
||||
|
||||
public override void Accept()
|
||||
{
|
||||
base.Accept();
|
||||
public override int Picture => 0x15D3;
|
||||
|
||||
AddConversation( new AcceptConversation() );
|
||||
}
|
||||
public override void Accept()
|
||||
{
|
||||
base.Accept();
|
||||
|
||||
private static Point3D[] m_ZeefzorpulLocations = {
|
||||
new Point3D( 1226, 1573, 0 ),
|
||||
new Point3D( 1929, 1148, 0 ),
|
||||
new Point3D( 1366, 2723, 0 ),
|
||||
new Point3D( 1675, 2984, 0 ),
|
||||
new Point3D( 2177, 3367, 10 ),
|
||||
new Point3D( 1171, 3594, 0 ),
|
||||
new Point3D( 1010, 2667, 5 ),
|
||||
new Point3D( 1591, 2156, 5 ),
|
||||
new Point3D( 2592, 464, 60 ),
|
||||
new Point3D( 474, 1654, 0 ),
|
||||
new Point3D( 897, 2411, 0 ),
|
||||
new Point3D( 1471, 2505, 5 ),
|
||||
new Point3D( 1257, 872, 16 ),
|
||||
new Point3D( 2581, 1118, 0 ),
|
||||
new Point3D( 2513, 1102, 0 ),
|
||||
new Point3D( 1608, 3371, 0 ),
|
||||
new Point3D( 4687, 1179, 0 ),
|
||||
new Point3D( 3704, 2196, 20 ),
|
||||
new Point3D( 3346, 572, 0 ),
|
||||
new Point3D( 569, 1309, 0 )
|
||||
};
|
||||
AddConversation(new AcceptConversation());
|
||||
}
|
||||
|
||||
public static Point3D RandomZeefzorpulLocation()
|
||||
{
|
||||
int index = Utility.Random( m_ZeefzorpulLocations.Length );
|
||||
public static Point3D RandomZeefzorpulLocation()
|
||||
{
|
||||
int index = Utility.Random(m_ZeefzorpulLocations.Length);
|
||||
|
||||
return m_ZeefzorpulLocations[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
return m_ZeefzorpulLocations[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue