From 04b4cfe75b74765613a2df28b6c07eaf02dfda59 Mon Sep 17 00:00:00 2001
From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com>
Date: Fri, 14 Sep 2018 08:48:39 -0700
Subject: [PATCH] Removes implicit types
---
Scripts/Accounting/AccountHandler.cs | 4 +-
Scripts/Commands/Add.cs | 6 +-
Scripts/Commands/Batch.cs | 2 +-
Scripts/Commands/Docs.cs | 2 +-
Scripts/Commands/GenCategorization.cs | 2 +-
Scripts/Commands/Generic/Commands/Commands.cs | 48 +--
.../Commands/Generic/Commands/DesignInsert.cs | 2 +-
.../Commands/Generic/Commands/Interface.cs | 2 +-
.../Compilers/ConditionalCompiler.cs | 12 +-
.../Extensions/Compilers/DistinctCompiler.cs | 12 +-
.../Extensions/Compilers/SortCompiler.cs | 4 +-
.../Implementors/AreaCommandImplementor.cs | 2 +-
.../ContainedCommandImplementor.cs | 2 +-
.../Implementors/FacetCommandImplementor.cs | 2 +-
.../Implementors/GlobalCommandImplementor.cs | 2 +-
.../IPAddressCommandImplementor.cs | 2 +-
.../Implementors/MultiCommandImplementor.cs | 2 +-
.../Implementors/OnlineCommandImplementor.cs | 2 +-
.../Implementors/RangeCommandImplementor.cs | 2 +-
.../Implementors/RegionCommandImplementor.cs | 2 +-
.../Implementors/ScreenCommandImplementor.cs | 2 +-
.../Implementors/SelfCommandImplementor.cs | 2 +-
.../Implementors/SerialCommandImplementor.cs | 2 +-
.../Implementors/SingleCommandImplementor.cs | 2 +-
Scripts/Commands/Handlers.cs | 2 +-
Scripts/Commands/Logging.cs | 2 +-
Scripts/Commands/Profiling.cs | 4 +-
Scripts/Commands/Properties.cs | 4 +-
Scripts/Commands/SignParser.cs | 12 +-
.../Engines/BulkOrders/Books/BOBFilterGump.cs | 24 +-
Scripts/Engines/BulkOrders/LargeSmithBOD.cs | 2 +-
Scripts/Engines/BulkOrders/LargeTailorBOD.cs | 2 +-
Scripts/Engines/BulkOrders/Rewards.cs | 274 +++++++++---------
Scripts/Engines/BulkOrders/SmallSmithBOD.cs | 2 +-
Scripts/Engines/BulkOrders/SmallTailorBOD.cs | 2 +-
.../Engines/CannedEvil/ChampionSpawnType.cs | 94 +++---
Scripts/Engines/ConPVP/Arena.cs | 24 +-
Scripts/Engines/ConPVP/DuelContext.cs | 16 +-
Scripts/Engines/ConPVP/Ladder.cs | 8 +-
Scripts/Engines/ConPVP/RulesetLayout.cs | 62 ++--
Scripts/Engines/Craft/Core/CraftItem.cs | 52 ++--
Scripts/Engines/Craft/DefInscription.cs | 2 +-
Scripts/Engines/Craft/DefTailoring.cs | 2 +-
Scripts/Engines/Craft/DefTinkering.cs | 2 +-
.../Doom/LeverPuzzle/LeverPuzzleController.cs | 48 +--
Scripts/Engines/Ethics/Core/Ethic.cs | 2 +-
Scripts/Engines/Factions/Core/Faction.cs | 8 +-
.../Engines/Factions/Core/MerchantTitles.cs | 2 +-
Scripts/Engines/Factions/Core/Town.cs | 2 +-
.../Factions/Definitions/VendorDefinition.cs | 2 +-
Scripts/Engines/Factions/Gumps/FinanceGump.cs | 2 +-
.../Instances/Factions/CouncilOfMages.cs | 8 +-
.../Factions/Instances/Factions/Minax.cs | 8 +-
.../Instances/Factions/Shadowlords.cs | 8 +-
.../Instances/Factions/TrueBritannians.cs | 8 +-
.../Mobiles/Guards/BaseFactionGuard.cs | 4 +-
Scripts/Engines/Harvest/Fishing.cs | 20 +-
Scripts/Engines/Harvest/Lumberjacking.cs | 18 +-
Scripts/Engines/Harvest/Mining.cs | 28 +-
Scripts/Engines/Help/HelpGump.cs | 2 +-
Scripts/Engines/Help/PageQueue.cs | 2 +-
Scripts/Engines/Help/PageQueueGump.cs | 2 +-
Scripts/Engines/Help/StuckMenu.cs | 20 +-
.../Engines/MLQuests/Definitions/Bedlam.cs | 2 +-
.../Engines/MLQuests/Definitions/Heartwood.cs | 168 +++++------
.../Engines/MLQuests/Definitions/Heritage.cs | 6 +-
.../Engines/MLQuests/Definitions/Ilshenar.cs | 12 +-
.../MLQuests/Definitions/MistakenIdentity.cs | 6 +-
.../MLQuests/Definitions/NewHavenTraining.cs | 2 +-
.../Engines/MLQuests/Definitions/Sanctuary.cs | 30 +-
.../MLQuests/Definitions/Spellweaving.cs | 12 +-
.../MLQuests/Items/CraftmansSatchel.cs | 2 +-
Scripts/Engines/MLQuests/MLQuestSystem.cs | 6 +-
Scripts/Engines/MyRunUO/LayerComparer.cs | 2 +-
Scripts/Engines/MyRunUO/MyRunUO.cs | 2 +-
Scripts/Engines/Plants/MainPlantGump.cs | 2 +-
.../Engines/Plants/MiscItems/GreenThorns.cs | 12 +-
Scripts/Engines/Plants/PlantBowl.cs | 2 +-
Scripts/Engines/Plants/PlantResources.cs | 2 +-
Scripts/Engines/Plants/PlantType.cs | 2 +-
.../AmbitiousQueenQuest.cs | 2 +-
.../Quests/Collector/CollectorQuest.cs | 2 +-
.../Quests/Collector/Items/ImageType.cs | 2 +-
.../Quests/Collector/Items/Obsidian.cs | 2 +-
.../Quests/Core/Items/EnchantedSextant.cs | 8 +-
Scripts/Engines/Quests/Core/QuestSystem.cs | 2 +-
.../Quests/Dark Tides/Conversations.cs | 6 +-
.../Quests/Dark Tides/DarkTidesQuest.cs | 2 +-
.../Engines/Quests/Dark Tides/Objectives.cs | 6 +-
.../EminosUndertakingQuest.cs | 2 +-
.../Mobiles/HiddenFigure.cs | 2 +-
.../Haochi's Trials/HaochisTrialsQuest.cs | 2 +-
.../Solen Matriarch/SolenMatriarchQuest.cs | 2 +-
.../Study of the Solen Hive/NestArea.cs | 2 +-
.../StudyOfSolenQuest.cs | 2 +-
.../TerribleHatchlingsQuest.cs | 2 +-
.../Quests/The Summoning/Mobiles/Chyloth.cs | 2 +-
.../Quests/The Summoning/TheSummoningQuest.cs | 2 +-
.../Quests/Uzeraan Turmoil/Conversations.cs | 14 +-
.../Uzeraan Turmoil/UzeraanTurmoilQuest.cs | 2 +-
.../Quests/Witch Apprentice/Ingredient.cs | 2 +-
.../Quests/Witch Apprentice/Objectives.cs | 2 +-
.../Witch Apprentice/WitchApprenticeQuest.cs | 4 +-
.../Reports/Objects/Staffing/StaffHistory.cs | 2 +-
.../Reports/Rendering/BarGraphRenderer.cs | 8 +-
.../BasePigmentsOfTokuno.cs | 6 +-
.../Treasures of Tokuno/GreaterArtifacts.cs | 42 +--
.../Treasures of Tokuno/LesserArtifacts.cs | 26 +-
.../Treasures of Tokuno/TreasuresOfTokuno.cs | 26 +-
.../Engines/VeteranRewards/RewardSystem.cs | 28 +-
Scripts/Gumps/AddDoorGump.cs | 2 +-
Scripts/Gumps/AddGump.cs | 2 +-
Scripts/Gumps/AdminGump.cs | 4 +-
.../Guilds/New Guild System/DiplomacyGump.cs | 2 +-
.../New Guild System/GuildRosterGump.cs | 2 +-
Scripts/Gumps/HouseGumpAOS.cs | 8 +-
Scripts/Gumps/PlayerVendorGumps.cs | 28 +-
Scripts/Gumps/PolymorphGump.cs | 4 +-
Scripts/Gumps/Props/PropsGump.cs | 10 +-
Scripts/Gumps/Props/SetBodyGump.cs | 2 +-
Scripts/Gumps/Props/SetCustomEnumGump.cs | 2 +-
Scripts/Gumps/SkillsGump.cs | 16 +-
.../Halloween/2012/Engines/PlayerZombies.cs | 2 +-
Scripts/Items/Addons/AddonComponent.cs | 2 +-
Scripts/Items/Addons/FlourMillEastAddon.cs | 10 +-
Scripts/Items/Addons/FlourMillSouthAddon.cs | 10 +-
Scripts/Items/Aquarium/Aquarium.cs | 4 +-
.../Champion Artifacts/Decorative/Pier.cs | 2 +-
.../Champion Artifacts/Decorative/Web.cs | 2 +-
Scripts/Items/Construction/Doors/BaseDoor.cs | 2 +-
.../Items/Containers/FillableContainers.cs | 132 ++++-----
Scripts/Items/Containers/ParagonChest.cs | 4 +-
Scripts/Items/Containers/TreasureMapChest.cs | 2 +-
.../StealableArtifactsSpawner.cs | 2 +-
Scripts/Items/Deeds/HairRestylingDeed.cs | 64 ++--
Scripts/Items/Food/Beverage.cs | 2 +-
Scripts/Items/Maps/PresetMap.cs | 2 +-
Scripts/Items/Maps/TreasureMap.cs | 16 +-
Scripts/Items/Misc/ClockworkAssembly.cs | 4 +-
Scripts/Items/Misc/CommunicationCrystals.cs | 2 +-
Scripts/Items/Misc/DeceitBrazier.cs | 2 +-
Scripts/Items/Misc/FlippableAddonAttribute.cs | 2 +-
Scripts/Items/Misc/HairDye.cs | 2 +-
Scripts/Items/Misc/Key.cs | 4 +-
.../Misc/Prism of Light/ShimmeringCrystal.cs | 2 +-
Scripts/Items/Misc/PublicMoongate.cs | 30 +-
Scripts/Items/Misc/SpecialBeardDye.cs | 2 +-
Scripts/Items/Misc/SpecialHairDye.cs | 2 +-
Scripts/Items/Misc/WindChimes.cs | 2 +-
Scripts/Items/Quivers/BaseQuiver.cs | 2 +-
.../Carpenter Items/TaxidermyKit.cs | 2 +-
Scripts/Items/Skill Items/Fishing/Misc/SOS.cs | 12 +-
.../Fishing/Misc/SpecialFishingNet.cs | 6 +-
.../Potions/Cure Potions/CurePotion.cs | 4 +-
.../Potions/Cure Potions/GreaterCurePotion.cs | 4 +-
.../Potions/Cure Potions/LesserCurePotion.cs | 4 +-
.../Items/Skill Items/Magical/Spellbook.cs | 10 +-
Scripts/Items/Skill Items/Misc/RepairDeed.cs | 4 +-
.../Tailor Items/Dyetubs/CustomHuePicker.cs | 44 +--
.../Items/Skill Items/Thief/DisguiseKit.cs | 4 +-
.../Items/Skill Items/Tools/BaseRunicTool.cs | 6 +-
.../Dawn's Music Box/DawnsMusicBox.cs | 6 +-
Scripts/Items/Special/Holiday/HolidayBell.cs | 4 +-
.../Items/Special/Holiday/PKHolidayStuff.cs | 2 +-
Scripts/Items/Special/Holiday/SnowGlobes.cs | 2 +-
Scripts/Items/Special/Holiday/SnowPiles.cs | 2 +-
Scripts/Items/Special/Holiday/Snowman.cs | 2 +-
Scripts/Items/Special/MiniHouses.cs | 2 +-
Scripts/Items/Special/MonsterStatuette.cs | 6 +-
.../Mutation Core/PlagueBeastBackpack.cs | 4 +-
.../Mutation Core/PlagueBeastOrgans.cs | 2 +-
.../Special/Special Scrolls/PowerScroll.cs | 8 +-
.../Items/Special/Veteran Rewards/Brazier.cs | 2 +-
.../Items/Special/Veteran Rewards/Cannon.cs | 2 +-
Scripts/Items/Talismans/BaseTalisman.cs | 12 +-
Scripts/Items/Talismans/TalismanSlayer.cs | 18 +-
.../Items/Weapons/Artifacts/TheDryadBow.cs | 2 +-
Scripts/Items/Weapons/SlayerEntry.cs | 4 +-
Scripts/Items/Weapons/SlayerGroup.cs | 38 +--
.../Items/Weapons/Staves/ShepherdsCrook.cs | 2 +-
Scripts/Misc/AutoSave.cs | 2 +-
Scripts/Misc/CharacterCreation.cs | 16 +-
Scripts/Misc/DoorGenerator.cs | 14 +-
Scripts/Misc/Emitter.cs | 6 +-
.../Winter2004/LightOfTheWinterSolstice.cs | 2 +-
.../Gifts/Winter2004/PileOfGlacialSnow.cs | 2 +-
Scripts/Misc/Gifts/Winter2004/SnowPile.cs | 2 +-
Scripts/Misc/Guild.cs | 2 +-
Scripts/Misc/InhumanSpeech.cs | 20 +-
Scripts/Misc/Loot.cs | 78 ++---
Scripts/Misc/LootPack.cs | 104 +++----
Scripts/Misc/MondainsLegacy.cs | 2 +-
Scripts/Misc/NameVerification.cs | 6 +-
Scripts/Misc/ProfanityProtection.cs | 4 +-
Scripts/Misc/RaceDefinitions.cs | 8 +-
Scripts/Misc/ResourceInfo.cs | 10 +-
Scripts/Misc/SkillCheck.cs | 2 +-
Scripts/Misc/SocketOptions.cs | 2 +-
Scripts/Misc/Titles.cs | 16 +-
Scripts/Misc/ToggleItem.cs | 2 +-
Scripts/Misc/VendorGenerator.cs | 4 +-
Scripts/Misc/Weather.cs | 4 +-
Scripts/Misc/WelcomeTimer.cs | 4 +-
Scripts/Misc/uoamVendors.cs | 2 +-
Scripts/Mobiles/AI/BaseAI.cs | 2 +-
Scripts/Mobiles/AI/HealerAI.cs | 8 +-
Scripts/Mobiles/AI/MageAI.cs | 2 +-
Scripts/Mobiles/AI/OppositionGroup.cs | 24 +-
Scripts/Mobiles/AI/SpeedInfo.cs | 10 +-
Scripts/Mobiles/Animals/Mounts/Horse.cs | 2 +-
Scripts/Mobiles/BaseCreature.cs | 18 +-
.../Mobiles/Monsters/LBR/Jukas/JukaLord.cs | 2 +-
.../Mobiles/Monsters/LBR/Meers/MeerMage.cs | 2 +-
Scripts/Mobiles/Monsters/ML/Animal/Ferret.cs | 2 +-
.../Mobiles/Monsters/ML/Special/Meraktus.cs | 2 +-
Scripts/Mobiles/Monsters/ML/Special/Twaulo.cs | 8 +-
.../Monsters/Reptile/Magic/Leviathan.cs | 2 +-
.../Reptile/Magic/OphidianArchmage.cs | 2 +-
.../Monsters/Reptile/Magic/OphidianMage.cs | 2 +-
.../Monsters/Reptile/Melee/OphidianKnight.cs | 2 +-
.../Monsters/Reptile/Melee/OphidianWarrior.cs | 2 +-
Scripts/Mobiles/PlayerMobile.cs | 10 +-
Scripts/Mobiles/Special/Barracoon.cs | 8 +-
Scripts/Mobiles/Special/Harrower.cs | 12 +-
Scripts/Mobiles/Special/LordOaks.cs | 6 +-
Scripts/Mobiles/Special/Mephitis.cs | 8 +-
Scripts/Mobiles/Special/Neira.cs | 6 +-
Scripts/Mobiles/Special/Paragon.cs | 4 +-
Scripts/Mobiles/Special/Rikktor.cs | 8 +-
Scripts/Mobiles/Special/Semidar.cs | 6 +-
Scripts/Mobiles/Special/Serado.cs | 6 +-
Scripts/Mobiles/Townfolk/BaseEscortable.cs | 4 +-
Scripts/Mobiles/Townfolk/SeekerOfAdventure.cs | 4 +-
.../Mobiles/Vendors/NPC/CustomHairstylist.cs | 26 +-
Scripts/Mobiles/Vendors/PlayerBarkeeper.cs | 2 +-
Scripts/Mobiles/Vendors/PlayerVendor.cs | 2 +-
Scripts/Mobiles/Vendors/RentedVendor.cs | 2 +-
Scripts/Multis/Boats/BaseBoat.cs | 6 +-
Scripts/Multis/Boats/Strandedness.cs | 6 +-
Scripts/Multis/HouseFoundation.cs | 8 +-
Scripts/Multis/HousePlacement.cs | 2 +-
Scripts/Multis/HousePlacementTool.cs | 6 +-
Scripts/Multis/Houses.cs | 28 +-
Scripts/Skills/Stealth.cs | 2 +-
Scripts/Skills/Tracking.cs | 2 +-
.../SpecialSystems/Engines/PreventInaccess.cs | 2 +-
Scripts/Spells/Base/MagerySpell.cs | 2 +-
Scripts/Spells/Base/SpellHelper.cs | 6 +-
Scripts/Spells/Base/SpellRegistry.cs | 2 +-
Scripts/Spells/Fifth/Incognito.cs | 4 +-
Scripts/Spells/Fifth/SummonCreature.cs | 2 +-
Scripts/Spells/First/CreateFood.cs | 2 +-
Scripts/Spells/Necromancy/AnimateDeadSpell.cs | 20 +-
Scripts/Spells/Necromancy/Exorcism.cs | 8 +-
Scripts/Spells/Necromancy/SummonFamiliar.cs | 2 +-
Scripts/Spells/Ninjitsu/AnimalForm.cs | 2 +-
Server/Mobile.cs | 8 +-
Server/Network/PacketHandlers.cs | 2 +-
Server/Notoriety.cs | 2 +-
Server/ObjectPropertyList.cs | 2 +-
Server/Utility.cs | 6 +-
261 files changed, 1329 insertions(+), 1329 deletions(-)
diff --git a/Scripts/Accounting/AccountHandler.cs b/Scripts/Accounting/AccountHandler.cs
index 97f6dc28f..0e47e05cd 100644
--- a/Scripts/Accounting/AccountHandler.cs
+++ b/Scripts/Accounting/AccountHandler.cs
@@ -34,7 +34,7 @@ namespace Server.Misc
set => m_LockdownLevel = value;
}
- private static CityInfo[] StartingCities = new CityInfo[]
+ private static CityInfo[] StartingCities = new[]
{
new CityInfo( "New Haven", "New Haven Bank", 1150168, 3667, 2625, 0 ),
new CityInfo( "Yew", "The Empath Abbey", 1075072, 633, 858, 0 ),
@@ -249,7 +249,7 @@ namespace Server.Misc
}
}
- private static readonly char[] m_ForbiddenChars = new char[]
+ private static readonly char[] m_ForbiddenChars = new[]
{
'<', '>', ':', '"', '/', '\\', '|', '?', '*'
};
diff --git a/Scripts/Commands/Add.cs b/Scripts/Commands/Add.cs
index b7fe477d0..e2e9ab524 100644
--- a/Scripts/Commands/Add.cs
+++ b/Scripts/Commands/Add.cs
@@ -673,7 +673,7 @@ namespace Server.Commands
return type.IsDefined( m_ParsableType, false );
}
- private static Type[] m_ParseTypes = new Type[]{ typeof( string ) };
+ private static Type[] m_ParseTypes = new[]{ typeof( string ) };
private static object[] m_ParseArgs = new object[1];
public static object ParseParsable( Type type, string value )
@@ -685,7 +685,7 @@ namespace Server.Commands
return method.Invoke( null, m_ParseArgs );
}
- private static Type[] m_SignedNumerics = new Type[]
+ private static Type[] m_SignedNumerics = new[]
{
typeof( Int64 ),
typeof( Int32 ),
@@ -702,7 +702,7 @@ namespace Server.Commands
return false;
}
- private static Type[] m_UnsignedNumerics = new Type[]
+ private static Type[] m_UnsignedNumerics = new[]
{
typeof( UInt64 ),
typeof( UInt32 ),
diff --git a/Scripts/Commands/Batch.cs b/Scripts/Commands/Batch.cs
index 5fa9ff596..d4b5ae83a 100644
--- a/Scripts/Commands/Batch.cs
+++ b/Scripts/Commands/Batch.cs
@@ -29,7 +29,7 @@ namespace Server.Commands
public Batch()
{
- Commands = new string[]{ "Batch" };
+ Commands = new[]{ "Batch" };
ListOptimized = true;
m_BatchCommands = new ArrayList();
diff --git a/Scripts/Commands/Docs.cs b/Scripts/Commands/Docs.cs
index a171a672a..61e994706 100644
--- a/Scripts/Commands/Docs.cs
+++ b/Scripts/Commands/Docs.cs
@@ -248,7 +248,7 @@ namespace Server.Commands
#region GetPair
- private static string[,] m_Aliases = new string[,]
+ private static string[,] m_Aliases = new[,]
{
{ "System.Object", "object" },
{ "System.String", "string" },
diff --git a/Scripts/Commands/GenCategorization.cs b/Scripts/Commands/GenCategorization.cs
index 7740f03d7..a9fdeb555 100644
--- a/Scripts/Commands/GenCategorization.cs
+++ b/Scripts/Commands/GenCategorization.cs
@@ -42,7 +42,7 @@ namespace Server.Commands
[Description( "Rebuilds the categorization data file used by the Add command." )]
public static void RebuildCategorization_OnCommand( CommandEventArgs e )
{
- CategoryEntry root = new CategoryEntry( null, "Add Menu", new CategoryEntry[]{ Items, Mobiles } );
+ CategoryEntry root = new CategoryEntry( null, "Add Menu", new[]{ Items, Mobiles } );
Export( root, "Data/objects.xml", "Objects" );
diff --git a/Scripts/Commands/Generic/Commands/Commands.cs b/Scripts/Commands/Generic/Commands/Commands.cs
index 445aaa7fb..bc6b562cc 100644
--- a/Scripts/Commands/Generic/Commands/Commands.cs
+++ b/Scripts/Commands/Generic/Commands/Commands.cs
@@ -84,7 +84,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Simple | CommandSupport.Complex | CommandSupport.Self;
- Commands = new string[]{ "Condition" };
+ Commands = new[]{ "Condition" };
ObjectTypes = ObjectTypes.All;
Usage = "Condition ";
Description = "Checks that the given condition matches a targeted object.";
@@ -119,7 +119,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllItems;
- Commands = new string[]{ "BringToPack" };
+ Commands = new[]{ "BringToPack" };
ObjectTypes = ObjectTypes.Items;
Usage = "BringToPack";
Description = "Brings a targeted item to your backpack.";
@@ -143,7 +143,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Simple;
- Commands = new string[]{ "RefreshHouse" };
+ Commands = new[]{ "RefreshHouse" };
ObjectTypes = ObjectTypes.Items;
Usage = "RefreshHouse";
Description = "Refreshes a targeted house sign.";
@@ -178,7 +178,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Complex;
- Commands = new string[]{ "Count" };
+ Commands = new[]{ "Count" };
ObjectTypes = ObjectTypes.All;
Usage = "Count";
Description = "Counts the number of objects that a command modifier would use. Generally used with condition arguments.";
@@ -200,7 +200,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllMobiles;
- Commands = new string[]{ "OpenBrowser", "OB" };
+ Commands = new[]{ "OpenBrowser", "OB" };
ObjectTypes = ObjectTypes.Mobiles;
Usage = "OpenBrowser ";
Description = "Opens the web browser of a targeted player to a specified url.";
@@ -287,7 +287,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.All;
- Commands = new string[]{ "Increase", "Inc" };
+ Commands = new[]{ "Increase", "Inc" };
ObjectTypes = ObjectTypes.Both;
Usage = "Increase { ...}";
Description = "Increases the value of a specified property by the specified offset.";
@@ -321,7 +321,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllMobiles;
- Commands = new string[]{ "PrivSound" };
+ Commands = new[]{ "PrivSound" };
ObjectTypes = ObjectTypes.Mobiles;
Usage = "PrivSound ";
Description = "Plays a sound to a given target.";
@@ -360,13 +360,13 @@ namespace Server.Commands.Generic
if ( inGump )
{
- Commands = new string[]{ "Message", "Msg" };
+ Commands = new[]{ "Message", "Msg" };
Usage = "Message \"text\"";
Description = "Sends a message to a targeted player.";
}
else
{
- Commands = new string[]{ "Tell" };
+ Commands = new[]{ "Tell" };
Usage = "Tell \"text\"";
Description = "Sends a system message to a targeted player.";
}
@@ -392,7 +392,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.All;
- Commands = new string[]{ "AddToPack", "AddToCont" };
+ Commands = new[]{ "AddToPack", "AddToCont" };
ObjectTypes = ObjectTypes.Both;
ListOptimized = true;
Usage = "AddToPack [params] [set { ...}]";
@@ -432,7 +432,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Simple | CommandSupport.Self;
- Commands = new string[]{ "Add" };
+ Commands = new[]{ "Add" };
ObjectTypes = ObjectTypes.All;
Usage = "Add [ [params] [set { ...}]]";
Description = "Adds an item or npc by name to a targeted location. Optional constructor parameters. Optional set property list. If no arguments are specified, this brings up a categorized add menu.";
@@ -493,7 +493,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.Simple;
- Commands = new string[]{ "Teleport", "Tele" };
+ Commands = new[]{ "Teleport", "Tele" };
ObjectTypes = ObjectTypes.All;
Usage = "Teleport";
Description = "Teleports your character to a targeted location.";
@@ -532,7 +532,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllMobiles;
- Commands = new string[]{ "Dismount" };
+ Commands = new[]{ "Dismount" };
ObjectTypes = ObjectTypes.Mobiles;
Usage = "Dismount";
Description = "Forcefully dismounts a given target.";
@@ -591,7 +591,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllNPCs;
- Commands = new string[]{ "Restock" };
+ Commands = new[]{ "Restock" };
ObjectTypes = ObjectTypes.Mobiles;
Usage = "Restock";
Description = "Manually restocks a targeted vendor, refreshing the quantity of every item the vendor sells to the maximum. This also invokes the maximum quantity adjustment algorithms.";
@@ -619,7 +619,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.All;
- Commands = new string[]{ "GetType" };
+ Commands = new[]{ "GetType" };
ObjectTypes = ObjectTypes.All;
Usage = "GetType";
Description = "Gets the type name of a targeted object.";
@@ -649,7 +649,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.All;
- Commands = new string[]{ "Get" };
+ Commands = new[]{ "Get" };
ObjectTypes = ObjectTypes.All;
Usage = "Get ";
Description = "Gets one or more property values by name of a targeted object.";
@@ -695,7 +695,7 @@ namespace Server.Commands.Generic
else
Supports = CommandSupport.All;
- Commands = new string[]{ command };
+ Commands = new[]{ command };
ObjectTypes = objects;
Usage = command;
Description = String.Format( "Sets the {0} property to {1}.", name, value );
@@ -718,7 +718,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.All;
- Commands = new string[]{ "Set" };
+ Commands = new[]{ "Set" };
ObjectTypes = ObjectTypes.Both;
Usage = "Set [...]";
Description = "Sets one or more property values by name of a targeted object.";
@@ -751,7 +751,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllNPCs | CommandSupport.AllItems;
- Commands = new string[]{ "Delete", "Remove" };
+ Commands = new[]{ "Delete", "Remove" };
ObjectTypes = ObjectTypes.Both;
Usage = "Delete";
Description = "Deletes a targeted item or mobile. Does not delete players.";
@@ -836,7 +836,7 @@ namespace Server.Commands.Generic
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllMobiles;
- Commands = value ? new string[]{ "Kill" } : new string[]{ "Resurrect", "Res" };
+ Commands = value ? new[]{ "Kill" } : new[]{ "Resurrect", "Res" };
ObjectTypes = ObjectTypes.Mobiles;
if ( value )
@@ -919,7 +919,7 @@ namespace Server.Commands.Generic
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.AllMobiles;
- Commands = new string[]{ value ? "Hide" : "Unhide" };
+ Commands = new[]{ value ? "Hide" : "Unhide" };
ObjectTypes = ObjectTypes.Mobiles;
if ( value )
@@ -968,7 +968,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Administrator;
Supports = CommandSupport.AllMobiles;
- Commands = new string[]{ "Firewall" };
+ Commands = new[]{ "Firewall" };
ObjectTypes = ObjectTypes.Mobiles;
Usage = "Firewall";
Description = "Adds a targeted player to the firewall (list of blocked IP addresses). This command does not ban or kick.";
@@ -1011,7 +1011,7 @@ namespace Server.Commands.Generic
AccessLevel = ( ban ? AccessLevel.Administrator : AccessLevel.GameMaster );
Supports = CommandSupport.AllMobiles;
- Commands = new string[]{ ban ? "Ban" : "Kick" };
+ Commands = new[]{ ban ? "Ban" : "Kick" };
ObjectTypes = ObjectTypes.Mobiles;
if ( ban )
@@ -1073,7 +1073,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Administrator;
Supports = CommandSupport.Simple;
- Commands = new string[] { "TraceLockdown" };
+ Commands = new[] { "TraceLockdown" };
ObjectTypes = ObjectTypes.Items;
Usage = "TraceLockdown";
Description = "Finds the BaseHouse for which a targeted item is locked down or secured.";
diff --git a/Scripts/Commands/Generic/Commands/DesignInsert.cs b/Scripts/Commands/Generic/Commands/DesignInsert.cs
index 38ac8f27c..304255a12 100644
--- a/Scripts/Commands/Generic/Commands/DesignInsert.cs
+++ b/Scripts/Commands/Generic/Commands/DesignInsert.cs
@@ -19,7 +19,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Single | CommandSupport.Area;
- Commands = new string[] { "DesignInsert" };
+ Commands = new[] { "DesignInsert" };
ObjectTypes = ObjectTypes.Items;
Usage = "DesignInsert [allItems=false]";
Description = "Inserts multiple targeted items into a customizable house's design.";
diff --git a/Scripts/Commands/Generic/Commands/Interface.cs b/Scripts/Commands/Generic/Commands/Interface.cs
index 87f50efad..0724a3cbc 100644
--- a/Scripts/Commands/Generic/Commands/Interface.cs
+++ b/Scripts/Commands/Generic/Commands/Interface.cs
@@ -14,7 +14,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Complex | CommandSupport.Simple;
- Commands = new string[]{ "Interface" };
+ Commands = new[]{ "Interface" };
ObjectTypes = ObjectTypes.Both;
Usage = "Interface [view ]";
Description = "Opens an interface to interact with matched objects. Generally used with condition arguments.";
diff --git a/Scripts/Commands/Generic/Extensions/Compilers/ConditionalCompiler.cs b/Scripts/Commands/Generic/Extensions/Compilers/ConditionalCompiler.cs
index 000125aed..f4ff1fcc0 100644
--- a/Scripts/Commands/Generic/Extensions/Compilers/ConditionalCompiler.cs
+++ b/Scripts/Commands/Generic/Extensions/Compilers/ConditionalCompiler.cs
@@ -120,7 +120,7 @@ namespace Server.Commands.Generic
"Parse",
BindingFlags.Public | BindingFlags.Static,
null,
- new Type[] { typeof( string ), typeof( NumberStyles ) },
+ new[] { typeof( string ), typeof( NumberStyles ) },
null
);
@@ -143,7 +143,7 @@ namespace Server.Commands.Generic
"Parse",
BindingFlags.Public | BindingFlags.Static,
null,
- new Type[] { typeof( string ) },
+ new[] { typeof( string ) },
null
);
@@ -279,7 +279,7 @@ namespace Server.Commands.Generic
methodName,
BindingFlags.Public | BindingFlags.Static,
null,
- new Type[]
+ new[]
{
typeof( string ),
typeof( string )
@@ -319,7 +319,7 @@ namespace Server.Commands.Generic
methodName,
BindingFlags.Public | BindingFlags.Instance,
null,
- new Type[]
+ new[]
{
typeof( string )
},
@@ -494,7 +494,7 @@ namespace Server.Commands.Generic
/* name */ "Verify",
/* attr */ MethodAttributes.Public | MethodAttributes.Virtual,
/* return */ typeof( bool ),
- /* params */ new Type[] { typeof( object ) } );
+ /* params */ new[] { typeof( object ) } );
LocalBuilder obj = emitter.CreateLocal( objectType );
LocalBuilder eq = emitter.CreateLocal( typeof( bool ) );
@@ -531,7 +531,7 @@ namespace Server.Commands.Generic
emitter.Method,
typeof( IConditional ).GetMethod(
"Verify",
- new Type[]
+ new[]
{
typeof( object )
}
diff --git a/Scripts/Commands/Generic/Extensions/Compilers/DistinctCompiler.cs b/Scripts/Commands/Generic/Extensions/Compilers/DistinctCompiler.cs
index 6b253efd6..225955580 100644
--- a/Scripts/Commands/Generic/Extensions/Compilers/DistinctCompiler.cs
+++ b/Scripts/Commands/Generic/Extensions/Compilers/DistinctCompiler.cs
@@ -48,7 +48,7 @@ namespace Server.Commands.Generic
/* name */ "Compare",
/* attr */ MethodAttributes.Public | MethodAttributes.Virtual,
/* return */ typeof( int ),
- /* params */ new Type[] { typeof( object ), typeof( object ) } );
+ /* params */ new[] { typeof( object ), typeof( object ) } );
LocalBuilder a = emitter.CreateLocal( objectType );
LocalBuilder b = emitter.CreateLocal( objectType );
@@ -103,7 +103,7 @@ namespace Server.Commands.Generic
emitter.Method,
typeof( IComparer ).GetMethod(
"Compare",
- new Type[]
+ new[]
{
typeof( object ),
typeof( object )
@@ -127,7 +127,7 @@ namespace Server.Commands.Generic
/* name */ "Equals",
/* attr */ MethodAttributes.Public | MethodAttributes.Virtual,
/* return */ typeof( bool ),
- /* params */ new Type[] { typeof( object ), typeof( object ) } );
+ /* params */ new[] { typeof( object ), typeof( object ) } );
emitter.Generator.Emit( OpCodes.Ldarg_0 );
emitter.Generator.Emit( OpCodes.Ldarg_1 );
@@ -145,7 +145,7 @@ namespace Server.Commands.Generic
emitter.Method,
typeof( IEqualityComparer