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
|
|
@ -2,62 +2,54 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Engines.Quests.Doom
|
||||
{
|
||||
public class AcceptConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1050027;
|
||||
public class AcceptConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1050027;
|
||||
|
||||
public AcceptConversation()
|
||||
{
|
||||
}
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective(new CollectBonesObjective());
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
System.AddObjective( new CollectBonesObjective() );
|
||||
}
|
||||
}
|
||||
public class VanquishDaemonConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1050021;
|
||||
|
||||
public class VanquishDaemonConversation : QuestConversation
|
||||
{
|
||||
public override object Message => 1050021;
|
||||
public override void OnRead()
|
||||
{
|
||||
Victoria victoria = ((TheSummoningQuest)System).Victoria;
|
||||
|
||||
public VanquishDaemonConversation()
|
||||
{
|
||||
}
|
||||
if (victoria == null)
|
||||
{
|
||||
System.From.SendMessage("Internal error: unable to find Victoria. Quest unable to continue.");
|
||||
System.Cancel();
|
||||
}
|
||||
else
|
||||
{
|
||||
SummoningAltar altar = victoria.Altar;
|
||||
|
||||
public override void OnRead()
|
||||
{
|
||||
Victoria victoria = ((TheSummoningQuest)System).Victoria;
|
||||
if (altar == null)
|
||||
{
|
||||
System.From.SendMessage("Internal error: unable to find summoning altar. Quest unable to continue.");
|
||||
System.Cancel();
|
||||
}
|
||||
else if (altar.Daemon == null || !altar.Daemon.Alive)
|
||||
{
|
||||
BoneDemon daemon = new BoneDemon();
|
||||
|
||||
if ( victoria == null )
|
||||
{
|
||||
System.From.SendMessage( "Internal error: unable to find Victoria. Quest unable to continue." );
|
||||
System.Cancel();
|
||||
}
|
||||
else
|
||||
{
|
||||
SummoningAltar altar = victoria.Altar;
|
||||
daemon.MoveToWorld(altar.Location, altar.Map);
|
||||
altar.Daemon = daemon;
|
||||
|
||||
if ( altar == null )
|
||||
{
|
||||
System.From.SendMessage( "Internal error: unable to find summoning altar. Quest unable to continue." );
|
||||
System.Cancel();
|
||||
}
|
||||
else if ( altar.Daemon == null || !altar.Daemon.Alive )
|
||||
{
|
||||
BoneDemon daemon = new BoneDemon();
|
||||
System.AddObjective(new VanquishDaemonObjective(daemon));
|
||||
}
|
||||
else
|
||||
{
|
||||
victoria.SayTo(System.From, "The devourer has already been summoned.");
|
||||
|
||||
daemon.MoveToWorld( altar.Location, altar.Map );
|
||||
altar.Daemon = daemon;
|
||||
|
||||
System.AddObjective( new VanquishDaemonObjective( daemon ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
victoria.SayTo( System.From, "The devourer has already been summoned." );
|
||||
|
||||
((TheSummoningQuest)System).WaitForSummon = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
((TheSummoningQuest)System).WaitForSummon = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue