Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -72,13 +72,8 @@ namespace Server.Engines.Quests.Doom
|
|||
public class VanquishDaemonObjective : QuestObjective
|
||||
{
|
||||
private BoneDemon m_Daemon;
|
||||
private Corpse m_CorpseWithSkull;
|
||||
|
||||
public Corpse CorpseWithSkull
|
||||
{
|
||||
get => m_CorpseWithSkull;
|
||||
set => m_CorpseWithSkull = value;
|
||||
}
|
||||
public Corpse CorpseWithSkull { get; set; }
|
||||
|
||||
public override object Message => 1050037;
|
||||
|
||||
|
|
@ -143,7 +138,7 @@ namespace Server.Engines.Quests.Doom
|
|||
from.SendLocalizedMessage( 1050035 ); // The devourer lies dead. Search his corpse to claim your prize!
|
||||
|
||||
if ( m_Daemon != null )
|
||||
m_CorpseWithSkull = m_Daemon.Corpse as Corpse;
|
||||
CorpseWithSkull = m_Daemon.Corpse as Corpse;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -153,7 +148,7 @@ namespace Server.Engines.Quests.Doom
|
|||
int version = reader.ReadEncodedInt();
|
||||
|
||||
m_Daemon = reader.ReadMobile() as BoneDemon;
|
||||
m_CorpseWithSkull = reader.ReadItem() as Corpse;
|
||||
CorpseWithSkull = reader.ReadItem() as Corpse;
|
||||
}
|
||||
|
||||
public override void ChildSerialize( GenericWriter writer )
|
||||
|
|
@ -161,7 +156,7 @@ namespace Server.Engines.Quests.Doom
|
|||
writer.WriteEncodedInt( (int) 0 ); // version
|
||||
|
||||
writer.Write( (Mobile) m_Daemon );
|
||||
writer.Write( (Item) m_CorpseWithSkull );
|
||||
writer.Write( (Item) CorpseWithSkull );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue