Modernization Fixes & Updates to Default Values (#3)

This commit is contained in:
Kamron Batman 2018-10-28 00:33:16 -07:00 • committed by GitHub
parent 445eddff68
commit dcf64091b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
768 changed files with 10507 additions and 14196 deletions

View file

@ -205,7 +205,7 @@ namespace Server.Engines.Doom
if (map == null)
return;
BaseTrap trap = null;
BaseTrap trap;
int random = Utility.Random(100);
@ -324,6 +324,7 @@ namespace Server.Engines.Doom
}
catch
{
// ignored
}
}
@ -409,9 +410,7 @@ namespace Server.Engines.Doom
TypeName = reader.ReadString();
Door = reader.ReadItem<BaseDoor>();
;
Addon = reader.ReadItem<BaseAddon>();
;
Sequence = reader.ReadItem<GauntletSpawner>();
State = (GauntletSpawnerState)reader.ReadInt();

View file

@ -521,7 +521,7 @@ namespace Server.Engines.Doom
protected override void OnTick()
{
if (m_Player == null || !(m_Player.Map == Map.Malas))
if (m_Player == null || m_Player.Map != Map.Malas)
{
Stop();
}

View file

@ -128,7 +128,7 @@ namespace Server.Engines.Doom
}
else
{
m.SendLocalizedMessage(1060001); // You throw the switch, but the mechanism cannot be engaged again so soon.
m?.SendLocalizedMessage(1060001); // You throw the switch, but the mechanism cannot be engaged again so soon.
}
}