Revert "Updates Packets & Randomizer (#43)" (#61)

This reverts commit 179cb50557.
This commit is contained in:
Kamron Batman 2019-11-11 08:46:11 -08:00 • committed by GitHub
parent 179cb50557
commit c2ecc76457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
588 changed files with 16260 additions and 10926 deletions

View file

@ -1,12 +1,13 @@
using System;
using Server.Items;
using Server.Mobiles;
using Server.Network;
namespace Server.Engines.Quests.Necro
{
public class KronusScroll : QuestItem
{
private static Rectangle2D m_WellOfTearsArea = new Rectangle2D(2080, 1346, 10, 10);
private static readonly Rectangle2D m_WellOfTearsArea = new Rectangle2D(2080, 1346, 10, 10);
private static readonly Map m_WellOfTearsMap = Map.Malas;
[Constructible]
@ -133,7 +134,9 @@ namespace Server.Engines.Quests.Necro
int hue = Utility.RandomList(0x481, 0x482, 0x489, 0x497, 0x66D);
Effects.SendMovingEffect(from, to, map, 0x36D4, 0, 0, false, true, hue);
Effects.SendPacket(from, map,
new HuedEffect(EffectType.Moving, Serial.Zero, Serial.Zero, 0x36D4, from, to, 0, 0, false, true,
hue, 0));
}
}
@ -152,4 +155,4 @@ namespace Server.Engines.Quests.Necro
}
}
}
}
}

View file

@ -65,8 +65,8 @@ namespace Server.Engines.Quests.Necro
Maabus.Delete();
Maabus = null;
foreach (AddonComponent addonComponent in Components)
(addonComponent as MaabusCoffinComponent)?.TurnToFull();
foreach (MaabusCoffinComponent c in Components)
c.TurnToFull();
}
public override void Serialize(GenericWriter writer)
@ -151,4 +151,4 @@ namespace Server.Engines.Quests.Necro
m_EmptyItemID = reader.ReadInt();
}
}
}
}

View file

@ -258,7 +258,7 @@ namespace Server.Engines.Quests.Necro
public class FindWellOfTearsObjective : QuestObjective
{
private static Rectangle2D m_WellOfTearsArea = new Rectangle2D(2080, 1346, 10, 10);
private static readonly Rectangle2D m_WellOfTearsArea = new Rectangle2D(2080, 1346, 10, 10);
private bool m_Inside;