Cleanup some warnings.
This commit is contained in:
@@ -139,8 +139,8 @@ namespace Scripts.World.Areatriggers
|
||||
public const uint TypeWaypoint = 0;
|
||||
public const uint DataStart = 0;
|
||||
|
||||
public static Position StormforgedMonitorPosition = new Position(6963.95f, 45.65f, 818.71f, 4.948f);
|
||||
public static Position StormforgedEradictorPosition = new Position(6983.18f, 7.15f, 806.33f, 2.228f);
|
||||
public static Position StormforgedMonitorPosition = new(6963.95f, 45.65f, 818.71f, 4.948f);
|
||||
public static Position StormforgedEradictorPosition = new(6983.18f, 7.15f, 806.33f, 2.228f);
|
||||
}
|
||||
|
||||
[Script]
|
||||
|
||||
@@ -981,7 +981,7 @@ namespace Scripts.World.GameObjects
|
||||
me.UseDoorOrButton();
|
||||
if (player.GetQuestStatus(QuestIds.MissingFriends) == QuestStatus.Incomplete)
|
||||
{
|
||||
List<Creature> childrenList = new List<Creature>();
|
||||
List<Creature> childrenList = new();
|
||||
me.GetCreatureListWithEntryInGrid(childrenList, CreatureIds.CaptiveChild, SharedConst.InteractionDistance);
|
||||
foreach (Creature creature in childrenList)
|
||||
{
|
||||
|
||||
@@ -188,7 +188,7 @@ namespace Scripts.World.ItemScripts
|
||||
|
||||
public override bool OnExpire(Player player, ItemTemplate pItemProto)
|
||||
{
|
||||
List<ItemPosCount> dest = new List<ItemPosCount>();
|
||||
List<ItemPosCount> dest = new();
|
||||
InventoryResult msg = player.CanStoreNewItem(ItemConst.NullBag, ItemConst.NullSlot, dest, 39883, 1); // Cracked Egg
|
||||
if (msg == InventoryResult.Ok)
|
||||
player.StoreNewItem(dest, 39883, true, ItemEnchantmentManager.GenerateItemRandomBonusListId(39883));
|
||||
@@ -204,7 +204,7 @@ namespace Scripts.World.ItemScripts
|
||||
|
||||
public override bool OnExpire(Player player, ItemTemplate pItemProto)
|
||||
{
|
||||
List<ItemPosCount> dest = new List<ItemPosCount>();
|
||||
List<ItemPosCount> dest = new();
|
||||
InventoryResult msg = player.CanStoreNewItem(ItemConst.NullBag, ItemConst.NullSlot, dest, 44718, 1); // Ripe Disgusting Jar
|
||||
if (msg == InventoryResult.Ok)
|
||||
player.StoreNewItem(dest, 44718, true, ItemEnchantmentManager.GenerateItemRandomBonusListId(44718));
|
||||
|
||||
@@ -234,7 +234,7 @@ namespace Scripts.World.NpcSpecial
|
||||
public const uint StuffingServer = 61795;
|
||||
public const uint TurkeyServer = 61796;
|
||||
public const uint SweetPotatoesServer = 61797;
|
||||
public static Dictionary<uint, uint> ChairSpells = new Dictionary<uint, uint>()
|
||||
public static Dictionary<uint, uint> ChairSpells = new()
|
||||
{
|
||||
{ CreatureIds.TheCranberryChair, CranberryServer },
|
||||
{ CreatureIds.ThePieChair, PieServer },
|
||||
@@ -409,7 +409,7 @@ namespace Scripts.World.NpcSpecial
|
||||
};
|
||||
|
||||
//alliance run to where
|
||||
public static Position DoctorAllianceRunTo = new Position(-3742.96f, -4531.52f, 11.91f);
|
||||
public static Position DoctorAllianceRunTo = new(-3742.96f, -4531.52f, 11.91f);
|
||||
|
||||
public static Position[] DoctorHordeCoords =
|
||||
{
|
||||
@@ -422,7 +422,7 @@ namespace Scripts.World.NpcSpecial
|
||||
};
|
||||
|
||||
//horde run to where
|
||||
public static Position DoctorHordeRunTo = new Position(-1016.44f, -3508.48f, 62.96f);
|
||||
public static Position DoctorHordeRunTo = new(-1016.44f, -3508.48f, 62.96f);
|
||||
|
||||
public static uint[] AllianceSoldierId =
|
||||
{
|
||||
@@ -445,7 +445,7 @@ namespace Scripts.World.NpcSpecial
|
||||
public const uint AnimGoLaunchFirework = 3;
|
||||
public const uint ZoneMoonglade = 493;
|
||||
|
||||
public static Position omenSummonPos = new Position(7558.993f, -2839.999f, 450.0214f, 4.46f);
|
||||
public static Position omenSummonPos = new(7558.993f, -2839.999f, 450.0214f, 4.46f);
|
||||
|
||||
public const uint AuraDurationTimeLeft = 5000;
|
||||
|
||||
@@ -761,7 +761,7 @@ namespace Scripts.World.NpcSpecial
|
||||
|
||||
ObjectGuid DoSearchForTargets(ObjectGuid lastTargetGUID)
|
||||
{
|
||||
List<Creature> targets = new List<Creature>();
|
||||
List<Creature> targets = new();
|
||||
me.GetCreatureListWithEntryInGrid(targets, CreatureIds.TorchTossingTargetBunny, 60.0f);
|
||||
targets.RemoveAll(creature => creature.GetGUID() == lastTargetGUID);
|
||||
|
||||
@@ -854,7 +854,7 @@ namespace Scripts.World.NpcSpecial
|
||||
bool checkNearbyPlayers()
|
||||
{
|
||||
// Returns true if no nearby player has aura "Test Ribbon Pole Channel".
|
||||
List<Unit> players = new List<Unit>();
|
||||
List<Unit> players = new();
|
||||
var check = new UnitAuraCheck<Player>(true, SpellIds.RibbonDanceCosmetic);
|
||||
var searcher = new PlayerListSearcher(me, players, check);
|
||||
Cell.VisitWorldObjects(me, searcher, 10.0f);
|
||||
@@ -1055,8 +1055,8 @@ namespace Scripts.World.NpcSpecial
|
||||
|
||||
bool Event;
|
||||
|
||||
List<ObjectGuid> Patients = new List<ObjectGuid>();
|
||||
List<Position> Coordinates = new List<Position>();
|
||||
List<ObjectGuid> Patients = new();
|
||||
List<Position> Coordinates = new();
|
||||
}
|
||||
|
||||
[Script]
|
||||
@@ -2319,7 +2319,7 @@ namespace Scripts.World.NpcSpecial
|
||||
break;
|
||||
}
|
||||
|
||||
MoveSplineInit init = new MoveSplineInit(who);
|
||||
MoveSplineInit init = new(who);
|
||||
init.DisableTransportPathTransformations();
|
||||
init.MoveTo(x, y, z, false);
|
||||
init.SetFacing(o);
|
||||
|
||||
Reference in New Issue
Block a user