From 33f5e77a24e1675c562234cda424ec1c6bb6cccd Mon Sep 17 00:00:00 2001
From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com>
Date: Fri, 14 Sep 2018 08:46:14 -0700
Subject: [PATCH] Fixes body expression style.
---
Scripts/Accounting/Account.cs | 63 +-
Scripts/Accounting/AccountAttackLimiter.cs | 17 +-
Scripts/Accounting/AccountComment.cs | 12 +-
Scripts/Accounting/AccountHandler.cs | 4 +-
Scripts/Accounting/AccountTag.cs | 8 +-
Scripts/Accounting/Firewall.cs | 8 +-
Scripts/Commands/Attributes.cs | 6 +-
Scripts/Commands/Batch.cs | 21 +-
Scripts/Commands/Decorate.cs | 4 +-
Scripts/Commands/DecorateMag.cs | 4 +-
Scripts/Commands/GenCategorization.cs | 18 +-
.../Commands/Generic/Commands/BaseCommand.cs | 28 +-
Scripts/Commands/Generic/Commands/Commands.cs | 2 +-
.../Generic/Extensions/BaseExtension.cs | 50 +-
.../Compilers/ConditionalCompiler.cs | 20 +-
.../Extensions/Compilers/SortCompiler.cs | 14 +-
.../Generic/Extensions/DistinctExtension.cs | 5 +-
.../Generic/Extensions/LimitExtension.cs | 10 +-
.../Generic/Extensions/SortExtension.cs | 5 +-
.../Generic/Extensions/WhereExtension.cs | 10 +-
.../Implementors/AreaCommandImplementor.cs | 5 +-
.../Implementors/BaseCommandImplementor.cs | 29 +-
.../Generic/Implementors/ObjectConditional.cs | 20 +-
.../Implementors/RangeCommandImplementor.cs | 5 +-
Scripts/Commands/Logging.cs | 6 +-
Scripts/Commands/Properties.cs | 30 +-
Scripts/Engines/BulkOrders/Books/BOBFilter.cs | 21 +-
.../Engines/BulkOrders/Books/BOBLargeEntry.cs | 14 +-
.../BulkOrders/Books/BOBLargeSubEntry.cs | 8 +-
.../Engines/BulkOrders/Books/BOBSmallEntry.cs | 20 +-
.../Engines/BulkOrders/Books/BulkOrderBook.cs | 20 +-
Scripts/Engines/BulkOrders/LargeBOD.cs | 12 +-
Scripts/Engines/BulkOrders/LargeBulkEntry.cs | 119 +-
Scripts/Engines/BulkOrders/Rewards.cs | 18 +-
Scripts/Engines/BulkOrders/SmallBOD.cs | 25 +-
Scripts/Engines/BulkOrders/SmallBulkEntry.cs | 26 +-
Scripts/Engines/CannedEvil/ChampionSkull.cs | 3 +-
.../CannedEvil/ChampionSkullBrazier.cs | 8 +-
Scripts/Engines/CannedEvil/ChampionSpawn.cs | 113 +-
Scripts/Engines/Chat/Channel.cs | 33 +-
Scripts/Engines/Chat/Chat.cs | 4 +-
Scripts/Engines/Chat/ChatActionHandler.cs | 6 +-
Scripts/Engines/Chat/ChatUser.cs | 70 +-
Scripts/Engines/ConPVP/AcceptDuelGump.cs | 4 +-
Scripts/Engines/ConPVP/Arena.cs | 120 +-
Scripts/Engines/ConPVP/ArenaGump.cs | 5 +-
Scripts/Engines/ConPVP/DuelContext.cs | 48 +-
Scripts/Engines/ConPVP/DuelContextGump.cs | 4 +-
Scripts/Engines/ConPVP/Games/BombingRun.cs | 89 +-
Scripts/Engines/ConPVP/Games/CTF.cs | 113 +-
Scripts/Engines/ConPVP/Games/DoubleDom.cs | 98 +-
Scripts/Engines/ConPVP/Games/KingOfTheHill.cs | 129 +-
Scripts/Engines/ConPVP/Ladder.cs | 31 +-
Scripts/Engines/ConPVP/LadderGump.cs | 9 +-
Scripts/Engines/ConPVP/Participant.cs | 23 +-
Scripts/Engines/ConPVP/ParticipantGump.cs | 6 +-
Scripts/Engines/ConPVP/Preferences.cs | 18 +-
Scripts/Engines/ConPVP/Ruleset.cs | 16 +-
Scripts/Engines/ConPVP/RulesetLayout.cs | 22 +-
Scripts/Engines/ConPVP/Tournament.cs | 156 +-
Scripts/Engines/ConPVP/Trophy.cs | 13 +-
Scripts/Engines/Craft/Core/CraftContext.cs | 20 +-
Scripts/Engines/Craft/Core/CraftGroup.cs | 15 +-
Scripts/Engines/Craft/Core/CraftItem.cs | 88 +-
.../Craft/Core/CraftItemIDAttribute.cs | 2 +-
Scripts/Engines/Craft/Core/CraftRes.cs | 30 +-
Scripts/Engines/Craft/Core/CraftSkill.cs | 15 +-
Scripts/Engines/Craft/Core/CraftSubRes.cs | 30 +-
Scripts/Engines/Craft/Core/CraftSubResCol.cs | 16 +-
Scripts/Engines/Craft/Core/CraftSystem.cs | 22 +-
Scripts/Engines/Craft/Core/CustomCraft.cs | 12 +-
Scripts/Engines/Craft/Core/Recipes.cs | 15 +-
Scripts/Engines/Craft/DefAlchemy.cs | 10 +-
Scripts/Engines/Craft/DefBlacksmithy.cs | 10 +-
Scripts/Engines/Craft/DefBowFletching.cs | 10 +-
Scripts/Engines/Craft/DefCarpentry.cs | 10 +-
Scripts/Engines/Craft/DefCartography.cs | 10 +-
Scripts/Engines/Craft/DefCooking.cs | 10 +-
Scripts/Engines/Craft/DefGlassblowing.cs | 10 +-
Scripts/Engines/Craft/DefInscription.cs | 10 +-
Scripts/Engines/Craft/DefMasonry.cs | 10 +-
Scripts/Engines/Craft/DefTailoring.cs | 10 +-
Scripts/Engines/Craft/DefTinkering.cs | 12 +-
Scripts/Engines/Doom/GauntletSpawner.cs | 39 +-
.../Doom/LeverPuzzle/LeverPuzzleController.cs | 14 +-
.../Doom/LeverPuzzle/LeverPuzzleItems.cs | 5 +-
Scripts/Engines/Ethics/Core/Ethic.cs | 10 +-
Scripts/Engines/Ethics/Core/Persistance.cs | 5 +-
Scripts/Engines/Ethics/Core/Player.cs | 16 +-
Scripts/Engines/Factions/Core/Election.cs | 33 +-
Scripts/Engines/Factions/Core/Faction.cs | 43 +-
Scripts/Engines/Factions/Core/FactionItem.cs | 6 +-
Scripts/Engines/Factions/Core/FactionState.cs | 32 +-
Scripts/Engines/Factions/Core/GuardList.cs | 4 +-
.../Engines/Factions/Core/MerchantTitles.cs | 12 +-
Scripts/Engines/Factions/Core/Persistance.cs | 7 +-
Scripts/Engines/Factions/Core/PlayerState.cs | 32 +-
.../Engines/Factions/Core/SilverGivenEntry.cs | 6 +-
.../Engines/Factions/Core/StrongholdRegion.cs | 4 +-
Scripts/Engines/Factions/Core/Town.cs | 57 +-
Scripts/Engines/Factions/Core/TownState.cs | 28 +-
Scripts/Engines/Factions/Core/VendorList.cs | 2 +-
.../Factions/Definitions/FactionDefinition.cs | 48 +-
.../Definitions/FactionItemDefinition.cs | 4 +-
.../Factions/Definitions/GuardDefinition.cs | 14 +-
.../Factions/Definitions/RankDefinition.cs | 8 +-
.../Definitions/StrongholdDefintion.cs | 8 +-
.../Factions/Definitions/TownDefinition.cs | 26 +-
.../Factions/Definitions/VendorDefinition.cs | 16 +-
Scripts/Engines/Factions/Gumps/FactionGump.cs | 2 +-
.../Instances/Factions/CouncilOfMages.cs | 2 +-
.../Factions/Instances/Factions/Minax.cs | 2 +-
.../Instances/Factions/Shadowlords.cs | 2 +-
.../Instances/Factions/TrueBritannians.cs | 2 +-
.../Engines/Factions/Items/BaseMonolith.cs | 10 +-
.../Factions/Items/BaseSystemController.cs | 4 +-
.../Engines/Factions/Items/FactionStone.cs | 2 +-
Scripts/Engines/Factions/Items/JoinStone.cs | 2 +-
.../Items/Power Faction Items/BloodRose.cs | 6 +-
.../Power Faction Items/ClarityPotion.cs | 6 +-
.../Power Faction Items/GemOfEmpowerment.cs | 6 +-
.../Power Faction Items/PowerFactionItem.cs | 12 +-
.../Items/Power Faction Items/StormsEye.cs | 6 +-
.../Power Faction Items/UrnOfAscension.cs | 6 +-
Scripts/Engines/Factions/Items/Sigil.cs | 48 +-
Scripts/Engines/Factions/Items/Silver.cs | 5 +-
Scripts/Engines/Factions/Items/TownStone.cs | 2 +-
.../Factions/Items/Traps/BaseFactionTrap.cs | 29 +-
.../Items/Traps/BaseFactionTrapDeed.cs | 2 +-
.../Items/Traps/FactionTrapRemovalKit.cs | 4 +-
.../Factions/Mobiles/FactionWarHorse.cs | 2 +-
.../Mobiles/Guards/BaseFactionGuard.cs | 23 +-
.../Factions/Mobiles/Guards/GuardAI.cs | 20 +-
.../Engines/Factions/Mobiles/Guards/Orders.cs | 16 +-
.../Mobiles/Vendors/BaseFactionVendor.cs | 6 +-
.../Mobiles/Vendors/FactionBottleVendor.cs | 5 +-
.../Mobiles/Vendors/FactionHorseVendor.cs | 5 +-
.../Mobiles/Vendors/FactionReagentVendor.cs | 5 +-
.../Harvest/Core/BonusHarvestResource.cs | 12 +-
Scripts/Engines/Harvest/Core/HarvestBank.cs | 10 +-
.../Engines/Harvest/Core/HarvestDefinition.cs | 124 +-
.../Engines/Harvest/Core/HarvestResource.cs | 18 +-
Scripts/Engines/Harvest/Core/HarvestVein.cs | 16 +-
Scripts/Engines/Harvest/Fishing.cs | 5 +-
Scripts/Engines/Harvest/Lumberjacking.cs | 5 +-
Scripts/Engines/Harvest/Mining.cs | 10 +-
Scripts/Engines/Help/PageQueue.cs | 74 +-
Scripts/Engines/Help/PageQueueGump.cs | 8 +-
Scripts/Engines/Help/SpeechLog.cs | 8 +-
Scripts/Engines/Help/StuckMenu.cs | 4 +-
.../Engines/Khaldun/KhaldunPitTeleporter.cs | 12 +-
Scripts/Engines/Khaldun/PuzzleChest.cs | 45 +-
Scripts/Engines/Khaldun/RaisableItem.cs | 19 +-
Scripts/Engines/Khaldun/RaiseSwitch.cs | 6 +-
.../Definitions/NewHavenSkillTraining.cs | 4 +-
.../Engines/MLQuests/Items/QuestGiverItem.cs | 4 +-
Scripts/Engines/MLQuests/Items/Teleporters.cs | 12 +-
Scripts/Engines/MLQuests/MLQuest.cs | 80 +-
Scripts/Engines/MLQuests/MLQuestContext.cs | 36 +-
Scripts/Engines/MLQuests/MLQuestEntry.cs | 45 +-
.../Engines/MLQuests/MLQuestPersistence.cs | 5 +-
Scripts/Engines/MLQuests/MLQuestSystem.cs | 15 +-
.../MLQuests/Objectives/BaseObjective.cs | 18 +-
.../MLQuests/Objectives/CollectObjective.cs | 21 +-
.../MLQuests/Objectives/DeliverObjective.cs | 28 +-
.../MLQuests/Objectives/EscortObjective.cs | 8 +-
.../MLQuests/Objectives/GainSkillObjective.cs | 20 +-
.../MLQuests/Objectives/KillObjective.cs | 24 +-
Scripts/Engines/MLQuests/QuestArea.cs | 12 +-
.../Engines/MLQuests/Rewards/BaseReward.cs | 6 +-
.../Engines/MLQuests/Rewards/DummyReward.cs | 2 +-
.../Engines/MyRunUO/DatabaseCommandQueue.cs | 5 +-
Scripts/Engines/MyRunUO/LayerComparer.cs | 5 +-
Scripts/Engines/Party/Party.cs | 13 +-
Scripts/Engines/Party/PartyMemberInfo.cs | 6 +-
Scripts/Engines/Pathing/Movement.cs | 16 +-
Scripts/Engines/Pathing/MovementPath.cs | 14 +-
Scripts/Engines/Pathing/PathFollower.cs | 9 +-
.../Engines/Plants/MiscItems/GreenThorns.cs | 5 +-
.../Engines/Plants/MiscItems/OrangePetals.cs | 7 +-
Scripts/Engines/Plants/MiscItems/RedLeaves.cs | 5 +-
Scripts/Engines/Plants/PlantItem.cs | 29 +-
Scripts/Engines/Plants/PlantSystem.cs | 80 +-
Scripts/Engines/Plants/PlantType.cs | 2 +-
Scripts/Engines/Plants/Seed.cs | 6 +-
.../AmbitiousQueenQuest.cs | 43 +-
.../Ambitious Solen Queen/Conversations.cs | 133 +-
.../Ambitious Solen Queen/Objectives.cs | 52 +-
.../Quests/Collector/CollectorQuest.cs | 35 +-
.../Engines/Quests/Collector/Conversations.cs | 549 +-------
.../Quests/Collector/Items/ImageType.cs | 2 +-
.../Quests/Collector/Items/Obsidian.cs | 4 +-
.../Quests/Collector/Items/PaintedImage.cs | 2 +-
.../Engines/Quests/Collector/Objectives.cs | 136 +-
Scripts/Engines/Quests/Core/BaseQuester.cs | 5 +-
.../Quests/Core/Items/DynamicTeleporter.cs | 3 +-
.../Quests/Core/Items/HornOfRetreat.cs | 10 +-
.../Engines/Quests/Core/QuestConversation.cs | 12 +-
Scripts/Engines/Quests/Core/QuestItemInfo.cs | 8 +-
Scripts/Engines/Quests/Core/QuestObjective.cs | 28 +-
.../Engines/Quests/Core/QuestRestartInfo.cs | 8 +-
Scripts/Engines/Quests/Core/QuestSystem.cs | 12 +-
.../Quests/Core/Regions/CancelQuestRegion.cs | 2 +-
.../Regions/QuestCompleteObjectiveRegion.cs | 4 +-
.../Quests/Core/Regions/QuestNoEntryRegion.cs | 8 +-
.../Quests/Core/Regions/QuestOfferRegion.cs | 2 +-
.../Quests/Dark Tides/Conversations.cs | 358 +----
.../Quests/Dark Tides/DarkTidesQuest.cs | 51 +-
.../Quests/Dark Tides/Items/MaabusCoffin.cs | 6 +-
.../Engines/Quests/Dark Tides/Objectives.cs | 214 +--
.../Emino's Undertaking/Conversations.cs | 380 +----
.../EminosUndertakingQuest.cs | 18 +-
.../Emino's Undertaking/Mobiles/Emino.cs | 2 +-
.../Mobiles/HiddenFigure.cs | 4 +-
.../Emino's Undertaking/Mobiles/Zoel.cs | 2 +-
.../Quests/Emino's Undertaking/Objectives.cs | 143 +-
.../Quests/Haochi's Trials/Conversations.cs | 244 +---
.../Haochi's Trials/HaochisTrialsQuest.cs | 29 +-
.../Quests/Haochi's Trials/Mobiles/Haochi.cs | 2 +-
.../Mobiles/HaochisGuardsman.cs | 2 +-
.../Quests/Haochi's Trials/Mobiles/Relnia.cs | 2 +-
.../Quests/Haochi's Trials/Objectives.cs | 188 +--
.../Quests/Solen Matriarch/Conversations.cs | 106 +-
.../Quests/Solen Matriarch/Objectives.cs | 56 +-
.../Solen Matriarch/SolenMatriarchQuest.cs | 11 +-
.../Study of the Solen Hive/Conversations.cs | 137 +-
.../Study of the Solen Hive/NestArea.cs | 2 +-
.../Study of the Solen Hive/Objectives.cs | 28 +-
.../StudyOfSolenQuest.cs | 47 +-
.../Terrible Hatchlings/Conversations.cs | 62 +-
.../Quests/Terrible Hatchlings/Objectives.cs | 40 +-
.../TerribleHatchlingsQuest.cs | 25 +-
.../Quests/The Summoning/Conversations.cs | 31 +-
.../The Summoning/Items/BellOfTheDead.cs | 12 +-
.../The Summoning/Items/SummoningAltar.cs | 2 +-
.../Quests/The Summoning/Mobiles/Chyloth.cs | 8 +-
.../Quests/The Summoning/Objectives.cs | 25 +-
.../Quests/The Summoning/TheSummoningQuest.cs | 51 +-
.../Quests/Uzeraan Turmoil/Conversations.cs | 277 +---
.../Quests/Uzeraan Turmoil/Items/Cannon.cs | 6 +-
.../Mobiles/MilitiaCanoneer.cs | 4 +-
.../Quests/Uzeraan Turmoil/Objectives.cs | 158 +--
.../Uzeraan Turmoil/UzeraanTurmoilQuest.cs | 36 +-
.../Quests/Witch Apprentice/Conversations.cs | 348 +----
.../Quests/Witch Apprentice/Ingredient.cs | 6 +-
.../Quests/Witch Apprentice/Items/Cauldron.cs | 5 +-
.../Witch Apprentice/Items/HangoverCure.cs | 4 +-
.../Quests/Witch Apprentice/Objectives.cs | 82 +-
.../Witch Apprentice/WitchApprenticeQuest.cs | 52 +-
.../Engines/RemoteAdmin/RemoteAdminLogging.cs | 4 +-
.../Reports/Objects/Charts/BarGraph.cs | 28 +-
.../Engines/Reports/Objects/Charts/Chart.cs | 10 +-
.../Reports/Objects/Charts/ChartItem.cs | 8 +-
.../Objects/Charts/ChartItemCollection.cs | 12 +-
.../Reports/Objects/Charts/PieChart.cs | 4 +-
.../Reports/Objects/Reports/ItemValue.cs | 8 +-
.../Objects/Reports/ItemValueCollection.cs | 10 +-
.../Engines/Reports/Objects/Reports/Report.cs | 12 +-
.../Reports/Objects/Reports/ReportColumn.cs | 12 +-
.../Objects/Reports/ReportColumnCollection.cs | 10 +-
.../Reports/Objects/Reports/ReportItem.cs | 2 +-
.../Objects/Reports/ReportItemCollection.cs | 12 +-
.../Reports/Objects/Snapshots/Snapshot.cs | 8 +-
.../Objects/Snapshots/SnapshotCollection.cs | 10 +-
.../Objects/Snapshots/SnapshotHistory.cs | 4 +-
.../Engines/Reports/Objects/Staffing/Info.cs | 12 +-
.../Reports/Objects/Staffing/PageInfo.cs | 33 +-
.../Objects/Staffing/PageInfoCollection.cs | 10 +-
.../Reports/Objects/Staffing/QueueStatus.cs | 8 +-
.../Objects/Staffing/QueueStatusCollection.cs | 10 +-
.../Reports/Objects/Staffing/ResponseInfo.cs | 12 +-
.../Staffing/ResponseInfoCollection.cs | 10 +-
.../Reports/Objects/Staffing/StaffHistory.cs | 16 +-
.../PersistableObjectCollection.cs | 10 +-
.../Reports/Persistance/PersistableType.cs | 4 +-
.../Reports/Persistance/PersistanceReader.cs | 8 +-
.../Reports/Rendering/BarGraphRenderer.cs | 40 +-
.../Reports/Rendering/ChartRenderer.cs | 4 +-
Scripts/Engines/Reports/Rendering/DataItem.cs | 28 +-
.../Reports/Rendering/PieChartRenderer.cs | 4 +-
Scripts/Engines/Reports/Reports.cs | 2 +-
Scripts/Engines/Spawner/ProximitySpawner.cs | 17 +-
Scripts/Engines/Spawner/Spawner.cs | 69 +-
.../BasePigmentsOfTokuno.cs | 12 +-
.../Treasures of Tokuno/GreaterArtifacts.cs | 2 +-
.../Treasures of Tokuno/LesserArtifacts.cs | 10 +-
.../Treasures of Tokuno/TreasuresOfTokuno.cs | 39 +-
.../TreasuresOfTokunoPersistance.cs | 7 +-
.../Character Statue Maker/CharacterStatue.cs | 28 +-
.../CharacterStatueMaker.cs | 4 +-
.../CharacterStatuePlinth.cs | 2 +-
.../Engines/VeteranRewards/RewardCategory.cs | 4 +-
Scripts/Engines/VeteranRewards/RewardEntry.cs | 16 +-
Scripts/Engines/VeteranRewards/RewardList.cs | 4 +-
.../VeteranRewards/RewardOptionGump.cs | 4 +-
Scripts/Engines/Virtues/Honor.cs | 14 +-
Scripts/Gumps/BaseConfirmGump.cs | 9 +-
Scripts/Gumps/BaseGridGump.cs | 33 +-
Scripts/Gumps/BaseImageTileButtonsGump.cs | 22 +-
Scripts/Gumps/CategorizedAddGump.cs | 14 +-
Scripts/Gumps/Go/ChildNode.cs | 24 +-
Scripts/Gumps/Go/LocationTree.cs | 24 +-
Scripts/Gumps/Go/ParentNode.cs | 24 +-
.../Guilds/New Guild System/BaseGuildGump.cs | 4 +-
.../New Guild System/BaseGuildListGump.cs | 6 +-
.../Guilds/New Guild System/DiplomacyGump.cs | 3 +-
Scripts/Gumps/PlayerVendorGumps.cs | 22 +-
Scripts/Gumps/PolymorphGump.cs | 4 +-
Scripts/Gumps/RunebookGump.cs | 2 +-
Scripts/Gumps/SkillsGump.cs | 9 +-
.../Christmas/2010/Addons/FireFliesDeed.cs | 2 +-
.../Halloween/2011/Items/BasePaintedMask.cs | 2 +-
.../Halloween/2012/Engines/PlayerZombies.cs | 4 +-
.../Halloween/HolidaySettings.cs | 10 +-
.../Valentine/2011/Items/StValentinesBears.cs | 22 +-
.../Valentine/2012/Items/CupidsArrow.cs | 9 +-
Scripts/Items/Addons/AddonComponent.cs | 31 +-
.../Items/Addons/AddonContainerComponent.cs | 10 +-
Scripts/Items/Addons/ArcheryButteAddon.cs | 32 +-
Scripts/Items/Addons/BallotBox.cs | 15 +-
Scripts/Items/Addons/BaseAddon.cs | 26 +-
Scripts/Items/Addons/BaseAddonContainer.cs | 17 +-
.../Items/Addons/BaseAddonContainerDeed.cs | 2 +-
Scripts/Items/Addons/BaseAddonDeed.cs | 2 +-
Scripts/Items/Addons/DartBoard.cs | 2 +-
.../Addons/ElvenSpinningwheelEastAddon.cs | 2 +-
.../Addons/ElvenSpinningwheelSouthAddon.cs | 2 +-
Scripts/Items/Addons/FireColumnAddon.cs | 5 +-
Scripts/Items/Addons/FlourMillEastAddon.cs | 22 +-
Scripts/Items/Addons/FlourMillSouthAddon.cs | 22 +-
Scripts/Items/Addons/JackOLantern.cs | 5 +-
Scripts/Items/Addons/LoomEastAddon.cs | 4 +-
Scripts/Items/Addons/LoomSouthAddon.cs | 4 +-
Scripts/Items/Addons/PickpocketDips.cs | 13 +-
Scripts/Items/Addons/PyramidAddon.cs | 5 +-
Scripts/Items/Addons/SHTeleporter.cs | 17 +-
.../Items/Addons/SpinningwheelEastAddon.cs | 2 +-
.../Items/Addons/SpinningwheelSouthAddon.cs | 2 +-
Scripts/Items/Addons/TrainingDummies.cs | 13 +-
Scripts/Items/Addons/WaterTroughEastAddon.cs | 2 +-
Scripts/Items/Addons/WaterTroughSouthAddon.cs | 2 +-
Scripts/Items/Aquarium/Aquarium.cs | 34 +-
Scripts/Items/Aquarium/AquariumState.cs | 14 +-
Scripts/Items/Aquarium/BaseFish.cs | 5 +-
Scripts/Items/Aquarium/FishBowl.cs | 5 +-
Scripts/Items/Armor/BaseArmor.cs | 157 +--
Scripts/Items/Armor/Glasses/ElvenGlasses.cs | 2 +-
Scripts/Items/Armor/Leather/LeafGloves.cs | 9 +-
Scripts/Items/Armor/Leather/LeatherGloves.cs | 9 +-
Scripts/Items/Body Parts/Head.cs | 8 +-
Scripts/Items/Books/BaseBook.cs | 40 +-
Scripts/Items/Books/Defined/BookContent.cs | 6 +-
.../Shared/DetectiveBoots.cs | 2 +-
Scripts/Items/Clothing/BaseClothing.cs | 65 +-
Scripts/Items/Clothing/Cloaks.cs | 15 +-
Scripts/Items/Clothing/Hats.cs | 9 +-
Scripts/Items/Clothing/OuterTorso.cs | 26 +-
Scripts/Items/Clothing/Shoes.cs | 9 +-
Scripts/Items/Construction/Ankhs.cs | 8 +-
Scripts/Items/Construction/Doors/BaseDoor.cs | 82 +-
.../Items/Construction/Doors/HouseDoors.cs | 8 +-
.../Items/Construction/Signs/LocalizedSign.cs | 3 +-
.../Items/Construction/Signs/SubtextSign.cs | 2 +-
Scripts/Items/Containers/BaseTreasureChest.cs | 37 +-
.../Items/Containers/FillableContainers.cs | 8 +-
Scripts/Items/Containers/LockableContainer.cs | 77 +-
Scripts/Items/Containers/MarkContainer.cs | 23 +-
Scripts/Items/Containers/Strongbox.cs | 13 +-
.../Items/Containers/TrappableContainer.cs | 32 +-
Scripts/Items/Containers/TreasureMapChest.cs | 19 +-
.../SEDecorationArtifacts.cs | 4 +-
.../StealableArtifactsSpawner.cs | 29 +-
Scripts/Items/Deeds/BarkeepContract.cs | 5 +-
Scripts/Items/Deeds/ClothingBlessDeed.cs | 5 +-
Scripts/Items/Deeds/CommodityDeed.cs | 8 +-
Scripts/Items/Deeds/DragonBardingDeed.cs | 9 +-
Scripts/Items/Deeds/NameChangeDeed.cs | 5 +-
Scripts/Items/Deeds/NewPlayerTicket.cs | 4 +-
Scripts/Items/Deeds/VendorRentalContract.cs | 12 +-
Scripts/Items/Food/Beverage.cs | 29 +-
Scripts/Items/Food/CookableFood.cs | 20 +-
Scripts/Items/Food/Cooking.cs | 2 +-
Scripts/Items/Food/Food.cs | 32 +-
Scripts/Items/Games/BaseBoard.cs | 4 +-
Scripts/Items/Games/BasePiece.cs | 4 +-
Scripts/Items/Games/CheckersPieces.cs | 10 +-
Scripts/Items/Games/ChessPieces.cs | 60 +-
.../Games/Mahjong/MahjongDealerIndicator.cs | 5 +-
Scripts/Items/Games/Mahjong/MahjongGame.cs | 8 +-
Scripts/Items/Games/Mahjong/MahjongTile.cs | 10 +-
.../Mahjong/MahjongWallBreakIndicator.cs | 5 +-
Scripts/Items/Gems/Amber.cs | 5 +-
Scripts/Items/Gems/Amethyst.cs | 5 +-
Scripts/Items/Gems/Citrine.cs | 5 +-
Scripts/Items/Gems/Diamond.cs | 5 +-
Scripts/Items/Gems/Emerald.cs | 5 +-
Scripts/Items/Gems/Ruby.cs | 5 +-
Scripts/Items/Gems/Sapphire.cs | 5 +-
Scripts/Items/Gems/StarSapphire.cs | 5 +-
Scripts/Items/Gems/Tourmaline.cs | 5 +-
Scripts/Items/Guilds/Guildstone.cs | 29 +-
Scripts/Items/Jewels/BaseJewel.cs | 25 +-
Scripts/Items/Lights/BaseLight.cs | 12 +-
Scripts/Items/Lights/Candelabra.cs | 4 +-
Scripts/Items/Maps/MapItem.cs | 21 +-
Scripts/Items/Maps/PresetMap.cs | 10 +-
Scripts/Items/Maps/TreasureMap.cs | 19 +-
.../Items/Minor Artifacts/ML/AegisOfGrace.cs | 8 +-
Scripts/Items/Misc/ArcaneGem.cs | 5 +-
Scripts/Items/Misc/BankCheck.cs | 2 +-
Scripts/Items/Misc/BulletinBoards.cs | 26 +-
Scripts/Items/Misc/ClockworkAssembly.cs | 5 +-
Scripts/Items/Misc/CommunicationCrystals.cs | 22 +-
Scripts/Items/Misc/Corpses/Corpse.cs | 90 +-
.../Items/Misc/Corpses/CorpseNameAttribute.cs | 5 +-
Scripts/Items/Misc/DeceitBrazier.cs | 8 +-
Scripts/Items/Misc/EffectController.cs | 225 +--
Scripts/Items/Misc/EffectItem.cs | 8 +-
Scripts/Items/Misc/Firebomb.cs | 5 +-
Scripts/Items/Misc/FlippableAddonAttribute.cs | 5 +-
Scripts/Items/Misc/FlippableAttribute.cs | 5 +-
Scripts/Items/Misc/Gold.cs | 5 +-
Scripts/Items/Misc/HairDye.cs | 24 +-
Scripts/Items/Misc/InteriorDecorator.cs | 3 +-
Scripts/Items/Misc/Key.cs | 30 +-
Scripts/Items/Misc/LOSBlocker.cs | 5 +-
Scripts/Items/Misc/Moonstone.cs | 5 +-
Scripts/Items/Misc/MorphItem.cs | 14 +-
Scripts/Items/Misc/OilCloth.cs | 5 +-
Scripts/Items/Misc/PlayerBulletinBoards.cs | 29 +-
Scripts/Items/Misc/PowerCrystal.cs | 5 +-
Scripts/Items/Misc/PowerGenerator.cs | 17 +-
Scripts/Items/Misc/PublicMoongate.cs | 48 +-
Scripts/Items/Misc/SerpentPillar.cs | 12 +-
Scripts/Items/Misc/SpecialBeardDye.cs | 24 +-
Scripts/Items/Misc/SpecialHairDye.cs | 29 +-
Scripts/Items/Misc/Static.cs | 2 +-
Scripts/Items/Misc/SwarmOfFlies.cs | 5 +-
Scripts/Items/Misc/Teleporter.cs | 85 +-
Scripts/Items/Misc/TrashBarrel.cs | 5 +-
Scripts/Items/Misc/TrashChest.cs | 5 +-
Scripts/Items/Misc/UnholyBone.cs | 5 +-
Scripts/Items/Misc/WarningItem.cs | 24 +-
Scripts/Items/Misc/Waypoint.cs | 10 +-
Scripts/Items/Misc/WindChimes.cs | 7 +-
Scripts/Items/Quivers/BaseQuiver.cs | 19 +-
Scripts/Items/Resources/Arrows/Arrow.cs | 9 +-
Scripts/Items/Resources/Arrows/Bolt.cs | 9 +-
Scripts/Items/Resources/Arrows/Feather.cs | 9 +-
Scripts/Items/Resources/Arrows/Shaft.cs | 9 +-
.../Items/Resources/Blacksmithing/Ingots.cs | 13 +-
Scripts/Items/Resources/Blacksmithing/Ore.cs | 2 +-
.../Items/Resources/Blacksmithing/Scales.cs | 11 +-
Scripts/Items/Resources/Fishing/BigFish.cs | 2 +-
Scripts/Items/Resources/Fishing/MagicFish.cs | 9 +-
Scripts/Items/Resources/Masonry/Granite.cs | 7 +-
.../Items/Resources/Reagents/BaseReagent.cs | 5 +-
Scripts/Items/Resources/Reagents/BatWing.cs | 4 +-
.../Items/Resources/Reagents/BlackPearl.cs | 4 +-
Scripts/Items/Resources/Reagents/Bloodmoss.cs | 4 +-
.../Items/Resources/Reagents/DaemonBlood.cs | 4 +-
.../Items/Resources/Reagents/DaemonBone.cs | 5 +-
Scripts/Items/Resources/Reagents/DeadWood.cs | 4 +-
.../Items/Resources/Reagents/DragonsBlood.cs | 4 +-
Scripts/Items/Resources/Reagents/Garlic.cs | 4 +-
Scripts/Items/Resources/Reagents/Ginseng.cs | 4 +-
Scripts/Items/Resources/Reagents/GraveDust.cs | 4 +-
.../Items/Resources/Reagents/MandrakeRoot.cs | 4 +-
.../Items/Resources/Reagents/Nightshade.cs | 4 +-
.../Items/Resources/Reagents/NoxCrystal.cs | 4 +-
Scripts/Items/Resources/Reagents/PigIron.cs | 4 +-
.../Items/Resources/Reagents/SpidersSilk.cs | 4 +-
.../Items/Resources/Reagents/SulfurousAsh.cs | 4 +-
Scripts/Items/Resources/Tailor/BoltOfCloth.cs | 4 +-
Scripts/Items/Resources/Tailor/Bone.cs | 4 +-
Scripts/Items/Resources/Tailor/Cloth.cs | 9 +-
Scripts/Items/Resources/Tailor/Hides.cs | 6 +-
Scripts/Items/Resources/Tailor/Leathers.cs | 6 +-
Scripts/Items/Resources/Tailor/UncutCloth.cs | 9 +-
Scripts/Items/Skill Items/Camping/Campfire.cs | 20 +-
.../Skill Items/Carpenter Items/Board.cs | 4 +-
.../Carpenter Items/TaxidermyKit.cs | 47 +-
.../Fishing/Misc/MessageInABottle.cs | 8 +-
Scripts/Items/Skill Items/Fishing/Misc/SOS.cs | 30 +-
.../Fishing/Misc/ShipwreckedItem.cs | 5 +-
.../Fishing/Misc/SpecialFishingNet.cs | 4 +-
.../Harvest Tools/BaseHarvestTool.cs | 9 +-
.../Harvest Tools/ProspectorsTool.cs | 5 +-
Scripts/Items/Skill Items/Lumberjack/Log.cs | 6 +-
.../Skill Items/Magical/Misc/BlankScroll.cs | 4 +-
.../Items/Skill Items/Magical/Misc/Bottle.cs | 4 +-
.../Skill Items/Magical/Misc/Moongate.cs | 60 +-
.../Skill Items/Magical/Misc/PotionKeg.cs | 10 +-
.../Skill Items/Magical/Misc/RecallRune.cs | 25 +-
.../Skill Items/Magical/Potions/BasePotion.cs | 11 +-
.../BaseConflagrationPotion.cs | 7 +-
.../BaseConfusionBlastPotion.cs | 5 +-
.../Potions/Cure Potions/BaseCurePotion.cs | 10 +-
.../Explosion Potions/BaseExplosionPotion.cs | 5 +-
Scripts/Items/Skill Items/Magical/Runebook.cs | 75 +-
.../Magical/Scrolls/SpellScroll.cs | 12 +-
.../Items/Skill Items/Magical/Spellbook.cs | 33 +-
Scripts/Items/Skill Items/Misc/Bandage.cs | 15 +-
.../Items/Skill Items/Misc/RecipeScroll.cs | 2 +-
Scripts/Items/Skill Items/Misc/RepairDeed.cs | 8 +-
.../Musical Instruments/BaseInstrument.cs | 26 +-
Scripts/Items/Skill Items/Ninjitsu/EggBomb.cs | 7 +-
Scripts/Items/Skill Items/Ninjitsu/Fukiya.cs | 11 +-
.../Items/Skill Items/Ninjitsu/FukiyaDarts.cs | 9 +-
.../Skill Items/Ninjitsu/LeatherNinjaBelt.cs | 11 +-
.../Items/Skill Items/Ninjitsu/Shuriken.cs | 9 +-
.../Specialized/GlassblowingBook.cs | 5 +-
.../Skill Items/Specialized/MasonryBook.cs | 5 +-
Scripts/Items/Skill Items/Specialized/Sand.cs | 4 +-
.../Skill Items/Specialized/SandMiningBook.cs | 5 +-
.../Specialized/StoneMiningBook.cs | 5 +-
.../Tailor Items/Dyetubs/CustomHuePicker.cs | 14 +-
.../Tailor Items/Dyetubs/DyeTub.cs | 56 +-
.../Tailor Items/Dyetubs/FurnitureDyeTub.cs | 4 +-
.../Tailor Items/Dyetubs/LeatherDyeTub.cs | 4 +-
.../Tailor Items/Dyetubs/RewardBlackDyeTub.cs | 4 +-
.../Tailor Items/Dyetubs/RunebookDyeTub.cs | 4 +-
.../Tailor Items/Dyetubs/SpecialDyeTub.cs | 4 +-
.../Tailor Items/Dyetubs/StatuetteDyeTub.cs | 4 +-
.../Items/Skill Items/Thief/DisguiseKit.cs | 5 +-
.../Skill Items/Thief/DisguisePersistance.cs | 7 +-
Scripts/Items/Skill Items/Tinkering/Clocks.cs | 5 +-
.../Items/Skill Items/Tools/BaseRunicTool.cs | 2 +-
Scripts/Items/Skill Items/Tools/BaseTool.cs | 9 +-
.../11th Year promo/EarringsOfProtection.cs | 24 +-
.../Dawn's Music Box/DawnsMusicBox.cs | 9 +-
.../Dawn's Music Box/DawnsMusicGear.cs | 19 +-
.../Dawn's Music Box/DawnsMusicInfo.cs | 10 +-
.../8th Anniversary Items/FountainOfLife.cs | 11 +-
.../Blacksmithy/AncientSmithyHammer.cs | 5 +-
.../Blacksmithy/GlovesOfMining.cs | 5 +-
.../Blacksmithy/PowderOfTemperament.cs | 5 +-
.../AwesomeDisturbingPortrait.cs | 2 +-
Scripts/Items/Special/Gifts/RoseOfTrinsic.cs | 6 +-
.../Items/Special/Gifts/TapestryOfSosaria.cs | 4 +-
.../Items/Special/Heritage Items/Curtains.cs | 4 +-
.../Special/Heritage Items/FruitTrees.cs | 2 +-
.../Special/Holiday/Christmas/HolidayTree.cs | 9 +-
Scripts/Items/Special/Holiday/HolidayBell.cs | 11 +-
Scripts/Items/Special/Holiday/HolidayFoods.cs | 8 +-
.../Items/Special/Holiday/HolidayGiftBoxes.cs | 4 +-
.../Items/Special/Holiday/PKHolidayStuff.cs | 5 +-
Scripts/Items/Special/Holiday/SnowGlobes.cs | 6 +-
Scripts/Items/Special/Holiday/Snowman.cs | 2 +-
Scripts/Items/Special/Holiday/Wreath.cs | 5 +-
.../Special/House Raffle/HouseRaffleDeed.cs | 23 +-
.../Special/House Raffle/HouseRaffleStone.cs | 52 +-
Scripts/Items/Special/MiniHouses.cs | 8 +-
Scripts/Items/Special/MonsterStatuette.cs | 24 +-
.../Special/Mutation Core/PlagueBeastBlood.cs | 10 +-
.../Mutation Core/PlagueBeastInnard.cs | 19 +-
.../Mutation Core/PlagueBeastMutationCore.cs | 4 +-
.../Mutation Core/PlagueBeastOrgans.cs | 18 +-
.../Special/Mutation Core/PlagueBeastVein.cs | 5 +-
.../Rares/Containers/BaseWaterContainer.cs | 9 +-
.../Items/Special/Solen Items/BagOfSending.cs | 12 +-
.../Special/Solen Items/BallOfSummoning.cs | 20 +-
.../Special/Solen Items/BraceletOfBinding.cs | 14 +-
.../Items/Special/Solen Items/ZoogiFungus.cs | 4 +-
Scripts/Items/Special/SoulStone.cs | 33 +-
.../Special/Special Scrolls/SpecialScroll.cs | 14 +-
.../Special/Valentines/2007/ValentinesCard.cs | 8 +-
.../Veteran Rewards/AnkhOfSacrifice.cs | 4 +-
.../Items/Special/Veteran Rewards/Banner.cs | 9 +-
.../Veteran Rewards/BloodyPentagram.cs | 4 +-
.../Items/Special/Veteran Rewards/Brazier.cs | 4 +-
.../Items/Special/Veteran Rewards/Cannon.cs | 13 +-
.../Veteran Rewards/CommodityDeedBox.cs | 2 +-
.../Veteran Rewards/ContestMiniHouse.cs | 4 +-
.../Veteran Rewards/DecorativeShield.cs | 4 +-
.../Special/Veteran Rewards/FlamingHead.cs | 4 +-
.../Veteran Rewards/HangingSkeleton.cs | 4 +-
.../Special/Veteran Rewards/MiningCart.cs | 27 +-
.../Special/Veteran Rewards/MinotaurStatue.cs | 4 +-
.../Special/Veteran Rewards/PottedCactus.cs | 4 +-
.../Special/Veteran Rewards/StoneAnkh.cs | 4 +-
.../Special/Veteran Rewards/TreeStump.cs | 8 +-
.../Special/Veteran Rewards/WallBanner.cs | 6 +-
.../Veteran Rewards/WeaponEngravingTool.cs | 6 +-
Scripts/Items/Suits/BaseSuit.cs | 4 +-
Scripts/Items/Talismans/BaseTalisman.cs | 30 +-
Scripts/Items/Talismans/TalismanAttribute.cs | 22 +-
Scripts/Items/Traps/BaseTrap.cs | 8 +-
Scripts/Items/Traps/FireColumnTrap.cs | 12 +-
Scripts/Items/Traps/GasTrap.cs | 9 +-
Scripts/Items/Traps/SawTrap.cs | 5 +-
Scripts/Items/Traps/SpikeTrap.cs | 2 +-
Scripts/Items/Traps/StoneFaceTrap.cs | 2 +-
.../TreasureChests/TreasureChestLevel1.cs | 5 +-
.../TreasureChests/TreasureChestLevel2.cs | 5 +-
.../TreasureChests/TreasureChestLevel3.cs | 5 +-
.../TreasureChests/TreasureChestLevel4.cs | 5 +-
Scripts/Items/Wands/BaseWand.cs | 6 +-
.../Items/Weapons/Abilities/WeaponAbility.cs | 12 +-
Scripts/Items/Weapons/Axes/BaseAxe.cs | 6 +-
Scripts/Items/Weapons/BaseWeapon.cs | 178 ++-
.../Items/Weapons/Knives/ThrowingDagger.cs | 5 +-
Scripts/Items/Weapons/Maces/FireworksWand.cs | 2 +-
Scripts/Items/Weapons/PoleArms/BasePoleArm.cs | 6 +-
Scripts/Items/Weapons/Ranged/BaseRanged.cs | 4 +-
Scripts/Items/Weapons/Ranged/JukaBow.cs | 5 +-
Scripts/Items/Weapons/SlayerEntry.cs | 8 +-
Scripts/Items/Weapons/SlayerGroup.cs | 26 +-
.../Weapons/SpearsAndForks/TribalSpear.cs | 5 +-
Scripts/Misc/AOS.cs | 298 ++--
Scripts/Misc/AutoRestart.cs | 5 +-
Scripts/Misc/AutoSave.cs | 4 +-
Scripts/Misc/ClientVerification.cs | 50 +-
Scripts/Misc/Emitter.cs | 20 +-
Scripts/Misc/Geometry.cs | 8 +-
.../Winter2004/LightOfTheWinterSolstice.cs | 4 +-
Scripts/Misc/Gifts/Winter2004/Mistletoe.cs | 5 +-
Scripts/Misc/Guild.cs | 257 +---
Scripts/Misc/HardwareInfo.cs | 52 +-
Scripts/Misc/InhumanSpeech.cs | 22 +-
Scripts/Misc/LanguageStatistics.cs | 14 +-
Scripts/Misc/LightCycle.cs | 2 +-
Scripts/Misc/Loot.cs | 89 +-
Scripts/Misc/LootPack.cs | 59 +-
Scripts/Misc/NameList.cs | 4 +-
Scripts/Misc/Poison.cs | 4 +-
Scripts/Misc/ProfanityProtection.cs | 6 +-
Scripts/Misc/ResourceInfo.cs | 128 +-
Scripts/Misc/ShardPoller.cs | 40 +-
Scripts/Misc/TextDefinition.cs | 2 +-
Scripts/Misc/ToggleItem.cs | 12 +-
Scripts/Misc/Weather.cs | 39 +-
Scripts/Misc/WeightOverloading.cs | 4 +-
Scripts/Mobiles/AI/AIControlMobileTarget.cs | 6 +-
Scripts/Mobiles/AI/BaseAI.cs | 11 +-
Scripts/Mobiles/AI/MageAI.cs | 10 +-
Scripts/Mobiles/AI/OppositionGroup.cs | 17 +-
Scripts/Mobiles/AI/SpeedInfo.cs | 12 +-
Scripts/Mobiles/Animals/Cows/Cow.cs | 8 +-
Scripts/Mobiles/Animals/Misc/Sheep.cs | 2 +-
Scripts/Mobiles/Animals/Mounts/BaseMount.cs | 33 +-
Scripts/Mobiles/Animals/Mounts/Beetle.cs | 2 +-
Scripts/Mobiles/Animals/Mounts/Ethereals.cs | 42 +-
Scripts/Mobiles/Animals/Mounts/Kirin.cs | 5 +-
Scripts/Mobiles/Animals/Mounts/SwampDragon.cs | 15 +-
Scripts/Mobiles/Animals/Mounts/Unicorn.cs | 5 +-
Scripts/Mobiles/BaseCreature.cs | 671 ++++-----
Scripts/Mobiles/Guards/ArcherGuard.cs | 5 +-
Scripts/Mobiles/Guards/WarriorGuard.cs | 5 +-
Scripts/Mobiles/Healers/BaseHealer.cs | 4 +-
Scripts/Mobiles/Healers/PricedHealer.cs | 4 +-
Scripts/Mobiles/Monsters/AOS/ShadowKnight.cs | 5 +-
Scripts/Mobiles/Monsters/AOS/Treefellow.cs | 5 +-
.../Mobiles/Monsters/Ants/BlackSolenQueen.cs | 2 +-
.../Monsters/Ants/BlackSolenWarrior.cs | 2 +-
.../Mobiles/Monsters/Ants/RedSolenQueen.cs | 2 +-
.../Mobiles/Monsters/Ants/RedSolenWarrior.cs | 2 +-
.../Arachnid/Magic/TerathanAvenger.cs | 5 +-
.../Arachnid/Magic/TerathanMatriarch.cs | 5 +-
.../Monsters/Arachnid/Melee/TerathanDrone.cs | 5 +-
.../Arachnid/Melee/TerathanWarrior.cs | 5 +-
.../Monsters/Humanoid/Magic/AncientLich.cs | 5 +-
.../Mobiles/Monsters/Humanoid/Magic/Bogle.cs | 5 +-
.../Monsters/Humanoid/Magic/BoneMagi.cs | 5 +-
.../Mobiles/Monsters/Humanoid/Magic/Lich.cs | 5 +-
.../Monsters/Humanoid/Magic/LichLord.cs | 5 +-
.../Monsters/Humanoid/Magic/OrcishMage.cs | 5 +-
.../Monsters/Humanoid/Magic/SavageShaman.cs | 5 +-
.../Mobiles/Monsters/Humanoid/Magic/Shade.cs | 5 +-
.../Monsters/Humanoid/Magic/SkeletalMage.cs | 5 +-
.../Monsters/Humanoid/Magic/Spectre.cs | 5 +-
.../Mobiles/Monsters/Humanoid/Magic/Wraith.cs | 5 +-
.../Monsters/Humanoid/Melee/BoneKnight.cs | 5 +-
.../Mobiles/Monsters/Humanoid/Melee/Ghoul.cs | 5 +-
.../Mobiles/Monsters/Humanoid/Melee/Mummy.cs | 5 +-
.../Mobiles/Monsters/Humanoid/Melee/Orc.cs | 5 +-
.../Monsters/Humanoid/Melee/OrcBomber.cs | 5 +-
.../Monsters/Humanoid/Melee/OrcBrute.cs | 5 +-
.../Monsters/Humanoid/Melee/OrcCaptain.cs | 5 +-
.../Monsters/Humanoid/Melee/OrcishLord.cs | 5 +-
.../Monsters/Humanoid/Melee/RottingCorpse.cs | 5 +-
.../Mobiles/Monsters/Humanoid/Melee/Savage.cs | 5 +-
.../Monsters/Humanoid/Melee/SavageRider.cs | 5 +-
.../Monsters/Humanoid/Melee/SkeletalKnight.cs | 5 +-
.../Monsters/Humanoid/Melee/Skeleton.cs | 5 +-
.../Mobiles/Monsters/Humanoid/Melee/Zombie.cs | 5 +-
.../Monsters/LBR/Exodus/ExodusMinion.cs | 5 +-
.../Monsters/LBR/Exodus/ExodusOverseer.cs | 5 +-
.../Monsters/ML/Humanoid/Magic/MLDryad.cs | 5 +-
.../Monsters/ML/Humanoid/Magic/Satyr.cs | 5 +-
.../ML/Humanoid/Melee/FerelTreefellow.cs | 5 +-
.../Mobiles/Monsters/ML/Special/Ilhenir.cs | 4 +-
Scripts/Mobiles/Monsters/ML/Special/Twaulo.cs | 5 +-
.../Monsters/ML/Twisted Weald/Changeling.cs | 2 +-
.../Mobiles/Monsters/Misc/Magic/DarkWisp.cs | 5 +-
.../Monsters/Misc/Magic/EtherealWarrior.cs | 5 +-
Scripts/Mobiles/Monsters/Misc/Magic/Pixie.cs | 5 +-
.../Mobiles/Monsters/Misc/Magic/ShadowWisp.cs | 5 +-
Scripts/Mobiles/Monsters/Misc/Magic/Wisp.cs | 5 +-
.../Mobiles/Monsters/Misc/Melee/Centaur.cs | 5 +-
.../Monsters/Misc/Melee/PlagueBeast.cs | 13 +-
.../Monsters/Misc/Melee/PlagueBeastLord.cs | 14 +-
.../Monsters/Misc/Melee/PlagueSpawn.cs | 8 +-
.../Ore Elementals/AgapiteElemental.cs | 2 +-
.../Monsters/Reptile/Magic/Leviathan.cs | 4 +-
.../Reptile/Magic/OphidianArchmage.cs | 5 +-
.../Monsters/Reptile/Magic/OphidianMage.cs | 5 +-
.../Reptile/Magic/OphidianMatriarch.cs | 5 +-
.../Monsters/Reptile/Melee/OphidianKnight.cs | 5 +-
.../Monsters/Reptile/Melee/OphidianWarrior.cs | 5 +-
Scripts/Mobiles/Monsters/SE/BakeKitsune.cs | 2 +-
Scripts/Mobiles/Monsters/SE/FireBeetle.cs | 2 +-
Scripts/Mobiles/PlayerMobile.cs | 414 +++---
Scripts/Mobiles/Special/Barracoon.cs | 9 +-
Scripts/Mobiles/Special/BaseChampion.cs | 2 +-
Scripts/Mobiles/Special/DarkGuardian.cs | 5 +-
Scripts/Mobiles/Special/Harrower.cs | 16 +-
Scripts/Mobiles/Special/HarrowerTentacles.cs | 10 +-
Scripts/Mobiles/Special/LordOaks.cs | 26 +-
Scripts/Mobiles/Special/Neira.cs | 12 +-
Scripts/Mobiles/Special/Rikktor.cs | 17 +-
Scripts/Mobiles/Special/Serado.cs | 11 +-
Scripts/Mobiles/Special/Silvani.cs | 5 +-
Scripts/Mobiles/Townfolk/Banker.cs | 2 +-
Scripts/Mobiles/Townfolk/BaseEscortable.cs | 22 +-
Scripts/Mobiles/Townfolk/TownCrier.cs | 23 +-
Scripts/Mobiles/Vendors/AnimalBuy.cs | 8 +-
Scripts/Mobiles/Vendors/BaseVendor.cs | 29 +-
Scripts/Mobiles/Vendors/GenericBuy.cs | 39 +-
Scripts/Mobiles/Vendors/NPC/Alchemist.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/AnimalTrainer.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Architect.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Armorer.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Baker.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Bard.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Barkeeper.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Beekeeper.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Blacksmith.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Bowyer.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Butcher.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Carpenter.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Cobbler.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Cook.cs | 7 +-
.../Mobiles/Vendors/NPC/CustomHairstylist.cs | 31 +-
Scripts/Mobiles/Vendors/NPC/Farmer.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Fisherman.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Furtrader.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Glassblower.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/GolemCrafter.cs | 2 +-
.../NPC/Guildmasters/BaseGuildmaster.cs | 12 +-
.../NPC/Guildmasters/BlacksmithGuildmaster.cs | 5 +-
.../NPC/Guildmasters/HealerGuildmaster.cs | 5 +-
.../NPC/Guildmasters/MageGuildmaster.cs | 5 +-
.../Mobiles/Vendors/NPC/GypsyAnimalTrainer.cs | 5 +-
Scripts/Mobiles/Vendors/NPC/GypsyMaiden.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/HairStylist.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Herbalist.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/HolyMage.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/InnKeeper.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/IronWorker.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Jeweler.cs | 2 +-
.../Mobiles/Vendors/NPC/KeeperOfChivalry.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/LeatherWorker.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Mage.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Mapmaker.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Miller.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Miner.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Monk.cs | 4 +-
Scripts/Mobiles/Vendors/NPC/Provisioner.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Rancher.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Ranger.cs | 2 +-
.../Mobiles/Vendors/NPC/RealEstateBroker.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Scribe.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Shipwright.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/StoneCrafter.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Tailor.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Tanner.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/TavernKeeper.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Thief.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Tinker.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Vagabond.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/VarietyDealer.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Veterinarian.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Waiter.cs | 2 +-
Scripts/Mobiles/Vendors/NPC/Weaponsmith.cs | 7 +-
Scripts/Mobiles/Vendors/NPC/Weaver.cs | 7 +-
Scripts/Mobiles/Vendors/PlayerBarkeeper.cs | 22 +-
Scripts/Mobiles/Vendors/PlayerVendor.cs | 41 +-
Scripts/Mobiles/Vendors/RentedVendor.cs | 39 +-
Scripts/Mobiles/Vendors/VendorInventory.cs | 30 +-
Scripts/Multis/BaseHouse.cs | 179 ++-
Scripts/Multis/Boats/BaseBoat.cs | 85 +-
Scripts/Multis/Boats/BaseBoatDeed.cs | 8 +-
Scripts/Multis/Boats/BaseDockedBoat.cs | 11 +-
Scripts/Multis/Boats/Hold.cs | 5 +-
Scripts/Multis/Boats/Plank.cs | 20 +-
Scripts/Multis/Camps/BaseCamp.cs | 7 +-
Scripts/Multis/Camps/BrigandCamp.cs | 6 +-
Scripts/Multis/Camps/LizardmenCamp.cs | 4 +-
Scripts/Multis/Camps/OrcCamp.cs | 2 +-
Scripts/Multis/Camps/RatCamp.cs | 2 +-
Scripts/Multis/ComponentVerification.cs | 8 +-
Scripts/Multis/Deeds.cs | 20 +-
Scripts/Multis/DynamicDecay.cs | 10 +-
Scripts/Multis/HouseFoundation.cs | 34 +-
Scripts/Multis/HousePlacementTool.cs | 28 +-
Scripts/Multis/HouseSign.cs | 23 +-
Scripts/Multis/HouseTeleporter.cs | 8 +-
Scripts/Multis/MovingCrate.cs | 14 +-
Scripts/Regions/BaseRegion.cs | 18 +-
Scripts/Regions/DungeonRegion.cs | 8 +-
Scripts/Regions/GuardedRegion.cs | 6 +-
Scripts/Regions/HouseRegion.cs | 8 +-
Scripts/Regions/NoHousingRegion.cs | 2 +-
Scripts/Regions/Spawning/SpawnDefinition.cs | 16 +-
Scripts/Regions/Spawning/SpawnEntry.cs | 36 +-
Scripts/Regions/Spawning/SpawnPersistence.cs | 7 +-
Scripts/Skills/AnimalTaming.cs | 4 +-
Scripts/Skills/Hiding.cs | 4 +-
Scripts/Skills/Stealing.cs | 10 +-
Scripts/Skills/Stealth.cs | 2 +-
Scripts/SpecialSystems/Engines/GiftGiving.cs | 2 +-
Scripts/SpecialSystems/Engines/TestCenter.cs | 2 +-
.../Items/Resurrection/ResGate.cs | 5 +-
.../Items/Stones/AlchemyStone.cs | 5 +-
.../Items/Stones/GamblingStone.cs | 10 +-
.../SpecialSystems/Items/Stones/IngotStone.cs | 5 +-
.../SpecialSystems/Items/Stones/RegStone.cs | 5 +-
.../Items/Stones/ScribeStone.cs | 5 +-
.../SpecialSystems/Items/Stones/SmithStone.cs | 5 +-
.../Items/Stones/TailorStone.cs | 5 +-
.../Items/SupplyBags/AlchemyBag.cs | 5 +-
.../Items/SupplyBags/ScribeBag.cs | 5 +-
.../Items/SupplyBags/TailorBag.cs | 5 +-
Scripts/Spells/Base/MagerySpell.cs | 8 +-
Scripts/Spells/Base/SpecialMove.cs | 18 +-
Scripts/Spells/Base/Spell.cs | 50 +-
Scripts/Spells/Base/SpellHelper.cs | 4 +-
Scripts/Spells/Base/SpellInfo.cs | 32 +-
Scripts/Spells/First/CreateFood.cs | 8 +-
.../Gargoyle/SpellDefinitions/FlySpell.cs | 38 +-
Scripts/Spells/Necromancy/SummonFamiliar.cs | 12 +-
.../Spells/Necromancy/TransformationSpell.cs | 14 +-
Scripts/Spells/Ninjitsu/AnimalForm.cs | 2 +-
Scripts/Spells/Ninjitsu/MirrorImage.cs | 2 +-
Scripts/Spells/Reagent.cs | 73 +-
Scripts/Spells/Spellweaving/ArcaneForm.cs | 5 +-
Scripts/Spells/Spellweaving/ArcanistSpell.cs | 5 +-
Scripts/Spells/Spellweaving/GiftOfLife.cs | 2 +-
.../Spells/Spellweaving/Items/ArcaneFocus.cs | 4 +-
.../Spellweaving/Items/TransientItem.cs | 8 +-
Scripts/Spells/Spellweaving/ReaperForm.cs | 4 +-
Server/AggressorInfo.cs | 4 +-
Server/Attributes.cs | 48 +-
Server/BaseVendor.cs | 112 +-
Server/Body.cs | 176 +--
Server/ClientVersion.cs | 48 +-
Server/Commands.cs | 86 +-
Server/ContextMenus/ContextMenu.cs | 15 +-
Server/ContextMenus/ContextMenuEntry.cs | 29 +-
Server/Diagnostics/BaseProfile.cs | 30 +-
Server/Diagnostics/GumpProfile.cs | 6 +-
Server/Diagnostics/PacketProfile.cs | 24 +-
Server/Diagnostics/TargetProfile.cs | 6 +-
Server/Diagnostics/TimerProfile.cs | 30 +-
Server/Effects.cs | 4 +-
Server/EventSink.cs | 240 ++--
Server/ExpansionInfo.cs | 2 +-
Server/Geometry.cs | 154 +-
Server/Guild.cs | 18 +-
Server/Gumps/Gump.cs | 48 +-
Server/Gumps/GumpAlphaRegion.cs | 40 +-
Server/Gumps/GumpBackground.cs | 50 +-
Server/Gumps/GumpButton.cs | 65 +-
Server/Gumps/GumpCheck.cs | 60 +-
Server/Gumps/GumpEntry.cs | 5 +-
Server/Gumps/GumpGroup.cs | 10 +-
Server/Gumps/GumpHtml.cs | 70 +-
Server/Gumps/GumpHtmlLocalized.cs | 95 +-
Server/Gumps/GumpImage.cs | 40 +-
Server/Gumps/GumpImageTileButton.cs | 115 +-
Server/Gumps/GumpImageTiled.cs | 50 +-
Server/Gumps/GumpItem.cs | 40 +-
Server/Gumps/GumpItemProperty.cs | 10 +-
Server/Gumps/GumpLabel.cs | 40 +-
Server/Gumps/GumpLabelCropped.cs | 60 +-
Server/Gumps/GumpPage.cs | 10 +-
Server/Gumps/GumpRadio.cs | 60 +-
Server/Gumps/GumpTextEntry.cs | 70 +-
Server/Gumps/GumpTextEntryLimited.cs | 64 +-
Server/Gumps/GumpTooltip.cs | 10 +-
Server/Gumps/RelayInfo.cs | 40 +-
Server/HuePicker.cs | 16 +-
Server/IEntity.cs | 42 +-
Server/Insensitive.cs | 5 +-
Server/Item.cs | 230 +--
Server/ItemBounds.cs | 8 +-
Server/Items/BaseMulti.cs | 17 +-
Server/Items/Container.cs | 69 +-
Server/Items/Containers.cs | 33 +-
Server/Items/SecureTradeContainer.cs | 8 +-
Server/Items/VirtualCheck.cs | 4 +-
Server/Items/VirtualHair.cs | 8 +-
Server/KeywordList.cs | 8 +-
Server/Main.cs | 115 +-
Server/Map.cs | 27 +-
Server/Menus/ItemListMenu.cs | 58 +-
Server/Menus/QuestionMenu.cs | 34 +-
Server/Mobile.cs | 1254 +++++------------
Server/Movement.cs | 4 +-
Server/MultiData.cs | 18 +-
Server/Network/BufferPool.cs | 4 +-
Server/Network/ByteQueue.cs | 2 +-
Server/Network/Compression.cs | 24 +-
Server/Network/EncodedPacketHandler.cs | 24 +-
Server/Network/EncodedReader.cs | 8 +-
Server/Network/Listener.cs | 4 +-
Server/Network/MessagePump.cs | 4 +-
Server/Network/NetState.cs | 246 +---
Server/Network/PacketHandler.cs | 36 +-
Server/Network/PacketHandlers.cs | 17 +-
Server/Network/PacketReader.cs | 16 +-
Server/Network/PacketWriter.cs | 26 +-
Server/Network/Packets.cs | 212 +--
Server/Network/SendQueue.cs | 40 +-
Server/Notoriety.cs | 8 +-
Server/ObjectPropertyList.cs | 16 +-
Server/Party.cs | 4 +-
Server/Persistence/BinaryMemoryWriter.cs | 4 +-
Server/Persistence/FileOperations.cs | 36 +-
Server/Persistence/FileQueue.cs | 24 +-
Server/Persistence/QueuedMemoryWriter.cs | 5 +-
Server/Persistence/SequentialFileWriter.cs | 8 +-
Server/Persistence/StandardSaveStrategy.cs | 6 +-
Server/Point3DList.cs | 21 +-
Server/Poison.cs | 20 +-
Server/Prompt.cs | 8 +-
Server/QuestArrow.cs | 24 +-
Server/Race.cs | 58 +-
Server/Region.cs | 46 +-
Server/ScriptCompiler.cs | 16 +-
Server/Sector.cs | 28 +-
Server/SecureTrade.cs | 14 +-
Server/Serial.cs | 36 +-
Server/Serialization.cs | 39 +-
Server/Skills.cs | 412 +++---
Server/Targeting/LandTarget.cs | 56 +-
Server/Targeting/MultiTarget.cs | 20 +-
Server/Targeting/StaticTarget.cs | 56 +-
Server/Targeting/Target.cs | 74 +-
Server/TileData.cs | 58 +-
Server/TileList.cs | 8 +-
Server/TileMatrix.cs | 104 +-
Server/TileMatrixPatch.cs | 10 +-
Server/Timer.cs | 36 +-
Server/VirtueInfo.cs | 40 +-
Server/World.cs | 108 +-
957 files changed, 7424 insertions(+), 15973 deletions(-)
diff --git a/Scripts/Accounting/Account.cs b/Scripts/Accounting/Account.cs
index f694f2648..189dd3ba4 100644
--- a/Scripts/Accounting/Account.cs
+++ b/Scripts/Accounting/Account.cs
@@ -65,8 +65,8 @@ namespace Server.Accounting
///
public HardwareInfo HardwareInfo
{
- get { return m_HardwareInfo; }
- set { m_HardwareInfo = value; }
+ get => m_HardwareInfo;
+ set => m_HardwareInfo = value;
}
///
@@ -74,8 +74,8 @@ namespace Server.Accounting
///
public string[] IPRestrictions
{
- get { return m_IPRestrictions; }
- set { m_IPRestrictions = value; }
+ get => m_IPRestrictions;
+ set => m_IPRestrictions = value;
}
///
@@ -83,8 +83,8 @@ namespace Server.Accounting
///
public IPAddress[] LoginIPs
{
- get { return m_LoginIPs; }
- set { m_LoginIPs = value; }
+ get => m_LoginIPs;
+ set => m_LoginIPs = value;
}
///
@@ -108,8 +108,8 @@ namespace Server.Accounting
///
public string Username
{
- get { return m_Username; }
- set { m_Username = value; }
+ get => m_Username;
+ set => m_Username = value;
}
///
@@ -117,8 +117,8 @@ namespace Server.Accounting
///
public string Email
{
- get { return m_Email; }
- set { m_Email = value; }
+ get => m_Email;
+ set => m_Email = value;
}
///
@@ -126,8 +126,8 @@ namespace Server.Accounting
///
public string PlainPassword
{
- get { return m_PlainPassword; }
- set { m_PlainPassword = value; }
+ get => m_PlainPassword;
+ set => m_PlainPassword = value;
}
///
@@ -135,8 +135,8 @@ namespace Server.Accounting
///
public string CryptPassword
{
- get { return m_CryptPassword; }
- set { m_CryptPassword = value; }
+ get => m_CryptPassword;
+ set => m_CryptPassword = value;
}
///
@@ -144,8 +144,8 @@ namespace Server.Accounting
///
public string NewCryptPassword
{
- get { return m_NewCryptPassword; }
- set { m_NewCryptPassword = value; }
+ get => m_NewCryptPassword;
+ set => m_NewCryptPassword = value;
}
///
@@ -153,8 +153,8 @@ namespace Server.Accounting
///
public AccessLevel AccessLevel
{
- get { return m_AccessLevel; }
- set { m_AccessLevel = value; }
+ get => m_AccessLevel;
+ set => m_AccessLevel = value;
}
///
@@ -162,8 +162,8 @@ namespace Server.Accounting
///
public int Flags
{
- get { return m_Flags; }
- set { m_Flags = value; }
+ get => m_Flags;
+ set => m_Flags = value;
}
///
@@ -193,7 +193,7 @@ namespace Server.Accounting
return true;
}
- set { SetFlag( 0, value ); }
+ set => SetFlag( 0, value );
}
///
@@ -201,7 +201,7 @@ namespace Server.Accounting
///
public bool Young
{
- get { return !GetFlag( 1 ); }
+ get => !GetFlag( 1 );
set
{
SetFlag( 1, !value );
@@ -217,18 +217,15 @@ namespace Server.Accounting
///
/// The date and time of when this account was created.
///
- public DateTime Created
- {
- get { return m_Created; }
- }
+ public DateTime Created => m_Created;
///
/// Gets or sets the date and time when this account was last accessed.
///
public DateTime LastLogin
{
- get { return m_LastLogin; }
- set { m_LastLogin = value; }
+ get => m_LastLogin;
+ set => m_LastLogin = value;
}
///
@@ -1127,18 +1124,12 @@ namespace Server.Accounting
///
/// Gets the maximum amount of characters allowed to be created on this account. Values other than 1, 5, 6, or 7 are not supported by the client.
///
- public int Limit
- {
- get { return ( Core.SA ? 7 : Core.AOS ? 6 : 5 ); }
- }
+ public int Limit => ( Core.SA ? 7 : Core.AOS ? 6 : 5 );
///
/// Gets the maximum amount of characters that this account can hold.
///
- public int Length
- {
- get { return m_Mobiles.Length; }
- }
+ public int Length => m_Mobiles.Length;
///
/// Gets or sets the character at a specified index for this account. Out of bound index values are handled; null returned for get, ignored for set.
diff --git a/Scripts/Accounting/AccountAttackLimiter.cs b/Scripts/Accounting/AccountAttackLimiter.cs
index f1ef1803b..43924eff0 100644
--- a/Scripts/Accounting/AccountAttackLimiter.cs
+++ b/Scripts/Accounting/AccountAttackLimiter.cs
@@ -110,25 +110,22 @@ namespace Server.Accounting
public IPAddress Address
{
- get{ return m_Address; }
- set{ m_Address = value; }
+ get => m_Address;
+ set => m_Address = value;
}
public DateTime LastAccessTime
{
- get{ return m_LastAccessTime; }
- set{ m_LastAccessTime = value; }
+ get => m_LastAccessTime;
+ set => m_LastAccessTime = value;
}
- public bool HasExpired
- {
- get{ return ( DateTime.UtcNow >= ( m_LastAccessTime + TimeSpan.FromHours( 1.0 ) ) ); }
- }
+ public bool HasExpired => ( DateTime.UtcNow >= ( m_LastAccessTime + TimeSpan.FromHours( 1.0 ) ) );
public int Counts
{
- get{ return m_Counts; }
- set{ m_Counts = value; }
+ get => m_Counts;
+ set => m_Counts = value;
}
public void RefreshAccessTime()
diff --git a/Scripts/Accounting/AccountComment.cs b/Scripts/Accounting/AccountComment.cs
index 3571ef3b8..c9cc78123 100644
--- a/Scripts/Accounting/AccountComment.cs
+++ b/Scripts/Accounting/AccountComment.cs
@@ -12,27 +12,21 @@ namespace Server.Accounting
///
/// A string representing who added this comment.
///
- public string AddedBy
- {
- get{ return m_AddedBy; }
- }
+ public string AddedBy => m_AddedBy;
///
/// Gets or sets the body of this comment. Setting this value will reset LastModified.
///
public string Content
{
- get{ return m_Content; }
+ get => m_Content;
set{ m_Content = value; m_LastModified = DateTime.UtcNow; }
}
///
/// The date and time when this account was last modified -or- the comment creation time, if never modified.
///
- public DateTime LastModified
- {
- get{ return m_LastModified; }
- }
+ public DateTime LastModified => m_LastModified;
///
/// Constructs a new AccountComment instance.
diff --git a/Scripts/Accounting/AccountHandler.cs b/Scripts/Accounting/AccountHandler.cs
index 093d380db..97f6dc28f 100644
--- a/Scripts/Accounting/AccountHandler.cs
+++ b/Scripts/Accounting/AccountHandler.cs
@@ -30,8 +30,8 @@ namespace Server.Misc
public static AccessLevel LockdownLevel
{
- get{ return m_LockdownLevel; }
- set{ m_LockdownLevel = value; }
+ get => m_LockdownLevel;
+ set => m_LockdownLevel = value;
}
private static CityInfo[] StartingCities = new CityInfo[]
diff --git a/Scripts/Accounting/AccountTag.cs b/Scripts/Accounting/AccountTag.cs
index 7aa979f52..a5760e074 100644
--- a/Scripts/Accounting/AccountTag.cs
+++ b/Scripts/Accounting/AccountTag.cs
@@ -11,8 +11,8 @@ namespace Server.Accounting
///
public string Name
{
- get{ return m_Name; }
- set{ m_Name = value; }
+ get => m_Name;
+ set => m_Name = value;
}
///
@@ -20,8 +20,8 @@ namespace Server.Accounting
///
public string Value
{
- get{ return m_Value; }
- set{ m_Value = value; }
+ get => m_Value;
+ set => m_Value = value;
}
///
diff --git a/Scripts/Accounting/Firewall.cs b/Scripts/Accounting/Firewall.cs
index 09f5b48a7..ff37321c9 100644
--- a/Scripts/Accounting/Firewall.cs
+++ b/Scripts/Accounting/Firewall.cs
@@ -184,13 +184,7 @@ namespace Server
}
}
- public static List List
- {
- get
- {
- return m_Blocked;
- }
- }
+ public static List List => m_Blocked;
public static IFirewallEntry ToFirewallEntry( object entry )
{
diff --git a/Scripts/Commands/Attributes.cs b/Scripts/Commands/Attributes.cs
index 7891dde1f..6d05aca85 100644
--- a/Scripts/Commands/Attributes.cs
+++ b/Scripts/Commands/Attributes.cs
@@ -6,7 +6,7 @@ namespace Server
{
private string m_Usage;
- public string Usage{ get{ return m_Usage; } }
+ public string Usage => m_Usage;
public UsageAttribute( string usage )
{
@@ -18,7 +18,7 @@ namespace Server
{
private string m_Description;
- public string Description{ get{ return m_Description; } }
+ public string Description => m_Description;
public DescriptionAttribute( string description )
{
@@ -30,7 +30,7 @@ namespace Server
{
private string[] m_Aliases;
- public string[] Aliases{ get{ return m_Aliases; } }
+ public string[] Aliases => m_Aliases;
public AliasesAttribute( params string[] aliases )
{
diff --git a/Scripts/Commands/Batch.cs b/Scripts/Commands/Batch.cs
index 2c3752076..5fa9ff596 100644
--- a/Scripts/Commands/Batch.cs
+++ b/Scripts/Commands/Batch.cs
@@ -15,20 +15,17 @@ namespace Server.Commands
public BaseCommandImplementor Scope
{
- get{ return m_Scope; }
- set{ m_Scope = value; }
+ get => m_Scope;
+ set => m_Scope = value;
}
public string Condition
{
- get{ return m_Condition; }
- set{ m_Condition = value; }
+ get => m_Condition;
+ set => m_Condition = value;
}
- public ArrayList BatchCommands
- {
- get{ return m_BatchCommands; }
- }
+ public ArrayList BatchCommands => m_BatchCommands;
public Batch()
{
@@ -200,14 +197,14 @@ namespace Server.Commands
public string Command
{
- get{ return m_Command; }
- set{ m_Command = value; }
+ get => m_Command;
+ set => m_Command = value;
}
public string Object
{
- get{ return m_Object; }
- set{ m_Object = value; }
+ get => m_Object;
+ set => m_Object = value;
}
public void GetDetails( out string command, out string argString, out string[] args )
diff --git a/Scripts/Commands/Decorate.cs b/Scripts/Commands/Decorate.cs
index c9cd1152c..589ecb5c0 100644
--- a/Scripts/Commands/Decorate.cs
+++ b/Scripts/Commands/Decorate.cs
@@ -1109,8 +1109,8 @@ namespace Server.Commands
private Point3D m_Location;
private string m_Extra;
- public Point3D Location{ get{ return m_Location; } }
- public string Extra{ get{ return m_Extra; } }
+ public Point3D Location => m_Location;
+ public string Extra => m_Extra;
public DecorationEntry( string line )
{
diff --git a/Scripts/Commands/DecorateMag.cs b/Scripts/Commands/DecorateMag.cs
index 688624062..ba7c8d0fa 100644
--- a/Scripts/Commands/DecorateMag.cs
+++ b/Scripts/Commands/DecorateMag.cs
@@ -1106,8 +1106,8 @@ namespace Server.Commands
private Point3D m_Location;
private string m_Extra;
- public Point3D Location{ get{ return m_Location; } }
- public string Extra{ get{ return m_Extra; } }
+ public Point3D Location => m_Location;
+ public string Extra => m_Extra;
public DecorationEntryMag( string line )
{
diff --git a/Scripts/Commands/GenCategorization.cs b/Scripts/Commands/GenCategorization.cs
index a1d18faa0..7740f03d7 100644
--- a/Scripts/Commands/GenCategorization.cs
+++ b/Scripts/Commands/GenCategorization.cs
@@ -272,8 +272,8 @@ namespace Server.Commands
private Type m_Type;
private object m_Object;
- public Type Type{ get{ return m_Type; } }
- public object Object{ get{ return m_Object; } }
+ public Type Type => m_Type;
+ public object Object => m_Object;
public CategoryTypeEntry( Type type )
{
@@ -290,11 +290,11 @@ namespace Server.Commands
private CategoryEntry m_Parent;
private ArrayList m_Matched;
- public string Title{ get{ return m_Title; } }
- public Type[] Matches{ get{ return m_Matches; } }
- public CategoryEntry Parent{ get{ return m_Parent; } }
- public CategoryEntry[] SubCategories{ get{ return m_SubCategories; } }
- public ArrayList Matched{ get{ return m_Matched; } }
+ public string Title => m_Title;
+ public Type[] Matches => m_Matches;
+ public CategoryEntry Parent => m_Parent;
+ public CategoryEntry[] SubCategories => m_SubCategories;
+ public ArrayList Matched => m_Matched;
public CategoryEntry()
{
@@ -378,8 +378,8 @@ namespace Server.Commands
private int m_Indentation;
private string m_Text;
- public int Indentation{ get{ return m_Indentation; } }
- public string Text{ get{ return m_Text; } }
+ public int Indentation => m_Indentation;
+ public string Text => m_Text;
public CategoryLine( string input )
{
diff --git a/Scripts/Commands/Generic/Commands/BaseCommand.cs b/Scripts/Commands/Generic/Commands/BaseCommand.cs
index 2897bf520..e8a11d839 100644
--- a/Scripts/Commands/Generic/Commands/BaseCommand.cs
+++ b/Scripts/Commands/Generic/Commands/BaseCommand.cs
@@ -24,44 +24,44 @@ namespace Server.Commands.Generic
public bool ListOptimized
{
- get{ return m_ListOptimized; }
- set{ m_ListOptimized = value; }
+ get => m_ListOptimized;
+ set => m_ListOptimized = value;
}
public string[] Commands
{
- get{ return m_Commands; }
- set{ m_Commands = value; }
+ get => m_Commands;
+ set => m_Commands = value;
}
public string Usage
{
- get{ return m_Usage; }
- set{ m_Usage = value; }
+ get => m_Usage;
+ set => m_Usage = value;
}
public string Description
{
- get{ return m_Description; }
- set{ m_Description = value; }
+ get => m_Description;
+ set => m_Description = value;
}
public AccessLevel AccessLevel
{
- get{ return m_AccessLevel; }
- set{ m_AccessLevel = value; }
+ get => m_AccessLevel;
+ set => m_AccessLevel = value;
}
public ObjectTypes ObjectTypes
{
- get{ return m_ObjectTypes; }
- set{ m_ObjectTypes = value; }
+ get => m_ObjectTypes;
+ set => m_ObjectTypes = value;
}
public CommandSupport Supports
{
- get{ return m_Implementors; }
- set{ m_Implementors = value; }
+ get => m_Implementors;
+ set => m_Implementors = value;
}
public BaseCommand()
diff --git a/Scripts/Commands/Generic/Commands/Commands.cs b/Scripts/Commands/Generic/Commands/Commands.cs
index ecc694d1f..445aaa7fb 100644
--- a/Scripts/Commands/Generic/Commands/Commands.cs
+++ b/Scripts/Commands/Generic/Commands/Commands.cs
@@ -60,7 +60,7 @@ namespace Server.Commands.Generic
private static List m_AllCommands = new List();
- public static List AllCommands{ get{ return m_AllCommands; } }
+ public static List AllCommands => m_AllCommands;
public static void Register( BaseCommand command )
{
diff --git a/Scripts/Commands/Generic/Extensions/BaseExtension.cs b/Scripts/Commands/Generic/Extensions/BaseExtension.cs
index 37384b5ae..72de1da0b 100644
--- a/Scripts/Commands/Generic/Extensions/BaseExtension.cs
+++ b/Scripts/Commands/Generic/Extensions/BaseExtension.cs
@@ -10,10 +10,7 @@ namespace Server.Commands.Generic
{
private static Dictionary m_Table = new Dictionary( StringComparer.InvariantCultureIgnoreCase );
- public static Dictionary Table
- {
- get { return m_Table; }
- }
+ public static Dictionary Table => m_Table;
public static void Register( ExtensionInfo ext )
{
@@ -27,30 +24,15 @@ namespace Server.Commands.Generic
private ExtensionConstructor m_Constructor;
- public int Order
- {
- get { return m_Order; }
- }
+ public int Order => m_Order;
- public string Name
- {
- get { return m_Name; }
- }
+ public string Name => m_Name;
- public int Size
- {
- get { return m_Size; }
- }
+ public int Size => m_Size;
- public bool IsFixedSize
- {
- get { return ( m_Size >= 0 ); }
- }
+ public bool IsFixedSize => ( m_Size >= 0 );
- public ExtensionConstructor Constructor
- {
- get { return m_Constructor; }
- }
+ public ExtensionConstructor Constructor => m_Constructor;
public ExtensionInfo( int order, string name, int size, ExtensionConstructor constructor )
{
@@ -141,25 +123,13 @@ namespace Server.Commands.Generic
{
public abstract ExtensionInfo Info { get; }
- public string Name
- {
- get { return Info.Name; }
- }
+ public string Name => Info.Name;
- public int Size
- {
- get { return Info.Size; }
- }
+ public int Size => Info.Size;
- public bool IsFixedSize
- {
- get { return Info.IsFixedSize; }
- }
+ public bool IsFixedSize => Info.IsFixedSize;
- public int Order
- {
- get { return Info.Order; }
- }
+ public int Order => Info.Order;
public virtual void Optimize( Mobile from, Type baseType, ref AssemblyEmitter assembly )
{
diff --git a/Scripts/Commands/Generic/Extensions/Compilers/ConditionalCompiler.cs b/Scripts/Commands/Generic/Extensions/Compilers/ConditionalCompiler.cs
index dcb5f2530..000125aed 100644
--- a/Scripts/Commands/Generic/Extensions/Compilers/ConditionalCompiler.cs
+++ b/Scripts/Commands/Generic/Extensions/Compilers/ConditionalCompiler.cs
@@ -44,25 +44,13 @@ namespace Server.Commands.Generic
private object m_Value;
private FieldInfo m_Field;
- public Type Type
- {
- get { return m_Type; }
- }
+ public Type Type => m_Type;
- public object Value
- {
- get { return m_Value; }
- }
+ public object Value => m_Value;
- public FieldInfo Field
- {
- get { return m_Field; }
- }
+ public FieldInfo Field => m_Field;
- public bool HasField
- {
- get { return ( m_Field != null ); }
- }
+ public bool HasField => ( m_Field != null );
public PropertyValue( Type type, object value )
{
diff --git a/Scripts/Commands/Generic/Extensions/Compilers/SortCompiler.cs b/Scripts/Commands/Generic/Extensions/Compilers/SortCompiler.cs
index af5fcf6cf..d9d756544 100644
--- a/Scripts/Commands/Generic/Extensions/Compilers/SortCompiler.cs
+++ b/Scripts/Commands/Generic/Extensions/Compilers/SortCompiler.cs
@@ -12,25 +12,25 @@ namespace Server.Commands.Generic
public Property Property
{
- get { return m_Property; }
- set { m_Property = value; }
+ get => m_Property;
+ set => m_Property = value;
}
public bool IsAscending
{
- get { return ( m_Order > 0 ); }
- set { m_Order = ( value ? +1 : -1 ); }
+ get => ( m_Order > 0 );
+ set => m_Order = ( value ? +1 : -1 );
}
public bool IsDescending
{
- get { return ( m_Order < 0 ); }
- set { m_Order = ( value ? -1 : +1 ); }
+ get => ( m_Order < 0 );
+ set => m_Order = ( value ? -1 : +1 );
}
public int Sign
{
- get { return Math.Sign( m_Order ); }
+ get => Math.Sign( m_Order );
set
{
m_Order = Math.Sign( value );
diff --git a/Scripts/Commands/Generic/Extensions/DistinctExtension.cs b/Scripts/Commands/Generic/Extensions/DistinctExtension.cs
index 45b34b908..925863dd0 100644
--- a/Scripts/Commands/Generic/Extensions/DistinctExtension.cs
+++ b/Scripts/Commands/Generic/Extensions/DistinctExtension.cs
@@ -13,10 +13,7 @@ namespace Server.Commands.Generic
ExtensionInfo.Register( ExtInfo );
}
- public override ExtensionInfo Info
- {
- get { return ExtInfo; }
- }
+ public override ExtensionInfo Info => ExtInfo;
private List m_Properties;
diff --git a/Scripts/Commands/Generic/Extensions/LimitExtension.cs b/Scripts/Commands/Generic/Extensions/LimitExtension.cs
index 7be53a0c5..bce7aa9c0 100644
--- a/Scripts/Commands/Generic/Extensions/LimitExtension.cs
+++ b/Scripts/Commands/Generic/Extensions/LimitExtension.cs
@@ -12,17 +12,11 @@ namespace Server.Commands.Generic
ExtensionInfo.Register( ExtInfo );
}
- public override ExtensionInfo Info
- {
- get { return ExtInfo; }
- }
+ public override ExtensionInfo Info => ExtInfo;
private int m_Limit;
- public int Limit
- {
- get { return m_Limit; }
- }
+ public int Limit => m_Limit;
public LimitExtension()
{
diff --git a/Scripts/Commands/Generic/Extensions/SortExtension.cs b/Scripts/Commands/Generic/Extensions/SortExtension.cs
index dcf0a3cd7..2c8231cf6 100644
--- a/Scripts/Commands/Generic/Extensions/SortExtension.cs
+++ b/Scripts/Commands/Generic/Extensions/SortExtension.cs
@@ -13,10 +13,7 @@ namespace Server.Commands.Generic
ExtensionInfo.Register( ExtInfo );
}
- public override ExtensionInfo Info
- {
- get { return ExtInfo; }
- }
+ public override ExtensionInfo Info => ExtInfo;
private List m_Orders;
diff --git a/Scripts/Commands/Generic/Extensions/WhereExtension.cs b/Scripts/Commands/Generic/Extensions/WhereExtension.cs
index 27a06cb07..c755a452c 100644
--- a/Scripts/Commands/Generic/Extensions/WhereExtension.cs
+++ b/Scripts/Commands/Generic/Extensions/WhereExtension.cs
@@ -11,17 +11,11 @@ namespace Server.Commands.Generic
ExtensionInfo.Register( ExtInfo );
}
- public override ExtensionInfo Info
- {
- get { return ExtInfo; }
- }
+ public override ExtensionInfo Info => ExtInfo;
private ObjectConditional m_Conditional;
- public ObjectConditional Conditional
- {
- get { return m_Conditional; }
- }
+ public ObjectConditional Conditional => m_Conditional;
public WhereExtension()
{
diff --git a/Scripts/Commands/Generic/Implementors/AreaCommandImplementor.cs b/Scripts/Commands/Generic/Implementors/AreaCommandImplementor.cs
index 8dcf74115..51b687c5b 100644
--- a/Scripts/Commands/Generic/Implementors/AreaCommandImplementor.cs
+++ b/Scripts/Commands/Generic/Implementors/AreaCommandImplementor.cs
@@ -7,10 +7,7 @@ namespace Server.Commands.Generic
{
private static AreaCommandImplementor m_Instance;
- public static AreaCommandImplementor Instance
- {
- get { return m_Instance; }
- }
+ public static AreaCommandImplementor Instance => m_Instance;
public AreaCommandImplementor()
{
diff --git a/Scripts/Commands/Generic/Implementors/BaseCommandImplementor.cs b/Scripts/Commands/Generic/Implementors/BaseCommandImplementor.cs
index ec06027e3..30eafe8f6 100644
--- a/Scripts/Commands/Generic/Implementors/BaseCommandImplementor.cs
+++ b/Scripts/Commands/Generic/Implementors/BaseCommandImplementor.cs
@@ -57,44 +57,41 @@ namespace Server.Commands.Generic
public bool SupportsConditionals
{
- get{ return m_SupportsConditionals; }
- set{ m_SupportsConditionals = value; }
+ get => m_SupportsConditionals;
+ set => m_SupportsConditionals = value;
}
public string[] Accessors
{
- get{ return m_Accessors; }
- set{ m_Accessors = value; }
+ get => m_Accessors;
+ set => m_Accessors = value;
}
public string Usage
{
- get{ return m_Usage; }
- set{ m_Usage = value; }
+ get => m_Usage;
+ set => m_Usage = value;
}
public string Description
{
- get{ return m_Description; }
- set{ m_Description = value; }
+ get => m_Description;
+ set => m_Description = value;
}
public AccessLevel AccessLevel
{
- get{ return m_AccessLevel; }
- set{ m_AccessLevel = value; }
+ get => m_AccessLevel;
+ set => m_AccessLevel = value;
}
public CommandSupport SupportRequirement
{
- get{ return m_SupportRequirement; }
- set{ m_SupportRequirement = value; }
+ get => m_SupportRequirement;
+ set => m_SupportRequirement = value;
}
- public Dictionary Commands
- {
- get{ return m_Commands; }
- }
+ public Dictionary Commands => m_Commands;
public BaseCommandImplementor()
{
diff --git a/Scripts/Commands/Generic/Implementors/ObjectConditional.cs b/Scripts/Commands/Generic/Implementors/ObjectConditional.cs
index 7df673eff..c3c565048 100644
--- a/Scripts/Commands/Generic/Implementors/ObjectConditional.cs
+++ b/Scripts/Commands/Generic/Implementors/ObjectConditional.cs
@@ -15,27 +15,15 @@ namespace Server.Commands.Generic
private IConditional[] m_Conditionals;
- public Type Type
- {
- get { return m_ObjectType; }
- }
+ public Type Type => m_ObjectType;
- public bool IsItem
- {
- get { return ( m_ObjectType == null || m_ObjectType == typeofItem || m_ObjectType.IsSubclassOf( typeofItem ) ); }
- }
+ public bool IsItem => ( m_ObjectType == null || m_ObjectType == typeofItem || m_ObjectType.IsSubclassOf( typeofItem ) );
- public bool IsMobile
- {
- get { return ( m_ObjectType == null || m_ObjectType == typeofMobile || m_ObjectType.IsSubclassOf( typeofMobile ) ); }
- }
+ public bool IsMobile => ( m_ObjectType == null || m_ObjectType == typeofMobile || m_ObjectType.IsSubclassOf( typeofMobile ) );
public static readonly ObjectConditional Empty = new ObjectConditional( null, null );
- public bool HasCompiled
- {
- get { return ( m_Conditionals != null ); }
- }
+ public bool HasCompiled => ( m_Conditionals != null );
public void Compile( ref AssemblyEmitter emitter )
{
diff --git a/Scripts/Commands/Generic/Implementors/RangeCommandImplementor.cs b/Scripts/Commands/Generic/Implementors/RangeCommandImplementor.cs
index 8cfc75891..891862b6a 100644
--- a/Scripts/Commands/Generic/Implementors/RangeCommandImplementor.cs
+++ b/Scripts/Commands/Generic/Implementors/RangeCommandImplementor.cs
@@ -4,10 +4,7 @@ namespace Server.Commands.Generic
{
private static RangeCommandImplementor m_Instance;
- public static RangeCommandImplementor Instance
- {
- get { return m_Instance; }
- }
+ public static RangeCommandImplementor Instance => m_Instance;
public RangeCommandImplementor()
{
diff --git a/Scripts/Commands/Logging.cs b/Scripts/Commands/Logging.cs
index ff9b94786..1ba77837e 100644
--- a/Scripts/Commands/Logging.cs
+++ b/Scripts/Commands/Logging.cs
@@ -9,9 +9,11 @@ namespace Server.Commands
private static StreamWriter m_Output;
private static bool m_Enabled = true;
- public static bool Enabled{ get{ return m_Enabled; } set{ m_Enabled = value; } }
+ public static bool Enabled{ get => m_Enabled;
+ set => m_Enabled = value;
+ }
- public static StreamWriter Output{ get{ return m_Output; } }
+ public static StreamWriter Output => m_Output;
public static void Initialize()
{
diff --git a/Scripts/Commands/Properties.cs b/Scripts/Commands/Properties.cs
index 9bf68ebdd..5ffd8c09b 100644
--- a/Scripts/Commands/Properties.cs
+++ b/Scripts/Commands/Properties.cs
@@ -579,10 +579,7 @@ namespace Server
{
protected Property m_Property;
- public Property Property
- {
- get { return m_Property; }
- }
+ public Property Property => m_Property;
public PropertyException( Property property, string message )
: base( message )
@@ -660,15 +657,9 @@ namespace Server
protected AccessLevel m_PlayerAccess;
protected AccessLevel m_NeededAccess;
- public AccessLevel PlayerAccess
- {
- get { return m_PlayerAccess; }
- }
+ public AccessLevel PlayerAccess => m_PlayerAccess;
- public AccessLevel NeededAccess
- {
- get { return m_NeededAccess; }
- }
+ public AccessLevel NeededAccess => m_NeededAccess;
public ClearanceException( Property property, AccessLevel playerAccess, AccessLevel neededAccess, string accessType )
: base( property, string.Format(
@@ -703,20 +694,11 @@ namespace Server
private PropertyInfo[] m_Chain;
private PropertyAccess m_Access;
- public string Binding
- {
- get { return m_Binding; }
- }
+ public string Binding => m_Binding;
- public bool IsBound
- {
- get { return ( m_Chain != null ); }
- }
+ public bool IsBound => ( m_Chain != null );
- public PropertyAccess Access
- {
- get { return m_Access; }
- }
+ public PropertyAccess Access => m_Access;
public PropertyInfo[] Chain
{
diff --git a/Scripts/Engines/BulkOrders/Books/BOBFilter.cs b/Scripts/Engines/BulkOrders/Books/BOBFilter.cs
index a1d8da31e..acad09af0 100644
--- a/Scripts/Engines/BulkOrders/Books/BOBFilter.cs
+++ b/Scripts/Engines/BulkOrders/Books/BOBFilter.cs
@@ -7,10 +7,7 @@ namespace Server.Engines.BulkOrders
private int m_Material;
private int m_Quantity;
- public bool IsDefault
- {
- get{ return ( m_Type == 0 && m_Quality == 0 && m_Material == 0 && m_Quantity == 0 ); }
- }
+ public bool IsDefault => ( m_Type == 0 && m_Quality == 0 && m_Material == 0 && m_Quantity == 0 );
public void Clear()
{
@@ -22,26 +19,26 @@ namespace Server.Engines.BulkOrders
public int Type
{
- get{ return m_Type; }
- set{ m_Type = value; }
+ get => m_Type;
+ set => m_Type = value;
}
public int Quality
{
- get{ return m_Quality; }
- set{ m_Quality = value; }
+ get => m_Quality;
+ set => m_Quality = value;
}
public int Material
{
- get{ return m_Material; }
- set{ m_Material = value; }
+ get => m_Material;
+ set => m_Material = value;
}
public int Quantity
{
- get{ return m_Quantity; }
- set{ m_Quantity = value; }
+ get => m_Quantity;
+ set => m_Quantity = value;
}
public BOBFilter()
diff --git a/Scripts/Engines/BulkOrders/Books/BOBLargeEntry.cs b/Scripts/Engines/BulkOrders/Books/BOBLargeEntry.cs
index b7f2e524a..b9f8af055 100644
--- a/Scripts/Engines/BulkOrders/Books/BOBLargeEntry.cs
+++ b/Scripts/Engines/BulkOrders/Books/BOBLargeEntry.cs
@@ -9,12 +9,14 @@ namespace Server.Engines.BulkOrders
private int m_Price;
private BOBLargeSubEntry[] m_Entries;
- public bool RequireExceptional{ get{ return m_RequireExceptional; } }
- public BODType DeedType{ get{ return m_DeedType; } }
- public BulkMaterialType Material{ get{ return m_Material; } }
- public int AmountMax{ get{ return m_AmountMax; } }
- public int Price{ get{ return m_Price; } set{ m_Price = value; } }
- public BOBLargeSubEntry[] Entries{ get{ return m_Entries; } }
+ public bool RequireExceptional => m_RequireExceptional;
+ public BODType DeedType => m_DeedType;
+ public BulkMaterialType Material => m_Material;
+ public int AmountMax => m_AmountMax;
+ public int Price{ get => m_Price;
+ set => m_Price = value;
+ }
+ public BOBLargeSubEntry[] Entries => m_Entries;
public Item Reconstruct()
{
diff --git a/Scripts/Engines/BulkOrders/Books/BOBLargeSubEntry.cs b/Scripts/Engines/BulkOrders/Books/BOBLargeSubEntry.cs
index 715154eb3..f6e19c1ad 100644
--- a/Scripts/Engines/BulkOrders/Books/BOBLargeSubEntry.cs
+++ b/Scripts/Engines/BulkOrders/Books/BOBLargeSubEntry.cs
@@ -9,10 +9,10 @@ namespace Server.Engines.BulkOrders
private int m_Number;
private int m_Graphic;
- public Type ItemType{ get{ return m_ItemType; } }
- public int AmountCur{ get{ return m_AmountCur; } }
- public int Number{ get{ return m_Number; } }
- public int Graphic{ get{ return m_Graphic; } }
+ public Type ItemType => m_ItemType;
+ public int AmountCur => m_AmountCur;
+ public int Number => m_Number;
+ public int Graphic => m_Graphic;
public BOBLargeSubEntry( LargeBulkEntry lbe )
{
diff --git a/Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs b/Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs
index 7f3b76550..7e67a4393 100644
--- a/Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs
+++ b/Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs
@@ -13,15 +13,17 @@ namespace Server.Engines.BulkOrders
private int m_Graphic;
private int m_Price;
- public Type ItemType{ get{ return m_ItemType; } }
- public bool RequireExceptional{ get{ return m_RequireExceptional; } }
- public BODType DeedType{ get{ return m_DeedType; } }
- public BulkMaterialType Material{ get{ return m_Material; } }
- public int AmountCur{ get{ return m_AmountCur; } }
- public int AmountMax{ get{ return m_AmountMax; } }
- public int Number{ get{ return m_Number; } }
- public int Graphic{ get{ return m_Graphic; } }
- public int Price{ get{ return m_Price; } set{ m_Price = value; } }
+ public Type ItemType => m_ItemType;
+ public bool RequireExceptional => m_RequireExceptional;
+ public BODType DeedType => m_DeedType;
+ public BulkMaterialType Material => m_Material;
+ public int AmountCur => m_AmountCur;
+ public int AmountMax => m_AmountMax;
+ public int Number => m_Number;
+ public int Graphic => m_Graphic;
+ public int Price{ get => m_Price;
+ set => m_Price = value;
+ }
public Item Reconstruct()
{
diff --git a/Scripts/Engines/BulkOrders/Books/BulkOrderBook.cs b/Scripts/Engines/BulkOrders/Books/BulkOrderBook.cs
index caf19f6c2..6fcef484c 100644
--- a/Scripts/Engines/BulkOrders/Books/BulkOrderBook.cs
+++ b/Scripts/Engines/BulkOrders/Books/BulkOrderBook.cs
@@ -21,31 +21,25 @@ namespace Server.Engines.BulkOrders
[CommandProperty( AccessLevel.GameMaster )]
public string BookName
{
- get{ return m_BookName; }
+ get => m_BookName;
set{ m_BookName = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get{ return m_Level; }
- set{ m_Level = value; }
+ get => m_Level;
+ set => m_Level = value;
}
- public ArrayList Entries
- {
- get{ return m_Entries; }
- }
+ public ArrayList Entries => m_Entries;
- public BOBFilter Filter
- {
- get{ return m_Filter; }
- }
+ public BOBFilter Filter => m_Filter;
public int ItemCount
{
- get{ return m_ItemCount; }
- set{ m_ItemCount = value; }
+ get => m_ItemCount;
+ set => m_ItemCount = value;
}
[Constructible]
diff --git a/Scripts/Engines/BulkOrders/LargeBOD.cs b/Scripts/Engines/BulkOrders/LargeBOD.cs
index 03ff92e6d..2133f37e8 100644
--- a/Scripts/Engines/BulkOrders/LargeBOD.cs
+++ b/Scripts/Engines/BulkOrders/LargeBOD.cs
@@ -12,15 +12,19 @@ namespace Server.Engines.BulkOrders
private LargeBulkEntry[] m_Entries;
[CommandProperty( AccessLevel.GameMaster )]
- public int AmountMax{ get{ return m_AmountMax; } set{ m_AmountMax = value; InvalidateProperties(); } }
+ public int AmountMax{ get => m_AmountMax;
+ set{ m_AmountMax = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public bool RequireExceptional{ get{ return m_RequireExceptional; } set{ m_RequireExceptional = value; InvalidateProperties(); } }
+ public bool RequireExceptional{ get => m_RequireExceptional;
+ set{ m_RequireExceptional = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public BulkMaterialType Material{ get{ return m_Material; } set{ m_Material = value; InvalidateProperties(); } }
+ public BulkMaterialType Material{ get => m_Material;
+ set{ m_Material = value; InvalidateProperties(); } }
- public LargeBulkEntry[] Entries{ get{ return m_Entries; } set{ m_Entries = value; InvalidateProperties(); } }
+ public LargeBulkEntry[] Entries{ get => m_Entries;
+ set{ m_Entries = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
public bool Complete
diff --git a/Scripts/Engines/BulkOrders/LargeBulkEntry.cs b/Scripts/Engines/BulkOrders/LargeBulkEntry.cs
index 86710fcf0..43567cb02 100644
--- a/Scripts/Engines/BulkOrders/LargeBulkEntry.cs
+++ b/Scripts/Engines/BulkOrders/LargeBulkEntry.cs
@@ -9,120 +9,57 @@ namespace Server.Engines.BulkOrders
private int m_Amount;
private SmallBulkEntry m_Details;
- public LargeBOD Owner{ get{ return m_Owner; } set{ m_Owner = value; } }
- public int Amount{ get{ return m_Amount; } set{ m_Amount = value; if ( m_Owner != null ) m_Owner.InvalidateProperties(); } }
- public SmallBulkEntry Details{ get{ return m_Details; } }
-
- public static SmallBulkEntry[] LargeRing
- {
- get{ return GetEntries( "Blacksmith", "largering" ); }
+ public LargeBOD Owner{ get => m_Owner;
+ set => m_Owner = value;
}
+ public int Amount{ get => m_Amount;
+ set{ m_Amount = value; if ( m_Owner != null ) m_Owner.InvalidateProperties(); } }
+ public SmallBulkEntry Details => m_Details;
- public static SmallBulkEntry[] LargePlate
- {
- get{ return GetEntries( "Blacksmith", "largeplate" ); }
- }
+ public static SmallBulkEntry[] LargeRing => GetEntries( "Blacksmith", "largering" );
- public static SmallBulkEntry[] LargeChain
- {
- get{ return GetEntries( "Blacksmith", "largechain" ); }
- }
+ public static SmallBulkEntry[] LargePlate => GetEntries( "Blacksmith", "largeplate" );
- public static SmallBulkEntry[] LargeAxes
- {
- get{ return GetEntries( "Blacksmith", "largeaxes" ); }
- }
+ public static SmallBulkEntry[] LargeChain => GetEntries( "Blacksmith", "largechain" );
- public static SmallBulkEntry[] LargeFencing
- {
- get{ return GetEntries( "Blacksmith", "largefencing" ); }
- }
+ public static SmallBulkEntry[] LargeAxes => GetEntries( "Blacksmith", "largeaxes" );
- public static SmallBulkEntry[] LargeMaces
- {
- get{ return GetEntries( "Blacksmith", "largemaces" ); }
- }
+ public static SmallBulkEntry[] LargeFencing => GetEntries( "Blacksmith", "largefencing" );
- public static SmallBulkEntry[] LargePolearms
- {
- get{ return GetEntries( "Blacksmith", "largepolearms" ); }
- }
+ public static SmallBulkEntry[] LargeMaces => GetEntries( "Blacksmith", "largemaces" );
- public static SmallBulkEntry[] LargeSwords
- {
- get{ return GetEntries( "Blacksmith", "largeswords" ); }
- }
+ public static SmallBulkEntry[] LargePolearms => GetEntries( "Blacksmith", "largepolearms" );
+
+ public static SmallBulkEntry[] LargeSwords => GetEntries( "Blacksmith", "largeswords" );
- public static SmallBulkEntry[] BoneSet
- {
- get{ return GetEntries( "Tailoring", "boneset" ); }
- }
+ public static SmallBulkEntry[] BoneSet => GetEntries( "Tailoring", "boneset" );
- public static SmallBulkEntry[] Farmer
- {
- get{ return GetEntries( "Tailoring", "farmer" ); }
- }
+ public static SmallBulkEntry[] Farmer => GetEntries( "Tailoring", "farmer" );
- public static SmallBulkEntry[] FemaleLeatherSet
- {
- get{ return GetEntries( "Tailoring", "femaleleatherset" ); }
- }
+ public static SmallBulkEntry[] FemaleLeatherSet => GetEntries( "Tailoring", "femaleleatherset" );
- public static SmallBulkEntry[] FisherGirl
- {
- get{ return GetEntries( "Tailoring", "fishergirl" ); }
- }
+ public static SmallBulkEntry[] FisherGirl => GetEntries( "Tailoring", "fishergirl" );
- public static SmallBulkEntry[] Gypsy
- {
- get{ return GetEntries( "Tailoring", "gypsy" ); }
- }
+ public static SmallBulkEntry[] Gypsy => GetEntries( "Tailoring", "gypsy" );
- public static SmallBulkEntry[] HatSet
- {
- get{ return GetEntries( "Tailoring", "hatset" ); }
- }
+ public static SmallBulkEntry[] HatSet => GetEntries( "Tailoring", "hatset" );
- public static SmallBulkEntry[] Jester
- {
- get{ return GetEntries( "Tailoring", "jester" ); }
- }
+ public static SmallBulkEntry[] Jester => GetEntries( "Tailoring", "jester" );
- public static SmallBulkEntry[] Lady
- {
- get{ return GetEntries( "Tailoring", "lady" ); }
- }
+ public static SmallBulkEntry[] Lady => GetEntries( "Tailoring", "lady" );
- public static SmallBulkEntry[] MaleLeatherSet
- {
- get{ return GetEntries( "Tailoring", "maleleatherset" ); }
- }
+ public static SmallBulkEntry[] MaleLeatherSet => GetEntries( "Tailoring", "maleleatherset" );
- public static SmallBulkEntry[] Pirate
- {
- get{ return GetEntries( "Tailoring", "pirate" ); }
- }
+ public static SmallBulkEntry[] Pirate => GetEntries( "Tailoring", "pirate" );
- public static SmallBulkEntry[] ShoeSet
- {
- get{ return GetEntries( "Tailoring", "shoeset" ); }
- }
+ public static SmallBulkEntry[] ShoeSet => GetEntries( "Tailoring", "shoeset" );
- public static SmallBulkEntry[] StuddedSet
- {
- get{ return GetEntries( "Tailoring", "studdedset" ); }
- }
+ public static SmallBulkEntry[] StuddedSet => GetEntries( "Tailoring", "studdedset" );
- public static SmallBulkEntry[] TownCrier
- {
- get{ return GetEntries( "Tailoring", "towncrier" ); }
- }
+ public static SmallBulkEntry[] TownCrier => GetEntries( "Tailoring", "towncrier" );
- public static SmallBulkEntry[] Wizard
- {
- get{ return GetEntries( "Tailoring", "wizard" ); }
- }
+ public static SmallBulkEntry[] Wizard => GetEntries( "Tailoring", "wizard" );
private static Dictionary> m_Cache;
diff --git a/Scripts/Engines/BulkOrders/Rewards.cs b/Scripts/Engines/BulkOrders/Rewards.cs
index 917d12ccd..4c2403bf9 100644
--- a/Scripts/Engines/BulkOrders/Rewards.cs
+++ b/Scripts/Engines/BulkOrders/Rewards.cs
@@ -10,8 +10,8 @@ namespace Server.Engines.BulkOrders
private int m_Points;
private Type[] m_Types;
- public int Points{ get{ return m_Points; } }
- public Type[] Types{ get{ return m_Types; } }
+ public int Points => m_Points;
+ public Type[] Types => m_Types;
public RewardType( int points, params Type[] types )
{
@@ -37,9 +37,9 @@ namespace Server.Engines.BulkOrders
private ConstructCallback m_Constructor;
private int m_Type;
- public int Weight{ get{ return m_Weight; } }
- public ConstructCallback Constructor{ get{ return m_Constructor; } }
- public int Type{ get{ return m_Type; } }
+ public int Weight => m_Weight;
+ public ConstructCallback Constructor => m_Constructor;
+ public int Type => m_Type;
public RewardItem( int weight, ConstructCallback constructor ) : this( weight, constructor, 0 )
{
@@ -64,8 +64,8 @@ namespace Server.Engines.BulkOrders
private int m_Points;
private RewardItem[] m_Items;
- public int Points{ get{ return m_Points; } }
- public RewardItem[] Items{ get{ return m_Items; } }
+ public int Points => m_Points;
+ public RewardItem[] Items => m_Items;
public RewardGroup( int points, params RewardItem[] items )
{
@@ -105,7 +105,9 @@ namespace Server.Engines.BulkOrders
{
private RewardGroup[] m_Groups;
- public RewardGroup[] Groups{ get{ return m_Groups; } set{ m_Groups = value; } }
+ public RewardGroup[] Groups{ get => m_Groups;
+ set => m_Groups = value;
+ }
public abstract int ComputePoints( int quantity, bool exceptional, BulkMaterialType material, int itemCount, Type type );
public abstract int ComputeGold( int quantity, bool exceptional, BulkMaterialType material, int itemCount, Type type );
diff --git a/Scripts/Engines/BulkOrders/SmallBOD.cs b/Scripts/Engines/BulkOrders/SmallBOD.cs
index 2e0b2726b..c5cd4af36 100644
--- a/Scripts/Engines/BulkOrders/SmallBOD.cs
+++ b/Scripts/Engines/BulkOrders/SmallBOD.cs
@@ -16,28 +16,37 @@ namespace Server.Engines.BulkOrders
private BulkMaterialType m_Material;
[CommandProperty( AccessLevel.GameMaster )]
- public int AmountCur{ get{ return m_AmountCur; } set{ m_AmountCur = value; InvalidateProperties(); } }
+ public int AmountCur{ get => m_AmountCur;
+ set{ m_AmountCur = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int AmountMax{ get{ return m_AmountMax; } set{ m_AmountMax = value; InvalidateProperties(); } }
+ public int AmountMax{ get => m_AmountMax;
+ set{ m_AmountMax = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public Type Type{ get{ return m_Type; } set{ m_Type = value; } }
+ public Type Type{ get => m_Type;
+ set => m_Type = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Number{ get{ return m_Number; } set{ m_Number = value; InvalidateProperties(); } }
+ public int Number{ get => m_Number;
+ set{ m_Number = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int Graphic{ get{ return m_Graphic; } set{ m_Graphic = value; } }
+ public int Graphic{ get => m_Graphic;
+ set => m_Graphic = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public bool RequireExceptional{ get{ return m_RequireExceptional; } set{ m_RequireExceptional = value; InvalidateProperties(); } }
+ public bool RequireExceptional{ get => m_RequireExceptional;
+ set{ m_RequireExceptional = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public BulkMaterialType Material{ get{ return m_Material; } set{ m_Material = value; InvalidateProperties(); } }
+ public BulkMaterialType Material{ get => m_Material;
+ set{ m_Material = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public bool Complete{ get{ return ( m_AmountCur == m_AmountMax ); } }
+ public bool Complete => ( m_AmountCur == m_AmountMax );
public override int LabelNumber => 1045151; // a bulk order deed
diff --git a/Scripts/Engines/BulkOrders/SmallBulkEntry.cs b/Scripts/Engines/BulkOrders/SmallBulkEntry.cs
index 95b075767..c04fde623 100644
--- a/Scripts/Engines/BulkOrders/SmallBulkEntry.cs
+++ b/Scripts/Engines/BulkOrders/SmallBulkEntry.cs
@@ -10,9 +10,9 @@ namespace Server.Engines.BulkOrders
private int m_Number;
private int m_Graphic;
- public Type Type{ get{ return m_Type; } }
- public int Number{ get{ return m_Number; } }
- public int Graphic{ get{ return m_Graphic; } }
+ public Type Type => m_Type;
+ public int Number => m_Number;
+ public int Graphic => m_Graphic;
public SmallBulkEntry( Type type, int number, int graphic )
{
@@ -21,25 +21,13 @@ namespace Server.Engines.BulkOrders
m_Graphic = graphic;
}
- public static SmallBulkEntry[] BlacksmithWeapons
- {
- get{ return GetEntries( "Blacksmith", "weapons" ); }
- }
+ public static SmallBulkEntry[] BlacksmithWeapons => GetEntries( "Blacksmith", "weapons" );
- public static SmallBulkEntry[] BlacksmithArmor
- {
- get{ return GetEntries( "Blacksmith", "armor" ); }
- }
+ public static SmallBulkEntry[] BlacksmithArmor => GetEntries( "Blacksmith", "armor" );
- public static SmallBulkEntry[] TailorCloth
- {
- get{ return GetEntries( "Tailoring", "cloth" ); }
- }
+ public static SmallBulkEntry[] TailorCloth => GetEntries( "Tailoring", "cloth" );
- public static SmallBulkEntry[] TailorLeather
- {
- get{ return GetEntries( "Tailoring", "leather" ); }
- }
+ public static SmallBulkEntry[] TailorLeather => GetEntries( "Tailoring", "leather" );
private static Dictionary> m_Cache;
diff --git a/Scripts/Engines/CannedEvil/ChampionSkull.cs b/Scripts/Engines/CannedEvil/ChampionSkull.cs
index ae41e38a8..0c75fceb2 100644
--- a/Scripts/Engines/CannedEvil/ChampionSkull.cs
+++ b/Scripts/Engines/CannedEvil/ChampionSkull.cs
@@ -7,7 +7,8 @@ namespace Server.Items
private ChampionSkullType m_Type;
[CommandProperty( AccessLevel.GameMaster )]
- public ChampionSkullType Type{ get{ return m_Type; } set{ m_Type = value; InvalidateProperties(); } }
+ public ChampionSkullType Type{ get => m_Type;
+ set{ m_Type = value; InvalidateProperties(); } }
public override int LabelNumber => 1049479 + (int)m_Type;
diff --git a/Scripts/Engines/CannedEvil/ChampionSkullBrazier.cs b/Scripts/Engines/CannedEvil/ChampionSkullBrazier.cs
index 883e9240a..19c867bc9 100644
--- a/Scripts/Engines/CannedEvil/ChampionSkullBrazier.cs
+++ b/Scripts/Engines/CannedEvil/ChampionSkullBrazier.cs
@@ -11,13 +11,15 @@ namespace Server.Engines.CannedEvil
private Item m_Skull;
[CommandProperty( AccessLevel.GameMaster )]
- public ChampionSkullPlatform Platform{ get{ return m_Platform; } }
+ public ChampionSkullPlatform Platform => m_Platform;
[CommandProperty( AccessLevel.GameMaster )]
- public ChampionSkullType Type{ get{ return m_Type; } set{ m_Type = value; InvalidateProperties(); } }
+ public ChampionSkullType Type{ get => m_Type;
+ set{ m_Type = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public Item Skull{ get{ return m_Skull; } set{ m_Skull = value; if ( m_Platform != null ) m_Platform.Validate(); } }
+ public Item Skull{ get => m_Skull;
+ set{ m_Skull = value; if ( m_Platform != null ) m_Platform.Validate(); } }
public override int LabelNumber => 1049489 + (int)m_Type;
diff --git a/Scripts/Engines/CannedEvil/ChampionSpawn.cs b/Scripts/Engines/CannedEvil/ChampionSpawn.cs
index 9eebc023f..c9f135671 100644
--- a/Scripts/Engines/CannedEvil/ChampionSpawn.cs
+++ b/Scripts/Engines/CannedEvil/ChampionSpawn.cs
@@ -12,14 +12,8 @@ namespace Server.Engines.CannedEvil
[CommandProperty( AccessLevel.GameMaster )]
public int SpawnSzMod
{
- get
- {
- return ( m_SPawnSzMod < 1 || m_SPawnSzMod > 12 ) ? 12 : m_SPawnSzMod;
- }
- set
- {
- m_SPawnSzMod = ( value < 1 || value > 12 ) ? 12 : value;
- }
+ get => ( m_SPawnSzMod < 1 || m_SPawnSzMod > 12 ) ? 12 : m_SPawnSzMod;
+ set => m_SPawnSzMod = ( value < 1 || value > 12 ) ? 12 : value;
}
private int m_SPawnSzMod;
@@ -56,15 +50,15 @@ namespace Server.Engines.CannedEvil
[CommandProperty( AccessLevel.GameMaster )]
public bool ConfinedRoaming
{
- get { return m_ConfinedRoaming; }
- set { m_ConfinedRoaming = value; }
+ get => m_ConfinedRoaming;
+ set => m_ConfinedRoaming = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool HasBeenAdvanced
{
- get { return m_HasBeenAdvanced; }
- set { m_HasBeenAdvanced = value; }
+ get => m_HasBeenAdvanced;
+ set => m_HasBeenAdvanced = value;
}
[Constructible]
@@ -123,17 +117,14 @@ namespace Server.Engines.CannedEvil
[CommandProperty( AccessLevel.GameMaster )]
public bool RandomizeType
{
- get { return m_RandomizeType; }
- set { m_RandomizeType = value; }
+ get => m_RandomizeType;
+ set => m_RandomizeType = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Kills
{
- get
- {
- return m_Kills;
- }
+ get => m_Kills;
set
{
m_Kills = value;
@@ -144,10 +135,7 @@ namespace Server.Engines.CannedEvil
[CommandProperty( AccessLevel.GameMaster )]
public Rectangle2D SpawnArea
{
- get
- {
- return m_SpawnArea;
- }
+ get => m_SpawnArea;
set
{
m_SpawnArea = value;
@@ -159,58 +147,31 @@ namespace Server.Engines.CannedEvil
[CommandProperty( AccessLevel.GameMaster )]
public TimeSpan RestartDelay
{
- get
- {
- return m_RestartDelay;
- }
- set
- {
- m_RestartDelay = value;
- }
+ get => m_RestartDelay;
+ set => m_RestartDelay = value;
}
[CommandProperty( AccessLevel.GameMaster )]
- public DateTime RestartTime
- {
- get
- {
- return m_RestartTime;
- }
- }
+ public DateTime RestartTime => m_RestartTime;
[CommandProperty( AccessLevel.GameMaster )]
public TimeSpan ExpireDelay
{
- get
- {
- return m_ExpireDelay;
- }
- set
- {
- m_ExpireDelay = value;
- }
+ get => m_ExpireDelay;
+ set => m_ExpireDelay = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime ExpireTime
{
- get
- {
- return m_ExpireTime;
- }
- set
- {
- m_ExpireTime = value;
- }
+ get => m_ExpireTime;
+ set => m_ExpireTime = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public ChampionSpawnType Type
{
- get
- {
- return m_Type;
- }
+ get => m_Type;
set
{
m_Type = value;
@@ -221,10 +182,7 @@ namespace Server.Engines.CannedEvil
[CommandProperty( AccessLevel.GameMaster )]
public bool Active
{
- get
- {
- return m_Active;
- }
+ get => m_Active;
set
{
if ( value )
@@ -239,23 +197,14 @@ namespace Server.Engines.CannedEvil
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Champion
{
- get
- {
- return m_Champion;
- }
- set
- {
- m_Champion = value;
- }
+ get => m_Champion;
+ set => m_Champion = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Level
{
- get
- {
- return m_RedSkulls.Count;
- }
+ get => m_RedSkulls.Count;
set
{
for( int i = m_RedSkulls.Count - 1; i >= value; --i )
@@ -281,13 +230,7 @@ namespace Server.Engines.CannedEvil
}
}
- public int MaxKills
- {
- get
- {
- return ( m_SPawnSzMod * ( 250 / 12 ) ) - ( Level * m_SPawnSzMod );
- }
- }
+ public int MaxKills => ( m_SPawnSzMod * ( 250 / 12 ) ) - ( Level * m_SPawnSzMod );
public bool IsChampionSpawn( Mobile m )
{
@@ -1254,10 +1197,7 @@ namespace Server.Engines.CannedEvil
private ChampionSpawn m_Spawn;
- public ChampionSpawn ChampionSpawn
- {
- get { return m_Spawn; }
- }
+ public ChampionSpawn ChampionSpawn => m_Spawn;
public ChampionSpawnRegion( ChampionSpawn spawn ) : base( null, spawn.Map, Region.Find( spawn.Location, spawn.Map ), spawn.SpawnArea )
{
@@ -1282,10 +1222,7 @@ namespace Server.Engines.CannedEvil
public ChampionSpawn Spawn => m_Spawn;
- public override string DefaultName
- {
- get { return "Idol of the Champion"; }
- }
+ public override string DefaultName => "Idol of the Champion";
public IdolOfTheChampion( ChampionSpawn spawn ): base( 0x1F18 )
diff --git a/Scripts/Engines/Chat/Channel.cs b/Scripts/Engines/Chat/Channel.cs
index 54ae49889..fb8ff43e5 100644
--- a/Scripts/Engines/Chat/Channel.cs
+++ b/Scripts/Engines/Chat/Channel.cs
@@ -28,10 +28,7 @@ namespace Server.Engines.Chat
public string Name
{
- get
- {
- return m_Name;
- }
+ get => m_Name;
set
{
SendCommand( ChatCommand.RemoveChannel, m_Name );
@@ -43,10 +40,7 @@ namespace Server.Engines.Chat
public string Password
{
- get
- {
- return m_Password;
- }
+ get => m_Password;
set
{
string newValue = null;
@@ -238,10 +232,7 @@ namespace Server.Engines.Chat
public bool VoiceRestricted
{
- get
- {
- return m_VoiceRestricted;
- }
+ get => m_VoiceRestricted;
set
{
m_VoiceRestricted = value;
@@ -255,14 +246,8 @@ namespace Server.Engines.Chat
public bool AlwaysAvailable
{
- get
- {
- return m_AlwaysAvailable;
- }
- set
- {
- m_AlwaysAvailable = value;
- }
+ get => m_AlwaysAvailable;
+ set => m_AlwaysAvailable = value;
}
public void AddVoiced( ChatUser user )
@@ -461,13 +446,7 @@ namespace Server.Engines.Chat
private static List m_Channels = new List();
- public static List Channels
- {
- get
- {
- return m_Channels;
- }
- }
+ public static List Channels => m_Channels;
public static void SendChannelsTo( ChatUser user )
{
diff --git a/Scripts/Engines/Chat/Chat.cs b/Scripts/Engines/Chat/Chat.cs
index 446a02693..21bd8d120 100644
--- a/Scripts/Engines/Chat/Chat.cs
+++ b/Scripts/Engines/Chat/Chat.cs
@@ -11,8 +11,8 @@ namespace Server.Engines.Chat
public static bool Enabled
{
- get{ return m_Enabled; }
- set{ m_Enabled = value; }
+ get => m_Enabled;
+ set => m_Enabled = value;
}
public static void Initialize()
diff --git a/Scripts/Engines/Chat/ChatActionHandler.cs b/Scripts/Engines/Chat/ChatActionHandler.cs
index d4e8ef1f3..dbaa19f91 100644
--- a/Scripts/Engines/Chat/ChatActionHandler.cs
+++ b/Scripts/Engines/Chat/ChatActionHandler.cs
@@ -8,9 +8,9 @@ namespace Server.Engines.Chat
private bool m_RequireConference;
private OnChatAction m_Callback;
- public bool RequireModerator{ get{ return m_RequireModerator; } }
- public bool RequireConference{ get{ return m_RequireConference; } }
- public OnChatAction Callback{ get{ return m_Callback; } }
+ public bool RequireModerator => m_RequireModerator;
+ public bool RequireConference => m_RequireConference;
+ public OnChatAction Callback => m_Callback;
public ChatActionHandler( bool requireModerator, bool requireConference, OnChatAction callback )
{
diff --git a/Scripts/Engines/Chat/ChatUser.cs b/Scripts/Engines/Chat/ChatUser.cs
index 025f28a9e..840e8fbe6 100644
--- a/Scripts/Engines/Chat/ChatUser.cs
+++ b/Scripts/Engines/Chat/ChatUser.cs
@@ -18,29 +18,11 @@ namespace Server.Engines.Chat
m_Ignoring = new List();
}
- public Mobile Mobile
- {
- get
- {
- return m_Mobile;
- }
- }
+ public Mobile Mobile => m_Mobile;
- public List Ignored
- {
- get
- {
- return m_Ignored;
- }
- }
+ public List Ignored => m_Ignored;
- public List Ignoring
- {
- get
- {
- return m_Ignoring;
- }
- }
+ public List Ignoring => m_Ignoring;
public string Username
{
@@ -60,46 +42,22 @@ namespace Server.Engines.Chat
public Channel CurrentChannel
{
- get
- {
- return m_Channel;
- }
- set
- {
- m_Channel = value;
- }
+ get => m_Channel;
+ set => m_Channel = value;
}
- public bool IsOnline
- {
- get
- {
- return ( m_Mobile.NetState != null );
- }
- }
+ public bool IsOnline => ( m_Mobile.NetState != null );
public bool Anonymous
{
- get
- {
- return m_Anonymous;
- }
- set
- {
- m_Anonymous = value;
- }
+ get => m_Anonymous;
+ set => m_Anonymous = value;
}
public bool IgnorePrivateMessage
{
- get
- {
- return m_IgnorePrivateMessage;
- }
- set
- {
- m_IgnorePrivateMessage = value;
- }
+ get => m_IgnorePrivateMessage;
+ set => m_IgnorePrivateMessage = value;
}
public const char NormalColorCharacter = '0';
@@ -153,13 +111,7 @@ namespace Server.Engines.Chat
return m_Ignored.Contains( check );
}
- public bool IsModerator
- {
- get
- {
- return ( m_Channel != null && m_Channel.IsModerator( this ) );
- }
- }
+ public bool IsModerator => ( m_Channel != null && m_Channel.IsModerator( this ) );
public void AddIgnored( ChatUser user )
{
diff --git a/Scripts/Engines/ConPVP/AcceptDuelGump.cs b/Scripts/Engines/ConPVP/AcceptDuelGump.cs
index 2814a72b2..43d2dd285 100644
--- a/Scripts/Engines/ConPVP/AcceptDuelGump.cs
+++ b/Scripts/Engines/ConPVP/AcceptDuelGump.cs
@@ -120,8 +120,8 @@ namespace Server.Engines.ConPVP
public Mobile m_Ignored;
public DateTime m_Expire;
- public Mobile Ignored{ get{ return m_Ignored; } }
- public bool Expired{ get{ return ( DateTime.UtcNow >= m_Expire ); } }
+ public Mobile Ignored => m_Ignored;
+ public bool Expired => ( DateTime.UtcNow >= m_Expire );
private static TimeSpan ExpireDelay = TimeSpan.FromMinutes( 15.0 );
diff --git a/Scripts/Engines/ConPVP/Arena.cs b/Scripts/Engines/ConPVP/Arena.cs
index f74a470cf..3ae052a95 100644
--- a/Scripts/Engines/ConPVP/Arena.cs
+++ b/Scripts/Engines/ConPVP/Arena.cs
@@ -10,16 +10,16 @@ namespace Server.Engines.ConPVP
private bool m_IsPrivate;
[CommandProperty( AccessLevel.GameMaster )]
- public Arena Arena{ get{ return m_Arena; } set{} }
+ public Arena Arena{ get => m_Arena;
+ set{} }
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsPrivate{ get{ return m_IsPrivate; } set{ m_IsPrivate = value; } }
-
- public override string DefaultName
- {
- get { return "arena controller"; }
+ public bool IsPrivate{ get => m_IsPrivate;
+ set => m_IsPrivate = value;
}
+ public override string DefaultName => "arena controller";
+
[Constructible]
public ArenaController() : base( 0x1B7A )
{
@@ -86,7 +86,9 @@ namespace Server.Engines.ConPVP
private static List m_Instances = new List();
- public static List Instances{ get{ return m_Instances; } set{ m_Instances = value; } }
+ public static List Instances{ get => m_Instances;
+ set => m_Instances = value;
+ }
}
[PropertyObject]
@@ -94,31 +96,47 @@ namespace Server.Engines.ConPVP
{
private Point3D[] m_Points;
- public Point3D[] Points{ get{ return m_Points; } }
+ public Point3D[] Points => m_Points;
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D EdgeWest{ get{ return m_Points[0]; } set{ m_Points[0] = value; } }
+ public Point3D EdgeWest{ get => m_Points[0];
+ set => m_Points[0] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D EdgeEast{ get{ return m_Points[1]; } set{ m_Points[1] = value; } }
+ public Point3D EdgeEast{ get => m_Points[1];
+ set => m_Points[1] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D EdgeNorth{ get{ return m_Points[2]; } set{ m_Points[2] = value; } }
+ public Point3D EdgeNorth{ get => m_Points[2];
+ set => m_Points[2] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D EdgeSouth{ get{ return m_Points[3]; } set{ m_Points[3] = value; } }
+ public Point3D EdgeSouth{ get => m_Points[3];
+ set => m_Points[3] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D CornerNW{ get{ return m_Points[4]; } set{ m_Points[4] = value; } }
+ public Point3D CornerNW{ get => m_Points[4];
+ set => m_Points[4] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D CornerSE{ get{ return m_Points[5]; } set{ m_Points[5] = value; } }
+ public Point3D CornerSE{ get => m_Points[5];
+ set => m_Points[5] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D CornerSW{ get{ return m_Points[6]; } set{ m_Points[6] = value; } }
+ public Point3D CornerSW{ get => m_Points[6];
+ set => m_Points[6] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D CornerNE{ get{ return m_Points[7]; } set{ m_Points[7] = value; } }
+ public Point3D CornerNE{ get => m_Points[7];
+ set => m_Points[7] = value;
+ }
public override string ToString()
{
@@ -179,14 +197,14 @@ namespace Server.Engines.ConPVP
[CommandProperty( AccessLevel.GameMaster )]
public LadderController Ladder
{
- get{ return m_Ladder; }
- set{ m_Ladder = value; }
+ get => m_Ladder;
+ set => m_Ladder = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool IsGuarded
{
- get{ return m_IsGuarded; }
+ get => m_IsGuarded;
set
{
m_IsGuarded = value;
@@ -207,7 +225,7 @@ namespace Server.Engines.ConPVP
[CommandProperty( AccessLevel.GameMaster )]
public TournamentController Tournament
{
- get{ return m_Tournament; }
+ get => m_Tournament;
set
{
if ( m_Tournament != null )
@@ -223,21 +241,21 @@ namespace Server.Engines.ConPVP
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Announcer
{
- get{ return m_Announcer; }
- set{ m_Announcer = value; }
+ get => m_Announcer;
+ set => m_Announcer = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string Name
{
- get{ return m_Name; }
+ get => m_Name;
set{ m_Name = value; if ( m_Active ) m_Arenas.Sort(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public Map Facet
{
- get{ return m_Facet; }
+ get => m_Facet;
set
{
m_Facet = value;
@@ -256,7 +274,9 @@ namespace Server.Engines.ConPVP
}
[CommandProperty( AccessLevel.GameMaster )]
- public Rectangle2D Bounds{ get{ return m_Bounds; } set{ m_Bounds = value; } }
+ public Rectangle2D Bounds{ get => m_Bounds;
+ set => m_Bounds = value;
+ }
private SafeZone m_Region;
@@ -279,7 +299,7 @@ namespace Server.Engines.ConPVP
[CommandProperty( AccessLevel.GameMaster )]
public Rectangle2D Zone
{
- get{ return m_Zone; }
+ get => m_Zone;
set
{
m_Zone = value;
@@ -302,31 +322,41 @@ namespace Server.Engines.ConPVP
}
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D Outside{ get{ return m_Outside; } set{ m_Outside = value; } }
+ public Point3D Outside{ get => m_Outside;
+ set => m_Outside = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D GateIn{ get{ return m_GateIn; } set{ m_GateIn = value; } }
+ public Point3D GateIn{ get => m_GateIn;
+ set => m_GateIn = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D GateOut{ get{ return m_GateOut; } set{ m_GateOut = value; if ( m_Teleporter != null ) m_Teleporter.Location = m_GateOut; } }
+ public Point3D GateOut{ get => m_GateOut;
+ set{ m_GateOut = value; if ( m_Teleporter != null ) m_Teleporter.Location = m_GateOut; } }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D Wall{ get{ return m_Wall; } set{ m_Wall = value; } }
+ public Point3D Wall{ get => m_Wall;
+ set => m_Wall = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsOccupied{ get{ return ( m_Players.Count > 0 ); } }
+ public bool IsOccupied => ( m_Players.Count > 0 );
[CommandProperty( AccessLevel.GameMaster )]
- public ArenaStartPoints Points{ get{ return m_Points; } set{} }
+ public ArenaStartPoints Points{ get => m_Points;
+ set{} }
- public Item Teleporter{ get{ return m_Teleporter; } set{ m_Teleporter = value; } }
+ public Item Teleporter{ get => m_Teleporter;
+ set => m_Teleporter = value;
+ }
- public List Players{ get{ return m_Players; } }
+ public List Players => m_Players;
[CommandProperty( AccessLevel.GameMaster )]
public bool Active
{
- get{ return m_Active; }
+ get => m_Active;
set
{
if ( m_Active == value )
@@ -567,7 +597,8 @@ namespace Server.Engines.ConPVP
}
[CommandProperty( AccessLevel.Administrator, AccessLevel.Administrator )]
- public bool ForceEvict{ get{ return false; } set{ if ( value ) Evict(); } }
+ public bool ForceEvict{ get => false;
+ set{ if ( value ) Evict(); } }
public void Evict()
{
@@ -662,7 +693,7 @@ namespace Server.Engines.ConPVP
private static List m_Arenas = new List();
- public static List Arenas{ get{ return m_Arenas; } }
+ public static List Arenas => m_Arenas;
public static Arena FindArena( List players )
{
@@ -765,20 +796,7 @@ namespace Server.Engines.ConPVP
public int m_VotesFor;
public int m_VotesAgainst;
- public int Value
- {
- get
- {
- return m_VotesFor;
-
- /*if ( m_VotesFor > m_VotesAgainst )
- return m_VotesFor - m_VotesAgainst;
- else if ( m_VotesFor > 0 )
- return 1;
- else
- return 0;*/
- }
- }
+ public int Value => m_VotesFor;
public ArenaEntry( Arena arena )
{
diff --git a/Scripts/Engines/ConPVP/ArenaGump.cs b/Scripts/Engines/ConPVP/ArenaGump.cs
index 82d534094..c50a301fb 100644
--- a/Scripts/Engines/ConPVP/ArenaGump.cs
+++ b/Scripts/Engines/ConPVP/ArenaGump.cs
@@ -9,10 +9,7 @@ namespace Server.Engines.ConPVP
{
public class ArenasMoongate : Item
{
- public override string DefaultName
- {
- get { return "arena moongate"; }
- }
+ public override string DefaultName => "arena moongate";
[Constructible]
public ArenasMoongate() : base( 0x1FD4 )
diff --git a/Scripts/Engines/ConPVP/DuelContext.cs b/Scripts/Engines/ConPVP/DuelContext.cs
index efe24c9bd..d83f65909 100644
--- a/Scripts/Engines/ConPVP/DuelContext.cs
+++ b/Scripts/Engines/ConPVP/DuelContext.cs
@@ -34,19 +34,19 @@ namespace Server.Engines.ConPVP
private bool m_Rematch;
- public bool Rematch{ get{ return m_Rematch; } }
+ public bool Rematch => m_Rematch;
- public bool ReadyWait{ get{ return m_ReadyWait; } }
- public int ReadyCount{ get{ return m_ReadyCount; } }
+ public bool ReadyWait => m_ReadyWait;
+ public int ReadyCount => m_ReadyCount;
- public bool Registered{ get{ return m_Registered; } }
- public bool Finished{ get{ return m_Finished; } }
- public bool Started{ get{ return m_Started; } }
+ public bool Registered => m_Registered;
+ public bool Finished => m_Finished;
+ public bool Started => m_Started;
- public Mobile Initiator{ get{ return m_Initiator; } }
- public ArrayList Participants{ get{ return m_Participants; } }
- public Ruleset Ruleset{ get{ return m_Ruleset; } }
- public Arena Arena{ get{ return m_Arena; } }
+ public Mobile Initiator => m_Initiator;
+ public ArrayList Participants => m_Participants;
+ public Ruleset Ruleset => m_Ruleset;
+ public Arena Arena => m_Arena;
private bool CantDoAnything( Mobile mob )
{
@@ -896,11 +896,13 @@ namespace Server.Engines.ConPVP
private Timer m_AutoTieTimer;
private bool m_Tied;
- public bool Tied{ get{ return m_Tied; } }
+ public bool Tied => m_Tied;
private bool m_IsSuddenDeath;
- public bool IsSuddenDeath{ get{ return m_IsSuddenDeath; } set{ m_IsSuddenDeath = value; } }
+ public bool IsSuddenDeath{ get => m_IsSuddenDeath;
+ set => m_IsSuddenDeath = value;
+ }
private Timer m_SDWarnTimer, m_SDActivateTimer;
@@ -1664,8 +1666,8 @@ namespace Server.Engines.ConPVP
private bool m_StartedBeginCountdown;
private bool m_StartedReadyCountdown;
- public bool StartedBeginCountdown{ get{ return m_StartedBeginCountdown; } }
- public bool StartedReadyCountdown{ get{ return m_StartedReadyCountdown; } }
+ public bool StartedBeginCountdown => m_StartedBeginCountdown;
+ public bool StartedReadyCountdown => m_StartedReadyCountdown;
private class InternalWall : Item
{
@@ -2000,9 +2002,9 @@ namespace Server.Engines.ConPVP
private Map m_Facet;
private DateTime m_Expire;
- public Mobile Mobile{ get{ return m_Mobile; } }
- public Point3D Location{ get{ return m_Location; } }
- public Map Facet{ get{ return m_Facet; } }
+ public Mobile Mobile => m_Mobile;
+ public Point3D Location => m_Location;
+ public Map Facet => m_Facet;
public void Return()
{
@@ -2036,7 +2038,7 @@ namespace Server.Engines.ConPVP
m_Expire = DateTime.UtcNow + TimeSpan.FromMinutes( 30.0 );
}
- public bool Expired{ get{ return ( DateTime.UtcNow >= m_Expire ); } }
+ public bool Expired => ( DateTime.UtcNow >= m_Expire );
public void Update()
{
@@ -2059,10 +2061,7 @@ namespace Server.Engines.ConPVP
{
private ArrayList m_Entries;
- public override string DefaultName
- {
- get { return "return teleporter"; }
- }
+ public override string DefaultName => "return teleporter";
public ExitTeleporter() : base( 0x1822 )
{
@@ -2183,10 +2182,7 @@ namespace Server.Engines.ConPVP
{
private ExitTeleporter m_Teleporter;
- public override string DefaultName
- {
- get { return "spectator moongate"; }
- }
+ public override string DefaultName => "spectator moongate";
public ArenaMoongate( Point3D target, Map map, ExitTeleporter tp ) : base( target, map )
{
diff --git a/Scripts/Engines/ConPVP/DuelContextGump.cs b/Scripts/Engines/ConPVP/DuelContextGump.cs
index 6b65e39fa..0e6816e12 100644
--- a/Scripts/Engines/ConPVP/DuelContextGump.cs
+++ b/Scripts/Engines/ConPVP/DuelContextGump.cs
@@ -9,8 +9,8 @@ namespace Server.Engines.ConPVP
private Mobile m_From;
private DuelContext m_Context;
- public Mobile From{ get{ return m_From; } }
- public DuelContext Context{ get{ return m_Context; } }
+ public Mobile From => m_From;
+ public DuelContext Context => m_Context;
public string Center( string text )
{
diff --git a/Scripts/Engines/ConPVP/Games/BombingRun.cs b/Scripts/Engines/ConPVP/Games/BombingRun.cs
index a7e685eed..bd148a9e8 100644
--- a/Scripts/Engines/ConPVP/Games/BombingRun.cs
+++ b/Scripts/Engines/ConPVP/Games/BombingRun.cs
@@ -788,7 +788,8 @@ namespace Server.Engines.ConPVP
private bool m_North = false;
[CommandProperty( AccessLevel.GameMaster )]
- public bool North { get { return m_North; } set { m_North = value; Remake(); } }
+ public bool North { get => m_North;
+ set { m_North = value; Remake(); } }
private static AddonComponent SetHue( AddonComponent ac, int hue )
{
@@ -908,7 +909,7 @@ namespace Server.Engines.ConPVP
public BRTeamInfo Team
{
- get { return m_Team; }
+ get => m_Team;
set
{
m_Team = value;
@@ -1190,17 +1191,11 @@ namespace Server.Engines.ConPVP
return res;
}
- public string Name
- {
- get { return m_Player.Name; }
- }
+ public string Name => m_Player.Name;
public int Kills
{
- get
- {
- return m_Kills;
- }
+ get => m_Kills;
set
{
m_TeamInfo.Kills += ( value - m_Kills );
@@ -1210,10 +1205,7 @@ namespace Server.Engines.ConPVP
public int Captures
{
- get
- {
- return m_Captures;
- }
+ get => m_Captures;
set
{
m_TeamInfo.Captures += ( value - m_Captures );
@@ -1223,10 +1215,7 @@ namespace Server.Engines.ConPVP
public int Score
{
- get
- {
- return m_Score;
- }
+ get => m_Score;
set
{
m_TeamInfo.Score += ( value - m_Score );
@@ -1277,38 +1266,40 @@ namespace Server.Engines.ConPVP
return res;
}
- public string Name
- {
- get { return String.Format( "{0} Team", m_Name ); }
- }
+ public string Name => String.Format( "{0} Team", m_Name );
- public BRGame Game { get { return m_Game; } set { m_Game = value; } }
+ public BRGame Game { get => m_Game;
+ set => m_Game = value;
+ }
public int TeamID => m_TeamID;
- public int Kills { get { return m_Kills; } set { m_Kills = value; } }
- public int Captures { get { return m_Captures; } set { m_Captures = value; } }
+ public int Kills { get => m_Kills;
+ set => m_Kills = value;
+ }
+ public int Captures { get => m_Captures;
+ set => m_Captures = value;
+ }
- public int Score { get { return m_Score; } set { m_Score = value; } }
+ public int Score { get => m_Score;
+ set => m_Score = value;
+ }
private BRPlayerInfo m_Leader;
public BRPlayerInfo Leader
{
- get { return m_Leader; }
- set { m_Leader = value; }
+ get => m_Leader;
+ set => m_Leader = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public BRBoard Board
{
- get { return m_Board; }
- set { m_Board = value; }
+ get => m_Board;
+ set => m_Board = value;
}
- public Hashtable Players
- {
- get { return m_Players; }
- }
+ public Hashtable Players => m_Players;
public BRPlayerInfo this[Mobile mob]
{
@@ -1327,21 +1318,21 @@ namespace Server.Engines.ConPVP
[CommandProperty( AccessLevel.GameMaster )]
public int Color
{
- get { return m_Color; }
- set { m_Color = value; }
+ get => m_Color;
+ set => m_Color = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string TeamName
{
- get { return m_Name; }
- set { m_Name = value; }
+ get => m_Name;
+ set => m_Name = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public BRGoal Goal
{
- get { return m_Goal; }
+ get => m_Goal;
set
{
m_Goal = value;
@@ -1423,29 +1414,33 @@ namespace Server.Engines.ConPVP
public BRTeamInfo[] TeamInfo => m_TeamInfo;
[CommandProperty( AccessLevel.GameMaster )]
- public BRTeamInfo Team1 { get { return m_TeamInfo[0]; } set { } }
+ public BRTeamInfo Team1 { get => m_TeamInfo[0];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public BRTeamInfo Team2 { get { return m_TeamInfo[1]; } set { } }
+ public BRTeamInfo Team2 { get => m_TeamInfo[1];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public BRTeamInfo Team3 { get { return m_TeamInfo[2]; } set { } }
+ public BRTeamInfo Team3 { get => m_TeamInfo[2];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public BRTeamInfo Team4 { get { return m_TeamInfo[3]; } set { } }
+ public BRTeamInfo Team4 { get => m_TeamInfo[3];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
public TimeSpan Duration
{
- get { return m_Duration; }
- set { m_Duration = value; }
+ get => m_Duration;
+ set => m_Duration = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Point3D BombHome
{
- get { return m_BombHome; }
- set { m_BombHome = value; }
+ get => m_BombHome;
+ set => m_BombHome = value;
}
public override string Title => "Bombing Run";
diff --git a/Scripts/Engines/ConPVP/Games/CTF.cs b/Scripts/Engines/ConPVP/Games/CTF.cs
index fd1249775..513dacaf3 100644
--- a/Scripts/Engines/ConPVP/Games/CTF.cs
+++ b/Scripts/Engines/ConPVP/Games/CTF.cs
@@ -13,10 +13,7 @@ namespace Server.Engines.ConPVP
{
public CTFTeamInfo m_TeamInfo;
- public override string DefaultName
- {
- get { return "scoreboard"; }
- }
+ public override string DefaultName => "scoreboard";
[Constructible]
public CTFBoard()
@@ -233,10 +230,7 @@ namespace Server.Engines.ConPVP
{
public CTFTeamInfo m_TeamInfo;
- public override string DefaultName
- {
- get { return "old people cookies"; }
- }
+ public override string DefaultName => "old people cookies";
public Mobile m_Fragger;
public DateTime m_FragTime;
@@ -548,17 +542,11 @@ namespace Server.Engines.ConPVP
public Mobile Player => m_Player;
- string IRankedCTF.Name
- {
- get { return m_Player.Name; }
- }
+ string IRankedCTF.Name => m_Player.Name;
public int Kills
{
- get
- {
- return m_Kills;
- }
+ get => m_Kills;
set
{
m_TeamInfo.Kills += ( value - m_Kills );
@@ -568,10 +556,7 @@ namespace Server.Engines.ConPVP
public int Captures
{
- get
- {
- return m_Captures;
- }
+ get => m_Captures;
set
{
m_TeamInfo.Captures += ( value - m_Captures );
@@ -581,10 +566,7 @@ namespace Server.Engines.ConPVP
public int Score
{
- get
- {
- return m_Score;
- }
+ get => m_Score;
set
{
m_TeamInfo.Score += ( value - m_Score );
@@ -623,38 +605,40 @@ namespace Server.Engines.ConPVP
private Dictionary m_Players;
- string IRankedCTF.Name
- {
- get { return String.Format( "{0} Team", m_Name ); }
- }
+ string IRankedCTF.Name => String.Format( "{0} Team", m_Name );
- public CTFGame Game { get { return m_Game; } set { m_Game = value; } }
+ public CTFGame Game { get => m_Game;
+ set => m_Game = value;
+ }
public int TeamID => m_TeamID;
- public int Kills { get { return m_Kills; } set { m_Kills = value; } }
- public int Captures { get { return m_Captures; } set { m_Captures = value; } }
+ public int Kills { get => m_Kills;
+ set => m_Kills = value;
+ }
+ public int Captures { get => m_Captures;
+ set => m_Captures = value;
+ }
- public int Score { get { return m_Score; } set { m_Score = value; } }
+ public int Score { get => m_Score;
+ set => m_Score = value;
+ }
private CTFPlayerInfo m_Leader;
public CTFPlayerInfo Leader
{
- get { return m_Leader; }
- set { m_Leader = value; }
+ get => m_Leader;
+ set => m_Leader = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public CTFBoard Board
{
- get { return m_Board; }
- set { m_Board = value; }
+ get => m_Board;
+ set => m_Board = value;
}
- public Dictionary Players
- {
- get { return m_Players; }
- }
+ public Dictionary Players => m_Players;
public CTFPlayerInfo this[Mobile mob]
{
@@ -673,29 +657,29 @@ namespace Server.Engines.ConPVP
[CommandProperty( AccessLevel.GameMaster )]
public int Color
{
- get { return m_Color; }
- set { m_Color = value; }
+ get => m_Color;
+ set => m_Color = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string Name
{
- get { return m_Name; }
- set { m_Name = value; }
+ get => m_Name;
+ set => m_Name = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public CTFFlag Flag
{
- get { return m_Flag; }
- set { m_Flag = value; }
+ get => m_Flag;
+ set => m_Flag = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Point3D Origin
{
- get { return m_Origin; }
- set { m_Origin = value; }
+ get => m_Origin;
+ set => m_Origin = value;
}
public CTFTeamInfo( int teamID )
@@ -787,40 +771,45 @@ namespace Server.Engines.ConPVP
public CTFTeamInfo[] TeamInfo => m_TeamInfo;
[CommandProperty( AccessLevel.GameMaster )]
- public CTFTeamInfo Team1 { get { return m_TeamInfo[0]; } set { } }
+ public CTFTeamInfo Team1 { get => m_TeamInfo[0];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public CTFTeamInfo Team2 { get { return m_TeamInfo[1]; } set { } }
+ public CTFTeamInfo Team2 { get => m_TeamInfo[1];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public CTFTeamInfo Team3 { get { return m_TeamInfo[2]; } set { } }
+ public CTFTeamInfo Team3 { get => m_TeamInfo[2];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public CTFTeamInfo Team4 { get { return m_TeamInfo[3]; } set { } }
+ public CTFTeamInfo Team4 { get => m_TeamInfo[3];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public CTFTeamInfo Team5 { get { return m_TeamInfo[4]; } set { } }
+ public CTFTeamInfo Team5 { get => m_TeamInfo[4];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public CTFTeamInfo Team6 { get { return m_TeamInfo[5]; } set { } }
+ public CTFTeamInfo Team6 { get => m_TeamInfo[5];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public CTFTeamInfo Team7 { get { return m_TeamInfo[6]; } set { } }
+ public CTFTeamInfo Team7 { get => m_TeamInfo[6];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public CTFTeamInfo Team8 { get { return m_TeamInfo[7]; } set { } }
+ public CTFTeamInfo Team8 { get => m_TeamInfo[7];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
public TimeSpan Duration
{
- get { return m_Duration; }
- set { m_Duration = value; }
+ get => m_Duration;
+ set => m_Duration = value;
}
- public override string Title
- {
- get { return "CTF"; }
- }
+ public override string Title => "CTF";
public override string GetTeamName( int teamID )
{
diff --git a/Scripts/Engines/ConPVP/Games/DoubleDom.cs b/Scripts/Engines/ConPVP/Games/DoubleDom.cs
index 76f371da6..63ab67ad4 100644
--- a/Scripts/Engines/ConPVP/Games/DoubleDom.cs
+++ b/Scripts/Engines/ConPVP/Games/DoubleDom.cs
@@ -11,10 +11,7 @@ namespace Server.Engines.ConPVP
{
public DDTeamInfo m_TeamInfo;
- public override string DefaultName
- {
- get { return "scoreboard"; }
- }
+ public override string DefaultName => "scoreboard";
[Constructible]
public DDBoard()
@@ -238,17 +235,11 @@ namespace Server.Engines.ConPVP
public Mobile Player => m_Player;
- public string Name
- {
- get { return m_Player.Name; }
- }
+ public string Name => m_Player.Name;
public int Kills
{
- get
- {
- return m_Kills;
- }
+ get => m_Kills;
set
{
m_TeamInfo.Kills += ( value - m_Kills );
@@ -258,10 +249,7 @@ namespace Server.Engines.ConPVP
public int Captures
{
- get
- {
- return m_Captures;
- }
+ get => m_Captures;
set
{
m_TeamInfo.Captures += ( value - m_Captures );
@@ -271,10 +259,7 @@ namespace Server.Engines.ConPVP
public int Score
{
- get
- {
- return m_Score;
- }
+ get => m_Score;
set
{
m_TeamInfo.Score += ( value - m_Score );
@@ -312,38 +297,40 @@ namespace Server.Engines.ConPVP
private Dictionary m_Players;
- public string Name
- {
- get { return String.Format( "{0} Team", m_Name ); }
- }
+ public string Name => String.Format( "{0} Team", m_Name );
- public DDGame Game { get { return m_Game; } set { m_Game = value; } }
+ public DDGame Game { get => m_Game;
+ set => m_Game = value;
+ }
public int TeamID => m_TeamID;
- public int Kills { get { return m_Kills; } set { m_Kills = value; } }
- public int Captures { get { return m_Captures; } set { m_Captures = value; } }
+ public int Kills { get => m_Kills;
+ set => m_Kills = value;
+ }
+ public int Captures { get => m_Captures;
+ set => m_Captures = value;
+ }
- public int Score { get { return m_Score; } set { m_Score = value; } }
+ public int Score { get => m_Score;
+ set => m_Score = value;
+ }
private DDPlayerInfo m_Leader;
public DDPlayerInfo Leader
{
- get { return m_Leader; }
- set { m_Leader = value; }
+ get => m_Leader;
+ set => m_Leader = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DDBoard Board
{
- get { return m_Board; }
- set { m_Board = value; }
+ get => m_Board;
+ set => m_Board = value;
}
- public Dictionary Players
- {
- get { return m_Players; }
- }
+ public Dictionary Players => m_Players;
public DDPlayerInfo this[Mobile mob]
{
@@ -362,22 +349,22 @@ namespace Server.Engines.ConPVP
[CommandProperty( AccessLevel.GameMaster )]
public int Color
{
- get { return m_Color; }
- set { m_Color = value; }
+ get => m_Color;
+ set => m_Color = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string TeamName
{
- get { return m_Name; }
- set { m_Name = value; }
+ get => m_Name;
+ set => m_Name = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Point3D Origin
{
- get { return m_Origin; }
- set { m_Origin = value; }
+ get => m_Origin;
+ set => m_Origin = value;
}
public DDTeamInfo( int teamID )
@@ -446,30 +433,33 @@ namespace Server.Engines.ConPVP
public DDTeamInfo[] TeamInfo => m_TeamInfo;
[CommandProperty( AccessLevel.GameMaster )]
- public DDTeamInfo Team1 { get { return m_TeamInfo[0]; } set { } }
+ public DDTeamInfo Team1 { get => m_TeamInfo[0];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public DDTeamInfo Team2 { get { return m_TeamInfo[1]; } set { } }
+ public DDTeamInfo Team2 { get => m_TeamInfo[1];
+ set { } }
[CommandProperty( AccessLevel.GameMaster )]
- public DDWayPoint PointA { get { return m_PointA; } set { m_PointA = value; } }
+ public DDWayPoint PointA { get => m_PointA;
+ set => m_PointA = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public DDWayPoint PointB { get { return m_PointB; } set { m_PointB = value; } }
+ public DDWayPoint PointB { get => m_PointB;
+ set => m_PointB = value;
+ }
private DDWayPoint m_PointA, m_PointB;
[CommandProperty( AccessLevel.GameMaster )]
public TimeSpan Duration
{
- get { return m_Duration; }
- set { m_Duration = value; }
+ get => m_Duration;
+ set => m_Duration = value;
}
- public override string Title
- {
- get { return "DoubleDom"; }
- }
+ public override string Title => "DoubleDom";
public override string GetTeamName( int teamID )
{
@@ -1109,7 +1099,7 @@ namespace Server.Engines.ConPVP
public DDGame Game
{
- get{ return m_Game; }
+ get => m_Game;
set
{
m_Game = value;
@@ -1124,7 +1114,7 @@ namespace Server.Engines.ConPVP
public DDTeamInfo TeamOwner
{
- get{ return m_TeamOwner; }
+ get => m_TeamOwner;
set
{
m_TeamOwner = value;
diff --git a/Scripts/Engines/ConPVP/Games/KingOfTheHill.cs b/Scripts/Engines/ConPVP/Games/KingOfTheHill.cs
index 626221dc2..bf1be1e3c 100644
--- a/Scripts/Engines/ConPVP/Games/KingOfTheHill.cs
+++ b/Scripts/Engines/ConPVP/Games/KingOfTheHill.cs
@@ -58,18 +58,12 @@ namespace Server.Engines.ConPVP
writer.WriteEncodedInt(m_ScoreInterval);
}
- public Mobile King
- {
- get
- {
- return m_King;
- }
- }
+ public Mobile King => m_King;
- public KHGame Game
+ public KHGame Game
{
- get { return m_Game; }
- set
+ get => m_Game;
+ set
{
if (m_Game != value)
{
@@ -82,7 +76,9 @@ namespace Server.Engines.ConPVP
}
[CommandProperty(AccessLevel.GameMaster)]
- public int ScoreInterval { get { return m_ScoreInterval; } set { m_ScoreInterval = value; } }
+ public int ScoreInterval { get => m_ScoreInterval;
+ set => m_ScoreInterval = value;
+ }
public int CapturesSoFar
{
@@ -307,8 +303,8 @@ namespace Server.Engines.ConPVP
[CommandProperty(AccessLevel.GameMaster)]
public KHController Controller
{
- get { return m_Controller; }
- set
+ get => m_Controller;
+ set
{
if (m_Controller != value)
{
@@ -563,11 +559,8 @@ namespace Server.Engines.ConPVP
public int Kills
{
- get
- {
- return m_Kills;
- }
- set
+ get => m_Kills;
+ set
{
m_TeamInfo.Kills += (value - m_Kills);
m_Kills = value;
@@ -576,11 +569,8 @@ namespace Server.Engines.ConPVP
public int Captures
{
- get
- {
- return m_Captures;
- }
- set
+ get => m_Captures;
+ set
{
m_TeamInfo.Captures += (value - m_Captures);
m_Captures = value;
@@ -589,11 +579,8 @@ namespace Server.Engines.ConPVP
public int Score
{
- get
- {
- return m_Score;
- }
- set
+ get => m_Score;
+ set
{
m_TeamInfo.Score += (value - m_Score);
m_Score = value;
@@ -644,27 +631,32 @@ namespace Server.Engines.ConPVP
}
}
- public KHGame Game { get { return m_Game; } set { m_Game = value; } }
+ public KHGame Game { get => m_Game;
+ set => m_Game = value;
+ }
public int TeamID => m_TeamID;
- public int Kills { get { return m_Kills; } set { m_Kills = value; } }
- public int Captures { get { return m_Captures; } set { m_Captures = value; } }
- public int Score { get { return m_Score; } set { m_Score = value; } }
+ public int Kills { get => m_Kills;
+ set => m_Kills = value;
+ }
+ public int Captures { get => m_Captures;
+ set => m_Captures = value;
+ }
+ public int Score { get => m_Score;
+ set => m_Score = value;
+ }
private KHPlayerInfo m_Leader;
public KHPlayerInfo Leader
{
- get { return m_Leader; }
- set { m_Leader = value; }
+ get => m_Leader;
+ set => m_Leader = value;
}
- public Hashtable Players
- {
- get { return m_Players; }
- }
+ public Hashtable Players => m_Players;
- public KHPlayerInfo this[Mobile mob]
+ public KHPlayerInfo this[Mobile mob]
{
get
{
@@ -681,15 +673,15 @@ namespace Server.Engines.ConPVP
[CommandProperty(AccessLevel.GameMaster)]
public int Color
{
- get { return m_Color; }
- set { m_Color = value; }
+ get => m_Color;
+ set => m_Color = value;
}
[CommandProperty(AccessLevel.GameMaster)]
public string TeamName
{
- get { return m_Name; }
- set { m_Name = value; }
+ get => m_Name;
+ set => m_Name = value;
}
public KHTeamInfo(int teamID)
@@ -755,58 +747,71 @@ namespace Server.Engines.ConPVP
public KHTeamInfo[] TeamInfo => m_TeamInfo;
[CommandProperty(AccessLevel.GameMaster)]
- public KHTeamInfo Team1_W { get { return m_TeamInfo[0]; } set { } }
+ public KHTeamInfo Team1_W { get => m_TeamInfo[0];
+ set { } }
[CommandProperty(AccessLevel.GameMaster)]
- public KHTeamInfo Team2_E { get { return m_TeamInfo[1]; } set { } }
+ public KHTeamInfo Team2_E { get => m_TeamInfo[1];
+ set { } }
[CommandProperty(AccessLevel.GameMaster)]
- public KHTeamInfo Team3_N { get { return m_TeamInfo[2]; } set { } }
+ public KHTeamInfo Team3_N { get => m_TeamInfo[2];
+ set { } }
[CommandProperty(AccessLevel.GameMaster)]
- public KHTeamInfo Team4_S { get { return m_TeamInfo[3]; } set { } }
+ public KHTeamInfo Team4_S { get => m_TeamInfo[3];
+ set { } }
[CommandProperty(AccessLevel.GameMaster)]
- public KHTeamInfo Team5_NW { get { return m_TeamInfo[4]; } set { } }
+ public KHTeamInfo Team5_NW { get => m_TeamInfo[4];
+ set { } }
[CommandProperty(AccessLevel.GameMaster)]
- public KHTeamInfo Team6_SE { get { return m_TeamInfo[5]; } set { } }
+ public KHTeamInfo Team6_SE { get => m_TeamInfo[5];
+ set { } }
[CommandProperty(AccessLevel.GameMaster)]
- public KHTeamInfo Team7_SW { get { return m_TeamInfo[6]; } set { } }
+ public KHTeamInfo Team7_SW { get => m_TeamInfo[6];
+ set { } }
[CommandProperty(AccessLevel.GameMaster)]
- public KHTeamInfo Team8_NE { get { return m_TeamInfo[7]; } set { } }
+ public KHTeamInfo Team8_NE { get => m_TeamInfo[7];
+ set { } }
public HillOfTheKing[] Hills => m_Hills;
[CommandProperty(AccessLevel.GameMaster)]
- public HillOfTheKing Hill1 { get { return m_Hills[0]; } set { m_Hills[0] = value; } }
+ public HillOfTheKing Hill1 { get => m_Hills[0];
+ set => m_Hills[0] = value;
+ }
[CommandProperty(AccessLevel.GameMaster)]
- public HillOfTheKing Hill2 { get { return m_Hills[1]; } set { m_Hills[1] = value; } }
+ public HillOfTheKing Hill2 { get => m_Hills[1];
+ set => m_Hills[1] = value;
+ }
[CommandProperty(AccessLevel.GameMaster)]
- public HillOfTheKing Hill3 { get { return m_Hills[2]; } set { m_Hills[2] = value; } }
+ public HillOfTheKing Hill3 { get => m_Hills[2];
+ set => m_Hills[2] = value;
+ }
[CommandProperty(AccessLevel.GameMaster)]
- public HillOfTheKing Hill4 { get { return m_Hills[3]; } set { m_Hills[3] = value; } }
+ public HillOfTheKing Hill4 { get => m_Hills[3];
+ set => m_Hills[3] = value;
+ }
public ArrayList Boards => m_Boards;
[CommandProperty(AccessLevel.GameMaster)]
public TimeSpan Duration
{
- get { return m_Duration; }
- set { m_Duration = value; }
+ get => m_Duration;
+ set => m_Duration = value;
}
- public override string Title
- {
- get { return "King of the Hill"; }
- }
+ public override string Title => "King of the Hill";
- public override string GetTeamName(int teamID)
+ public override string GetTeamName(int teamID)
{
return m_TeamInfo[teamID % m_TeamInfo.Length].Name;
}
diff --git a/Scripts/Engines/ConPVP/Ladder.cs b/Scripts/Engines/ConPVP/Ladder.cs
index 60ea219e9..4d9fc24f5 100644
--- a/Scripts/Engines/ConPVP/Ladder.cs
+++ b/Scripts/Engines/ConPVP/Ladder.cs
@@ -8,12 +8,10 @@ namespace Server.Engines.ConPVP
private Ladder m_Ladder;
//[CommandProperty( AccessLevel.GameMaster )]
- public Ladder Ladder{ get{ return m_Ladder; } set{} }
+ public Ladder Ladder{ get => m_Ladder;
+ set{} }
- public override string DefaultName
- {
- get { return "ladder controller"; }
- }
+ public override string DefaultName => "ladder controller";
[Constructible]
public LadderController() : base( 0x1B7A )
@@ -251,7 +249,9 @@ namespace Server.Engines.ConPVP
private static Ladder m_Instance;
- public static Ladder Instance{ get{ return m_Instance; } set{ m_Instance = value; } }
+ public static Ladder Instance{ get => m_Instance;
+ set => m_Instance = value;
+ }
public Ladder()
{
@@ -322,21 +322,28 @@ namespace Server.Engines.ConPVP
private int m_Index;
private Ladder m_Ladder;
- public Mobile Mobile{ get{ return m_Mobile; } }
+ public Mobile Mobile => m_Mobile;
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
- public int Experience{ get{ return m_Experience; } set{ m_Experience = value; m_Ladder.UpdateEntry(this); } }
+ public int Experience{ get => m_Experience;
+ set{ m_Experience = value; m_Ladder.UpdateEntry(this); } }
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
- public int Wins{ get{ return m_Wins; } set{ m_Wins = value; } }
+ public int Wins{ get => m_Wins;
+ set => m_Wins = value;
+ }
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
- public int Losses{ get{ return m_Losses; } set{ m_Losses = value; } }
+ public int Losses{ get => m_Losses;
+ set => m_Losses = value;
+ }
- public int Index{ get{ return m_Index; } set{ m_Index = value; } }
+ public int Index{ get => m_Index;
+ set => m_Index = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Rank{ get{ return m_Index; } }
+ public int Rank => m_Index;
public LadderEntry( Mobile mob, Ladder ladder )
{
diff --git a/Scripts/Engines/ConPVP/LadderGump.cs b/Scripts/Engines/ConPVP/LadderGump.cs
index 247511b6a..a4048211b 100644
--- a/Scripts/Engines/ConPVP/LadderGump.cs
+++ b/Scripts/Engines/ConPVP/LadderGump.cs
@@ -12,14 +12,11 @@ namespace Server.Engines.ConPVP
[CommandProperty( AccessLevel.GameMaster )]
public LadderController Ladder
{
- get{ return m_Ladder; }
- set{ m_Ladder = value; }
+ get => m_Ladder;
+ set => m_Ladder = value;
}
- public override string DefaultName
- {
- get { return "1v1 leaderboard"; }
- }
+ public override string DefaultName => "1v1 leaderboard";
[Constructible]
public LadderItem() : base( 0x117F )
diff --git a/Scripts/Engines/ConPVP/Participant.cs b/Scripts/Engines/ConPVP/Participant.cs
index ee32f5629..0961bdf3b 100644
--- a/Scripts/Engines/ConPVP/Participant.cs
+++ b/Scripts/Engines/ConPVP/Participant.cs
@@ -10,10 +10,12 @@ namespace Server.Engines.ConPVP
private DuelPlayer[] m_Players;
private TournyParticipant m_TournyPart;
- public int Count{ get{ return m_Players.Length; } }
- public DuelPlayer[] Players{ get{ return m_Players; } }
- public DuelContext Context{ get{ return m_Context; } }
- public TournyParticipant TournyPart{ get{ return m_TournyPart; } set{ m_TournyPart = value; } }
+ public int Count => m_Players.Length;
+ public DuelPlayer[] Players => m_Players;
+ public DuelContext Context => m_Context;
+ public TournyParticipant TournyPart{ get => m_TournyPart;
+ set => m_TournyPart = value;
+ }
public DuelPlayer Find( Mobile mob )
{
@@ -215,10 +217,15 @@ namespace Server.Engines.ConPVP
private bool m_Ready;
private Participant m_Participant;
- public Mobile Mobile{ get{ return m_Mobile; } }
- public bool Ready{ get{ return m_Ready; } set{ m_Ready = value; } }
- public bool Eliminated{ get{ return m_Eliminated; } set{ m_Eliminated = value; if ( m_Participant.Context.m_Tournament != null && m_Eliminated ){ m_Participant.Context.m_Tournament.OnEliminated( this ); m_Mobile.SendEverything(); } } }
- public Participant Participant{ get{ return m_Participant; } set{ m_Participant = value; } }
+ public Mobile Mobile => m_Mobile;
+ public bool Ready{ get => m_Ready;
+ set => m_Ready = value;
+ }
+ public bool Eliminated{ get => m_Eliminated;
+ set{ m_Eliminated = value; if ( m_Participant.Context.m_Tournament != null && m_Eliminated ){ m_Participant.Context.m_Tournament.OnEliminated( this ); m_Mobile.SendEverything(); } } }
+ public Participant Participant{ get => m_Participant;
+ set => m_Participant = value;
+ }
public DuelPlayer( Mobile mob, Participant p )
{
diff --git a/Scripts/Engines/ConPVP/ParticipantGump.cs b/Scripts/Engines/ConPVP/ParticipantGump.cs
index fb71edde8..b16d3454e 100644
--- a/Scripts/Engines/ConPVP/ParticipantGump.cs
+++ b/Scripts/Engines/ConPVP/ParticipantGump.cs
@@ -12,9 +12,9 @@ namespace Server.Engines.ConPVP
private DuelContext m_Context;
private Participant m_Participant;
- public Mobile From{ get{ return m_From; } }
- public DuelContext Context{ get{ return m_Context; } }
- public Participant Participant{ get{ return m_Participant; } }
+ public Mobile From => m_From;
+ public DuelContext Context => m_Context;
+ public Participant Participant => m_Participant;
public string Center( string text )
{
diff --git a/Scripts/Engines/ConPVP/Preferences.cs b/Scripts/Engines/ConPVP/Preferences.cs
index e725d6222..ccdf16ced 100644
--- a/Scripts/Engines/ConPVP/Preferences.cs
+++ b/Scripts/Engines/ConPVP/Preferences.cs
@@ -11,12 +11,10 @@ namespace Server.Engines.ConPVP
private Preferences m_Preferences;
//[CommandProperty( AccessLevel.GameMaster )]
- public Preferences Preferences{ get{ return m_Preferences; } set{} }
+ public Preferences Preferences{ get => m_Preferences;
+ set{} }
- public override string DefaultName
- {
- get { return "preferences controller"; }
- }
+ public override string DefaultName => "preferences controller";
[Constructible]
public PreferencesController() : base( 0x1B7A )
@@ -74,7 +72,7 @@ namespace Server.Engines.ConPVP
private ArrayList m_Entries;
private Hashtable m_Table;
- public ArrayList Entries{ get{ return m_Entries; } }
+ public ArrayList Entries => m_Entries;
public PreferencesEntry Find( Mobile mob )
{
@@ -91,7 +89,9 @@ namespace Server.Engines.ConPVP
private static Preferences m_Instance;
- public static Preferences Instance{ get{ return m_Instance; } set{ m_Instance = value; } }
+ public static Preferences Instance{ get => m_Instance;
+ set => m_Instance = value;
+ }
public Preferences()
{
@@ -145,8 +145,8 @@ namespace Server.Engines.ConPVP
private ArrayList m_Disliked;
private Preferences m_Preferences;
- public Mobile Mobile{ get{ return m_Mobile; } }
- public ArrayList Disliked{ get{ return m_Disliked; } }
+ public Mobile Mobile => m_Mobile;
+ public ArrayList Disliked => m_Disliked;
public PreferencesEntry( Mobile mob, Preferences prefs )
{
diff --git a/Scripts/Engines/ConPVP/Ruleset.cs b/Scripts/Engines/ConPVP/Ruleset.cs
index 00e5dedd0..53e50e033 100644
--- a/Scripts/Engines/ConPVP/Ruleset.cs
+++ b/Scripts/Engines/ConPVP/Ruleset.cs
@@ -12,13 +12,17 @@ namespace Server.Engines.ConPVP
private ArrayList m_Flavors = new ArrayList();
private bool m_Changed;
- public RulesetLayout Layout{ get{ return m_Layout; } }
- public BitArray Options{ get{ return m_Options; } }
- public string Title{ get{ return m_Title; } set{ m_Title = value; } }
+ public RulesetLayout Layout => m_Layout;
+ public BitArray Options => m_Options;
+ public string Title{ get => m_Title;
+ set => m_Title = value;
+ }
- public Ruleset Base{ get{ return m_Base; } }
- public ArrayList Flavors{ get{ return m_Flavors; } }
- public bool Changed{ get{ return m_Changed; } set{ m_Changed = value; } }
+ public Ruleset Base => m_Base;
+ public ArrayList Flavors => m_Flavors;
+ public bool Changed{ get => m_Changed;
+ set => m_Changed = value;
+ }
public void ApplyDefault( Ruleset newDefault )
{
diff --git a/Scripts/Engines/ConPVP/RulesetLayout.cs b/Scripts/Engines/ConPVP/RulesetLayout.cs
index 775563521..9c5cc18ed 100644
--- a/Scripts/Engines/ConPVP/RulesetLayout.cs
+++ b/Scripts/Engines/ConPVP/RulesetLayout.cs
@@ -660,18 +660,22 @@ namespace Server.Engines.ConPVP
private RulesetLayout m_Parent;
private RulesetLayout[] m_Children;
- public string Title{ get{ return m_Title; } }
- public string Description{ get{ return m_Description; } }
- public string[] Options{ get{ return m_Options; } }
+ public string Title => m_Title;
+ public string Description => m_Description;
+ public string[] Options => m_Options;
- public int Offset{ get{ return m_Offset; } }
- public int TotalLength{ get{ return m_TotalLength; } }
+ public int Offset => m_Offset;
+ public int TotalLength => m_TotalLength;
- public RulesetLayout Parent{ get{ return m_Parent; } }
- public RulesetLayout[] Children{ get{ return m_Children; } }
+ public RulesetLayout Parent => m_Parent;
+ public RulesetLayout[] Children => m_Children;
- public Ruleset[] Defaults{ get{ return m_Defaults; } set{ m_Defaults = value; } }
- public Ruleset[] Flavors{ get{ return m_Flavors; } set{ m_Flavors = value; } }
+ public Ruleset[] Defaults{ get => m_Defaults;
+ set => m_Defaults = value;
+ }
+ public Ruleset[] Flavors{ get => m_Flavors;
+ set => m_Flavors = value;
+ }
public RulesetLayout FindByTitle( string title )
{
diff --git a/Scripts/Engines/ConPVP/Tournament.cs b/Scripts/Engines/ConPVP/Tournament.cs
index 26eaea289..b8d830ab1 100644
--- a/Scripts/Engines/ConPVP/Tournament.cs
+++ b/Scripts/Engines/ConPVP/Tournament.cs
@@ -41,7 +41,9 @@ namespace Server.Engines.ConPVP
private TournamentController m_Tournament;
[CommandProperty( AccessLevel.GameMaster )]
- public TournamentController Tournament{ get{ return m_Tournament; } set{ m_Tournament = value; } }
+ public TournamentController Tournament{ get => m_Tournament;
+ set => m_Tournament = value;
+ }
[Constructible]
public TournamentRegistrar()
@@ -138,16 +140,17 @@ namespace Server.Engines.ConPVP
private Mobile m_Registrar;
[CommandProperty( AccessLevel.GameMaster )]
- public TournamentController Tournament{ get{ return m_Tournament; } set{ m_Tournament = value; } }
+ public TournamentController Tournament{ get => m_Tournament;
+ set => m_Tournament = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Mobile Registrar{ get{ return m_Registrar; } set{ m_Registrar = value; } }
-
- public override string DefaultName
- {
- get { return "tournament signup book"; }
+ public Mobile Registrar{ get => m_Registrar;
+ set => m_Registrar = value;
}
+ public override string DefaultName => "tournament signup book";
+
[Constructible]
public TournamentSignupItem() : base( 4029 )
{
@@ -1186,7 +1189,8 @@ namespace Server.Engines.ConPVP
private Tournament m_Tournament;
[CommandProperty( AccessLevel.GameMaster )]
- public Tournament Tournament{ get{ return m_Tournament; } set{} }
+ public Tournament Tournament{ get => m_Tournament;
+ set{} }
private static ArrayList m_Instances = new ArrayList();
@@ -1206,10 +1210,7 @@ namespace Server.Engines.ConPVP
}
}
- public override string DefaultName
- {
- get { return "tournament controller"; }
- }
+ public override string DefaultName => "tournament controller";
[Constructible]
public TournamentController() : base( 0x1B7A )
@@ -1360,139 +1361,132 @@ namespace Server.Engines.ConPVP
private EventController m_EventController;
- public bool IsNotoRestricted { get { return ( m_TournyType != TournyType.Standard ); } }
+ public bool IsNotoRestricted => ( m_TournyType != TournyType.Standard );
[CommandProperty( AccessLevel.GameMaster )]
public EventController EventController
{
- get { return m_EventController; }
- set { m_EventController = value; }
+ get => m_EventController;
+ set => m_EventController = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int SuddenDeathRounds
{
- get{ return m_SuddenDeathRounds; }
- set{ m_SuddenDeathRounds = value; }
+ get => m_SuddenDeathRounds;
+ set => m_SuddenDeathRounds = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public TournyType TournyType
{
- get{ return m_TournyType; }
- set{ m_TournyType = value; }
+ get => m_TournyType;
+ set => m_TournyType = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public GroupingType GroupType
{
- get{ return m_GroupType; }
- set{ m_GroupType = value; }
+ get => m_GroupType;
+ set => m_GroupType = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public TieType TieType
{
- get{ return m_TieType; }
- set{ m_TieType = value; }
+ get => m_TieType;
+ set => m_TieType = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public TimeSpan SuddenDeath
{
- get{ return m_SuddenDeath; }
- set{ m_SuddenDeath = value; }
+ get => m_SuddenDeath;
+ set => m_SuddenDeath = value;
}
public Ruleset Ruleset
{
- get{ return m_Ruleset; }
- set{ m_Ruleset = value; }
+ get => m_Ruleset;
+ set => m_Ruleset = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int ParticipantsPerMatch
{
- get{ return m_ParticipantsPerMatch; }
+ get => m_ParticipantsPerMatch;
set{ if ( value < 2 ) value = 2; else if ( value > 10 ) value = 10; m_ParticipantsPerMatch = value; }
}
[CommandProperty( AccessLevel.GameMaster )]
public int PlayersPerParticipant
{
- get{ return m_PlayersPerParticipant; }
+ get => m_PlayersPerParticipant;
set{ if ( value < 1 ) value = 1; else if ( value > 10 ) value = 10; m_PlayersPerParticipant = value; }
}
[CommandProperty( AccessLevel.GameMaster )]
public int LevelRequirement
{
- get{ return m_LevelRequirement; }
- set{ m_LevelRequirement = value; }
+ get => m_LevelRequirement;
+ set => m_LevelRequirement = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool FactionRestricted
{
- get{ return m_FactionRestricted; }
- set{ m_FactionRestricted = value; }
+ get => m_FactionRestricted;
+ set => m_FactionRestricted = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public TimeSpan SignupPeriod
{
- get{ return m_SignupPeriod; }
- set{ m_SignupPeriod = value; }
+ get => m_SignupPeriod;
+ set => m_SignupPeriod = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime SignupStart
{
- get{ return m_SignupStart; }
- set{ m_SignupStart = value; }
+ get => m_SignupStart;
+ set => m_SignupStart = value;
}
[CommandProperty( AccessLevel.GameMaster )]
- public TournamentStage CurrentStage
- {
- get{ return m_Stage; }
- }
+ public TournamentStage CurrentStage => m_Stage;
public TournamentStage Stage
{
- get{ return m_Stage; }
- set{ m_Stage = value; }
+ get => m_Stage;
+ set => m_Stage = value;
}
public TournyPyramid Pyramid
{
- get{ return m_Pyramid; }
- set{ m_Pyramid = value; }
+ get => m_Pyramid;
+ set => m_Pyramid = value;
}
public ArrayList Arenas
{
- get{ return m_Arenas; }
- set{ m_Arenas = value; }
+ get => m_Arenas;
+ set => m_Arenas = value;
}
public ArrayList Participants
{
- get{ return m_Participants; }
- set{ m_Participants = value; }
+ get => m_Participants;
+ set => m_Participants = value;
}
public ArrayList Undefeated
{
- get{ return m_Undefeated; }
- set{ m_Undefeated = value; }
+ get => m_Undefeated;
+ set => m_Undefeated = value;
}
- public bool IsFactionRestricted {
- get {
- return ( m_FactionRestricted || m_TournyType == TournyType.Faction );
- }
- }
+ public bool IsFactionRestricted => ( m_FactionRestricted || m_TournyType == TournyType.Faction );
public bool HasParticipant( Mobile mob )
{
@@ -2255,8 +2249,8 @@ namespace Server.Engines.ConPVP
public ArrayList Levels
{
- get{ return m_Levels; }
- set{ m_Levels = value; }
+ get => m_Levels;
+ set => m_Levels = value;
}
public TournyPyramid()
@@ -2443,14 +2437,14 @@ namespace Server.Engines.ConPVP
public ArrayList Matches
{
- get{ return m_Matches; }
- set{ m_Matches = value; }
+ get => m_Matches;
+ set => m_Matches = value;
}
public TournyParticipant FreeAdvance
{
- get{ return m_FreeAdvance; }
- set{ m_FreeAdvance = value; }
+ get => m_FreeAdvance;
+ set => m_FreeAdvance = value;
}
public PyramidLevel()
@@ -2467,26 +2461,23 @@ namespace Server.Engines.ConPVP
public ArrayList Participants
{
- get{ return m_Participants; }
- set{ m_Participants = value; }
+ get => m_Participants;
+ set => m_Participants = value;
}
public TournyParticipant Winner
{
- get{ return m_Winner; }
- set{ m_Winner = value; }
+ get => m_Winner;
+ set => m_Winner = value;
}
public DuelContext Context
{
- get{ return m_Context; }
- set{ m_Context = value; }
+ get => m_Context;
+ set => m_Context = value;
}
- public bool InProgress
- {
- get{ return ( m_Context != null && m_Context.Registered ); }
- }
+ public bool InProgress => ( m_Context != null && m_Context.Registered );
public void Start( Arena arena, Tournament tourny )
{
@@ -2601,20 +2592,20 @@ namespace Server.Engines.ConPVP
public ArrayList Players
{
- get{ return m_Players; }
- set{ m_Players = value; }
+ get => m_Players;
+ set => m_Players = value;
}
public ArrayList Log
{
- get{ return m_Log; }
- set{ m_Log = value; }
+ get => m_Log;
+ set => m_Log = value;
}
public int FreeAdvances
{
- get{ return m_FreeAdvances; }
- set{ m_FreeAdvances = value; }
+ get => m_FreeAdvances;
+ set => m_FreeAdvances = value;
}
public int TotalLadderXP
@@ -3520,13 +3511,12 @@ namespace Server.Engines.ConPVP
private TournamentController m_Tournament;
[CommandProperty( AccessLevel.GameMaster )]
- public TournamentController Tournament{ get{ return m_Tournament; } set{ m_Tournament = value; } }
-
- public override string DefaultName
- {
- get { return "tournament bracket"; }
+ public TournamentController Tournament{ get => m_Tournament;
+ set => m_Tournament = value;
}
+ public override string DefaultName => "tournament bracket";
+
[Constructible]
public TournamentBracketItem() : base( 3774 )
{
diff --git a/Scripts/Engines/ConPVP/Trophy.cs b/Scripts/Engines/ConPVP/Trophy.cs
index 0181c2eed..3a4c72bbe 100644
--- a/Scripts/Engines/ConPVP/Trophy.cs
+++ b/Scripts/Engines/ConPVP/Trophy.cs
@@ -18,16 +18,21 @@ namespace Server.Items
private DateTime m_Date;
[CommandProperty( AccessLevel.GameMaster )]
- public string Title{ get{ return m_Title; } set{ m_Title = value; } }
+ public string Title{ get => m_Title;
+ set => m_Title = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public TrophyRank Rank{ get{ return m_Rank; } set{ m_Rank = value; UpdateStyle(); } }
+ public TrophyRank Rank{ get => m_Rank;
+ set{ m_Rank = value; UpdateStyle(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public Mobile Owner{ get{ return m_Owner; } set{ m_Owner = value; } }
+ public Mobile Owner{ get => m_Owner;
+ set => m_Owner = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public DateTime Date{ get{ return m_Date; } }
+ public DateTime Date => m_Date;
[Constructible]
public Trophy( string title, TrophyRank rank ) : base( 5020 )
diff --git a/Scripts/Engines/Craft/Core/CraftContext.cs b/Scripts/Engines/Craft/Core/CraftContext.cs
index cf19206d8..2310016dd 100644
--- a/Scripts/Engines/Craft/Core/CraftContext.cs
+++ b/Scripts/Engines/Craft/Core/CraftContext.cs
@@ -19,11 +19,21 @@ namespace Server.Engines.Craft
private CraftMarkOption m_MarkOption;
public List Items => m_Items;
- public int LastResourceIndex{ get{ return m_LastResourceIndex; } set{ m_LastResourceIndex = value; } }
- public int LastResourceIndex2{ get{ return m_LastResourceIndex2; } set{ m_LastResourceIndex2 = value; } }
- public int LastGroupIndex{ get{ return m_LastGroupIndex; } set{ m_LastGroupIndex = value; } }
- public bool DoNotColor{ get{ return m_DoNotColor; } set{ m_DoNotColor = value; } }
- public CraftMarkOption MarkOption{ get{ return m_MarkOption; } set{ m_MarkOption = value; } }
+ public int LastResourceIndex{ get => m_LastResourceIndex;
+ set => m_LastResourceIndex = value;
+ }
+ public int LastResourceIndex2{ get => m_LastResourceIndex2;
+ set => m_LastResourceIndex2 = value;
+ }
+ public int LastGroupIndex{ get => m_LastGroupIndex;
+ set => m_LastGroupIndex = value;
+ }
+ public bool DoNotColor{ get => m_DoNotColor;
+ set => m_DoNotColor = value;
+ }
+ public CraftMarkOption MarkOption{ get => m_MarkOption;
+ set => m_MarkOption = value;
+ }
public CraftContext()
{
diff --git a/Scripts/Engines/Craft/Core/CraftGroup.cs b/Scripts/Engines/Craft/Core/CraftGroup.cs
index 2eb95e63d..c79398817 100644
--- a/Scripts/Engines/Craft/Core/CraftGroup.cs
+++ b/Scripts/Engines/Craft/Core/CraftGroup.cs
@@ -19,19 +19,10 @@ namespace Server.Engines.Craft
m_arCraftItem.Add( craftItem );
}
- public CraftItemCol CraftItems
- {
- get { return m_arCraftItem; }
- }
+ public CraftItemCol CraftItems => m_arCraftItem;
- public string NameString
- {
- get { return m_NameString; }
- }
+ public string NameString => m_NameString;
- public int NameNumber
- {
- get { return m_NameNumber; }
- }
+ public int NameNumber => m_NameNumber;
}
}
\ No newline at end of file
diff --git a/Scripts/Engines/Craft/Core/CraftItem.cs b/Scripts/Engines/Craft/Core/CraftItem.cs
index 52bb3a180..44aafc5dd 100644
--- a/Scripts/Engines/Craft/Core/CraftItem.cs
+++ b/Scripts/Engines/Craft/Core/CraftItem.cs
@@ -49,24 +49,21 @@ namespace Server.Engines.Craft
public bool ForceNonExceptional
{
- get { return m_ForceNonExceptional; }
- set { m_ForceNonExceptional = value; }
+ get => m_ForceNonExceptional;
+ set => m_ForceNonExceptional = value;
}
private Expansion m_RequiredExpansion;
public Expansion RequiredExpansion
{
- get { return m_RequiredExpansion; }
- set { m_RequiredExpansion = value; }
+ get => m_RequiredExpansion;
+ set => m_RequiredExpansion = value;
}
private Recipe m_Recipe;
- public Recipe Recipe
- {
- get { return m_Recipe; }
- }
+ public Recipe Recipe => m_Recipe;
public void AddRecipe( int id, CraftSystem system )
{
@@ -148,8 +145,8 @@ namespace Server.Engines.Craft
public BeverageType RequiredBeverage
{
- get { return m_RequiredBeverage; }
- set { m_RequiredBeverage = value; }
+ get => m_RequiredBeverage;
+ set => m_RequiredBeverage = value;
}
public void AddRes( Type type, TextDefinition name, int amount )
@@ -172,92 +169,71 @@ namespace Server.Engines.Craft
public int Mana
{
- get { return m_Mana; }
- set { m_Mana = value; }
+ get => m_Mana;
+ set => m_Mana = value;
}
public int Hits
{
- get { return m_Hits; }
- set { m_Hits = value; }
+ get => m_Hits;
+ set => m_Hits = value;
}
public int Stam
{
- get { return m_Stam; }
- set { m_Stam = value; }
+ get => m_Stam;
+ set => m_Stam = value;
}
public bool UseSubRes2
{
- get { return m_UseSubRes2; }
- set { m_UseSubRes2 = value; }
+ get => m_UseSubRes2;
+ set => m_UseSubRes2 = value;
}
public bool UseAllRes
{
- get { return m_UseAllRes; }
- set { m_UseAllRes = value; }
+ get => m_UseAllRes;
+ set => m_UseAllRes = value;
}
public bool NeedHeat
{
- get { return m_NeedHeat; }
- set { m_NeedHeat = value; }
+ get => m_NeedHeat;
+ set => m_NeedHeat = value;
}
public bool NeedOven
{
- get { return m_NeedOven; }
- set { m_NeedOven = value; }
+ get => m_NeedOven;
+ set => m_NeedOven = value;
}
public bool NeedMill
{
- get { return m_NeedMill; }
- set { m_NeedMill = value; }
+ get => m_NeedMill;
+ set => m_NeedMill = value;
}
- public Type ItemType
- {
- get { return m_Type; }
- }
+ public Type ItemType => m_Type;
public int ItemHue
{
- get { return m_ItemHue; }
- set { m_ItemHue = value; }
+ get => m_ItemHue;
+ set => m_ItemHue = value;
}
- public string GroupNameString
- {
- get { return m_GroupNameString; }
- }
+ public string GroupNameString => m_GroupNameString;
- public int GroupNameNumber
- {
- get { return m_GroupNameNumber; }
- }
+ public int GroupNameNumber => m_GroupNameNumber;
- public string NameString
- {
- get { return m_NameString; }
- }
+ public string NameString => m_NameString;
- public int NameNumber
- {
- get { return m_NameNumber; }
- }
+ public int NameNumber => m_NameNumber;
- public CraftResCol Resources
- {
- get { return m_arCraftRes; }
- }
+ public CraftResCol Resources => m_arCraftRes;
- public CraftSkillCol Skills
- {
- get { return m_arCraftSkill; }
- }
+ public CraftSkillCol Skills => m_arCraftSkill;
public bool ConsumeAttributes( Mobile from, ref object message, bool consume )
{
diff --git a/Scripts/Engines/Craft/Core/CraftItemIDAttribute.cs b/Scripts/Engines/Craft/Core/CraftItemIDAttribute.cs
index 497f914da..1d7498678 100644
--- a/Scripts/Engines/Craft/Core/CraftItemIDAttribute.cs
+++ b/Scripts/Engines/Craft/Core/CraftItemIDAttribute.cs
@@ -7,7 +7,7 @@ namespace Server.Engines.Craft
{
private int m_ItemID;
- public int ItemID{ get{ return m_ItemID; } }
+ public int ItemID => m_ItemID;
public CraftItemIDAttribute( int itemID )
{
diff --git a/Scripts/Engines/Craft/Core/CraftRes.cs b/Scripts/Engines/Craft/Core/CraftRes.cs
index 00ed12e54..4b3e2a6ae 100644
--- a/Scripts/Engines/Craft/Core/CraftRes.cs
+++ b/Scripts/Engines/Craft/Core/CraftRes.cs
@@ -38,34 +38,16 @@ namespace Server.Engines.Craft
from.SendLocalizedMessage( 502925 ); // You don't have the resources required to make that item.
}
- public Type ItemType
- {
- get { return m_Type; }
- }
+ public Type ItemType => m_Type;
- public string MessageString
- {
- get { return m_MessageString; }
- }
+ public string MessageString => m_MessageString;
- public int MessageNumber
- {
- get { return m_MessageNumber; }
- }
+ public int MessageNumber => m_MessageNumber;
- public string NameString
- {
- get { return m_NameString; }
- }
+ public string NameString => m_NameString;
- public int NameNumber
- {
- get { return m_NameNumber; }
- }
+ public int NameNumber => m_NameNumber;
- public int Amount
- {
- get { return m_Amount; }
- }
+ public int Amount => m_Amount;
}
}
diff --git a/Scripts/Engines/Craft/Core/CraftSkill.cs b/Scripts/Engines/Craft/Core/CraftSkill.cs
index ed099b70c..c256bf796 100644
--- a/Scripts/Engines/Craft/Core/CraftSkill.cs
+++ b/Scripts/Engines/Craft/Core/CraftSkill.cs
@@ -13,19 +13,10 @@ namespace Server.Engines.Craft
m_MaxSkill = maxSkill;
}
- public SkillName SkillToMake
- {
- get { return m_SkillToMake; }
- }
+ public SkillName SkillToMake => m_SkillToMake;
- public double MinSkill
- {
- get { return m_MinSkill; }
- }
+ public double MinSkill => m_MinSkill;
- public double MaxSkill
- {
- get { return m_MaxSkill; }
- }
+ public double MaxSkill => m_MaxSkill;
}
}
\ No newline at end of file
diff --git a/Scripts/Engines/Craft/Core/CraftSubRes.cs b/Scripts/Engines/Craft/Core/CraftSubRes.cs
index acef6a6e4..e6c0d2f1e 100644
--- a/Scripts/Engines/Craft/Core/CraftSubRes.cs
+++ b/Scripts/Engines/Craft/Core/CraftSubRes.cs
@@ -25,34 +25,16 @@ namespace Server.Engines.Craft
m_Message = message;
}
- public Type ItemType
- {
- get { return m_Type; }
- }
+ public Type ItemType => m_Type;
- public string NameString
- {
- get { return m_NameString; }
- }
+ public string NameString => m_NameString;
- public int NameNumber
- {
- get { return m_NameNumber; }
- }
+ public int NameNumber => m_NameNumber;
- public int GenericNameNumber
- {
- get { return m_GenericNameNumber; }
- }
+ public int GenericNameNumber => m_GenericNameNumber;
- public object Message
- {
- get { return m_Message; }
- }
+ public object Message => m_Message;
- public double RequiredSkill
- {
- get { return m_ReqSkill; }
- }
+ public double RequiredSkill => m_ReqSkill;
}
}
\ No newline at end of file
diff --git a/Scripts/Engines/Craft/Core/CraftSubResCol.cs b/Scripts/Engines/Craft/Core/CraftSubResCol.cs
index 2ffb18993..d70350c18 100644
--- a/Scripts/Engines/Craft/Core/CraftSubResCol.cs
+++ b/Scripts/Engines/Craft/Core/CraftSubResCol.cs
@@ -11,26 +11,26 @@ namespace Server.Engines.Craft
public bool Init
{
- get { return m_Init; }
- set { m_Init = value; }
+ get => m_Init;
+ set => m_Init = value;
}
public Type ResType
{
- get { return m_Type; }
- set { m_Type = value; }
+ get => m_Type;
+ set => m_Type = value;
}
public string NameString
{
- get { return m_NameString; }
- set { m_NameString = value; }
+ get => m_NameString;
+ set => m_NameString = value;
}
public int NameNumber
{
- get { return m_NameNumber; }
- set { m_NameNumber = value; }
+ get => m_NameNumber;
+ set => m_NameNumber = value;
}
public CraftSubResCol()
diff --git a/Scripts/Engines/Craft/Core/CraftSystem.cs b/Scripts/Engines/Craft/Core/CraftSystem.cs
index 40bac5cd9..e86b229c4 100644
--- a/Scripts/Engines/Craft/Core/CraftSystem.cs
+++ b/Scripts/Engines/Craft/Core/CraftSystem.cs
@@ -40,10 +40,10 @@ namespace Server.Engines.Craft
public abstract SkillName MainSkill{ get; }
- public virtual int GumpTitleNumber{ get{ return 0; } }
- public virtual string GumpTitleString{ get{ return ""; } }
+ public virtual int GumpTitleNumber => 0;
+ public virtual string GumpTitleString => "";
- public virtual CraftECA ECA{ get{ return CraftECA.ChanceMinusSixty; } }
+ public virtual CraftECA ECA => CraftECA.ChanceMinusSixty;
private Dictionary m_ContextTable = new Dictionary();
@@ -83,26 +83,26 @@ namespace Server.Engines.Craft
public bool Resmelt
{
- get { return m_Resmelt; }
- set { m_Resmelt = value; }
+ get => m_Resmelt;
+ set => m_Resmelt = value;
}
public bool Repair
{
- get{ return m_Repair; }
- set{ m_Repair = value; }
+ get => m_Repair;
+ set => m_Repair = value;
}
public bool MarkOption
{
- get{ return m_MarkOption; }
- set{ m_MarkOption = value; }
+ get => m_MarkOption;
+ set => m_MarkOption = value;
}
public bool CanEnhance
{
- get{ return m_CanEnhance; }
- set{ m_CanEnhance = value; }
+ get => m_CanEnhance;
+ set => m_CanEnhance = value;
}
public CraftSystem( int minCraftEffect, int maxCraftEffect, double delay )
diff --git a/Scripts/Engines/Craft/Core/CustomCraft.cs b/Scripts/Engines/Craft/Core/CustomCraft.cs
index 7c8527ca5..8fd585816 100644
--- a/Scripts/Engines/Craft/Core/CustomCraft.cs
+++ b/Scripts/Engines/Craft/Core/CustomCraft.cs
@@ -12,12 +12,12 @@ namespace Server.Engines.Craft
private BaseTool m_Tool;
private int m_Quality;
- public Mobile From{ get{ return m_From; } }
- public CraftItem CraftItem{ get{ return m_CraftItem; } }
- public CraftSystem CraftSystem{ get{ return m_CraftSystem; } }
- public Type TypeRes{ get{ return m_TypeRes; } }
- public BaseTool Tool{ get{ return m_Tool; } }
- public int Quality{ get{ return m_Quality; } }
+ public Mobile From => m_From;
+ public CraftItem CraftItem => m_CraftItem;
+ public CraftSystem CraftSystem => m_CraftSystem;
+ public Type TypeRes => m_TypeRes;
+ public BaseTool Tool => m_Tool;
+ public int Quality => m_Quality;
public CustomCraft( Mobile from, CraftItem craftItem, CraftSystem craftSystem, Type typeRes, BaseTool tool, int quality )
{
diff --git a/Scripts/Engines/Craft/Core/Recipes.cs b/Scripts/Engines/Craft/Core/Recipes.cs
index c7b133b6c..82a864c9c 100644
--- a/Scripts/Engines/Craft/Core/Recipes.cs
+++ b/Scripts/Engines/Craft/Core/Recipes.cs
@@ -68,30 +68,27 @@ namespace Server.Engines.Craft
public static Dictionary Recipes => m_Recipes;
private static int m_LargestRecipeID;
- public static int LargestRecipeID{ get{ return m_LargestRecipeID; } }
+ public static int LargestRecipeID => m_LargestRecipeID;
private CraftSystem m_System;
public CraftSystem CraftSystem
{
- get { return m_System; }
- set { m_System = value; }
+ get => m_System;
+ set => m_System = value;
}
private CraftItem m_CraftItem;
public CraftItem CraftItem
{
- get { return m_CraftItem; }
- set { m_CraftItem = value; }
+ get => m_CraftItem;
+ set => m_CraftItem = value;
}
private int m_ID;
- public int ID
- {
- get { return m_ID; }
- }
+ public int ID => m_ID;
private TextDefinition m_TD;
public TextDefinition TextDefinition
diff --git a/Scripts/Engines/Craft/DefAlchemy.cs b/Scripts/Engines/Craft/DefAlchemy.cs
index b43826f7a..5699bf87d 100644
--- a/Scripts/Engines/Craft/DefAlchemy.cs
+++ b/Scripts/Engines/Craft/DefAlchemy.cs
@@ -5,15 +5,9 @@ namespace Server.Engines.Craft
{
public class DefAlchemy : CraftSystem
{
- public override SkillName MainSkill
- {
- get { return SkillName.Alchemy; }
- }
+ public override SkillName MainSkill => SkillName.Alchemy;
- public override int GumpTitleNumber
- {
- get { return 1044001; } // ALCHEMY MENU
- }
+ public override int GumpTitleNumber => 1044001;
private static CraftSystem m_CraftSystem;
diff --git a/Scripts/Engines/Craft/DefBlacksmithy.cs b/Scripts/Engines/Craft/DefBlacksmithy.cs
index 0bae49319..364225438 100644
--- a/Scripts/Engines/Craft/DefBlacksmithy.cs
+++ b/Scripts/Engines/Craft/DefBlacksmithy.cs
@@ -5,15 +5,9 @@ namespace Server.Engines.Craft
{
public class DefBlacksmithy : CraftSystem
{
- public override SkillName MainSkill
- {
- get { return SkillName.Blacksmith; }
- }
+ public override SkillName MainSkill => SkillName.Blacksmith;
- public override int GumpTitleNumber
- {
- get { return 1044002; } // BLACKSMITHY MENU
- }
+ public override int GumpTitleNumber => 1044002;
private static CraftSystem m_CraftSystem;
diff --git a/Scripts/Engines/Craft/DefBowFletching.cs b/Scripts/Engines/Craft/DefBowFletching.cs
index 88d3f216d..61e86f81e 100644
--- a/Scripts/Engines/Craft/DefBowFletching.cs
+++ b/Scripts/Engines/Craft/DefBowFletching.cs
@@ -5,15 +5,9 @@ namespace Server.Engines.Craft
{
public class DefBowFletching : CraftSystem
{
- public override SkillName MainSkill
- {
- get { return SkillName.Fletching; }
- }
+ public override SkillName MainSkill => SkillName.Fletching;
- public override int GumpTitleNumber
- {
- get { return 1044006; } // BOWCRAFT AND FLETCHING MENU
- }
+ public override int GumpTitleNumber => 1044006;
private static CraftSystem m_CraftSystem;
diff --git a/Scripts/Engines/Craft/DefCarpentry.cs b/Scripts/Engines/Craft/DefCarpentry.cs
index 444414b8e..39e9e5dc9 100644
--- a/Scripts/Engines/Craft/DefCarpentry.cs
+++ b/Scripts/Engines/Craft/DefCarpentry.cs
@@ -5,15 +5,9 @@ namespace Server.Engines.Craft
{
public class DefCarpentry : CraftSystem
{
- public override SkillName MainSkill
- {
- get { return SkillName.Carpentry; }
- }
+ public override SkillName MainSkill => SkillName.Carpentry;
- public override int GumpTitleNumber
- {
- get { return 1044004; } // CARPENTRY MENU
- }
+ public override int GumpTitleNumber => 1044004;
private static CraftSystem m_CraftSystem;
diff --git a/Scripts/Engines/Craft/DefCartography.cs b/Scripts/Engines/Craft/DefCartography.cs
index 4800ef5e1..ef8099d11 100644
--- a/Scripts/Engines/Craft/DefCartography.cs
+++ b/Scripts/Engines/Craft/DefCartography.cs
@@ -5,15 +5,9 @@ namespace Server.Engines.Craft
{
public class DefCartography : CraftSystem
{
- public override SkillName MainSkill
- {
- get { return SkillName.Cartography; }
- }
+ public override SkillName MainSkill => SkillName.Cartography;
- public override int GumpTitleNumber
- {
- get { return 1044008; } // CARTOGRAPHY MENU
- }
+ public override int GumpTitleNumber => 1044008;
public override double GetChanceAtMin( CraftItem item )
{
diff --git a/Scripts/Engines/Craft/DefCooking.cs b/Scripts/Engines/Craft/DefCooking.cs
index c559f5292..0ba335a11 100644
--- a/Scripts/Engines/Craft/DefCooking.cs
+++ b/Scripts/Engines/Craft/DefCooking.cs
@@ -5,15 +5,9 @@ namespace Server.Engines.Craft
{
public class DefCooking : CraftSystem
{
- public override SkillName MainSkill
- {
- get { return SkillName.Cooking; }
- }
+ public override SkillName MainSkill => SkillName.Cooking;
- public override int GumpTitleNumber
- {
- get { return 1044003; } // COOKING MENU
- }
+ public override int GumpTitleNumber => 1044003;
private static CraftSystem m_CraftSystem;
diff --git a/Scripts/Engines/Craft/DefGlassblowing.cs b/Scripts/Engines/Craft/DefGlassblowing.cs
index 3ff6585d8..b42207510 100644
--- a/Scripts/Engines/Craft/DefGlassblowing.cs
+++ b/Scripts/Engines/Craft/DefGlassblowing.cs
@@ -6,15 +6,9 @@ namespace Server.Engines.Craft
{
public class DefGlassblowing : CraftSystem
{
- public override SkillName MainSkill
- {
- get{ return SkillName.Alchemy; }
- }
+ public override SkillName MainSkill => SkillName.Alchemy;
- public override int GumpTitleNumber
- {
- get{ return 1044622; } // Glassblowing MENU
- }
+ public override int GumpTitleNumber => 1044622;
private static CraftSystem m_CraftSystem;
diff --git a/Scripts/Engines/Craft/DefInscription.cs b/Scripts/Engines/Craft/DefInscription.cs
index 2b2fdef67..e08061978 100644
--- a/Scripts/Engines/Craft/DefInscription.cs
+++ b/Scripts/Engines/Craft/DefInscription.cs
@@ -6,15 +6,9 @@ namespace Server.Engines.Craft
{
public class DefInscription : CraftSystem
{
- public override SkillName MainSkill
- {
- get { return SkillName.Inscribe; }
- }
+ public override SkillName MainSkill => SkillName.Inscribe;
- public override int GumpTitleNumber
- {
- get { return 1044009; } // INSCRIPTION MENU
- }
+ public override int GumpTitleNumber => 1044009;
private static CraftSystem m_CraftSystem;
diff --git a/Scripts/Engines/Craft/DefMasonry.cs b/Scripts/Engines/Craft/DefMasonry.cs
index feb0fd583..1da1743a9 100644
--- a/Scripts/Engines/Craft/DefMasonry.cs
+++ b/Scripts/Engines/Craft/DefMasonry.cs
@@ -6,15 +6,9 @@ namespace Server.Engines.Craft
{
public class DefMasonry : CraftSystem
{
- public override SkillName MainSkill
- {
- get{ return SkillName.Carpentry; }
- }
+ public override SkillName MainSkill => SkillName.Carpentry;
- public override int GumpTitleNumber
- {
- get{ return 1044500; } // MASONRY MENU
- }
+ public override int GumpTitleNumber => 1044500;
private static CraftSystem m_CraftSystem;
diff --git a/Scripts/Engines/Craft/DefTailoring.cs b/Scripts/Engines/Craft/DefTailoring.cs
index 219ad59d5..1622d0c45 100644
--- a/Scripts/Engines/Craft/DefTailoring.cs
+++ b/Scripts/Engines/Craft/DefTailoring.cs
@@ -5,15 +5,9 @@ namespace Server.Engines.Craft
{
public class DefTailoring : CraftSystem
{
- public override SkillName MainSkill
- {
- get { return SkillName.Tailoring; }
- }
+ public override SkillName MainSkill => SkillName.Tailoring;
- public override int GumpTitleNumber
- {
- get { return 1044005; } // TAILORING MENU
- }
+ public override int GumpTitleNumber => 1044005;
private static CraftSystem m_CraftSystem;
diff --git a/Scripts/Engines/Craft/DefTinkering.cs b/Scripts/Engines/Craft/DefTinkering.cs
index b563f28f5..47eb9da9d 100644
--- a/Scripts/Engines/Craft/DefTinkering.cs
+++ b/Scripts/Engines/Craft/DefTinkering.cs
@@ -7,15 +7,9 @@ namespace Server.Engines.Craft
{
public class DefTinkering : CraftSystem
{
- public override SkillName MainSkill
- {
- get { return SkillName.Tinkering; }
- }
+ public override SkillName MainSkill => SkillName.Tinkering;
- public override int GumpTitleNumber
- {
- get { return 1044007; } // TINKERING MENU
- }
+ public override int GumpTitleNumber => 1044007;
private static CraftSystem m_CraftSystem;
@@ -388,7 +382,7 @@ namespace Server.Engines.Craft
{
private LockableContainer m_Container;
- public LockableContainer Container{ get{ return m_Container; } }
+ public LockableContainer Container => m_Container;
public abstract TrapType TrapType{ get; }
diff --git a/Scripts/Engines/Doom/GauntletSpawner.cs b/Scripts/Engines/Doom/GauntletSpawner.cs
index 2b3418f49..c2a58476d 100644
--- a/Scripts/Engines/Doom/GauntletSpawner.cs
+++ b/Scripts/Engines/Doom/GauntletSpawner.cs
@@ -38,29 +38,29 @@ namespace Server.Engines.Doom
[CommandProperty( AccessLevel.GameMaster )]
public string TypeName
{
- get{ return m_TypeName; }
- set{ m_TypeName = value; }
+ get => m_TypeName;
+ set => m_TypeName = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public BaseDoor Door
{
- get{ return m_Door; }
- set{ m_Door = value; }
+ get => m_Door;
+ set => m_Door = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public BaseAddon Addon
{
- get{ return m_Addon; }
- set{ m_Addon = value; }
+ get => m_Addon;
+ set => m_Addon = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public GauntletSpawner Sequence
{
- get{ return m_Sequence; }
- set{ m_Sequence = value; }
+ get => m_Sequence;
+ set => m_Sequence = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -86,14 +86,14 @@ namespace Server.Engines.Doom
[CommandProperty( AccessLevel.GameMaster )]
public Rectangle2D RegionBounds
{
- get{ return m_RegionBounds; }
- set{ m_RegionBounds = value; }
+ get => m_RegionBounds;
+ set => m_RegionBounds = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public GauntletSpawnerState State
{
- get{ return m_State; }
+ get => m_State;
set
{
if ( m_State == value )
@@ -163,20 +163,20 @@ namespace Server.Engines.Doom
public List Creatures
{
- get{ return m_Creatures; }
- set{ m_Creatures = value; }
+ get => m_Creatures;
+ set => m_Creatures = value;
}
public List Traps
{
- get{ return m_Traps; }
- set{ m_Traps = value; }
+ get => m_Traps;
+ set => m_Traps = value;
}
public Region Region
{
- get{ return m_Region; }
- set{ m_Region = value; }
+ get => m_Region;
+ set => m_Region = value;
}
public virtual void CreateRegion()
@@ -380,10 +380,7 @@ namespace Server.Engines.Doom
}
}
- public override string DefaultName
- {
- get { return "doom spawner"; }
- }
+ public override string DefaultName => "doom spawner";
[Constructible]
public GauntletSpawner() : this( null )
diff --git a/Scripts/Engines/Doom/LeverPuzzle/LeverPuzzleController.cs b/Scripts/Engines/Doom/LeverPuzzle/LeverPuzzleController.cs
index 31f675ab5..0b0f92be7 100644
--- a/Scripts/Engines/Doom/LeverPuzzle/LeverPuzzleController.cs
+++ b/Scripts/Engines/Doom/LeverPuzzle/LeverPuzzleController.cs
@@ -58,15 +58,21 @@ namespace Server.Engines.Doom
}
[CommandProperty( AccessLevel.GameMaster )]
- public UInt16 MyKey { get{ return m_MyKey; } set{ m_MyKey = value; } }
+ public UInt16 MyKey { get => m_MyKey;
+ set => m_MyKey = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public UInt16 TheirKey { get{ return m_TheirKey; } set{ m_TheirKey = value; } }
+ public UInt16 TheirKey { get => m_TheirKey;
+ set => m_TheirKey = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public bool Enabled { get{ return m_Enabled; } set{ m_Enabled = value; } }
+ public bool Enabled { get => m_Enabled;
+ set => m_Enabled = value;
+ }
- public Mobile Successful { get{ return m_Successful; } }
+ public Mobile Successful => m_Successful;
public bool CircleComplete
{
diff --git a/Scripts/Engines/Doom/LeverPuzzle/LeverPuzzleItems.cs b/Scripts/Engines/Doom/LeverPuzzle/LeverPuzzleItems.cs
index f699d5504..c093fb021 100644
--- a/Scripts/Engines/Doom/LeverPuzzle/LeverPuzzleItems.cs
+++ b/Scripts/Engines/Doom/LeverPuzzle/LeverPuzzleItems.cs
@@ -99,10 +99,7 @@ namespace Server.Engines.Doom
private LeverPuzzleController m_Controller;
[CommandProperty( AccessLevel.GameMaster )]
- public UInt16 Code
- {
- get{ return m_Code; }
- }
+ public UInt16 Code => m_Code;
public LeverPuzzleLever( UInt16 code, LeverPuzzleController controller ) : base( 0x108E )
{
diff --git a/Scripts/Engines/Ethics/Core/Ethic.cs b/Scripts/Engines/Ethics/Core/Ethic.cs
index a068583a6..a929d5fb6 100644
--- a/Scripts/Engines/Ethics/Core/Ethic.cs
+++ b/Scripts/Engines/Ethics/Core/Ethic.cs
@@ -159,15 +159,9 @@ namespace Server.Ethics
protected PlayerCollection m_Players;
- public EthicDefinition Definition
- {
- get { return m_Definition; }
- }
+ public EthicDefinition Definition => m_Definition;
- public PlayerCollection Players
- {
- get { return m_Players; }
- }
+ public PlayerCollection Players => m_Players;
public static Ethic Find( Mobile mob )
{
diff --git a/Scripts/Engines/Ethics/Core/Persistance.cs b/Scripts/Engines/Ethics/Core/Persistance.cs
index dfc0bc90c..7f2347744 100644
--- a/Scripts/Engines/Ethics/Core/Persistance.cs
+++ b/Scripts/Engines/Ethics/Core/Persistance.cs
@@ -6,10 +6,7 @@ namespace Server.Ethics
public static EthicsPersistance Instance => m_Instance;
- public override string DefaultName
- {
- get { return "Ethics Persistance - Internal"; }
- }
+ public override string DefaultName => "Ethics Persistance - Internal";
[Constructible]
public EthicsPersistance()
diff --git a/Scripts/Engines/Ethics/Core/Player.cs b/Scripts/Engines/Ethics/Core/Player.cs
index aba82ec37..34de7aa72 100644
--- a/Scripts/Engines/Ethics/Core/Player.cs
+++ b/Scripts/Engines/Ethics/Core/Player.cs
@@ -56,16 +56,24 @@ namespace Server.Ethics
public Mobile Mobile => m_Mobile;
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
- public int Power { get { return m_Power; } set { m_Power = value; } }
+ public int Power { get => m_Power;
+ set => m_Power = value;
+ }
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
- public int History { get { return m_History; } set { m_History = value; } }
+ public int History { get => m_History;
+ set => m_History = value;
+ }
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
- public Mobile Steed { get { return m_Steed; } set { m_Steed = value; } }
+ public Mobile Steed { get => m_Steed;
+ set => m_Steed = value;
+ }
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
- public Mobile Familiar { get { return m_Familiar; } set { m_Familiar = value; } }
+ public Mobile Familiar { get => m_Familiar;
+ set => m_Familiar = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
public bool IsShielded
diff --git a/Scripts/Engines/Factions/Core/Election.cs b/Scripts/Engines/Factions/Core/Election.cs
index b64fd8ced..35292e7d6 100644
--- a/Scripts/Engines/Factions/Core/Election.cs
+++ b/Scripts/Engines/Factions/Core/Election.cs
@@ -20,15 +20,16 @@ namespace Server.Factions
private ElectionState m_State;
private DateTime m_LastStateTime;
- public Faction Faction{ get{ return m_Faction; } }
+ public Faction Faction => m_Faction;
public List Candidates => m_Candidates;
- public ElectionState State{ get{ return m_State; } set{ m_State = value; m_LastStateTime = DateTime.UtcNow; } }
- public DateTime LastStateTime{ get{ return m_LastStateTime; } }
+ public ElectionState State{ get => m_State;
+ set{ m_State = value; m_LastStateTime = DateTime.UtcNow; } }
+ public DateTime LastStateTime => m_LastStateTime;
[CommandProperty( AccessLevel.GameMaster )]
- public ElectionState CurrentState{ get{ return m_State; } }
+ public ElectionState CurrentState => m_State;
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public TimeSpan NextStateTime
@@ -383,25 +384,13 @@ namespace Server.Factions
private IPAddress m_Address;
private DateTime m_Time;
- public Mobile From
- {
- get{ return m_From; }
- }
+ public Mobile From => m_From;
- public Mobile Candidate
- {
- get{ return m_Candidate; }
- }
+ public Mobile Candidate => m_Candidate;
- public IPAddress Address
- {
- get{ return m_Address; }
- }
+ public IPAddress Address => m_Address;
- public DateTime Time
- {
- get{ return m_Time; }
- }
+ public DateTime Time => m_Time;
public object[] AcquireFields()
{
@@ -480,10 +469,10 @@ namespace Server.Factions
private Mobile m_Mobile;
private List m_Voters;
- public Mobile Mobile{ get{ return m_Mobile; } }
+ public Mobile Mobile => m_Mobile;
public List Voters => m_Voters;
- public int Votes{ get{ return m_Voters.Count; } }
+ public int Votes => m_Voters.Count;
public void CleanMuleVotes()
{
diff --git a/Scripts/Engines/Factions/Core/Faction.cs b/Scripts/Engines/Factions/Core/Faction.cs
index 0fde7f86c..eb0083cd3 100644
--- a/Scripts/Engines/Factions/Core/Faction.cs
+++ b/Scripts/Engines/Factions/Core/Faction.cs
@@ -23,13 +23,13 @@ namespace Server.Factions
public StrongholdRegion StrongholdRegion
{
- get{ return m_StrongholdRegion; }
- set{ m_StrongholdRegion = value; }
+ get => m_StrongholdRegion;
+ set => m_StrongholdRegion = value;
}
public FactionDefinition Definition
{
- get{ return m_Definition; }
+ get => m_Definition;
set
{
m_Definition = value;
@@ -39,46 +39,43 @@ namespace Server.Factions
public FactionState State
{
- get{ return m_State; }
- set{ m_State = value; }
+ get => m_State;
+ set => m_State = value;
}
public Election Election
{
- get{ return m_State.Election; }
- set{ m_State.Election = value; }
+ get => m_State.Election;
+ set => m_State.Election = value;
}
public Mobile Commander
{
- get{ return m_State.Commander; }
- set{ m_State.Commander = value; }
+ get => m_State.Commander;
+ set => m_State.Commander = value;
}
public int Tithe
{
- get{ return m_State.Tithe; }
- set{ m_State.Tithe = value; }
+ get => m_State.Tithe;
+ set => m_State.Tithe = value;
}
public int Silver
{
- get{ return m_State.Silver; }
- set{ m_State.Silver = value; }
+ get => m_State.Silver;
+ set => m_State.Silver = value;
}
public List Members
{
- get{ return m_State.Members; }
- set{ m_State.Members = value; }
+ get => m_State.Members;
+ set => m_State.Members = value;
}
public static readonly TimeSpan LeavePeriod = TimeSpan.FromDays( 3.0 );
- public bool FactionMessageReady
- {
- get{ return m_State.FactionMessageReady; }
- }
+ public bool FactionMessageReady => m_State.FactionMessageReady;
public void Broadcast( string text )
{
@@ -948,12 +945,12 @@ namespace Server.Factions
return silver;
}
- public virtual int MaximumTraps{ get{ return 15; } }
+ public virtual int MaximumTraps => 15;
public List Traps
{
- get{ return m_State.Traps; }
- set{ m_State.Traps = value; }
+ get => m_State.Traps;
+ set => m_State.Traps = value;
}
public const int StabilityFactor = 300; // 300% greater (3 times) than smallest faction
@@ -1219,7 +1216,7 @@ namespace Server.Factions
writer.WriteEncodedInt( (int) (idx + 1) );
}
- public static List Factions{ get{ return Reflector.Factions; } }
+ public static List Factions => Reflector.Factions;
public static Faction ReadReference( GenericReader reader )
{
diff --git a/Scripts/Engines/Factions/Core/FactionItem.cs b/Scripts/Engines/Factions/Core/FactionItem.cs
index 88623d01b..e86115c02 100644
--- a/Scripts/Engines/Factions/Core/FactionItem.cs
+++ b/Scripts/Engines/Factions/Core/FactionItem.cs
@@ -15,9 +15,9 @@ namespace Server.Factions
private Faction m_Faction;
private DateTime m_Expiration;
- public Item Item{ get{ return m_Item; } }
- public Faction Faction{ get{ return m_Faction; } }
- public DateTime Expiration{ get{ return m_Expiration; } }
+ public Item Item => m_Item;
+ public Faction Faction => m_Faction;
+ public DateTime Expiration => m_Expiration;
public bool HasExpired
{
diff --git a/Scripts/Engines/Factions/Core/FactionState.cs b/Scripts/Engines/Factions/Core/FactionState.cs
index 6eb830e39..2c9f6f16d 100644
--- a/Scripts/Engines/Factions/Core/FactionState.cs
+++ b/Scripts/Engines/Factions/Core/FactionState.cs
@@ -20,7 +20,9 @@ namespace Server.Factions
private DateTime[] m_LastBroadcasts = new DateTime[BroadcastsPerPeriod];
- public DateTime LastAtrophy{ get{ return m_LastAtrophy; } set{ m_LastAtrophy = value; } }
+ public DateTime LastAtrophy{ get => m_LastAtrophy;
+ set => m_LastAtrophy = value;
+ }
public bool FactionMessageReady
{
@@ -36,7 +38,7 @@ namespace Server.Factions
}
}
- public bool IsAtrophyReady{ get{ return DateTime.UtcNow >= (m_LastAtrophy + TimeSpan.FromHours( 47.0 )); } }
+ public bool IsAtrophyReady => DateTime.UtcNow >= (m_LastAtrophy + TimeSpan.FromHours( 47.0 ));
public int CheckAtrophy()
{
@@ -82,25 +84,25 @@ namespace Server.Factions
public List FactionItems
{
- get{ return m_FactionItems; }
- set{ m_FactionItems = value; }
+ get => m_FactionItems;
+ set => m_FactionItems = value;
}
public List Traps
{
- get{ return m_FactionTraps; }
- set{ m_FactionTraps = value; }
+ get => m_FactionTraps;
+ set => m_FactionTraps = value;
}
public Election Election
{
- get{ return m_Election; }
- set{ m_Election = value; }
+ get => m_Election;
+ set => m_Election = value;
}
public Mobile Commander
{
- get{ return m_Commander; }
+ get => m_Commander;
set
{
if ( m_Commander != null )
@@ -127,20 +129,20 @@ namespace Server.Factions
public int Tithe
{
- get{ return m_Tithe; }
- set{ m_Tithe = value; }
+ get => m_Tithe;
+ set => m_Tithe = value;
}
public int Silver
{
- get{ return m_Silver; }
- set{ m_Silver = value; }
+ get => m_Silver;
+ set => m_Silver = value;
}
public List Members
{
- get{ return m_Members; }
- set{ m_Members = value; }
+ get => m_Members;
+ set => m_Members = value;
}
public FactionState( Faction faction )
diff --git a/Scripts/Engines/Factions/Core/GuardList.cs b/Scripts/Engines/Factions/Core/GuardList.cs
index 2794daed7..caa3cd8ea 100644
--- a/Scripts/Engines/Factions/Core/GuardList.cs
+++ b/Scripts/Engines/Factions/Core/GuardList.cs
@@ -8,8 +8,8 @@ namespace Server.Factions
private GuardDefinition m_Definition;
private List m_Guards;
- public GuardDefinition Definition{ get{ return m_Definition; } }
- public List Guards{ get{ return m_Guards; } }
+ public GuardDefinition Definition => m_Definition;
+ public List Guards => m_Guards;
public BaseFactionGuard Construct()
{
diff --git a/Scripts/Engines/Factions/Core/MerchantTitles.cs b/Scripts/Engines/Factions/Core/MerchantTitles.cs
index c30e1b656..6e97c867d 100644
--- a/Scripts/Engines/Factions/Core/MerchantTitles.cs
+++ b/Scripts/Engines/Factions/Core/MerchantTitles.cs
@@ -18,11 +18,11 @@ namespace Server.Factions
private TextDefinition m_Label;
private TextDefinition m_Assigned;
- public SkillName Skill{ get{ return m_Skill; } }
- public double Requirement{ get{ return m_Requirement; } }
- public TextDefinition Title{ get{ return m_Title; } }
- public TextDefinition Label{ get{ return m_Label; } }
- public TextDefinition Assigned{ get{ return m_Assigned; } }
+ public SkillName Skill => m_Skill;
+ public double Requirement => m_Requirement;
+ public TextDefinition Title => m_Title;
+ public TextDefinition Label => m_Label;
+ public TextDefinition Assigned => m_Assigned;
public MerchantTitleInfo( SkillName skill, double requirement, TextDefinition title, TextDefinition label, TextDefinition assigned )
{
@@ -46,7 +46,7 @@ namespace Server.Factions
new MerchantTitleInfo( SkillName.Tailoring, 90.0, new TextDefinition( 1022982, "Tailor" ), new TextDefinition( 1018300, "TAILOR" ), new TextDefinition( 1042162, "You now have the faction title of Tailor" ) ),
};
- public static MerchantTitleInfo[] Info{ get{ return m_Info; } }
+ public static MerchantTitleInfo[] Info => m_Info;
public static MerchantTitleInfo GetInfo( MerchantTitle title )
{
diff --git a/Scripts/Engines/Factions/Core/Persistance.cs b/Scripts/Engines/Factions/Core/Persistance.cs
index 240d5e7be..78d46ccac 100644
--- a/Scripts/Engines/Factions/Core/Persistance.cs
+++ b/Scripts/Engines/Factions/Core/Persistance.cs
@@ -6,12 +6,9 @@ namespace Server.Factions
{
private static FactionPersistance m_Instance;
- public static FactionPersistance Instance{ get{ return m_Instance; } }
+ public static FactionPersistance Instance => m_Instance;
- public override string DefaultName
- {
- get { return "Faction Persistance - Internal"; }
- }
+ public override string DefaultName => "Faction Persistance - Internal";
public FactionPersistance() : base( 1 )
{
diff --git a/Scripts/Engines/Factions/Core/PlayerState.cs b/Scripts/Engines/Factions/Core/PlayerState.cs
index 1281a9924..a93fc6b91 100644
--- a/Scripts/Engines/Factions/Core/PlayerState.cs
+++ b/Scripts/Engines/Factions/Core/PlayerState.cs
@@ -21,16 +21,19 @@ namespace Server.Factions
private DateTime m_LastHonorTime;
- public Mobile Mobile{ get{ return m_Mobile; } }
- public Faction Faction{ get{ return m_Faction; } }
+ public Mobile Mobile => m_Mobile;
+ public Faction Faction => m_Faction;
public List Owner => m_Owner;
- public MerchantTitle MerchantTitle{ get{ return m_MerchantTitle; } set{ m_MerchantTitle = value; Invalidate(); } }
- public Town Sheriff{ get{ return m_Sheriff; } set{ m_Sheriff = value; Invalidate(); } }
- public Town Finance{ get{ return m_Finance; } set{ m_Finance = value; Invalidate(); } }
+ public MerchantTitle MerchantTitle{ get => m_MerchantTitle;
+ set{ m_MerchantTitle = value; Invalidate(); } }
+ public Town Sheriff{ get => m_Sheriff;
+ set{ m_Sheriff = value; Invalidate(); } }
+ public Town Finance{ get => m_Finance;
+ set{ m_Finance = value; Invalidate(); } }
public List SilverGiven => m_SilverGiven;
public int KillPoints {
- get { return m_KillPoints; }
+ get => m_KillPoints;
set {
if ( m_KillPoints != value ) {
if ( value > m_KillPoints ) {
@@ -102,7 +105,8 @@ namespace Server.Factions
private bool m_InvalidateRank = true;
private int m_RankIndex = -1;
- public int RankIndex { get { return m_RankIndex; } set { if ( m_RankIndex != value ) { m_RankIndex = value; m_InvalidateRank = true; } } }
+ public int RankIndex { get => m_RankIndex;
+ set { if ( m_RankIndex != value ) { m_RankIndex = value; m_InvalidateRank = true; } } }
public RankDefinition Rank {
get {
@@ -134,11 +138,17 @@ namespace Server.Factions
}
}
- public DateTime LastHonorTime{ get{ return m_LastHonorTime; } set{ m_LastHonorTime = value; } }
- public DateTime Leaving{ get{ return m_Leaving; } set{ m_Leaving = value; } }
- public bool IsLeaving{ get{ return ( m_Leaving > DateTime.MinValue ); } }
+ public DateTime LastHonorTime{ get => m_LastHonorTime;
+ set => m_LastHonorTime = value;
+ }
+ public DateTime Leaving{ get => m_Leaving;
+ set => m_Leaving = value;
+ }
+ public bool IsLeaving => ( m_Leaving > DateTime.MinValue );
- public bool IsActive{ get{ return m_IsActive; } set{ m_IsActive = value; } }
+ public bool IsActive{ get => m_IsActive;
+ set => m_IsActive = value;
+ }
public bool CanGiveSilverTo( Mobile mob )
{
diff --git a/Scripts/Engines/Factions/Core/SilverGivenEntry.cs b/Scripts/Engines/Factions/Core/SilverGivenEntry.cs
index 4e9283569..c6bb28296 100644
--- a/Scripts/Engines/Factions/Core/SilverGivenEntry.cs
+++ b/Scripts/Engines/Factions/Core/SilverGivenEntry.cs
@@ -9,10 +9,10 @@ namespace Server.Factions
private Mobile m_GivenTo;
private DateTime m_TimeOfGift;
- public Mobile GivenTo{ get{ return m_GivenTo; } }
- public DateTime TimeOfGift{ get{ return m_TimeOfGift; } }
+ public Mobile GivenTo => m_GivenTo;
+ public DateTime TimeOfGift => m_TimeOfGift;
- public bool IsExpired{ get{ return ( m_TimeOfGift + ExpirePeriod ) < DateTime.UtcNow; } }
+ public bool IsExpired => ( m_TimeOfGift + ExpirePeriod ) < DateTime.UtcNow;
public SilverGivenEntry( Mobile givenTo )
{
diff --git a/Scripts/Engines/Factions/Core/StrongholdRegion.cs b/Scripts/Engines/Factions/Core/StrongholdRegion.cs
index 5a2e6b9ee..bf5a42dbd 100644
--- a/Scripts/Engines/Factions/Core/StrongholdRegion.cs
+++ b/Scripts/Engines/Factions/Core/StrongholdRegion.cs
@@ -9,8 +9,8 @@ namespace Server.Factions
public Faction Faction
{
- get{ return m_Faction; }
- set{ m_Faction = value; }
+ get => m_Faction;
+ set => m_Faction = value;
}
public StrongholdRegion( Faction faction ) : base( faction.Definition.FriendlyName, Faction.Facet, Region.DefaultPriority, faction.Definition.Stronghold.Area )
diff --git a/Scripts/Engines/Factions/Core/Town.cs b/Scripts/Engines/Factions/Core/Town.cs
index 90ca6cf7d..04a535664 100644
--- a/Scripts/Engines/Factions/Core/Town.cs
+++ b/Scripts/Engines/Factions/Core/Town.cs
@@ -14,59 +14,56 @@ namespace Server.Factions
public TownDefinition Definition
{
- get{ return m_Definition; }
- set{ m_Definition = value; }
+ get => m_Definition;
+ set => m_Definition = value;
}
public TownState State
{
- get{ return m_State; }
+ get => m_State;
set{ m_State = value; ConstructGuardLists(); }
}
public int Silver
{
- get{ return m_State.Silver; }
- set{ m_State.Silver = value; }
+ get => m_State.Silver;
+ set => m_State.Silver = value;
}
public Faction Owner
{
- get{ return m_State.Owner; }
- set{ Capture( value ); }
+ get => m_State.Owner;
+ set => Capture( value );
}
public Mobile Sheriff
{
- get{ return m_State.Sheriff; }
- set{ m_State.Sheriff = value; }
+ get => m_State.Sheriff;
+ set => m_State.Sheriff = value;
}
public Mobile Finance
{
- get{ return m_State.Finance; }
- set{ m_State.Finance = value; }
+ get => m_State.Finance;
+ set => m_State.Finance = value;
}
public int Tax
{
- get{ return m_State.Tax; }
- set{ m_State.Tax = value; }
+ get => m_State.Tax;
+ set => m_State.Tax = value;
}
public DateTime LastTaxChange
{
- get{ return m_State.LastTaxChange; }
- set{ m_State.LastTaxChange = value; }
+ get => m_State.LastTaxChange;
+ set => m_State.LastTaxChange = value;
}
public static readonly TimeSpan TaxChangePeriod = TimeSpan.FromHours( 12.0 );
public static readonly TimeSpan IncomePeriod = TimeSpan.FromDays( 1.0 );
- public bool TaxChangeReady
- {
- get{ return ( m_State.LastTaxChange + TaxChangePeriod ) < DateTime.UtcNow; }
- }
+ public bool TaxChangeReady => ( m_State.LastTaxChange + TaxChangePeriod ) < DateTime.UtcNow;
public static Town FromRegion( Region reg )
{
@@ -114,15 +111,9 @@ namespace Server.Factions
}
}
- public int DailyIncome
- {
- get{ return (10000 * (100 + m_State.Tax)) / 100; }
- }
+ public int DailyIncome => (10000 * (100 + m_State.Tax)) / 100;
- public int NetCashFlow
- {
- get{ return DailyIncome - FinanceUpkeep - SheriffUpkeep; }
- }
+ public int NetCashFlow => DailyIncome - FinanceUpkeep - SheriffUpkeep;
public TownMonolith Monolith
{
@@ -142,8 +133,8 @@ namespace Server.Factions
public DateTime LastIncome
{
- get{ return m_State.LastIncome; }
- set{ m_State.LastIncome = value; }
+ get => m_State.LastIncome;
+ set => m_State.LastIncome = value;
}
public void BeginOrderFiring( Mobile from )
@@ -258,14 +249,14 @@ namespace Server.Factions
public List VendorLists
{
- get{ return m_VendorLists; }
- set{ m_VendorLists = value; }
+ get => m_VendorLists;
+ set => m_VendorLists = value;
}
public List GuardLists
{
- get{ return m_GuardLists; }
- set{ m_GuardLists = value; }
+ get => m_GuardLists;
+ set => m_GuardLists = value;
}
public void ConstructGuardLists()
diff --git a/Scripts/Engines/Factions/Core/TownState.cs b/Scripts/Engines/Factions/Core/TownState.cs
index eb3eb8ce1..8cae343b7 100644
--- a/Scripts/Engines/Factions/Core/TownState.cs
+++ b/Scripts/Engines/Factions/Core/TownState.cs
@@ -18,19 +18,19 @@ namespace Server.Factions
public Town Town
{
- get{ return m_Town; }
- set{ m_Town = value; }
+ get => m_Town;
+ set => m_Town = value;
}
public Faction Owner
{
- get{ return m_Owner; }
- set{ m_Owner = value; }
+ get => m_Owner;
+ set => m_Owner = value;
}
public Mobile Sheriff
{
- get{ return m_Sheriff; }
+ get => m_Sheriff;
set
{
if ( m_Sheriff != null )
@@ -55,7 +55,7 @@ namespace Server.Factions
public Mobile Finance
{
- get{ return m_Finance; }
+ get => m_Finance;
set
{
if ( m_Finance != null )
@@ -80,26 +80,26 @@ namespace Server.Factions
public int Silver
{
- get{ return m_Silver; }
- set{ m_Silver = value; }
+ get => m_Silver;
+ set => m_Silver = value;
}
public int Tax
{
- get{ return m_Tax; }
- set{ m_Tax = value; }
+ get => m_Tax;
+ set => m_Tax = value;
}
public DateTime LastTaxChange
{
- get{ return m_LastTaxChange; }
- set{ m_LastTaxChange = value; }
+ get => m_LastTaxChange;
+ set => m_LastTaxChange = value;
}
public DateTime LastIncome
{
- get{ return m_LastIncome; }
- set{ m_LastIncome = value; }
+ get => m_LastIncome;
+ set => m_LastIncome = value;
}
public TownState( Town town )
diff --git a/Scripts/Engines/Factions/Core/VendorList.cs b/Scripts/Engines/Factions/Core/VendorList.cs
index f43219e94..d2130d521 100644
--- a/Scripts/Engines/Factions/Core/VendorList.cs
+++ b/Scripts/Engines/Factions/Core/VendorList.cs
@@ -8,7 +8,7 @@ namespace Server.Factions
private VendorDefinition m_Definition;
private List m_Vendors;
- public VendorDefinition Definition{ get{ return m_Definition; } }
+ public VendorDefinition Definition => m_Definition;
public List Vendors => m_Vendors;
public BaseFactionVendor Construct( Town town, Faction faction )
diff --git a/Scripts/Engines/Factions/Definitions/FactionDefinition.cs b/Scripts/Engines/Factions/Definitions/FactionDefinition.cs
index 1396f1401..f6a3115da 100644
--- a/Scripts/Engines/Factions/Definitions/FactionDefinition.cs
+++ b/Scripts/Engines/Factions/Definitions/FactionDefinition.cs
@@ -33,38 +33,38 @@ namespace Server.Factions
private RankDefinition[] m_Ranks;
private GuardDefinition[] m_Guards;
- public int Sort{ get{ return m_Sort; } }
+ public int Sort => m_Sort;
- public int HuePrimary{ get{ return m_HuePrimary; } }
- public int HueSecondary{ get{ return m_HueSecondary; } }
- public int HueJoin{ get{ return m_HueJoin; } }
- public int HueBroadcast{ get{ return m_HueBroadcast; } }
+ public int HuePrimary => m_HuePrimary;
+ public int HueSecondary => m_HueSecondary;
+ public int HueJoin => m_HueJoin;
+ public int HueBroadcast => m_HueBroadcast;
- public int WarHorseBody{ get{ return m_WarHorseBody; } }
- public int WarHorseItem{ get{ return m_WarHorseItem; } }
+ public int WarHorseBody => m_WarHorseBody;
+ public int WarHorseItem => m_WarHorseItem;
- public string FriendlyName{ get{ return m_FriendlyName; } }
- public string Keyword{ get{ return m_Keyword; } }
+ public string FriendlyName => m_FriendlyName;
+ public string Keyword => m_Keyword;
public string Abbreviation => m_Abbreviation;
- public TextDefinition Name{ get{ return m_Name; } }
- public TextDefinition PropName{ get{ return m_PropName; } }
- public TextDefinition Header{ get{ return m_Header; } }
- public TextDefinition About{ get{ return m_About; } }
- public TextDefinition CityControl{ get{ return m_CityControl; } }
- public TextDefinition SigilControl{ get{ return m_SigilControl; } }
- public TextDefinition SignupName{ get{ return m_SignupName; } }
- public TextDefinition FactionStoneName{ get{ return m_FactionStoneName; } }
- public TextDefinition OwnerLabel{ get{ return m_OwnerLabel; } }
+ public TextDefinition Name => m_Name;
+ public TextDefinition PropName => m_PropName;
+ public TextDefinition Header => m_Header;
+ public TextDefinition About => m_About;
+ public TextDefinition CityControl => m_CityControl;
+ public TextDefinition SigilControl => m_SigilControl;
+ public TextDefinition SignupName => m_SignupName;
+ public TextDefinition FactionStoneName => m_FactionStoneName;
+ public TextDefinition OwnerLabel => m_OwnerLabel;
- public TextDefinition GuardIgnore{ get{ return m_GuardIgnore; } }
- public TextDefinition GuardWarn{ get{ return m_GuardWarn; } }
- public TextDefinition GuardAttack{ get{ return m_GuardAttack; } }
+ public TextDefinition GuardIgnore => m_GuardIgnore;
+ public TextDefinition GuardWarn => m_GuardWarn;
+ public TextDefinition GuardAttack => m_GuardAttack;
- public StrongholdDefinition Stronghold{ get{ return m_Stronghold; } }
+ public StrongholdDefinition Stronghold => m_Stronghold;
- public RankDefinition[] Ranks{ get{ return m_Ranks; } }
- public GuardDefinition[] Guards{ get{ return m_Guards; } }
+ public RankDefinition[] Ranks => m_Ranks;
+ public GuardDefinition[] Guards => m_Guards;
public FactionDefinition( int sort, int huePrimary, int hueSecondary, int hueJoin, int hueBroadcast, int warHorseBody, int warHorseItem, string friendlyName, string keyword, string abbreviation, TextDefinition name, TextDefinition propName, TextDefinition header, TextDefinition about, TextDefinition cityControl, TextDefinition sigilControl, TextDefinition signupName, TextDefinition factionStoneName, TextDefinition ownerLabel, TextDefinition guardIgnore, TextDefinition guardWarn, TextDefinition guardAttack, StrongholdDefinition stronghold, RankDefinition[] ranks, GuardDefinition[] guards )
{
diff --git a/Scripts/Engines/Factions/Definitions/FactionItemDefinition.cs b/Scripts/Engines/Factions/Definitions/FactionItemDefinition.cs
index f08df6f8c..fe74d0663 100644
--- a/Scripts/Engines/Factions/Definitions/FactionItemDefinition.cs
+++ b/Scripts/Engines/Factions/Definitions/FactionItemDefinition.cs
@@ -9,8 +9,8 @@ namespace Server.Factions
private int m_SilverCost;
private Type m_VendorType;
- public int SilverCost{ get{ return m_SilverCost; } }
- public Type VendorType{ get{ return m_VendorType; } }
+ public int SilverCost => m_SilverCost;
+ public Type VendorType => m_VendorType;
public FactionItemDefinition( int silverCost, Type vendorType )
{
diff --git a/Scripts/Engines/Factions/Definitions/GuardDefinition.cs b/Scripts/Engines/Factions/Definitions/GuardDefinition.cs
index 4126c94c1..9f5ee7894 100644
--- a/Scripts/Engines/Factions/Definitions/GuardDefinition.cs
+++ b/Scripts/Engines/Factions/Definitions/GuardDefinition.cs
@@ -15,15 +15,15 @@ namespace Server.Factions
private TextDefinition m_Header;
private TextDefinition m_Label;
- public Type Type{ get{ return m_Type; } }
+ public Type Type => m_Type;
- public int Price{ get{ return m_Price; } }
- public int Upkeep{ get{ return m_Upkeep; } }
- public int Maximum{ get{ return m_Maximum; } }
- public int ItemID{ get{ return m_ItemID; } }
+ public int Price => m_Price;
+ public int Upkeep => m_Upkeep;
+ public int Maximum => m_Maximum;
+ public int ItemID => m_ItemID;
- public TextDefinition Header{ get{ return m_Header; } }
- public TextDefinition Label{ get{ return m_Label; } }
+ public TextDefinition Header => m_Header;
+ public TextDefinition Label => m_Label;
public GuardDefinition( Type type, int itemID, int price, int upkeep, int maximum, TextDefinition header, TextDefinition label )
{
diff --git a/Scripts/Engines/Factions/Definitions/RankDefinition.cs b/Scripts/Engines/Factions/Definitions/RankDefinition.cs
index 2e8a791eb..8332ec5d7 100644
--- a/Scripts/Engines/Factions/Definitions/RankDefinition.cs
+++ b/Scripts/Engines/Factions/Definitions/RankDefinition.cs
@@ -7,10 +7,10 @@ namespace Server.Factions
private int m_MaxWearables;
private TextDefinition m_Title;
- public int Rank{ get{ return m_Rank; } }
- public int Required{ get{ return m_Required; } }
- public int MaxWearables{ get{ return m_MaxWearables; } }
- public TextDefinition Title{ get{ return m_Title; } }
+ public int Rank => m_Rank;
+ public int Required => m_Required;
+ public int MaxWearables => m_MaxWearables;
+ public TextDefinition Title => m_Title;
public RankDefinition( int rank, int required, int maxWearables, TextDefinition title )
{
diff --git a/Scripts/Engines/Factions/Definitions/StrongholdDefintion.cs b/Scripts/Engines/Factions/Definitions/StrongholdDefintion.cs
index 585247a40..a882f5867 100644
--- a/Scripts/Engines/Factions/Definitions/StrongholdDefintion.cs
+++ b/Scripts/Engines/Factions/Definitions/StrongholdDefintion.cs
@@ -7,12 +7,12 @@ namespace Server.Factions
private Point3D m_FactionStone;
private Point3D[] m_Monoliths;
- public Rectangle2D[] Area{ get{ return m_Area; } }
+ public Rectangle2D[] Area => m_Area;
- public Point3D JoinStone{ get{ return m_JoinStone; } }
- public Point3D FactionStone{ get{ return m_FactionStone; } }
+ public Point3D JoinStone => m_JoinStone;
+ public Point3D FactionStone => m_FactionStone;
- public Point3D[] Monoliths{ get{ return m_Monoliths; } }
+ public Point3D[] Monoliths => m_Monoliths;
public StrongholdDefinition( Rectangle2D[] area, Point3D joinStone, Point3D factionStone, Point3D[] monoliths )
{
diff --git a/Scripts/Engines/Factions/Definitions/TownDefinition.cs b/Scripts/Engines/Factions/Definitions/TownDefinition.cs
index aee966b54..73a9e0d56 100644
--- a/Scripts/Engines/Factions/Definitions/TownDefinition.cs
+++ b/Scripts/Engines/Factions/Definitions/TownDefinition.cs
@@ -20,22 +20,22 @@ namespace Server.Factions
private Point3D m_Monolith;
private Point3D m_TownStone;
- public int Sort{ get{ return m_Sort; } }
- public int SigilID{ get{ return m_SigilID; } }
+ public int Sort => m_Sort;
+ public int SigilID => m_SigilID;
- public string Region{ get{ return m_Region; } }
- public string FriendlyName{ get{ return m_FriendlyName; } }
+ public string Region => m_Region;
+ public string FriendlyName => m_FriendlyName;
- public TextDefinition TownName{ get{ return m_TownName; } }
- public TextDefinition TownStoneHeader{ get{ return m_TownStoneHeader; } }
- public TextDefinition StrongholdMonolithName{ get{ return m_StrongholdMonolithName; } }
- public TextDefinition TownMonolithName{ get{ return m_TownMonolithName; } }
- public TextDefinition TownStoneName{ get{ return m_TownStoneName; } }
- public TextDefinition SigilName{ get{ return m_SigilName; } }
- public TextDefinition CorruptedSigilName{ get{ return m_CorruptedSigilName; } }
+ public TextDefinition TownName => m_TownName;
+ public TextDefinition TownStoneHeader => m_TownStoneHeader;
+ public TextDefinition StrongholdMonolithName => m_StrongholdMonolithName;
+ public TextDefinition TownMonolithName => m_TownMonolithName;
+ public TextDefinition TownStoneName => m_TownStoneName;
+ public TextDefinition SigilName => m_SigilName;
+ public TextDefinition CorruptedSigilName => m_CorruptedSigilName;
- public Point3D Monolith{ get{ return m_Monolith; } }
- public Point3D TownStone{ get{ return m_TownStone; } }
+ public Point3D Monolith => m_Monolith;
+ public Point3D TownStone => m_TownStone;
public TownDefinition( int sort, int sigilID, string region, string friendlyName, TextDefinition townName, TextDefinition townStoneHeader, TextDefinition strongholdMonolithName, TextDefinition townMonolithName, TextDefinition townStoneName, TextDefinition sigilName, TextDefinition corruptedSigilName, Point3D monolith, Point3D townStone )
{
diff --git a/Scripts/Engines/Factions/Definitions/VendorDefinition.cs b/Scripts/Engines/Factions/Definitions/VendorDefinition.cs
index 47b0dec03..1e14f9230 100644
--- a/Scripts/Engines/Factions/Definitions/VendorDefinition.cs
+++ b/Scripts/Engines/Factions/Definitions/VendorDefinition.cs
@@ -15,15 +15,15 @@ namespace Server.Factions
private TextDefinition m_Header;
private TextDefinition m_Label;
- public Type Type{ get{ return m_Type; } }
+ public Type Type => m_Type;
- public int Price{ get{ return m_Price; } }
- public int Upkeep{ get{ return m_Upkeep; } }
- public int Maximum{ get{ return m_Maximum; } }
- public int ItemID{ get{ return m_ItemID; } }
+ public int Price => m_Price;
+ public int Upkeep => m_Upkeep;
+ public int Maximum => m_Maximum;
+ public int ItemID => m_ItemID;
- public TextDefinition Header{ get{ return m_Header; } }
- public TextDefinition Label{ get{ return m_Label; } }
+ public TextDefinition Header => m_Header;
+ public TextDefinition Label => m_Label;
public VendorDefinition( Type type, int itemID, int price, int upkeep, int maximum, TextDefinition header, TextDefinition label )
{
@@ -77,6 +77,6 @@ namespace Server.Factions
)
};
- public static VendorDefinition[] Definitions{ get{ return m_Definitions; } }
+ public static VendorDefinition[] Definitions => m_Definitions;
}
}
\ No newline at end of file
diff --git a/Scripts/Engines/Factions/Gumps/FactionGump.cs b/Scripts/Engines/Factions/Gumps/FactionGump.cs
index 81d32057a..21071222b 100644
--- a/Scripts/Engines/Factions/Gumps/FactionGump.cs
+++ b/Scripts/Engines/Factions/Gumps/FactionGump.cs
@@ -4,7 +4,7 @@ namespace Server.Factions
{
public abstract class FactionGump : Gump
{
- public virtual int ButtonTypes{ get{ return 10; } }
+ public virtual int ButtonTypes => 10;
public int ToButtonID( int type, int index )
{
diff --git a/Scripts/Engines/Factions/Instances/Factions/CouncilOfMages.cs b/Scripts/Engines/Factions/Instances/Factions/CouncilOfMages.cs
index 4995a66a9..79f7dca50 100644
--- a/Scripts/Engines/Factions/Instances/Factions/CouncilOfMages.cs
+++ b/Scripts/Engines/Factions/Instances/Factions/CouncilOfMages.cs
@@ -4,7 +4,7 @@ namespace Server.Factions
{
private static Faction m_Instance;
- public static Faction Instance{ get{ return m_Instance; } }
+ public static Faction Instance => m_Instance;
public CouncilOfMages()
{
diff --git a/Scripts/Engines/Factions/Instances/Factions/Minax.cs b/Scripts/Engines/Factions/Instances/Factions/Minax.cs
index 9649f4d1a..124d35d14 100644
--- a/Scripts/Engines/Factions/Instances/Factions/Minax.cs
+++ b/Scripts/Engines/Factions/Instances/Factions/Minax.cs
@@ -4,7 +4,7 @@ namespace Server.Factions
{
private static Faction m_Instance;
- public static Faction Instance{ get{ return m_Instance; } }
+ public static Faction Instance => m_Instance;
public Minax()
{
diff --git a/Scripts/Engines/Factions/Instances/Factions/Shadowlords.cs b/Scripts/Engines/Factions/Instances/Factions/Shadowlords.cs
index 99bc7d633..ea61b6dd5 100644
--- a/Scripts/Engines/Factions/Instances/Factions/Shadowlords.cs
+++ b/Scripts/Engines/Factions/Instances/Factions/Shadowlords.cs
@@ -4,7 +4,7 @@ namespace Server.Factions
{
private static Faction m_Instance;
- public static Faction Instance{ get{ return m_Instance; } }
+ public static Faction Instance => m_Instance;
public Shadowlords()
{
diff --git a/Scripts/Engines/Factions/Instances/Factions/TrueBritannians.cs b/Scripts/Engines/Factions/Instances/Factions/TrueBritannians.cs
index 1ce54d3b5..eb6eb2d60 100644
--- a/Scripts/Engines/Factions/Instances/Factions/TrueBritannians.cs
+++ b/Scripts/Engines/Factions/Instances/Factions/TrueBritannians.cs
@@ -4,7 +4,7 @@ namespace Server.Factions
{
private static Faction m_Instance;
- public static Faction Instance{ get{ return m_Instance; } }
+ public static Faction Instance => m_Instance;
public TrueBritannians()
{
diff --git a/Scripts/Engines/Factions/Items/BaseMonolith.cs b/Scripts/Engines/Factions/Items/BaseMonolith.cs
index b4dbab21e..77f481db9 100644
--- a/Scripts/Engines/Factions/Items/BaseMonolith.cs
+++ b/Scripts/Engines/Factions/Items/BaseMonolith.cs
@@ -11,7 +11,7 @@ namespace Server.Factions
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Sigil Sigil
{
- get{ return m_Sigil; }
+ get => m_Sigil;
set
{
if ( m_Sigil == value )
@@ -32,7 +32,7 @@ namespace Server.Factions
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Town Town
{
- get{ return m_Town; }
+ get => m_Town;
set
{
m_Town = value;
@@ -43,7 +43,7 @@ namespace Server.Factions
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Faction Faction
{
- get{ return m_Faction; }
+ get => m_Faction;
set
{
m_Faction = value;
@@ -128,8 +128,8 @@ namespace Server.Factions
public static List Monoliths
{
- get{ return m_Monoliths; }
- set{ m_Monoliths = value; }
+ get => m_Monoliths;
+ set => m_Monoliths = value;
}
}
}
\ No newline at end of file
diff --git a/Scripts/Engines/Factions/Items/BaseSystemController.cs b/Scripts/Engines/Factions/Items/BaseSystemController.cs
index 88c965e09..70d9aacfd 100644
--- a/Scripts/Engines/Factions/Items/BaseSystemController.cs
+++ b/Scripts/Engines/Factions/Items/BaseSystemController.cs
@@ -4,8 +4,8 @@ namespace Server.Factions
{
private int m_LabelNumber;
- public virtual int DefaultLabelNumber{ get{ return base.LabelNumber; } }
- public new virtual string DefaultName{ get{ return null; } }
+ public virtual int DefaultLabelNumber => base.LabelNumber;
+ public new virtual string DefaultName => null;
public override int LabelNumber
{
diff --git a/Scripts/Engines/Factions/Items/FactionStone.cs b/Scripts/Engines/Factions/Items/FactionStone.cs
index 9c0a7a478..c47c12792 100644
--- a/Scripts/Engines/Factions/Items/FactionStone.cs
+++ b/Scripts/Engines/Factions/Items/FactionStone.cs
@@ -10,7 +10,7 @@ namespace Server.Factions
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Faction Faction
{
- get{ return m_Faction; }
+ get => m_Faction;
set
{
m_Faction = value;
diff --git a/Scripts/Engines/Factions/Items/JoinStone.cs b/Scripts/Engines/Factions/Items/JoinStone.cs
index f9038303d..be58120ea 100644
--- a/Scripts/Engines/Factions/Items/JoinStone.cs
+++ b/Scripts/Engines/Factions/Items/JoinStone.cs
@@ -10,7 +10,7 @@ namespace Server.Factions
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Faction Faction
{
- get{ return m_Faction; }
+ get => m_Faction;
set
{
m_Faction = value;
diff --git a/Scripts/Engines/Factions/Items/Power Faction Items/BloodRose.cs b/Scripts/Engines/Factions/Items/Power Faction Items/BloodRose.cs
index 64075f36d..ca7b1222a 100644
--- a/Scripts/Engines/Factions/Items/Power Faction Items/BloodRose.cs
+++ b/Scripts/Engines/Factions/Items/Power Faction Items/BloodRose.cs
@@ -2,11 +2,7 @@ using System;
namespace Server {
public sealed class BloodRose : PowerFactionItem {
- public override string DefaultName {
- get {
- return "blood rose";
- }
- }
+ public override string DefaultName => "blood rose";
public BloodRose()
: base( Utility.RandomList( 6378, 9035 ) ) {
diff --git a/Scripts/Engines/Factions/Items/Power Faction Items/ClarityPotion.cs b/Scripts/Engines/Factions/Items/Power Faction Items/ClarityPotion.cs
index 646be21ab..20ff5aae0 100644
--- a/Scripts/Engines/Factions/Items/Power Faction Items/ClarityPotion.cs
+++ b/Scripts/Engines/Factions/Items/Power Faction Items/ClarityPotion.cs
@@ -2,11 +2,7 @@ using System;
namespace Server {
public sealed class ClarityPotion : PowerFactionItem {
- public override string DefaultName {
- get {
- return "clarity potion";
- }
- }
+ public override string DefaultName => "clarity potion";
public ClarityPotion()
: base( 3628 ) {
diff --git a/Scripts/Engines/Factions/Items/Power Faction Items/GemOfEmpowerment.cs b/Scripts/Engines/Factions/Items/Power Faction Items/GemOfEmpowerment.cs
index 3640dd0c3..7c4dfaedd 100644
--- a/Scripts/Engines/Factions/Items/Power Faction Items/GemOfEmpowerment.cs
+++ b/Scripts/Engines/Factions/Items/Power Faction Items/GemOfEmpowerment.cs
@@ -2,11 +2,7 @@ using Server.Factions;
namespace Server {
public sealed class GemOfEmpowerment : PowerFactionItem {
- public override string DefaultName {
- get {
- return "gem of empowerment";
- }
- }
+ public override string DefaultName => "gem of empowerment";
public GemOfEmpowerment()
: base( 7955 ) {
diff --git a/Scripts/Engines/Factions/Items/Power Faction Items/PowerFactionItem.cs b/Scripts/Engines/Factions/Items/Power Faction Items/PowerFactionItem.cs
index 287284cbe..a5f89ac35 100644
--- a/Scripts/Engines/Factions/Items/Power Faction Items/PowerFactionItem.cs
+++ b/Scripts/Engines/Factions/Items/Power Faction Items/PowerFactionItem.cs
@@ -35,17 +35,9 @@ namespace Server {
private int _weight;
private Type _type;
- public int Weight {
- get {
- return _weight;
- }
- }
+ public int Weight => _weight;
- public Type Type {
- get {
- return _type;
- }
- }
+ public Type Type => _type;
public WeightedItem( int weight, Type type ) {
_weight = weight;
diff --git a/Scripts/Engines/Factions/Items/Power Faction Items/StormsEye.cs b/Scripts/Engines/Factions/Items/Power Faction Items/StormsEye.cs
index 45e8f824f..a57275dab 100644
--- a/Scripts/Engines/Factions/Items/Power Faction Items/StormsEye.cs
+++ b/Scripts/Engines/Factions/Items/Power Faction Items/StormsEye.cs
@@ -5,11 +5,7 @@ using Server.Factions;
namespace Server {
public sealed class StormsEye : PowerFactionItem {
- public override string DefaultName {
- get {
- return "storms eye";
- }
- }
+ public override string DefaultName => "storms eye";
public StormsEye()
: base( 3967 ) {
diff --git a/Scripts/Engines/Factions/Items/Power Faction Items/UrnOfAscension.cs b/Scripts/Engines/Factions/Items/Power Faction Items/UrnOfAscension.cs
index 7f93eb981..52f67ff4a 100644
--- a/Scripts/Engines/Factions/Items/Power Faction Items/UrnOfAscension.cs
+++ b/Scripts/Engines/Factions/Items/Power Faction Items/UrnOfAscension.cs
@@ -4,11 +4,7 @@ using Server.Factions;
namespace Server {
public sealed class UrnOfAscension : PowerFactionItem {
- public override string DefaultName {
- get {
- return "urn of ascension";
- }
- }
+ public override string DefaultName => "urn of ascension";
public UrnOfAscension()
: base( 9246 ) {
diff --git a/Scripts/Engines/Factions/Items/Sigil.cs b/Scripts/Engines/Factions/Items/Sigil.cs
index ac00a6af6..9db4111ea 100644
--- a/Scripts/Engines/Factions/Items/Sigil.cs
+++ b/Scripts/Engines/Factions/Items/Sigil.cs
@@ -36,82 +36,70 @@ namespace Server.Factions
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public DateTime LastStolen
{
- get{ return m_LastStolen; }
- set{ m_LastStolen = value; }
+ get => m_LastStolen;
+ set => m_LastStolen = value;
}
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public DateTime GraceStart
{
- get{ return m_GraceStart; }
- set{ m_GraceStart = value; }
+ get => m_GraceStart;
+ set => m_GraceStart = value;
}
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public DateTime CorruptionStart
{
- get{ return m_CorruptionStart; }
- set{ m_CorruptionStart = value; }
+ get => m_CorruptionStart;
+ set => m_CorruptionStart = value;
}
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public DateTime PurificationStart
{
- get{ return m_PurificationStart; }
- set{ m_PurificationStart = value; }
+ get => m_PurificationStart;
+ set => m_PurificationStart = value;
}
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Town Town
{
- get{ return m_Town; }
+ get => m_Town;
set{ m_Town = value; Update(); }
}
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Faction Corrupted
{
- get{ return m_Corrupted; }
+ get => m_Corrupted;
set{ m_Corrupted = value; Update(); }
}
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Faction Corrupting
{
- get{ return m_Corrupting; }
+ get => m_Corrupting;
set{ m_Corrupting = value; Update(); }
}
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public BaseMonolith LastMonolith
{
- get{ return m_LastMonolith; }
- set{ m_LastMonolith = value; }
+ get => m_LastMonolith;
+ set => m_LastMonolith = value;
}
[CommandProperty( AccessLevel.Counselor )]
- public bool IsBeingCorrupted
- {
- get{ return ( m_LastMonolith is StrongholdMonolith && m_LastMonolith.Faction == m_Corrupting && m_Corrupting != null ); }
- }
+ public bool IsBeingCorrupted => ( m_LastMonolith is StrongholdMonolith && m_LastMonolith.Faction == m_Corrupting && m_Corrupting != null );
[CommandProperty( AccessLevel.Counselor )]
- public bool IsCorrupted
- {
- get{ return ( m_Corrupted != null ); }
- }
+ public bool IsCorrupted => ( m_Corrupted != null );
[CommandProperty( AccessLevel.Counselor )]
- public bool IsPurifying
- {
- get{ return ( m_PurificationStart != DateTime.MinValue ); }
- }
+ public bool IsPurifying => ( m_PurificationStart != DateTime.MinValue );
[CommandProperty( AccessLevel.Counselor )]
- public bool IsCorrupting
- {
- get{ return ( m_Corrupting != null && m_Corrupting != m_Corrupted ); }
- }
+ public bool IsCorrupting => ( m_Corrupting != null && m_Corrupting != m_Corrupted );
public void Update()
{
@@ -456,6 +444,6 @@ namespace Server.Factions
private static List m_Sigils = new List();
- public static List Sigils{ get{ return m_Sigils; } }
+ public static List Sigils => m_Sigils;
}
}
diff --git a/Scripts/Engines/Factions/Items/Silver.cs b/Scripts/Engines/Factions/Items/Silver.cs
index e8f1cb795..9cd7b0c3f 100644
--- a/Scripts/Engines/Factions/Items/Silver.cs
+++ b/Scripts/Engines/Factions/Items/Silver.cs
@@ -2,10 +2,7 @@ namespace Server.Factions
{
public class Silver : Item
{
- public override double DefaultWeight
- {
- get { return 0.02; }
- }
+ public override double DefaultWeight => 0.02;
[Constructible]
public Silver() : this( 1 )
diff --git a/Scripts/Engines/Factions/Items/TownStone.cs b/Scripts/Engines/Factions/Items/TownStone.cs
index ebad9304b..764fda584 100644
--- a/Scripts/Engines/Factions/Items/TownStone.cs
+++ b/Scripts/Engines/Factions/Items/TownStone.cs
@@ -9,7 +9,7 @@ namespace Server.Factions
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Town Town
{
- get{ return m_Town; }
+ get => m_Town;
set
{
m_Town = value;
diff --git a/Scripts/Engines/Factions/Items/Traps/BaseFactionTrap.cs b/Scripts/Engines/Factions/Items/Traps/BaseFactionTrap.cs
index f24bd9540..a50349756 100644
--- a/Scripts/Engines/Factions/Items/Traps/BaseFactionTrap.cs
+++ b/Scripts/Engines/Factions/Items/Traps/BaseFactionTrap.cs
@@ -24,39 +24,36 @@ namespace Server.Factions
[CommandProperty( AccessLevel.GameMaster )]
public Faction Faction
{
- get{ return m_Faction; }
- set{ m_Faction = value; }
+ get => m_Faction;
+ set => m_Faction = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Placer
{
- get{ return m_Placer; }
- set{ m_Placer = value; }
+ get => m_Placer;
+ set => m_Placer = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime TimeOfPlacement
{
- get{ return m_TimeOfPlacement; }
- set{ m_TimeOfPlacement = value; }
+ get => m_TimeOfPlacement;
+ set => m_TimeOfPlacement = value;
}
- public virtual int EffectSound{ get{ return 0; } }
+ public virtual int EffectSound => 0;
- public virtual int SilverFromDisarm{ get{ return 100; } }
+ public virtual int SilverFromDisarm => 100;
- public virtual int MessageHue{ get{ return 0; } }
+ public virtual int MessageHue => 0;
- public virtual int AttackMessage{ get{ return 0; } }
- public virtual int DisarmMessage{ get{ return 0; } }
+ public virtual int AttackMessage => 0;
+ public virtual int DisarmMessage => 0;
- public virtual AllowedPlacing AllowedPlacing{ get{ return AllowedPlacing.Everywhere; } }
+ public virtual AllowedPlacing AllowedPlacing => AllowedPlacing.Everywhere;
- public virtual TimeSpan ConcealPeriod
- {
- get{ return TimeSpan.FromMinutes( 1.0 ); }
- }
+ public virtual TimeSpan ConcealPeriod => TimeSpan.FromMinutes( 1.0 );
public virtual TimeSpan DecayPeriod
{
diff --git a/Scripts/Engines/Factions/Items/Traps/BaseFactionTrapDeed.cs b/Scripts/Engines/Factions/Items/Traps/BaseFactionTrapDeed.cs
index d8d13031c..cee378c49 100644
--- a/Scripts/Engines/Factions/Items/Traps/BaseFactionTrapDeed.cs
+++ b/Scripts/Engines/Factions/Items/Traps/BaseFactionTrapDeed.cs
@@ -13,7 +13,7 @@ namespace Server.Factions
[CommandProperty( AccessLevel.GameMaster )]
public Faction Faction
{
- get{ return m_Faction; }
+ get => m_Faction;
set
{
m_Faction = value;
diff --git a/Scripts/Engines/Factions/Items/Traps/FactionTrapRemovalKit.cs b/Scripts/Engines/Factions/Items/Traps/FactionTrapRemovalKit.cs
index 19b0ce512..8f9257a98 100644
--- a/Scripts/Engines/Factions/Items/Traps/FactionTrapRemovalKit.cs
+++ b/Scripts/Engines/Factions/Items/Traps/FactionTrapRemovalKit.cs
@@ -7,8 +7,8 @@ namespace Server.Factions
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get{ return m_Charges; }
- set{ m_Charges = value; }
+ get => m_Charges;
+ set => m_Charges = value;
}
public override int LabelNumber => 1041508; // a faction trap removal kit
diff --git a/Scripts/Engines/Factions/Mobiles/FactionWarHorse.cs b/Scripts/Engines/Factions/Mobiles/FactionWarHorse.cs
index 89b7f197d..6f173efce 100644
--- a/Scripts/Engines/Factions/Mobiles/FactionWarHorse.cs
+++ b/Scripts/Engines/Factions/Mobiles/FactionWarHorse.cs
@@ -10,7 +10,7 @@ namespace Server.Factions
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public Faction Faction
{
- get{ return m_Faction; }
+ get => m_Faction;
set
{
m_Faction = value;
diff --git a/Scripts/Engines/Factions/Mobiles/Guards/BaseFactionGuard.cs b/Scripts/Engines/Factions/Mobiles/Guards/BaseFactionGuard.cs
index 5e7559e19..19746db32 100644
--- a/Scripts/Engines/Factions/Mobiles/Guards/BaseFactionGuard.cs
+++ b/Scripts/Engines/Factions/Mobiles/Guards/BaseFactionGuard.cs
@@ -18,19 +18,16 @@ namespace Server.Factions
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public Faction Faction
{
- get{ return m_Faction; }
+ get => m_Faction;
set{ Unregister(); m_Faction = value; Register(); }
}
- public Orders Orders
- {
- get{ return m_Orders; }
- }
+ public Orders Orders => m_Orders;
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public Town Town
{
- get{ return m_Town; }
+ get => m_Town;
set{ Unregister(); m_Town = value; Register(); }
}
@@ -48,10 +45,7 @@ namespace Server.Factions
public abstract GuardAI GuardAI{ get; }
- protected override BaseAI ForcedAI
- {
- get { return new FactionGuardAI( this ); }
- }
+ protected override BaseAI ForcedAI => new FactionGuardAI( this );
public override TimeSpan ReacquireDelay => TimeSpan.FromSeconds( 2.0 );
@@ -442,7 +436,7 @@ namespace Server.Factions
public Mobile Rider
{
- get{ return m_Item.Rider; }
+ get => m_Item.Rider;
set{}
}
@@ -461,7 +455,7 @@ namespace Server.Factions
private Mobile m_Rider;
private VirtualMount m_Mount;
- public Mobile Rider{ get{ return m_Rider; } }
+ public Mobile Rider => m_Rider;
public VirtualMountItem( Mobile mob ) : base( 0x3EA0 )
{
@@ -471,10 +465,7 @@ namespace Server.Factions
m_Mount = new VirtualMount( this );
}
- public IMount Mount
- {
- get{ return m_Mount; }
- }
+ public IMount Mount => m_Mount;
public VirtualMountItem( Serial serial ) : base( serial )
{
diff --git a/Scripts/Engines/Factions/Mobiles/Guards/GuardAI.cs b/Scripts/Engines/Factions/Mobiles/Guards/GuardAI.cs
index ae5d379aa..134e11b84 100644
--- a/Scripts/Engines/Factions/Mobiles/Guards/GuardAI.cs
+++ b/Scripts/Engines/Factions/Mobiles/Guards/GuardAI.cs
@@ -30,9 +30,9 @@ namespace Server.Factions
private TimeSpan m_Hold;
private int m_Chance;
- public Type Spell{ get{ return m_Spell; } }
- public TimeSpan Hold{ get{ return m_Hold; } }
- public int Chance{ get{ return m_Chance; } }
+ public Type Spell => m_Spell;
+ public TimeSpan Hold => m_Hold;
+ public int Chance => m_Chance;
public ComboEntry( Type spell ) : this( spell, 100, TimeSpan.Zero )
{
@@ -55,8 +55,8 @@ namespace Server.Factions
private int m_Mana;
private ComboEntry[] m_Entries;
- public int Mana{ get{ return m_Mana; } }
- public ComboEntry[] Entries{ get{ return m_Entries; } }
+ public int Mana => m_Mana;
+ public ComboEntry[] Entries => m_Entries;
public SpellCombo( int mana, params ComboEntry[] entries )
{
@@ -121,15 +121,9 @@ namespace Server.Factions
return ( ( m_Guard.GuardAI & flag ) == flag );
}
- public bool IsDamaged
- {
- get{ return ( m_Guard.Hits < m_Guard.HitsMax ); }
- }
+ public bool IsDamaged => ( m_Guard.Hits < m_Guard.HitsMax );
- public bool IsPoisoned
- {
- get{ return m_Guard.Poisoned; }
- }
+ public bool IsPoisoned => m_Guard.Poisoned;
public TimeSpan TimeUntilBandage
{
diff --git a/Scripts/Engines/Factions/Mobiles/Guards/Orders.cs b/Scripts/Engines/Factions/Mobiles/Guards/Orders.cs
index 3edf94871..3b2481fdf 100644
--- a/Scripts/Engines/Factions/Mobiles/Guards/Orders.cs
+++ b/Scripts/Engines/Factions/Mobiles/Guards/Orders.cs
@@ -21,8 +21,10 @@ namespace Server.Factions.AI
private Faction m_Faction;
private ReactionType m_Type;
- public Faction Faction{ get{ return m_Faction; } }
- public ReactionType Type{ get{ return m_Type; } set{ m_Type = value; } }
+ public Faction Faction => m_Faction;
+ public ReactionType Type{ get => m_Type;
+ set => m_Type = value;
+ }
public Reaction( Faction faction, ReactionType type )
{
@@ -63,10 +65,14 @@ namespace Server.Factions.AI
private MovementType m_Movement;
private Mobile m_Follow;
- public BaseFactionGuard Guard{ get{ return m_Guard; } }
+ public BaseFactionGuard Guard => m_Guard;
- public MovementType Movement{ get{ return m_Movement; } set{ m_Movement = value; } }
- public Mobile Follow{ get{ return m_Follow; } set{ m_Follow = value; } }
+ public MovementType Movement{ get => m_Movement;
+ set => m_Movement = value;
+ }
+ public Mobile Follow{ get => m_Follow;
+ set => m_Follow = value;
+ }
public Reaction GetReaction( Faction faction )
{
diff --git a/Scripts/Engines/Factions/Mobiles/Vendors/BaseFactionVendor.cs b/Scripts/Engines/Factions/Mobiles/Vendors/BaseFactionVendor.cs
index cff4a1129..92d6dbfdb 100644
--- a/Scripts/Engines/Factions/Mobiles/Vendors/BaseFactionVendor.cs
+++ b/Scripts/Engines/Factions/Mobiles/Vendors/BaseFactionVendor.cs
@@ -11,14 +11,14 @@ namespace Server.Factions
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Town Town
{
- get{ return m_Town; }
+ get => m_Town;
set{ Unregister(); m_Town = value; Register(); }
}
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public Faction Faction
{
- get{ return m_Faction; }
+ get => m_Faction;
set{ Unregister(); m_Faction = value; Register(); }
}
@@ -43,7 +43,7 @@ namespace Server.Factions
}
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override void InitSBInfo()
{
diff --git a/Scripts/Engines/Factions/Mobiles/Vendors/FactionBottleVendor.cs b/Scripts/Engines/Factions/Mobiles/Vendors/FactionBottleVendor.cs
index cb75246df..cefdb6381 100644
--- a/Scripts/Engines/Factions/Mobiles/Vendors/FactionBottleVendor.cs
+++ b/Scripts/Engines/Factions/Mobiles/Vendors/FactionBottleVendor.cs
@@ -17,10 +17,7 @@ namespace Server.Factions
SBInfos.Add( new SBFactionBottle() );
}
- public override VendorShoeType ShoeType
- {
- get{ return Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals; }
- }
+ public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals;
public override void InitOutfit()
{
diff --git a/Scripts/Engines/Factions/Mobiles/Vendors/FactionHorseVendor.cs b/Scripts/Engines/Factions/Mobiles/Vendors/FactionHorseVendor.cs
index 07eb04cca..ec7ff6627 100644
--- a/Scripts/Engines/Factions/Mobiles/Vendors/FactionHorseVendor.cs
+++ b/Scripts/Engines/Factions/Mobiles/Vendors/FactionHorseVendor.cs
@@ -18,10 +18,7 @@ namespace Server.Factions
{
}
- public override VendorShoeType ShoeType
- {
- get{ return Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots; }
- }
+ public override VendorShoeType ShoeType => Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots;
public override int GetShoeHue()
{
diff --git a/Scripts/Engines/Factions/Mobiles/Vendors/FactionReagentVendor.cs b/Scripts/Engines/Factions/Mobiles/Vendors/FactionReagentVendor.cs
index ed4edd9b1..4f0a41bfd 100644
--- a/Scripts/Engines/Factions/Mobiles/Vendors/FactionReagentVendor.cs
+++ b/Scripts/Engines/Factions/Mobiles/Vendors/FactionReagentVendor.cs
@@ -21,10 +21,7 @@ namespace Server.Factions
SBInfos.Add( new SBFactionReagent() );
}
- public override VendorShoeType ShoeType
- {
- get{ return Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals; }
- }
+ public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals;
public override void InitOutfit()
{
diff --git a/Scripts/Engines/Harvest/Core/BonusHarvestResource.cs b/Scripts/Engines/Harvest/Core/BonusHarvestResource.cs
index 8f3e2065f..f3f5df85c 100644
--- a/Scripts/Engines/Harvest/Core/BonusHarvestResource.cs
+++ b/Scripts/Engines/Harvest/Core/BonusHarvestResource.cs
@@ -8,9 +8,15 @@ namespace Server.Engines.Harvest
private double m_ReqSkill, m_Chance;
private TextDefinition m_SuccessMessage;
- public Type Type { get { return m_Type; } set { m_Type = value; } }
- public double ReqSkill { get { return m_ReqSkill; } set { m_ReqSkill = value; } }
- public double Chance { get { return m_Chance; } set { m_Chance = value; } }
+ public Type Type { get => m_Type;
+ set => m_Type = value;
+ }
+ public double ReqSkill { get => m_ReqSkill;
+ set => m_ReqSkill = value;
+ }
+ public double Chance { get => m_Chance;
+ set => m_Chance = value;
+ }
public TextDefinition SuccessMessage => m_SuccessMessage;
diff --git a/Scripts/Engines/Harvest/Core/HarvestBank.cs b/Scripts/Engines/Harvest/Core/HarvestBank.cs
index 09280cf65..0a48dbe3a 100644
--- a/Scripts/Engines/Harvest/Core/HarvestBank.cs
+++ b/Scripts/Engines/Harvest/Core/HarvestBank.cs
@@ -11,10 +11,7 @@ namespace Server.Engines.Harvest
HarvestDefinition m_Definition;
- public HarvestDefinition Definition
- {
- get { return m_Definition; }
- }
+ public HarvestDefinition Definition => m_Definition;
public int Current
{
@@ -32,10 +29,7 @@ namespace Server.Engines.Harvest
CheckRespawn();
return m_Vein;
}
- set
- {
- m_Vein = value;
- }
+ set => m_Vein = value;
}
public HarvestVein DefaultVein
diff --git a/Scripts/Engines/Harvest/Core/HarvestDefinition.cs b/Scripts/Engines/Harvest/Core/HarvestDefinition.cs
index 61a855d90..8bf07476c 100644
--- a/Scripts/Engines/Harvest/Core/HarvestDefinition.cs
+++ b/Scripts/Engines/Harvest/Core/HarvestDefinition.cs
@@ -26,40 +26,102 @@ namespace Server.Engines.Harvest
private bool m_RaceBonus;
private bool m_RandomizeVeins;
- public int BankWidth{ get{ return m_BankWidth; } set{ m_BankWidth = value; } }
- public int BankHeight{ get{ return m_BankHeight; } set{ m_BankHeight = value; } }
- public int MinTotal{ get{ return m_MinTotal; } set{ m_MinTotal = value; } }
- public int MaxTotal{ get{ return m_MaxTotal; } set{ m_MaxTotal = value; } }
- public int[] Tiles{ get{ return m_Tiles; } set{ m_Tiles = value; } }
- public bool RangedTiles{ get{ return m_RangedTiles; } set{ m_RangedTiles = value; } }
- public TimeSpan MinRespawn{ get{ return m_MinRespawn; } set{ m_MinRespawn = value; } }
- public TimeSpan MaxRespawn{ get{ return m_MaxRespawn; } set{ m_MaxRespawn = value; } }
- public int MaxRange{ get{ return m_MaxRange; } set{ m_MaxRange = value; } }
- public int ConsumedPerHarvest{ get{ return m_ConsumedPerHarvest; } set{ m_ConsumedPerHarvest = value; } }
- public int ConsumedPerFeluccaHarvest{ get{ return m_ConsumedPerFeluccaHarvest; } set{ m_ConsumedPerFeluccaHarvest = value; } }
- public bool PlaceAtFeetIfFull{ get{ return m_PlaceAtFeetIfFull; } set{ m_PlaceAtFeetIfFull = value; } }
- public SkillName Skill{ get{ return m_Skill; } set{ m_Skill = value; } }
- public int[] EffectActions{ get{ return m_EffectActions; } set{ m_EffectActions = value; } }
- public int[] EffectCounts{ get{ return m_EffectCounts; } set{ m_EffectCounts = value; } }
- public int[] EffectSounds{ get{ return m_EffectSounds; } set{ m_EffectSounds = value; } }
- public TimeSpan EffectSoundDelay{ get{ return m_EffectSoundDelay; } set{ m_EffectSoundDelay = value; } }
- public TimeSpan EffectDelay{ get{ return m_EffectDelay; } set{ m_EffectDelay = value; } }
- public object NoResourcesMessage{ get{ return m_NoResourcesMessage; } set{ m_NoResourcesMessage = value; } }
- public object OutOfRangeMessage{ get{ return m_OutOfRangeMessage; } set{ m_OutOfRangeMessage = value; } }
- public object TimedOutOfRangeMessage{ get{ return m_TimedOutOfRangeMessage; } set{ m_TimedOutOfRangeMessage = value; } }
- public object DoubleHarvestMessage{ get{ return m_DoubleHarvestMessage; } set{ m_DoubleHarvestMessage = value; } }
- public object FailMessage{ get{ return m_FailMessage; } set{ m_FailMessage = value; } }
- public object PackFullMessage{ get{ return m_PackFullMessage; } set{ m_PackFullMessage = value; } }
- public object ToolBrokeMessage{ get{ return m_ToolBrokeMessage; } set{ m_ToolBrokeMessage = value; } }
- public HarvestResource[] Resources{ get{ return m_Resources; } set{ m_Resources = value; } }
- public HarvestVein[] Veins{ get{ return m_Veins; } set{ m_Veins = value; } }
- public BonusHarvestResource[] BonusResources{ get { return m_BonusResources; } set { m_BonusResources = value; } }
- public bool RaceBonus { get { return m_RaceBonus; } set { m_RaceBonus = value; } }
- public bool RandomizeVeins { get { return m_RandomizeVeins; } set { m_RandomizeVeins = value; } }
+ public int BankWidth{ get => m_BankWidth;
+ set => m_BankWidth = value;
+ }
+ public int BankHeight{ get => m_BankHeight;
+ set => m_BankHeight = value;
+ }
+ public int MinTotal{ get => m_MinTotal;
+ set => m_MinTotal = value;
+ }
+ public int MaxTotal{ get => m_MaxTotal;
+ set => m_MaxTotal = value;
+ }
+ public int[] Tiles{ get => m_Tiles;
+ set => m_Tiles = value;
+ }
+ public bool RangedTiles{ get => m_RangedTiles;
+ set => m_RangedTiles = value;
+ }
+ public TimeSpan MinRespawn{ get => m_MinRespawn;
+ set => m_MinRespawn = value;
+ }
+ public TimeSpan MaxRespawn{ get => m_MaxRespawn;
+ set => m_MaxRespawn = value;
+ }
+ public int MaxRange{ get => m_MaxRange;
+ set => m_MaxRange = value;
+ }
+ public int ConsumedPerHarvest{ get => m_ConsumedPerHarvest;
+ set => m_ConsumedPerHarvest = value;
+ }
+ public int ConsumedPerFeluccaHarvest{ get => m_ConsumedPerFeluccaHarvest;
+ set => m_ConsumedPerFeluccaHarvest = value;
+ }
+ public bool PlaceAtFeetIfFull{ get => m_PlaceAtFeetIfFull;
+ set => m_PlaceAtFeetIfFull = value;
+ }
+ public SkillName Skill{ get => m_Skill;
+ set => m_Skill = value;
+ }
+ public int[] EffectActions{ get => m_EffectActions;
+ set => m_EffectActions = value;
+ }
+ public int[] EffectCounts{ get => m_EffectCounts;
+ set => m_EffectCounts = value;
+ }
+ public int[] EffectSounds{ get => m_EffectSounds;
+ set => m_EffectSounds = value;
+ }
+ public TimeSpan EffectSoundDelay{ get => m_EffectSoundDelay;
+ set => m_EffectSoundDelay = value;
+ }
+ public TimeSpan EffectDelay{ get => m_EffectDelay;
+ set => m_EffectDelay = value;
+ }
+ public object NoResourcesMessage{ get => m_NoResourcesMessage;
+ set => m_NoResourcesMessage = value;
+ }
+ public object OutOfRangeMessage{ get => m_OutOfRangeMessage;
+ set => m_OutOfRangeMessage = value;
+ }
+ public object TimedOutOfRangeMessage{ get => m_TimedOutOfRangeMessage;
+ set => m_TimedOutOfRangeMessage = value;
+ }
+ public object DoubleHarvestMessage{ get => m_DoubleHarvestMessage;
+ set => m_DoubleHarvestMessage = value;
+ }
+ public object FailMessage{ get => m_FailMessage;
+ set => m_FailMessage = value;
+ }
+ public object PackFullMessage{ get => m_PackFullMessage;
+ set => m_PackFullMessage = value;
+ }
+ public object ToolBrokeMessage{ get => m_ToolBrokeMessage;
+ set => m_ToolBrokeMessage = value;
+ }
+ public HarvestResource[] Resources{ get => m_Resources;
+ set => m_Resources = value;
+ }
+ public HarvestVein[] Veins{ get => m_Veins;
+ set => m_Veins = value;
+ }
+ public BonusHarvestResource[] BonusResources{ get => m_BonusResources;
+ set => m_BonusResources = value;
+ }
+ public bool RaceBonus { get => m_RaceBonus;
+ set => m_RaceBonus = value;
+ }
+ public bool RandomizeVeins { get => m_RandomizeVeins;
+ set => m_RandomizeVeins = value;
+ }
private Dictionary
public Server.Engines.Reports.ChartItem this[int index]
{
- get
- {
- return ((Server.Engines.Reports.ChartItem)(this.List[index]));
- }
- set
- {
- this.List[index] = value;
- }
- }
+ get => ((Server.Engines.Reports.ChartItem)(this.List[index]));
+ set => this.List[index] = value;
+ }
public int Add( string name, int value )
{
diff --git a/Scripts/Engines/Reports/Objects/Charts/PieChart.cs b/Scripts/Engines/Reports/Objects/Charts/PieChart.cs
index a815eacbd..7badf0986 100644
--- a/Scripts/Engines/Reports/Objects/Charts/PieChart.cs
+++ b/Scripts/Engines/Reports/Objects/Charts/PieChart.cs
@@ -15,7 +15,9 @@ namespace Server.Engines.Reports
private bool m_ShowPercents;
- public bool ShowPercents{ get{ return m_ShowPercents; } set{ m_ShowPercents = value; } }
+ public bool ShowPercents{ get => m_ShowPercents;
+ set => m_ShowPercents = value;
+ }
public PieChart( string name, string fileName, bool showPercents )
{
diff --git a/Scripts/Engines/Reports/Objects/Reports/ItemValue.cs b/Scripts/Engines/Reports/Objects/Reports/ItemValue.cs
index 3c5cde910..6e7861e80 100644
--- a/Scripts/Engines/Reports/Objects/Reports/ItemValue.cs
+++ b/Scripts/Engines/Reports/Objects/Reports/ItemValue.cs
@@ -16,8 +16,12 @@ namespace Server.Engines.Reports
private string m_Value;
private string m_Format;
- public string Value{ get{ return m_Value; } set{ m_Value = value; } }
- public string Format{ get{ return m_Format; } set{ m_Format = value; } }
+ public string Value{ get => m_Value;
+ set => m_Value = value;
+ }
+ public string Format{ get => m_Format;
+ set => m_Format = value;
+ }
private ItemValue()
{
diff --git a/Scripts/Engines/Reports/Objects/Reports/ItemValueCollection.cs b/Scripts/Engines/Reports/Objects/Reports/ItemValueCollection.cs
index f77a96783..60d9192ee 100644
--- a/Scripts/Engines/Reports/Objects/Reports/ItemValueCollection.cs
+++ b/Scripts/Engines/Reports/Objects/Reports/ItemValueCollection.cs
@@ -32,14 +32,8 @@ namespace Server.Engines.Reports
///
public Server.Engines.Reports.ItemValue this[int index]
{
- get
- {
- return ((Server.Engines.Reports.ItemValue)(this.List[index]));
- }
- set
- {
- this.List[index] = value;
- }
+ get => ((Server.Engines.Reports.ItemValue)(this.List[index]));
+ set => this.List[index] = value;
}
public int Add( string value )
diff --git a/Scripts/Engines/Reports/Objects/Reports/Report.cs b/Scripts/Engines/Reports/Objects/Reports/Report.cs
index f25c6cd26..fbbf6e494 100644
--- a/Scripts/Engines/Reports/Objects/Reports/Report.cs
+++ b/Scripts/Engines/Reports/Objects/Reports/Report.cs
@@ -18,10 +18,14 @@ namespace Server.Engines.Reports
private ReportColumnCollection m_Columns;
private ReportItemCollection m_Items;
- public string Name{ get{ return m_Name; } set{ m_Name = value; } }
- public string Width{ get{ return m_Width; } set{ m_Width = value; } }
- public ReportColumnCollection Columns{ get{ return m_Columns; } }
- public ReportItemCollection Items{ get{ return m_Items; } }
+ public string Name{ get => m_Name;
+ set => m_Name = value;
+ }
+ public string Width{ get => m_Width;
+ set => m_Width = value;
+ }
+ public ReportColumnCollection Columns => m_Columns;
+ public ReportItemCollection Items => m_Items;
private Report() : this( null, null )
{
diff --git a/Scripts/Engines/Reports/Objects/Reports/ReportColumn.cs b/Scripts/Engines/Reports/Objects/Reports/ReportColumn.cs
index 50841f64c..9def8932d 100644
--- a/Scripts/Engines/Reports/Objects/Reports/ReportColumn.cs
+++ b/Scripts/Engines/Reports/Objects/Reports/ReportColumn.cs
@@ -17,9 +17,15 @@ namespace Server.Engines.Reports
private string m_Align;
private string m_Name;
- public string Width{ get{ return m_Width; } set{ m_Width = value; } }
- public string Align{ get{ return m_Align; } set{ m_Align = value; } }
- public string Name{ get{ return m_Name; } set{ m_Name = value; } }
+ public string Width{ get => m_Width;
+ set => m_Width = value;
+ }
+ public string Align{ get => m_Align;
+ set => m_Align = value;
+ }
+ public string Name{ get => m_Name;
+ set => m_Name = value;
+ }
private ReportColumn()
{
diff --git a/Scripts/Engines/Reports/Objects/Reports/ReportColumnCollection.cs b/Scripts/Engines/Reports/Objects/Reports/ReportColumnCollection.cs
index d9891d280..d3aa00ca8 100644
--- a/Scripts/Engines/Reports/Objects/Reports/ReportColumnCollection.cs
+++ b/Scripts/Engines/Reports/Objects/Reports/ReportColumnCollection.cs
@@ -32,14 +32,8 @@ namespace Server.Engines.Reports
///
public Server.Engines.Reports.ReportColumn this[int index]
{
- get
- {
- return ((Server.Engines.Reports.ReportColumn)(this.List[index]));
- }
- set
- {
- this.List[index] = value;
- }
+ get => ((Server.Engines.Reports.ReportColumn)(this.List[index]));
+ set => this.List[index] = value;
}
public int Add( string width, string align )
diff --git a/Scripts/Engines/Reports/Objects/Reports/ReportItem.cs b/Scripts/Engines/Reports/Objects/Reports/ReportItem.cs
index 0ab2e0ecb..ba5c4bb49 100644
--- a/Scripts/Engines/Reports/Objects/Reports/ReportItem.cs
+++ b/Scripts/Engines/Reports/Objects/Reports/ReportItem.cs
@@ -15,7 +15,7 @@ namespace Server.Engines.Reports
private ItemValueCollection m_Values;
- public ItemValueCollection Values{ get{ return m_Values; } }
+ public ItemValueCollection Values => m_Values;
public ReportItem()
{
diff --git a/Scripts/Engines/Reports/Objects/Reports/ReportItemCollection.cs b/Scripts/Engines/Reports/Objects/Reports/ReportItemCollection.cs
index e47a4a2dc..bd86a4122 100644
--- a/Scripts/Engines/Reports/Objects/Reports/ReportItemCollection.cs
+++ b/Scripts/Engines/Reports/Objects/Reports/ReportItemCollection.cs
@@ -32,15 +32,9 @@ namespace Server.Engines.Reports
///
public Server.Engines.Reports.ReportItem this[int index]
{
- get
- {
- return ((Server.Engines.Reports.ReportItem)(this.List[index]));
- }
- set
- {
- this.List[index] = value;
- }
- }
+ get => ((Server.Engines.Reports.ReportItem)(this.List[index]));
+ set => this.List[index] = value;
+ }
public int Add( string name, object value )
{
diff --git a/Scripts/Engines/Reports/Objects/Snapshots/Snapshot.cs b/Scripts/Engines/Reports/Objects/Snapshots/Snapshot.cs
index c288f5136..b24ba5e72 100644
--- a/Scripts/Engines/Reports/Objects/Snapshots/Snapshot.cs
+++ b/Scripts/Engines/Reports/Objects/Snapshots/Snapshot.cs
@@ -18,8 +18,12 @@ namespace Server.Engines.Reports
private DateTime m_TimeStamp;
private ObjectCollection m_Children;
- public DateTime TimeStamp{ get{ return m_TimeStamp; } set{ m_TimeStamp = value; } }
- public ObjectCollection Children{ get{ return m_Children; } set{ m_Children = value; } }
+ public DateTime TimeStamp{ get => m_TimeStamp;
+ set => m_TimeStamp = value;
+ }
+ public ObjectCollection Children{ get => m_Children;
+ set => m_Children = value;
+ }
public Snapshot()
{
diff --git a/Scripts/Engines/Reports/Objects/Snapshots/SnapshotCollection.cs b/Scripts/Engines/Reports/Objects/Snapshots/SnapshotCollection.cs
index e041a4a02..3ab53c411 100644
--- a/Scripts/Engines/Reports/Objects/Snapshots/SnapshotCollection.cs
+++ b/Scripts/Engines/Reports/Objects/Snapshots/SnapshotCollection.cs
@@ -32,14 +32,8 @@ namespace Server.Engines.Reports
///
public Server.Engines.Reports.Snapshot this[int index]
{
- get
- {
- return ((Server.Engines.Reports.Snapshot)(this.List[index]));
- }
- set
- {
- this.List[index] = value;
- }
+ get => ((Server.Engines.Reports.Snapshot)(this.List[index]));
+ set => this.List[index] = value;
}
///
diff --git a/Scripts/Engines/Reports/Objects/Snapshots/SnapshotHistory.cs b/Scripts/Engines/Reports/Objects/Snapshots/SnapshotHistory.cs
index 3bb9f94d9..378d891bd 100644
--- a/Scripts/Engines/Reports/Objects/Snapshots/SnapshotHistory.cs
+++ b/Scripts/Engines/Reports/Objects/Snapshots/SnapshotHistory.cs
@@ -17,7 +17,9 @@ namespace Server.Engines.Reports
private SnapshotCollection m_Snapshots;
- public SnapshotCollection Snapshots{ get{ return m_Snapshots; } set{ m_Snapshots = value; } }
+ public SnapshotCollection Snapshots{ get => m_Snapshots;
+ set => m_Snapshots = value;
+ }
public SnapshotHistory()
{
diff --git a/Scripts/Engines/Reports/Objects/Staffing/Info.cs b/Scripts/Engines/Reports/Objects/Staffing/Info.cs
index aedce421e..deaf04104 100644
--- a/Scripts/Engines/Reports/Objects/Staffing/Info.cs
+++ b/Scripts/Engines/Reports/Objects/Staffing/Info.cs
@@ -7,14 +7,20 @@ namespace Server.Engines.Reports
{
private static TimeSpan m_SortRange;
- public static TimeSpan SortRange{ get{ return m_SortRange; } set{ m_SortRange = value; } }
+ public static TimeSpan SortRange{ get => m_SortRange;
+ set => m_SortRange = value;
+ }
private string m_Account;
private string m_Display;
private PageInfoCollection m_Pages;
- public string Account{ get{ return m_Account; } set{ m_Account = value; } }
- public PageInfoCollection Pages{ get{ return m_Pages; } set{ m_Pages = value; } }
+ public string Account{ get => m_Account;
+ set => m_Account = value;
+ }
+ public PageInfoCollection Pages{ get => m_Pages;
+ set => m_Pages = value;
+ }
public string Display
{
diff --git a/Scripts/Engines/Reports/Objects/Staffing/PageInfo.cs b/Scripts/Engines/Reports/Objects/Staffing/PageInfo.cs
index 6d58c57ae..8fba785f9 100644
--- a/Scripts/Engines/Reports/Objects/Staffing/PageInfo.cs
+++ b/Scripts/Engines/Reports/Objects/Staffing/PageInfo.cs
@@ -32,7 +32,7 @@ namespace Server.Engines.Reports
public StaffInfo Resolver
{
- get{ return m_Resolver; }
+ get => m_Resolver;
set
{
if ( m_Resolver == value )
@@ -53,7 +53,7 @@ namespace Server.Engines.Reports
public UserInfo Sender
{
- get{ return m_Sender; }
+ get => m_Sender;
set
{
if ( m_Sender == value )
@@ -86,7 +86,7 @@ namespace Server.Engines.Reports
public StaffHistory History
{
- get{ return m_History; }
+ get => m_History;
set
{
if ( m_History == value )
@@ -108,15 +108,19 @@ namespace Server.Engines.Reports
}
}
- public PageType PageType{ get{ return m_PageType; } set{ m_PageType = value; } }
- public PageResolution Resolution{ get{ return m_Resolution; } }
+ public PageType PageType{ get => m_PageType;
+ set => m_PageType = value;
+ }
+ public PageResolution Resolution => m_Resolution;
- public DateTime TimeSent{ get{ return m_TimeSent; } set{ m_TimeSent = value; } }
- public DateTime TimeResolved{ get{ return m_TimeResolved; } }
+ public DateTime TimeSent{ get => m_TimeSent;
+ set => m_TimeSent = value;
+ }
+ public DateTime TimeResolved => m_TimeResolved;
public string SentBy
{
- get{ return m_SentBy; }
+ get => m_SentBy;
set
{
m_SentBy = value;
@@ -126,13 +130,14 @@ namespace Server.Engines.Reports
}
}
- public string ResolvedBy
- {
- get{ return m_ResolvedBy; }
- }
+ public string ResolvedBy => m_ResolvedBy;
- public string Message{ get{ return m_Message; } set{ m_Message = value; } }
- public ResponseInfoCollection Responses{ get{ return m_Responses; } set{ m_Responses = value; } }
+ public string Message{ get => m_Message;
+ set => m_Message = value;
+ }
+ public ResponseInfoCollection Responses{ get => m_Responses;
+ set => m_Responses = value;
+ }
public void UpdateResolver()
{
diff --git a/Scripts/Engines/Reports/Objects/Staffing/PageInfoCollection.cs b/Scripts/Engines/Reports/Objects/Staffing/PageInfoCollection.cs
index 6c686d946..b901f2435 100644
--- a/Scripts/Engines/Reports/Objects/Staffing/PageInfoCollection.cs
+++ b/Scripts/Engines/Reports/Objects/Staffing/PageInfoCollection.cs
@@ -32,14 +32,8 @@ namespace Server.Engines.Reports
///
public Server.Engines.Reports.PageInfo this[int index]
{
- get
- {
- return ((Server.Engines.Reports.PageInfo)(this.List[index]));
- }
- set
- {
- this.List[index] = value;
- }
+ get => ((Server.Engines.Reports.PageInfo)(this.List[index]));
+ set => this.List[index] = value;
}
///
diff --git a/Scripts/Engines/Reports/Objects/Staffing/QueueStatus.cs b/Scripts/Engines/Reports/Objects/Staffing/QueueStatus.cs
index ce6f4b19a..a31c7b651 100644
--- a/Scripts/Engines/Reports/Objects/Staffing/QueueStatus.cs
+++ b/Scripts/Engines/Reports/Objects/Staffing/QueueStatus.cs
@@ -18,8 +18,12 @@ namespace Server.Engines.Reports
private DateTime m_TimeStamp;
private int m_Count;
- public DateTime TimeStamp{ get{ return m_TimeStamp; } set{ m_TimeStamp = value; } }
- public int Count{ get{ return m_Count; } set{ m_Count = value; } }
+ public DateTime TimeStamp{ get => m_TimeStamp;
+ set => m_TimeStamp = value;
+ }
+ public int Count{ get => m_Count;
+ set => m_Count = value;
+ }
public QueueStatus()
{
diff --git a/Scripts/Engines/Reports/Objects/Staffing/QueueStatusCollection.cs b/Scripts/Engines/Reports/Objects/Staffing/QueueStatusCollection.cs
index 88c39fff2..d1d3156d9 100644
--- a/Scripts/Engines/Reports/Objects/Staffing/QueueStatusCollection.cs
+++ b/Scripts/Engines/Reports/Objects/Staffing/QueueStatusCollection.cs
@@ -32,14 +32,8 @@ namespace Server.Engines.Reports
///
public Server.Engines.Reports.QueueStatus this[int index]
{
- get
- {
- return ((Server.Engines.Reports.QueueStatus)(this.List[index]));
- }
- set
- {
- this.List[index] = value;
- }
+ get => ((Server.Engines.Reports.QueueStatus)(this.List[index]));
+ set => this.List[index] = value;
}
///
diff --git a/Scripts/Engines/Reports/Objects/Staffing/ResponseInfo.cs b/Scripts/Engines/Reports/Objects/Staffing/ResponseInfo.cs
index f8e00d447..4b221ef2c 100644
--- a/Scripts/Engines/Reports/Objects/Staffing/ResponseInfo.cs
+++ b/Scripts/Engines/Reports/Objects/Staffing/ResponseInfo.cs
@@ -20,10 +20,16 @@ namespace Server.Engines.Reports
private string m_SentBy;
private string m_Message;
- public DateTime TimeStamp{ get{ return m_TimeStamp; } set{ m_TimeStamp = value; } }
+ public DateTime TimeStamp{ get => m_TimeStamp;
+ set => m_TimeStamp = value;
+ }
- public string SentBy{ get{ return m_SentBy; } set{ m_SentBy = value; } }
- public string Message{ get{ return m_Message; } set{ m_Message = value; } }
+ public string SentBy{ get => m_SentBy;
+ set => m_SentBy = value;
+ }
+ public string Message{ get => m_Message;
+ set => m_Message = value;
+ }
public ResponseInfo()
{
diff --git a/Scripts/Engines/Reports/Objects/Staffing/ResponseInfoCollection.cs b/Scripts/Engines/Reports/Objects/Staffing/ResponseInfoCollection.cs
index 6d0e051e5..80e2914b1 100644
--- a/Scripts/Engines/Reports/Objects/Staffing/ResponseInfoCollection.cs
+++ b/Scripts/Engines/Reports/Objects/Staffing/ResponseInfoCollection.cs
@@ -32,14 +32,8 @@ namespace Server.Engines.Reports
///
public Server.Engines.Reports.ResponseInfo this[int index]
{
- get
- {
- return ((Server.Engines.Reports.ResponseInfo)(this.List[index]));
- }
- set
- {
- this.List[index] = value;
- }
+ get => ((Server.Engines.Reports.ResponseInfo)(this.List[index]));
+ set => this.List[index] = value;
}
public int Add( string sentBy, string message )
diff --git a/Scripts/Engines/Reports/Objects/Staffing/StaffHistory.cs b/Scripts/Engines/Reports/Objects/Staffing/StaffHistory.cs
index 7c746c142..79c39a90b 100644
--- a/Scripts/Engines/Reports/Objects/Staffing/StaffHistory.cs
+++ b/Scripts/Engines/Reports/Objects/Staffing/StaffHistory.cs
@@ -23,11 +23,19 @@ namespace Server.Engines.Reports
private Hashtable m_UserInfo;
private Hashtable m_StaffInfo;
- public PageInfoCollection Pages{ get{ return m_Pages; } set{ m_Pages = value; } }
- public QueueStatusCollection QueueStats{ get{ return m_QueueStats; } set{ m_QueueStats = value; } }
+ public PageInfoCollection Pages{ get => m_Pages;
+ set => m_Pages = value;
+ }
+ public QueueStatusCollection QueueStats{ get => m_QueueStats;
+ set => m_QueueStats = value;
+ }
- public Hashtable UserInfo{ get{ return m_UserInfo; } set{ m_UserInfo = value; } }
- public Hashtable StaffInfo{ get{ return m_StaffInfo; } set{ m_StaffInfo = value; } }
+ public Hashtable UserInfo{ get => m_UserInfo;
+ set => m_UserInfo = value;
+ }
+ public Hashtable StaffInfo{ get => m_StaffInfo;
+ set => m_StaffInfo = value;
+ }
public void AddPage( PageInfo info )
{
diff --git a/Scripts/Engines/Reports/Persistance/PersistableObjectCollection.cs b/Scripts/Engines/Reports/Persistance/PersistableObjectCollection.cs
index f46d7b4b5..c1ac03801 100644
--- a/Scripts/Engines/Reports/Persistance/PersistableObjectCollection.cs
+++ b/Scripts/Engines/Reports/Persistance/PersistableObjectCollection.cs
@@ -32,14 +32,8 @@ namespace Server.Engines.Reports
///
public Server.Engines.Reports.PersistableObject this[int index]
{
- get
- {
- return ((Server.Engines.Reports.PersistableObject)(this.List[index]));
- }
- set
- {
- this.List[index] = value;
- }
+ get => ((Server.Engines.Reports.PersistableObject)(this.List[index]));
+ set => this.List[index] = value;
}
///
diff --git a/Scripts/Engines/Reports/Persistance/PersistableType.cs b/Scripts/Engines/Reports/Persistance/PersistableType.cs
index 8ef17faa6..ac58de7ce 100644
--- a/Scripts/Engines/Reports/Persistance/PersistableType.cs
+++ b/Scripts/Engines/Reports/Persistance/PersistableType.cs
@@ -46,8 +46,8 @@ namespace Server.Engines.Reports
private string m_Name;
private ConstructCallback m_Constructor;
- public string Name{ get{ return m_Name; } }
- public ConstructCallback Constructor{ get{ return m_Constructor; } }
+ public string Name => m_Name;
+ public ConstructCallback Constructor => m_Constructor;
public PersistableType( string name, ConstructCallback constructor )
{
diff --git a/Scripts/Engines/Reports/Persistance/PersistanceReader.cs b/Scripts/Engines/Reports/Persistance/PersistanceReader.cs
index 0ce2816ff..47f4c9fbe 100644
--- a/Scripts/Engines/Reports/Persistance/PersistanceReader.cs
+++ b/Scripts/Engines/Reports/Persistance/PersistanceReader.cs
@@ -65,13 +65,7 @@ namespace Server.Engines.Reports
private bool m_HasChild;
- public override bool HasChild
- {
- get
- {
- return m_HasChild;
- }
- }
+ public override bool HasChild => m_HasChild;
private bool m_WasEmptyElement;
diff --git a/Scripts/Engines/Reports/Rendering/BarGraphRenderer.cs b/Scripts/Engines/Reports/Rendering/BarGraphRenderer.cs
index 1825b26a1..2993dacb7 100644
--- a/Scripts/Engines/Reports/Rendering/BarGraphRenderer.cs
+++ b/Scripts/Engines/Reports/Rendering/BarGraphRenderer.cs
@@ -73,69 +73,69 @@ namespace Server.Engines.Reports
public string FontFamily
{
- get{ return _fontFamily; }
- set{ _fontFamily = value; }
+ get => _fontFamily;
+ set => _fontFamily = value;
}
public BarGraphRenderMode RenderMode
{
- get{ return _renderMode; }
- set{ _renderMode = value; }
+ get => _renderMode;
+ set => _renderMode = value;
}
public Color BackgroundColor
{
- set{ _backColor = value; }
+ set => _backColor = value;
}
public int BottomBuffer
{
- set { _bottomBuffer = Convert.ToSingle(value); }
+ set => _bottomBuffer = Convert.ToSingle(value);
}
public Color FontColor
{
- set{ _fontColor = value; }
+ set => _fontColor = value;
}
public int Height
{
- get{ return Convert.ToInt32(_totalHeight); }
- set{ _totalHeight = Convert.ToSingle(value); }
+ get => Convert.ToInt32(_totalHeight);
+ set => _totalHeight = Convert.ToSingle(value);
}
public int Width
{
- get{ return Convert.ToInt32(_totalWidth); }
- set{ _totalWidth = Convert.ToSingle(value); }
+ get => Convert.ToInt32(_totalWidth);
+ set => _totalWidth = Convert.ToSingle(value);
}
public bool ShowLegend
{
- get{ return _displayLegend; }
- set{ _displayLegend = value; }
+ get => _displayLegend;
+ set => _displayLegend = value;
}
public bool ShowData
{
- get{ return _displayBarData; }
- set{ _displayBarData = value; }
+ get => _displayBarData;
+ set => _displayBarData = value;
}
public int TopBuffer
{
- set { _topBuffer = Convert.ToSingle(value); }
+ set => _topBuffer = Convert.ToSingle(value);
}
public string VerticalLabel
{
- get{ return _yLabel; }
- set{ _yLabel = value; }
+ get => _yLabel;
+ set => _yLabel = value;
}
public int VerticalTickCount
{
- get{ return _yTickCount; }
- set{ _yTickCount = value; }
+ get => _yTickCount;
+ set => _yTickCount = value;
}
private string _xTitle, _yTitle;
diff --git a/Scripts/Engines/Reports/Rendering/ChartRenderer.cs b/Scripts/Engines/Reports/Rendering/ChartRenderer.cs
index 8aaf50236..665e840aa 100644
--- a/Scripts/Engines/Reports/Rendering/ChartRenderer.cs
+++ b/Scripts/Engines/Reports/Rendering/ChartRenderer.cs
@@ -36,8 +36,8 @@ namespace Server.Engines.Reports
public ChartItemsCollection DataPoints
{
- get{ return _dataPoints; }
- set{ _dataPoints = value; }
+ get => _dataPoints;
+ set => _dataPoints = value;
}
public void SetColor(int index, Color NewColor)
diff --git a/Scripts/Engines/Reports/Rendering/DataItem.cs b/Scripts/Engines/Reports/Rendering/DataItem.cs
index 41fd22588..2e7f30b13 100644
--- a/Scripts/Engines/Reports/Rendering/DataItem.cs
+++ b/Scripts/Engines/Reports/Rendering/DataItem.cs
@@ -36,38 +36,38 @@ namespace Server.Engines.Reports
public string Label
{
- get{ return _label; }
- set{ _label = value; }
+ get => _label;
+ set => _label = value;
}
public string Description
{
- get{ return _description; }
- set{ _description = value; }
+ get => _description;
+ set => _description = value;
}
public float Value
{
- get{ return _value; }
- set{ _value = value; }
+ get => _value;
+ set => _value = value;
}
public Color ItemColor
{
- get{ return _color; }
- set{ _color = value; }
+ get => _color;
+ set => _color = value;
}
public float StartPos
{
- get{ return _startPos; }
- set{ _startPos = value; }
+ get => _startPos;
+ set => _startPos = value;
}
public float SweepSize
{
- get{ return _sweepSize; }
- set{ _sweepSize = value; }
+ get => _sweepSize;
+ set => _sweepSize = value;
}
}
@@ -81,8 +81,8 @@ namespace Server.Engines.Reports
{
public DataItem this[int index]
{
- get{ return (DataItem)(List[index]); }
- set{ List[index] = value; }
+ get => (DataItem)(List[index]);
+ set => List[index] = value;
}
public int Add(DataItem value)
diff --git a/Scripts/Engines/Reports/Rendering/PieChartRenderer.cs b/Scripts/Engines/Reports/Rendering/PieChartRenderer.cs
index 38f37fc25..627ebf1e9 100644
--- a/Scripts/Engines/Reports/Rendering/PieChartRenderer.cs
+++ b/Scripts/Engines/Reports/Rendering/PieChartRenderer.cs
@@ -30,7 +30,9 @@ namespace Server.Engines.Reports
private float _legendFontSize;
private bool _showPercents;
- public bool ShowPercents{ get{ return _showPercents; } set{ _showPercents = value; } }
+ public bool ShowPercents{ get => _showPercents;
+ set => _showPercents = value;
+ }
public PieChartRenderer()
{
diff --git a/Scripts/Engines/Reports/Reports.cs b/Scripts/Engines/Reports/Reports.cs
index 0e75e4ddd..9fb2fc910 100644
--- a/Scripts/Engines/Reports/Reports.cs
+++ b/Scripts/Engines/Reports/Reports.cs
@@ -49,7 +49,7 @@ namespace Server.Engines.Reports
private static SnapshotHistory m_StatsHistory;
private static StaffHistory m_StaffHistory;
- public static StaffHistory StaffHistory{ get{ return m_StaffHistory; } }
+ public static StaffHistory StaffHistory => m_StaffHistory;
public static void Generate()
{
diff --git a/Scripts/Engines/Spawner/ProximitySpawner.cs b/Scripts/Engines/Spawner/ProximitySpawner.cs
index 6c70cda21..9b1ca9d65 100644
--- a/Scripts/Engines/Spawner/ProximitySpawner.cs
+++ b/Scripts/Engines/Spawner/ProximitySpawner.cs
@@ -11,22 +11,22 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.Developer )]
public int TriggerRange
{
- get { return m_TriggerRange; }
- set { m_TriggerRange = value; }
+ get => m_TriggerRange;
+ set => m_TriggerRange = value;
}
[CommandProperty( AccessLevel.Developer )]
public TextDefinition SpawnMessage
{
- get { return m_SpawnMessage; }
- set { m_SpawnMessage = value; }
+ get => m_SpawnMessage;
+ set => m_SpawnMessage = value;
}
[CommandProperty( AccessLevel.Developer )]
public bool InstantFlag
{
- get { return m_InstantFlag; }
- set { m_InstantFlag = value; }
+ get => m_InstantFlag;
+ set => m_InstantFlag = value;
}
[Constructible]
@@ -68,10 +68,7 @@ namespace Server.Mobiles
m_InstantFlag = instantFlag;
}
- public override string DefaultName
- {
- get { return "Proximity Spawner"; }
- }
+ public override string DefaultName => "Proximity Spawner";
public override void DoTimer( TimeSpan delay )
{
diff --git a/Scripts/Engines/Spawner/Spawner.cs b/Scripts/Engines/Spawner/Spawner.cs
index e476ed01d..f13abca8e 100644
--- a/Scripts/Engines/Spawner/Spawner.cs
+++ b/Scripts/Engines/Spawner/Spawner.cs
@@ -27,15 +27,17 @@ namespace Server.Mobiles
private WayPoint m_WayPoint;
public override string DefaultName => "Spawner";
- public bool IsFull{ get{ return ( m_Spawned != null && m_Spawned.Count >= m_Count ); } }
- public bool IsEmpty{ get{ return ( m_Spawned != null && m_Spawned.Count == 0 ); } }
+ public bool IsFull => ( m_Spawned != null && m_Spawned.Count >= m_Count );
+ public bool IsEmpty => ( m_Spawned != null && m_Spawned.Count == 0 );
- public Point3D HomeLocation{ get{ return Location; } }
- public bool UnlinkOnTaming{ get{ return true; } }
- public DateTime End{ get{ return m_End; } set{ m_End = value; } }
+ public Point3D HomeLocation => Location;
+ public bool UnlinkOnTaming => true;
+ public DateTime End{ get => m_End;
+ set => m_End = value;
+ }
- public List Entries{ get{ return m_Entries; } }
- public Dictionary Spawned{ get{ return m_Spawned; } }
+ public List Entries => m_Entries;
+ public Dictionary Spawned => m_Spawned;
public override void OnAfterDuped( Item newItem )
{
@@ -49,7 +51,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.Developer )]
public int Count
{
- get { return m_Count; }
+ get => m_Count;
set
{
m_Count = value;
@@ -65,12 +67,14 @@ namespace Server.Mobiles
}
[CommandProperty( AccessLevel.Developer )]
- public WayPoint WayPoint{ get{ return m_WayPoint; } set{ m_WayPoint = value; } }
+ public WayPoint WayPoint{ get => m_WayPoint;
+ set => m_WayPoint = value;
+ }
[CommandProperty( AccessLevel.Developer )]
public bool Running
{
- get { return m_Running; }
+ get => m_Running;
set
{
if ( value )
@@ -83,19 +87,24 @@ namespace Server.Mobiles
}
[CommandProperty( AccessLevel.Developer )]
- public int HomeRange{ get { return m_HomeRange; } set { m_HomeRange = value; InvalidateProperties(); } }
+ public int HomeRange{ get => m_HomeRange;
+ set { m_HomeRange = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.Developer )]
- public int WalkingRange{ get { return m_WalkingRange; } set { m_WalkingRange = value; InvalidateProperties(); } }
+ public int WalkingRange{ get => m_WalkingRange;
+ set { m_WalkingRange = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.Developer )]
- public int Team{ get { return m_Team; } set { m_Team = value; InvalidateProperties(); } }
+ public int Team{ get => m_Team;
+ set { m_Team = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.Developer )]
- public TimeSpan MinDelay{ get { return m_MinDelay; } set { m_MinDelay = value; InvalidateProperties(); } }
+ public TimeSpan MinDelay{ get => m_MinDelay;
+ set { m_MinDelay = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.Developer )]
- public TimeSpan MaxDelay{ get { return m_MaxDelay; } set { m_MaxDelay = value; InvalidateProperties(); } }
+ public TimeSpan MaxDelay{ get => m_MaxDelay;
+ set { m_MaxDelay = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.Developer )]
public TimeSpan NextSpawn
@@ -117,11 +126,11 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.Developer )]
public bool Group
{
- get { return m_Group; }
+ get => m_Group;
set { m_Group = value; InvalidateProperties(); }
}
- Region ISpawner.Region{ get{ return Region.Find( Location, Map ); } }
+ Region ISpawner.Region => Region.Find( Location, Map );
// [Constructible]
public Spawner( int amount, int minDelay, int maxDelay, int team, int homeRange, string spawnedNames ) : base( 0x1f13 )
@@ -1073,38 +1082,40 @@ namespace Server.Mobiles
public int SpawnedProbability
{
- get { return m_SpawnedProbability; }
- set { m_SpawnedProbability = value; }
+ get => m_SpawnedProbability;
+ set => m_SpawnedProbability = value;
}
public int SpawnedMaxCount
{
- get { return m_SpawnedMaxCount; }
- set { m_SpawnedMaxCount = value; }
+ get => m_SpawnedMaxCount;
+ set => m_SpawnedMaxCount = value;
}
public string SpawnedName
{
- get { return m_SpawnedName; }
- set { m_SpawnedName = value; }
+ get => m_SpawnedName;
+ set => m_SpawnedName = value;
}
public string Properties
{
- get { return m_Properties; }
- set { m_Properties = value; }
+ get => m_Properties;
+ set => m_Properties = value;
}
public string Parameters
{
- get { return m_Parameters; }
- set { m_Parameters = value; }
+ get => m_Parameters;
+ set => m_Parameters = value;
}
- public EntryFlags Valid{ get{ return m_Valid; } set{ m_Valid = value; } }
+ public EntryFlags Valid{ get => m_Valid;
+ set => m_Valid = value;
+ }
public List Spawned => m_Spawned;
- public bool IsFull{ get{ return m_Spawned.Count >= m_SpawnedMaxCount; } }
+ public bool IsFull => m_Spawned.Count >= m_SpawnedMaxCount;
public SpawnerEntry( string name, int probability, int maxcount )
{
diff --git a/Scripts/Engines/Treasures of Tokuno/BasePigmentsOfTokuno.cs b/Scripts/Engines/Treasures of Tokuno/BasePigmentsOfTokuno.cs
index 08be88468..33b2c2650 100644
--- a/Scripts/Engines/Treasures of Tokuno/BasePigmentsOfTokuno.cs
+++ b/Scripts/Engines/Treasures of Tokuno/BasePigmentsOfTokuno.cs
@@ -65,7 +65,7 @@ namespace Server.Items
protected TextDefinition Label
{
- get { return m_Label; }
+ get => m_Label;
set { m_Label = value; InvalidateProperties(); }
}
@@ -73,10 +73,8 @@ namespace Server.Items
/* DO NOT USE! Only used in serialization of pigments that originally derived from Item */
private bool m_InheritsItem;
- protected bool InheritsItem
- {
- get{ return m_InheritsItem; }
- }
+ protected bool InheritsItem => m_InheritsItem;
+
#endregion
public BasePigmentsOfTokuno() : base( 0xEFF )
@@ -248,13 +246,13 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
public bool ShowUsesRemaining
{
- get { return true; }
+ get => true;
set {}
}
diff --git a/Scripts/Engines/Treasures of Tokuno/GreaterArtifacts.cs b/Scripts/Engines/Treasures of Tokuno/GreaterArtifacts.cs
index 42ef2399d..70e3e35ac 100644
--- a/Scripts/Engines/Treasures of Tokuno/GreaterArtifacts.cs
+++ b/Scripts/Engines/Treasures of Tokuno/GreaterArtifacts.cs
@@ -433,7 +433,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public PigmentType Type
{
- get { return m_Type; }
+ get => m_Type;
set
{
m_Type = value;
diff --git a/Scripts/Engines/Treasures of Tokuno/LesserArtifacts.cs b/Scripts/Engines/Treasures of Tokuno/LesserArtifacts.cs
index 890738bfb..ea798f719 100644
--- a/Scripts/Engines/Treasures of Tokuno/LesserArtifacts.cs
+++ b/Scripts/Engines/Treasures of Tokuno/LesserArtifacts.cs
@@ -671,8 +671,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string UrnName
{
- get { return m_UrnName; }
- set { m_UrnName = value; }
+ get => m_UrnName;
+ set => m_UrnName = value;
}
public override int LabelNumber => 1071014; // Ancient Urn
@@ -730,8 +730,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string SwordsName
{
- get { return m_SwordsName; }
- set { m_SwordsName = value; }
+ get => m_SwordsName;
+ set => m_SwordsName = value;
}
public override int LabelNumber => 1071015; // Honorable Swords
@@ -948,7 +948,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public LesserPigmentType Type
{
- get { return m_Type; }
+ get => m_Type;
set
{
m_Type = value;
diff --git a/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokuno.cs b/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokuno.cs
index b4124c8a3..13f38cc48 100644
--- a/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokuno.cs
+++ b/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokuno.cs
@@ -37,14 +37,14 @@ namespace Server.Misc
public static TreasuresOfTokunoEra DropEra
{
- get { return _DropEra; }
- set { _DropEra = value; }
+ get => _DropEra;
+ set => _DropEra = value;
}
public static TreasuresOfTokunoEra RewardEra
{
- get { return _RewardEra; }
- set { _RewardEra = value; }
+ get => _RewardEra;
+ set => _RewardEra = value;
}
private static Type[][] m_LesserArtifacts = new Type[][]
@@ -77,10 +77,7 @@ namespace Server.Misc
}
};
- public static Type[] LesserArtifacts
- {
- get { return m_LesserArtifacts[(int)RewardEra-1]; }
- }
+ public static Type[] LesserArtifacts => m_LesserArtifacts[(int)RewardEra-1];
private static Type[][] m_GreaterArtifacts = null;
@@ -191,7 +188,7 @@ namespace Server.Mobiles
public override string DefaultName => "Ihara Soko";
protected List m_SBInfos = new List();
- protected override List SBInfos { get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override void InitSBInfo()
{
@@ -293,8 +290,8 @@ namespace Server.Gumps
public Item Item
{
- get { return m_Item; }
- set { m_Item = value; }
+ get => m_Item;
+ set => m_Item = value;
}
public ItemTileButtonInfo( Item i ) : base( i.ItemID, i.Hue, ((i.Name == null || i.Name.Length <= 0)? (TextDefinition)i.LabelNumber : (TextDefinition)i.Name ) )
@@ -423,15 +420,9 @@ namespace Server.Gumps
public PigmentType Pigment
{
- get
- {
- return m_Pigment;
- }
+ get => m_Pigment;
- set
- {
- m_Pigment = value;
- }
+ set => m_Pigment = value;
}
public PigmentsTileButtonInfo( PigmentType p ) : base( 0xEFF, PigmentsOfTokuno.GetInfo( p )[0], PigmentsOfTokuno.GetInfo( p )[1] )
@@ -484,10 +475,7 @@ namespace Server.Gumps
};
#endregion
- public static TypeTileButtonInfo[][] NormalRewards
- {
- get { return m_NormalRewards; }
- }
+ public static TypeTileButtonInfo[][] NormalRewards => m_NormalRewards;
#region ToT Pigment Rewards Table
private static PigmentsTileButtonInfo[][] m_PigmentRewards = new PigmentsTileButtonInfo[][]
@@ -533,10 +521,7 @@ namespace Server.Gumps
};
#endregion
- public static PigmentsTileButtonInfo[][] PigmentRewards
- {
- get { return m_PigmentRewards; }
- }
+ public static PigmentsTileButtonInfo[][] PigmentRewards => m_PigmentRewards;
private Mobile m_Collector;
diff --git a/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokunoPersistance.cs b/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokunoPersistance.cs
index 6246995d6..2e596d8c8 100644
--- a/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokunoPersistance.cs
+++ b/Scripts/Engines/Treasures of Tokuno/TreasuresOfTokunoPersistance.cs
@@ -4,12 +4,9 @@ namespace Server.Misc
{
private static TreasuresOfTokunoPersistance m_Instance;
- public static TreasuresOfTokunoPersistance Instance{ get{ return m_Instance; } }
+ public static TreasuresOfTokunoPersistance Instance => m_Instance;
- public override string DefaultName
- {
- get { return "TreasuresOfTokuno Persistance - Internal"; }
- }
+ public override string DefaultName => "TreasuresOfTokuno Persistance - Internal";
public static void Initialize()
{
diff --git a/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatue.cs b/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatue.cs
index ab4f3d272..2f053a4bc 100644
--- a/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatue.cs
+++ b/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatue.cs
@@ -47,21 +47,21 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public StatueType StatueType
{
- get { return m_Type; }
+ get => m_Type;
set { m_Type = value; InvalidateHues(); InvalidatePose(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public StatuePose Pose
{
- get { return m_Pose; }
+ get => m_Pose;
set { m_Pose = value; InvalidatePose(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public StatueMaterial Material
{
- get { return m_Material; }
+ get => m_Material;
set { m_Material = value; InvalidateHues(); InvalidatePose(); }
}
@@ -71,23 +71,23 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile SculptedBy
{
- get{ return m_SculptedBy; }
+ get => m_SculptedBy;
set{ m_SculptedBy = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime SculptedOn
{
- get{ return m_SculptedOn; }
- set{ m_SculptedOn = value; }
+ get => m_SculptedOn;
+ set => m_SculptedOn = value;
}
private CharacterStatuePlinth m_Plinth;
public CharacterStatuePlinth Plinth
{
- get { return m_Plinth; }
- set { m_Plinth = value; }
+ get => m_Plinth;
+ set => m_Plinth = value;
}
private bool m_IsRewardItem;
@@ -95,8 +95,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
public CharacterStatue( Mobile from, StatueType type )
@@ -442,8 +442,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public CharacterStatue Statue
{
- get { return m_Statue; }
- set { m_Statue = value; }
+ get => m_Statue;
+ set => m_Statue = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -456,13 +456,13 @@ namespace Server.Mobiles
return m_Type;
}
- set { m_Type = value; }
+ set => m_Type = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatueMaker.cs b/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatueMaker.cs
index 6803b2b5c..e0a0c26ef 100644
--- a/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatueMaker.cs
+++ b/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatueMaker.cs
@@ -13,14 +13,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public StatueType StatueType
{
- get{ return m_Type; }
+ get => m_Type;
set{ m_Type = value; InvalidateHue(); }
}
diff --git a/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatuePlinth.cs b/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatuePlinth.cs
index 96f0e43dd..4915af869 100644
--- a/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatuePlinth.cs
+++ b/Scripts/Engines/VeteranRewards/Character Statue Maker/CharacterStatuePlinth.cs
@@ -7,7 +7,7 @@ namespace Server.Items
{
public class CharacterStatuePlinth : Static, IAddon
{
- public Item Deed{ get{ return new CharacterStatueDeed( m_Statue ); } }
+ public Item Deed => new CharacterStatueDeed( m_Statue );
public override int LabelNumber => 1076201; // Character Statue
private CharacterStatue m_Statue;
diff --git a/Scripts/Engines/VeteranRewards/RewardCategory.cs b/Scripts/Engines/VeteranRewards/RewardCategory.cs
index 7a4f7be60..bb185c077 100644
--- a/Scripts/Engines/VeteranRewards/RewardCategory.cs
+++ b/Scripts/Engines/VeteranRewards/RewardCategory.cs
@@ -8,8 +8,8 @@ namespace Server.Engines.VeteranRewards
private string m_NameString;
private List m_Entries;
- public int Name{ get{ return m_Name; } }
- public string NameString{ get{ return m_NameString; } }
+ public int Name => m_Name;
+ public string NameString => m_NameString;
public List Entries => m_Entries;
public RewardCategory( int name )
diff --git a/Scripts/Engines/VeteranRewards/RewardEntry.cs b/Scripts/Engines/VeteranRewards/RewardEntry.cs
index e55d95c90..a728aa22a 100644
--- a/Scripts/Engines/VeteranRewards/RewardEntry.cs
+++ b/Scripts/Engines/VeteranRewards/RewardEntry.cs
@@ -12,13 +12,15 @@ namespace Server.Engines.VeteranRewards
private string m_NameString;
private object[] m_Args;
- public RewardList List{ get{ return m_List; } set{ m_List = value; } }
- public RewardCategory Category{ get{ return m_Category; } }
- public Type ItemType{ get{ return m_ItemType; } }
- public Expansion RequiredExpansion{ get{ return m_RequiredExpansion; } }
- public int Name{ get{ return m_Name; } }
- public string NameString{ get{ return m_NameString; } }
- public object[] Args{ get{ return m_Args; } }
+ public RewardList List{ get => m_List;
+ set => m_List = value;
+ }
+ public RewardCategory Category => m_Category;
+ public Type ItemType => m_ItemType;
+ public Expansion RequiredExpansion => m_RequiredExpansion;
+ public int Name => m_Name;
+ public string NameString => m_NameString;
+ public object[] Args => m_Args;
public Item Construct()
{
diff --git a/Scripts/Engines/VeteranRewards/RewardList.cs b/Scripts/Engines/VeteranRewards/RewardList.cs
index c8a6517b1..7a721b23a 100644
--- a/Scripts/Engines/VeteranRewards/RewardList.cs
+++ b/Scripts/Engines/VeteranRewards/RewardList.cs
@@ -7,8 +7,8 @@ namespace Server.Engines.VeteranRewards
private TimeSpan m_Age;
private RewardEntry[] m_Entries;
- public TimeSpan Age{ get{ return m_Age; } }
- public RewardEntry[] Entries{ get{ return m_Entries; } }
+ public TimeSpan Age => m_Age;
+ public RewardEntry[] Entries => m_Entries;
public RewardList( TimeSpan interval, int index, RewardEntry[] entries )
{
diff --git a/Scripts/Engines/VeteranRewards/RewardOptionGump.cs b/Scripts/Engines/VeteranRewards/RewardOptionGump.cs
index b7b9e0000..cb04a7b85 100644
--- a/Scripts/Engines/VeteranRewards/RewardOptionGump.cs
+++ b/Scripts/Engines/VeteranRewards/RewardOptionGump.cs
@@ -76,8 +76,8 @@ namespace Server.Gumps
private int m_ID;
private int m_Cliloc;
- public int ID{ get{ return m_ID; } }
- public int Cliloc{ get{ return m_Cliloc; } }
+ public int ID => m_ID;
+ public int Cliloc => m_Cliloc;
public RewardOption( int id, int cliloc )
{
diff --git a/Scripts/Engines/Virtues/Honor.cs b/Scripts/Engines/Virtues/Honor.cs
index 69aa63e92..38fa9f2f9 100644
--- a/Scripts/Engines/Virtues/Honor.cs
+++ b/Scripts/Engines/Virtues/Honor.cs
@@ -208,8 +208,8 @@ namespace Server
private InternalTimer m_Timer;
- public PlayerMobile Source{ get{ return m_Source; } }
- public Mobile Target{ get{ return m_Target; } }
+ public PlayerMobile Source => m_Source;
+ public Mobile Target => m_Target;
public HonorContext( PlayerMobile source, Mobile target )
{
@@ -388,15 +388,9 @@ namespace Server
}
}
- public int PerfectionDamageBonus
- {
- get { return m_Perfection; }
- }
+ public int PerfectionDamageBonus => m_Perfection;
- public int PerfectionLuckBonus
- {
- get{ return (m_Perfection * m_Perfection) / 10; }
- }
+ public int PerfectionLuckBonus => (m_Perfection * m_Perfection) / 10;
public bool CheckDistance()
{
diff --git a/Scripts/Gumps/BaseConfirmGump.cs b/Scripts/Gumps/BaseConfirmGump.cs
index c7c73212c..6afed9ddf 100644
--- a/Scripts/Gumps/BaseConfirmGump.cs
+++ b/Scripts/Gumps/BaseConfirmGump.cs
@@ -2,9 +2,12 @@ namespace Server.Gumps
{
public class BaseConfirmGump : Gump
{
- public virtual int TitleNumber{ get{ return 1075083; } } // Warning!
- public virtual int LabelNumber{ get{ return 1074975; } } // Are you sure you wish to select this?
-
+ public virtual int TitleNumber // Warning!
+ => 1075083;
+
+ public virtual int LabelNumber // Are you sure you wish to select this?
+ => 1074975;
+
private enum Buttons
{
Close,
diff --git a/Scripts/Gumps/BaseGridGump.cs b/Scripts/Gumps/BaseGridGump.cs
index 102f9d8f7..658a3bed0 100644
--- a/Scripts/Gumps/BaseGridGump.cs
+++ b/Scripts/Gumps/BaseGridGump.cs
@@ -10,37 +10,28 @@ namespace Server.Gumps
protected GumpBackground m_Background;
protected GumpImageTiled m_Offset;
- public int CurrentPage
- {
- get{ return m_CurrentPage; }
- }
+ public int CurrentPage => m_CurrentPage;
- public int CurrentX
- {
- get{ return m_CurrentX; }
- }
+ public int CurrentX => m_CurrentX;
- public int CurrentY
- {
- get{ return m_CurrentY; }
- }
+ public int CurrentY => m_CurrentY;
public BaseGridGump( int x, int y ) : base( x, y )
{
}
- public virtual int BorderSize{ get{ return 10; } }
- public virtual int OffsetSize{ get{ return 1; } }
+ public virtual int BorderSize => 10;
+ public virtual int OffsetSize => 1;
- public virtual int EntryHeight{ get{ return 20; } }
+ public virtual int EntryHeight => 20;
- public virtual int OffsetGumpID{ get{ return 0x0A40; } }
- public virtual int HeaderGumpID{ get{ return 0x0E14; } }
- public virtual int EntryGumpID{ get{ return 0x0BBC; } }
- public virtual int BackGumpID{ get{ return 0x13BE; } }
+ public virtual int OffsetGumpID => 0x0A40;
+ public virtual int HeaderGumpID => 0x0E14;
+ public virtual int EntryGumpID => 0x0BBC;
+ public virtual int BackGumpID => 0x13BE;
- public virtual int TextHue{ get{ return 0; } }
- public virtual int TextOffsetX{ get{ return 2; } }
+ public virtual int TextHue => 0;
+ public virtual int TextOffsetX => 2;
public const int ArrowLeftID1 = 0x15E3;
public const int ArrowLeftID2 = 0x15E7;
diff --git a/Scripts/Gumps/BaseImageTileButtonsGump.cs b/Scripts/Gumps/BaseImageTileButtonsGump.cs
index a43ee425d..a3546653f 100644
--- a/Scripts/Gumps/BaseImageTileButtonsGump.cs
+++ b/Scripts/Gumps/BaseImageTileButtonsGump.cs
@@ -13,24 +13,24 @@ namespace Server.Gumps
public virtual int ItemID
{
- get{ return m_ItemID; }
- set{ m_ItemID = value; }
+ get => m_ItemID;
+ set => m_ItemID = value;
}
public virtual int Hue
{
- get{ return m_Hue; }
- set{ m_Hue = value; }
+ get => m_Hue;
+ set => m_Hue = value;
}
public virtual int LocalizedTooltip
{
- get{ return m_LocalizedTooltip; }
- set{ m_LocalizedTooltip = value; }
+ get => m_LocalizedTooltip;
+ set => m_LocalizedTooltip = value;
}
public virtual TextDefinition Label
{
- get{ return m_Label; }
- set{ m_Label = value; }
+ get => m_Label;
+ set => m_Label = value;
}
public ImageTileButtonInfo( int itemID, int hue, TextDefinition label, int localizedTooltip )
@@ -49,10 +49,10 @@ namespace Server.Gumps
{
private ImageTileButtonInfo[] m_Buttons;
- protected ImageTileButtonInfo[] Buttons { get { return m_Buttons; } }
+ protected ImageTileButtonInfo[] Buttons => m_Buttons;
- protected virtual int XItems{ get{ return 2; } }
- protected virtual int YItems{ get { return 5; } }
+ protected virtual int XItems => 2;
+ protected virtual int YItems => 5;
public BaseImageTileButtonsGump( TextDefinition header, ArrayList buttons ) : this( header, (ImageTileButtonInfo[])buttons.ToArray( typeof( ImageTileButtonInfo ) ) )
{
diff --git a/Scripts/Gumps/CategorizedAddGump.cs b/Scripts/Gumps/CategorizedAddGump.cs
index 8e6e213f5..e29e0d36c 100644
--- a/Scripts/Gumps/CategorizedAddGump.cs
+++ b/Scripts/Gumps/CategorizedAddGump.cs
@@ -20,10 +20,10 @@ namespace Server.Gumps
private int m_Hue;
private CAGCategory m_Parent;
- public Type Type{ get{ return m_Type; } }
- public int ItemID{ get{ return m_ItemID; } }
- public int Hue{ get{ return m_Hue; } }
- public CAGCategory Parent{ get{ return m_Parent; } }
+ public Type Type => m_Type;
+ public int ItemID => m_ItemID;
+ public int Hue => m_Hue;
+ public CAGCategory Parent => m_Parent;
public override string Caption => ( m_Type == null ? "bad type" : m_Type.Name );
@@ -62,9 +62,9 @@ namespace Server.Gumps
private CAGNode[] m_Nodes;
private CAGCategory m_Parent;
- public string Title{ get{ return m_Title; } }
- public CAGNode[] Nodes{ get{ return m_Nodes; } }
- public CAGCategory Parent{ get{ return m_Parent; } }
+ public string Title => m_Title;
+ public CAGNode[] Nodes => m_Nodes;
+ public CAGCategory Parent => m_Parent;
public override string Caption => m_Title;
diff --git a/Scripts/Gumps/Go/ChildNode.cs b/Scripts/Gumps/Go/ChildNode.cs
index 7f6aad628..ed2e5318f 100644
--- a/Scripts/Gumps/Go/ChildNode.cs
+++ b/Scripts/Gumps/Go/ChildNode.cs
@@ -37,28 +37,10 @@ namespace Server.Gumps
m_Location = new Point3D( x, y, z );
}
- public ParentNode Parent
- {
- get
- {
- return m_Parent;
- }
- }
+ public ParentNode Parent => m_Parent;
- public string Name
- {
- get
- {
- return m_Name;
- }
- }
+ public string Name => m_Name;
- public Point3D Location
- {
- get
- {
- return m_Location;
- }
- }
+ public Point3D Location => m_Location;
}
}
\ No newline at end of file
diff --git a/Scripts/Gumps/Go/LocationTree.cs b/Scripts/Gumps/Go/LocationTree.cs
index 0f55a4180..b0ba393db 100644
--- a/Scripts/Gumps/Go/LocationTree.cs
+++ b/Scripts/Gumps/Go/LocationTree.cs
@@ -29,29 +29,11 @@ namespace Server.Gumps
}
}
- public Dictionary LastBranch
- {
- get
- {
- return m_LastBranch;
- }
- }
+ public Dictionary LastBranch => m_LastBranch;
- public Map Map
- {
- get
- {
- return m_Map;
- }
- }
+ public Map Map => m_Map;
- public ParentNode Root
- {
- get
- {
- return m_Root;
- }
- }
+ public ParentNode Root => m_Root;
private ParentNode Parse( XmlTextReader xml )
{
diff --git a/Scripts/Gumps/Go/ParentNode.cs b/Scripts/Gumps/Go/ParentNode.cs
index 4263ce34e..7bb2a4335 100644
--- a/Scripts/Gumps/Go/ParentNode.cs
+++ b/Scripts/Gumps/Go/ParentNode.cs
@@ -53,28 +53,10 @@ namespace Server.Gumps
}
}
- public ParentNode Parent
- {
- get
- {
- return m_Parent;
- }
- }
+ public ParentNode Parent => m_Parent;
- public object[] Children
- {
- get
- {
- return m_Children;
- }
- }
+ public object[] Children => m_Children;
- public string Name
- {
- get
- {
- return m_Name;
- }
- }
+ public string Name => m_Name;
}
}
\ No newline at end of file
diff --git a/Scripts/Gumps/Guilds/New Guild System/BaseGuildGump.cs b/Scripts/Gumps/Guilds/New Guild System/BaseGuildGump.cs
index ea1c2e4a4..0f5ba8a41 100644
--- a/Scripts/Gumps/Guilds/New Guild System/BaseGuildGump.cs
+++ b/Scripts/Gumps/Guilds/New Guild System/BaseGuildGump.cs
@@ -11,8 +11,8 @@ namespace Server.Guilds
private Guild m_Guild;
private PlayerMobile m_Player;
- protected Guild guild{ get{ return m_Guild; } }
- protected PlayerMobile player{ get{ return m_Player; } }
+ protected Guild guild => m_Guild;
+ protected PlayerMobile player => m_Player;
public BaseGuildGump( PlayerMobile pm, Guild g ) : this( pm, g, 10, 10 )
{
diff --git a/Scripts/Gumps/Guilds/New Guild System/BaseGuildListGump.cs b/Scripts/Gumps/Guilds/New Guild System/BaseGuildListGump.cs
index 7498257d1..3dbd5b3c1 100644
--- a/Scripts/Gumps/Guilds/New Guild System/BaseGuildListGump.cs
+++ b/Scripts/Gumps/Guilds/New Guild System/BaseGuildListGump.cs
@@ -29,7 +29,7 @@ namespace Server.Guilds
m_List = list;
}
- public virtual bool WillFilter{ get{ return (m_Filter.Length >= 0); } }
+ public virtual bool WillFilter => (m_Filter.Length >= 0);
public override void PopulateGump()
{
@@ -192,8 +192,8 @@ namespace Server.Guilds
private int m_Width;
private IComparer m_Comparer;
- public TextDefinition Name{ get{ return m_Name; } }
- public int Width{ get{ return m_Width; } }
+ public TextDefinition Name => m_Name;
+ public int Width => m_Width;
public IComparer Comparer => m_Comparer;
public InfoField( TextDefinition name, int width, IComparer comparer )
{
diff --git a/Scripts/Gumps/Guilds/New Guild System/DiplomacyGump.cs b/Scripts/Gumps/Guilds/New Guild System/DiplomacyGump.cs
index ea6700b46..7c3dd8f06 100644
--- a/Scripts/Gumps/Guilds/New Guild System/DiplomacyGump.cs
+++ b/Scripts/Gumps/Guilds/New Guild System/DiplomacyGump.cs
@@ -14,7 +14,8 @@ namespace Server.Guilds
public class GuildDiplomacyGump : BaseGuildListGump
{
- protected virtual bool AllowAdvancedSearch{ get{ return true; } }
+ protected virtual bool AllowAdvancedSearch => true;
+
#region Comparers
private class NameComparer : IComparer
{
diff --git a/Scripts/Gumps/PlayerVendorGumps.cs b/Scripts/Gumps/PlayerVendorGumps.cs
index bda5285ca..b2817a25f 100644
--- a/Scripts/Gumps/PlayerVendorGumps.cs
+++ b/Scripts/Gumps/PlayerVendorGumps.cs
@@ -352,11 +352,11 @@ namespace Server.Gumps
return i;
}
- public Type Type{ get{ return m_Type; } }
- public int ItemID{ get{ return m_ItemID; } }
- public int LocNumber{ get{ return m_LocNum; } }
- public int ArtNumber{ get{ return m_ArtNum; } }
- public bool LongText{ get{ return m_LongText; } }
+ public Type Type => m_Type;
+ public int ItemID => m_ItemID;
+ public int LocNumber => m_LocNum;
+ public int ArtNumber => m_ArtNum;
+ public bool LongText => m_LongText;
}
private class CustomCategory
@@ -374,10 +374,10 @@ namespace Server.Gumps
m_LocNum = loc;
}
- public bool CanDye{ get{ return m_CanDye; } }
- public CustomItem[] Entries{ get{ return m_Entries; } }
- public Layer Layer{ get{ return m_Layer; } }
- public int LocNumber{ get{ return m_LocNum; } }
+ public bool CanDye => m_CanDye;
+ public CustomItem[] Entries => m_Entries;
+ public Layer Layer => m_Layer;
+ public int LocNumber => m_LocNum;
}
private static CustomCategory[] Categories = new CustomCategory[]{
@@ -788,8 +788,8 @@ namespace Server.Gumps
private int m_ItemID;
private int m_Name;
- public int ItemID{ get{ return m_ItemID; } }
- public int Name{ get{ return m_Name; } }
+ public int ItemID => m_ItemID;
+ public int Name => m_Name;
public HairOrBeard( int itemID, int name )
{
diff --git a/Scripts/Gumps/PolymorphGump.cs b/Scripts/Gumps/PolymorphGump.cs
index d506d8ccf..d69404286 100644
--- a/Scripts/Gumps/PolymorphGump.cs
+++ b/Scripts/Gumps/PolymorphGump.cs
@@ -40,8 +40,8 @@ namespace Server.Gumps
public int ArtID => m_Art;
public int BodyID => m_Body;
public int LocNumber => m_Num;
- public int X{ get{ return m_X; } }
- public int Y{ get{ return m_Y; } }
+ public int X => m_X;
+ public int Y => m_Y;
}
diff --git a/Scripts/Gumps/RunebookGump.cs b/Scripts/Gumps/RunebookGump.cs
index 23fb01acb..55edacb3b 100644
--- a/Scripts/Gumps/RunebookGump.cs
+++ b/Scripts/Gumps/RunebookGump.cs
@@ -13,7 +13,7 @@ namespace Server.Gumps
{
private Runebook m_Book;
- public Runebook Book{ get{ return m_Book; } }
+ public Runebook Book => m_Book;
public int GetMapHue( Map map )
{
diff --git a/Scripts/Gumps/SkillsGump.cs b/Scripts/Gumps/SkillsGump.cs
index 37752d010..1f6c4a61a 100644
--- a/Scripts/Gumps/SkillsGump.cs
+++ b/Scripts/Gumps/SkillsGump.cs
@@ -428,8 +428,8 @@ namespace Server.Gumps
private string m_Name;
private SkillName[] m_Skills;
- public string Name{ get{ return m_Name; } }
- public SkillName[] Skills{ get{ return m_Skills; } }
+ public string Name => m_Name;
+ public SkillName[] Skills => m_Skills;
public SkillsGumpGroup( string name, SkillName[] skills )
{
@@ -540,9 +540,6 @@ namespace Server.Gumps
} )
};
- public static SkillsGumpGroup[] Groups
- {
- get{ return m_Groups; }
- }
+ public static SkillsGumpGroup[] Groups => m_Groups;
}
}
\ No newline at end of file
diff --git a/Scripts/Holiday Stuff/Christmas/2010/Addons/FireFliesDeed.cs b/Scripts/Holiday Stuff/Christmas/2010/Addons/FireFliesDeed.cs
index 122a31c0a..69511c28d 100644
--- a/Scripts/Holiday Stuff/Christmas/2010/Addons/FireFliesDeed.cs
+++ b/Scripts/Holiday Stuff/Christmas/2010/Addons/FireFliesDeed.cs
@@ -7,7 +7,7 @@ namespace Server.Items
{
public class Fireflies : Item, IAddon
{
- public override int LabelNumber { get { return 1150061; }}
+ public override int LabelNumber => 1150061;
public Item Deed
{
diff --git a/Scripts/Holiday Stuff/Halloween/2011/Items/BasePaintedMask.cs b/Scripts/Holiday Stuff/Halloween/2011/Items/BasePaintedMask.cs
index 47131c368..ae93e81d3 100644
--- a/Scripts/Holiday Stuff/Halloween/2011/Items/BasePaintedMask.cs
+++ b/Scripts/Holiday Stuff/Halloween/2011/Items/BasePaintedMask.cs
@@ -19,7 +19,7 @@ namespace Server.Items.Holiday
}
}
- public virtual string MaskName { get { return "A Mask"; } }
+ public virtual string MaskName => "A Mask";
private string m_Staffer;
diff --git a/Scripts/Holiday Stuff/Halloween/2012/Engines/PlayerZombies.cs b/Scripts/Holiday Stuff/Halloween/2012/Engines/PlayerZombies.cs
index 8dd9a1d3b..90fe1bda5 100644
--- a/Scripts/Holiday Stuff/Halloween/2012/Engines/PlayerZombies.cs
+++ b/Scripts/Holiday Stuff/Halloween/2012/Engines/PlayerZombies.cs
@@ -8,7 +8,9 @@ namespace Server.Engines.Events
{
public class HalloweenHauntings
{
- public static Dictionary ReAnimated { get { return m_ReAnimated; } set { m_ReAnimated = value; } }
+ public static Dictionary ReAnimated { get => m_ReAnimated;
+ set => m_ReAnimated = value;
+ }
private static Timer m_Timer;
private static Timer m_ClearTimer;
diff --git a/Scripts/Holiday Stuff/Halloween/HolidaySettings.cs b/Scripts/Holiday Stuff/Halloween/HolidaySettings.cs
index fe45f40ec..6e72f5a18 100644
--- a/Scripts/Holiday Stuff/Halloween/HolidaySettings.cs
+++ b/Scripts/Holiday Stuff/Halloween/HolidaySettings.cs
@@ -5,11 +5,13 @@ namespace Server.Events.Halloween
{
class HolidaySettings
{
- public static DateTime StartHalloween { get { return new DateTime( 2012, 10, 24 ); } } // YY MM DD
- public static DateTime FinishHalloween { get { return new DateTime( 2012, 11, 15 ); } }
+ public static DateTime StartHalloween // YY MM DD
+ => new DateTime( 2012, 10, 24 );
- public static Item RandomGMBeggerItem { get { return ( Item )Activator.CreateInstance( m_GMBeggarTreats[ Utility.Random( m_GMBeggarTreats.Length ) ] ); } }
- public static Item RandomTreat { get { return (Item)Activator.CreateInstance ( m_Treats[ Utility.Random( m_Treats.Length ) ]) ; } }
+ public static DateTime FinishHalloween => new DateTime( 2012, 11, 15 );
+
+ public static Item RandomGMBeggerItem => ( Item )Activator.CreateInstance( m_GMBeggarTreats[ Utility.Random( m_GMBeggarTreats.Length ) ] );
+ public static Item RandomTreat => (Item)Activator.CreateInstance ( m_Treats[ Utility.Random( m_Treats.Length ) ]);
private static Type[] m_GMBeggarTreats =
{
diff --git a/Scripts/Holiday Stuff/Valentine/2011/Items/StValentinesBears.cs b/Scripts/Holiday Stuff/Valentine/2011/Items/StValentinesBears.cs
index 038f502cd..dc6d1028b 100644
--- a/Scripts/Holiday Stuff/Valentine/2011/Items/StValentinesBears.cs
+++ b/Scripts/Holiday Stuff/Valentine/2011/Items/StValentinesBears.cs
@@ -27,47 +27,41 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string Owner
{
- get { return m_Owner; }
+ get => m_Owner;
set { m_Owner = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string Line1
{
- get { return m_Line1; }
+ get => m_Line1;
set { m_Line1 = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string Line2
{
- get { return m_Line2; }
+ get => m_Line2;
set { m_Line2 = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string Line3
{
- get { return m_Line3; }
+ get => m_Line3;
set { m_Line3 = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime EditLimit
{
- get { return m_EditLimit; }
- set { m_EditLimit = value; }
+ get => m_EditLimit;
+ set => m_EditLimit = value;
}
- public bool IsSigned
- {
- get { return ( m_Line1 != null || m_Line2 != null || m_Line3 != null ); }
- }
+ public bool IsSigned => ( m_Line1 != null || m_Line2 != null || m_Line3 != null );
- public bool CanSign
- {
- get { return ( !IsSigned || DateTime.UtcNow <= m_EditLimit ); }
- }
+ public bool CanSign => ( !IsSigned || DateTime.UtcNow <= m_EditLimit );
public StValentinesBear( int itemid, string name )
: base( itemid )
diff --git a/Scripts/Holiday Stuff/Valentine/2012/Items/CupidsArrow.cs b/Scripts/Holiday Stuff/Valentine/2012/Items/CupidsArrow.cs
index b1e27ee34..830b13c80 100644
--- a/Scripts/Holiday Stuff/Valentine/2012/Items/CupidsArrow.cs
+++ b/Scripts/Holiday Stuff/Valentine/2012/Items/CupidsArrow.cs
@@ -15,21 +15,18 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string From
{
- get { return m_From; }
+ get => m_From;
set { m_From = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string To
{
- get { return m_To; }
+ get => m_To;
set { m_To = value; InvalidateProperties(); }
}
- public bool IsSigned
- {
- get { return ( m_From != null && m_To != null ); }
- }
+ public bool IsSigned => ( m_From != null && m_To != null );
[Constructible]
public CupidsArrow()
diff --git a/Scripts/Items/Addons/AddonComponent.cs b/Scripts/Items/Addons/AddonComponent.cs
index 88da8816c..d72bef273 100644
--- a/Scripts/Items/Addons/AddonComponent.cs
+++ b/Scripts/Items/Addons/AddonComponent.cs
@@ -61,7 +61,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Number
{
- get{ return m_LabelNumber; }
+ get => m_LabelNumber;
set{ m_LabelNumber = value; InvalidateProperties(); }
}
@@ -111,36 +111,21 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public BaseAddon Addon
{
- get
- {
- return m_Addon;
- }
- set
- {
- m_Addon = value;
- }
+ get => m_Addon;
+ set => m_Addon = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Point3D Offset
{
- get
- {
- return m_Offset;
- }
- set
- {
- m_Offset = value;
- }
+ get => m_Offset;
+ set => m_Offset = value;
}
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get
- {
- return base.Hue;
- }
+ get => base.Hue;
set
{
base.Hue = value;
@@ -150,8 +135,8 @@ namespace Server.Items
}
}
- public virtual bool NeedsWall{ get{ return false; } }
- public virtual Point3D WallPosition{ get{ return Point3D.Zero; } }
+ public virtual bool NeedsWall => false;
+ public virtual Point3D WallPosition => Point3D.Zero;
[Constructible]
public AddonComponent( int itemID ) : base( itemID )
diff --git a/Scripts/Items/Addons/AddonContainerComponent.cs b/Scripts/Items/Addons/AddonContainerComponent.cs
index ed03b4923..58b932ded 100644
--- a/Scripts/Items/Addons/AddonContainerComponent.cs
+++ b/Scripts/Items/Addons/AddonContainerComponent.cs
@@ -14,21 +14,21 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public BaseAddonContainer Addon
{
- get { return m_Addon; }
- set { m_Addon = value; }
+ get => m_Addon;
+ set => m_Addon = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Point3D Offset
{
- get { return m_Offset; }
- set { m_Offset = value; }
+ get => m_Offset;
+ set => m_Offset = value;
}
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get { return base.Hue; }
+ get => base.Hue;
set
{
base.Hue = value;
diff --git a/Scripts/Items/Addons/ArcheryButteAddon.cs b/Scripts/Items/Addons/ArcheryButteAddon.cs
index 03a473c10..dc44d0be0 100644
--- a/Scripts/Items/Addons/ArcheryButteAddon.cs
+++ b/Scripts/Items/Addons/ArcheryButteAddon.cs
@@ -17,43 +17,43 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public double MinSkill
{
- get{ return m_MinSkill; }
- set{ m_MinSkill = value; }
+ get => m_MinSkill;
+ set => m_MinSkill = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public double MaxSkill
{
- get{ return m_MaxSkill; }
- set{ m_MaxSkill = value; }
+ get => m_MaxSkill;
+ set => m_MaxSkill = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime LastUse
{
- get{ return m_LastUse; }
- set{ m_LastUse = value; }
+ get => m_LastUse;
+ set => m_LastUse = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool FacingEast
{
- get{ return ( ItemID == 0x100A ); }
- set{ ItemID = value ? 0x100A : 0x100B; }
+ get => ( ItemID == 0x100A );
+ set => ItemID = value ? 0x100A : 0x100B;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Arrows
{
- get{ return m_Arrows; }
- set{ m_Arrows = value; }
+ get => m_Arrows;
+ set => m_Arrows = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Bolts
{
- get{ return m_Bolts; }
- set{ m_Bolts = value; }
+ get => m_Bolts;
+ set => m_Bolts = value;
}
[Constructible]
@@ -102,8 +102,12 @@ namespace Server.Items
private int m_Total;
private int m_Count;
- public int Total{ get{ return m_Total; } set{ m_Total = value; } }
- public int Count{ get{ return m_Count; } set{ m_Count = value; } }
+ public int Total{ get => m_Total;
+ set => m_Total = value;
+ }
+ public int Count{ get => m_Count;
+ set => m_Count = value;
+ }
public void Record( int score )
{
diff --git a/Scripts/Items/Addons/BallotBox.cs b/Scripts/Items/Addons/BallotBox.cs
index a38f882f3..23b4daf33 100644
--- a/Scripts/Items/Addons/BallotBox.cs
+++ b/Scripts/Items/Addons/BallotBox.cs
@@ -17,20 +17,11 @@ namespace Server.Items
private List m_Yes;
private List m_No;
- public string[] Topic
- {
- get{ return m_Topic; }
- }
+ public string[] Topic => m_Topic;
- public List Yes
- {
- get{ return m_Yes; }
- }
+ public List Yes => m_Yes;
- public List No
- {
- get{ return m_No; }
- }
+ public List No => m_No;
[Constructible]
public BallotBox() : base( 0x9A8 )
diff --git a/Scripts/Items/Addons/BaseAddon.cs b/Scripts/Items/Addons/BaseAddon.cs
index 559c623a8..c040c3f17 100644
--- a/Scripts/Items/Addons/BaseAddon.cs
+++ b/Scripts/Items/Addons/BaseAddon.cs
@@ -29,7 +29,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set
{
if ( m_Resource != value )
@@ -64,7 +64,7 @@ namespace Server.Items
m_Components = new List();
}
- public virtual bool RetainDeedHue{ get{ return false; } }
+ public virtual bool RetainDeedHue => false;
public virtual void OnChop( Mobile from )
{
@@ -104,20 +104,11 @@ namespace Server.Items
}
}
- public virtual BaseAddonDeed Deed{ get{ return null; } }
+ public virtual BaseAddonDeed Deed => null;
- Item IAddon.Deed
- {
- get{ return this.Deed; }
- }
+ Item IAddon.Deed => this.Deed;
- public List Components
- {
- get
- {
- return m_Components;
- }
- }
+ public List Components => m_Components;
public BaseAddon( Serial serial ) : base( serial )
{
@@ -237,15 +228,12 @@ namespace Server.Items
c.Delete();
}
- public virtual bool ShareHue{ get{ return true; } }
+ public virtual bool ShareHue => true;
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get
- {
- return base.Hue;
- }
+ get => base.Hue;
set
{
if ( base.Hue != value )
diff --git a/Scripts/Items/Addons/BaseAddonContainer.cs b/Scripts/Items/Addons/BaseAddonContainer.cs
index 6183b3ecb..43528727b 100644
--- a/Scripts/Items/Addons/BaseAddonContainer.cs
+++ b/Scripts/Items/Addons/BaseAddonContainer.cs
@@ -11,10 +11,7 @@ namespace Server.Items
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get
- {
- return base.Hue;
- }
+ get => base.Hue;
set
{
if ( base.Hue != value )
@@ -37,7 +34,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get { return m_Resource; }
+ get => m_Resource;
set
{
if ( m_Resource != value )
@@ -50,10 +47,7 @@ namespace Server.Items
}
}
- Item IAddon.Deed
- {
- get { return this.Deed; }
- }
+ Item IAddon.Deed => this.Deed;
public virtual bool RetainDeedHue => false;
public virtual bool NeedsWall => false;
@@ -63,10 +57,7 @@ namespace Server.Items
private List m_Components;
- public List Components
- {
- get { return m_Components; }
- }
+ public List Components => m_Components;
public BaseAddonContainer( int itemID ) : base( itemID )
{
diff --git a/Scripts/Items/Addons/BaseAddonContainerDeed.cs b/Scripts/Items/Addons/BaseAddonContainerDeed.cs
index 78520cdf6..45c78d868 100644
--- a/Scripts/Items/Addons/BaseAddonContainerDeed.cs
+++ b/Scripts/Items/Addons/BaseAddonContainerDeed.cs
@@ -15,7 +15,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set
{
if ( m_Resource != value )
diff --git a/Scripts/Items/Addons/BaseAddonDeed.cs b/Scripts/Items/Addons/BaseAddonDeed.cs
index 63c487c24..c88b78ced 100644
--- a/Scripts/Items/Addons/BaseAddonDeed.cs
+++ b/Scripts/Items/Addons/BaseAddonDeed.cs
@@ -15,7 +15,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set
{
if ( m_Resource != value )
diff --git a/Scripts/Items/Addons/DartBoard.cs b/Scripts/Items/Addons/DartBoard.cs
index e45a55387..b6f4eabc8 100644
--- a/Scripts/Items/Addons/DartBoard.cs
+++ b/Scripts/Items/Addons/DartBoard.cs
@@ -7,7 +7,7 @@ namespace Server.Items
public override bool NeedsWall => true;
public override Point3D WallPosition => this.East ? new Point3D( -1, 0, 0 ) : new Point3D( 0, -1, 0 );
- public bool East{ get{ return this.ItemID == 0x1E2F; } }
+ public bool East => this.ItemID == 0x1E2F;
[Constructible]
public DartBoard() : this( true )
diff --git a/Scripts/Items/Addons/ElvenSpinningwheelEastAddon.cs b/Scripts/Items/Addons/ElvenSpinningwheelEastAddon.cs
index 22fb79a49..1fcc079ed 100644
--- a/Scripts/Items/Addons/ElvenSpinningwheelEastAddon.cs
+++ b/Scripts/Items/Addons/ElvenSpinningwheelEastAddon.cs
@@ -42,7 +42,7 @@ namespace Server.Items
}
}
- public bool Spinning{ get{ return m_Timer != null; } }
+ public bool Spinning => m_Timer != null;
public void BeginSpin( SpinCallback callback, Mobile from, int hue )
{
diff --git a/Scripts/Items/Addons/ElvenSpinningwheelSouthAddon.cs b/Scripts/Items/Addons/ElvenSpinningwheelSouthAddon.cs
index 8ed3468ed..227b355eb 100644
--- a/Scripts/Items/Addons/ElvenSpinningwheelSouthAddon.cs
+++ b/Scripts/Items/Addons/ElvenSpinningwheelSouthAddon.cs
@@ -43,7 +43,7 @@ namespace Server.Items
}
}
- public bool Spinning{ get{ return m_Timer != null; } }
+ public bool Spinning => m_Timer != null;
public void BeginSpin( SpinCallback callback, Mobile from, int hue )
{
diff --git a/Scripts/Items/Addons/FireColumnAddon.cs b/Scripts/Items/Addons/FireColumnAddon.cs
index 892f54cfc..7ae634688 100644
--- a/Scripts/Items/Addons/FireColumnAddon.cs
+++ b/Scripts/Items/Addons/FireColumnAddon.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class FireColumnAddon : BaseAddon
{
- public override bool ShareHue
- {
- get { return false; }
- }
+ public override bool ShareHue => false;
[Constructible]
public FireColumnAddon()
diff --git a/Scripts/Items/Addons/FlourMillEastAddon.cs b/Scripts/Items/Addons/FlourMillEastAddon.cs
index 7187e0130..8e97245e1 100644
--- a/Scripts/Items/Addons/FlourMillEastAddon.cs
+++ b/Scripts/Items/Addons/FlourMillEastAddon.cs
@@ -25,35 +25,23 @@ namespace Server.Items
private Timer m_Timer;
[CommandProperty( AccessLevel.GameMaster )]
- public int MaxFlour
- {
- get{ return 2; }
- }
+ public int MaxFlour => 2;
[CommandProperty( AccessLevel.GameMaster )]
public int CurFlour
{
- get{ return m_Flour; }
+ get => m_Flour;
set{ m_Flour = Math.Max( 0, Math.Min( value, MaxFlour ) ); UpdateStage(); }
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool HasFlour
- {
- get{ return ( m_Flour > 0 ); }
- }
+ public bool HasFlour => ( m_Flour > 0 );
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsFull
- {
- get{ return ( m_Flour >= MaxFlour ); }
- }
+ public bool IsFull => ( m_Flour >= MaxFlour );
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsWorking
- {
- get{ return ( m_Timer != null ); }
- }
+ public bool IsWorking => ( m_Timer != null );
public void StartWorking( Mobile from )
{
diff --git a/Scripts/Items/Addons/FlourMillSouthAddon.cs b/Scripts/Items/Addons/FlourMillSouthAddon.cs
index bbc232691..a2fc7d3fa 100644
--- a/Scripts/Items/Addons/FlourMillSouthAddon.cs
+++ b/Scripts/Items/Addons/FlourMillSouthAddon.cs
@@ -11,35 +11,23 @@ namespace Server.Items
private Timer m_Timer;
[CommandProperty( AccessLevel.GameMaster )]
- public int MaxFlour
- {
- get{ return 2; }
- }
+ public int MaxFlour => 2;
[CommandProperty( AccessLevel.GameMaster )]
public int CurFlour
{
- get{ return m_Flour; }
+ get => m_Flour;
set{ m_Flour = Math.Max( 0, Math.Min( value, MaxFlour ) ); UpdateStage(); }
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool HasFlour
- {
- get{ return ( m_Flour > 0 ); }
- }
+ public bool HasFlour => ( m_Flour > 0 );
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsFull
- {
- get{ return ( m_Flour >= MaxFlour ); }
- }
+ public bool IsFull => ( m_Flour >= MaxFlour );
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsWorking
- {
- get{ return ( m_Timer != null ); }
- }
+ public bool IsWorking => ( m_Timer != null );
public void StartWorking( Mobile from )
{
diff --git a/Scripts/Items/Addons/JackOLantern.cs b/Scripts/Items/Addons/JackOLantern.cs
index 251186551..74814eb21 100644
--- a/Scripts/Items/Addons/JackOLantern.cs
+++ b/Scripts/Items/Addons/JackOLantern.cs
@@ -4,10 +4,7 @@ namespace Server.Items
{
public class JackOLantern : BaseAddon
{
- public override bool ShareHue
- {
- get { return false; }
- }
+ public override bool ShareHue => false;
private AddonComponent GetComponent( int itemID, int hue )
{
diff --git a/Scripts/Items/Addons/LoomEastAddon.cs b/Scripts/Items/Addons/LoomEastAddon.cs
index 8883201cc..7767f522f 100644
--- a/Scripts/Items/Addons/LoomEastAddon.cs
+++ b/Scripts/Items/Addons/LoomEastAddon.cs
@@ -11,7 +11,9 @@ namespace Server.Items
private int m_Phase;
- public int Phase{ get{ return m_Phase; } set{ m_Phase = value; } }
+ public int Phase{ get => m_Phase;
+ set => m_Phase = value;
+ }
[Constructible]
public LoomEastAddon()
diff --git a/Scripts/Items/Addons/LoomSouthAddon.cs b/Scripts/Items/Addons/LoomSouthAddon.cs
index 581a2f3fa..82db51cfb 100644
--- a/Scripts/Items/Addons/LoomSouthAddon.cs
+++ b/Scripts/Items/Addons/LoomSouthAddon.cs
@@ -6,7 +6,9 @@ namespace Server.Items
private int m_Phase;
- public int Phase{ get{ return m_Phase; } set{ m_Phase = value; } }
+ public int Phase{ get => m_Phase;
+ set => m_Phase = value;
+ }
[Constructible]
public LoomSouthAddon()
diff --git a/Scripts/Items/Addons/PickpocketDips.cs b/Scripts/Items/Addons/PickpocketDips.cs
index 7d1ec428d..ccb97578a 100644
--- a/Scripts/Items/Addons/PickpocketDips.cs
+++ b/Scripts/Items/Addons/PickpocketDips.cs
@@ -13,22 +13,19 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public double MinSkill
{
- get{ return m_MinSkill; }
- set{ m_MinSkill = value; }
+ get => m_MinSkill;
+ set => m_MinSkill = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public double MaxSkill
{
- get{ return m_MaxSkill; }
- set{ m_MaxSkill = value; }
+ get => m_MaxSkill;
+ set => m_MaxSkill = value;
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool Swinging
- {
- get{ return ( m_Timer != null ); }
- }
+ public bool Swinging => ( m_Timer != null );
public PickpocketDip( int itemID ) : base( itemID )
{
diff --git a/Scripts/Items/Addons/PyramidAddon.cs b/Scripts/Items/Addons/PyramidAddon.cs
index b6c27094f..dfbc148b8 100644
--- a/Scripts/Items/Addons/PyramidAddon.cs
+++ b/Scripts/Items/Addons/PyramidAddon.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class PyramidAddon : BaseAddon
{
- public override bool ShareHue
- {
- get { return false; }
- }
+ public override bool ShareHue => false;
[Constructible]
public PyramidAddon()
diff --git a/Scripts/Items/Addons/SHTeleporter.cs b/Scripts/Items/Addons/SHTeleporter.cs
index 345799e9c..8d1e56938 100644
--- a/Scripts/Items/Addons/SHTeleporter.cs
+++ b/Scripts/Items/Addons/SHTeleporter.cs
@@ -12,7 +12,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool Active
{
- get { return m_Active; }
+ get => m_Active;
set
{
m_Active = value;
@@ -25,21 +25,21 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Point3D TeleOffset
{
- get { return m_TeleOffset; }
- set { m_TeleOffset = value; }
+ get => m_TeleOffset;
+ set => m_TeleOffset = value;
}
[CommandProperty(AccessLevel.GameMaster)]
public Point3D TelePoint
{
- get { return new Point3D( Location.X + TeleOffset.X, Location.Y + TeleOffset.Y, Location.Z + TeleOffset.Z ); }
- set { m_TeleOffset = new Point3D( value.X - Location.X, value.Y - Location.Y, value.Z - Location.Z ); }
+ get => new Point3D( Location.X + TeleOffset.X, Location.Y + TeleOffset.Y, Location.Z + TeleOffset.Z );
+ set => m_TeleOffset = new Point3D( value.X - Location.X, value.Y - Location.Y, value.Z - Location.Z );
}
[CommandProperty( AccessLevel.GameMaster )]
public SHTeleComponent TeleDest
{
- get { return m_TeleDest; }
+ get => m_TeleDest;
set
{
m_TeleDest = value;
@@ -49,10 +49,7 @@ namespace Server.Items
}
}
- public override string DefaultName
- {
- get { return "a hole"; }
- }
+ public override string DefaultName => "a hole";
[Constructible]
public SHTeleComponent() : this( 0x1775 )
diff --git a/Scripts/Items/Addons/SpinningwheelEastAddon.cs b/Scripts/Items/Addons/SpinningwheelEastAddon.cs
index 5e7630fc2..ee54fd219 100644
--- a/Scripts/Items/Addons/SpinningwheelEastAddon.cs
+++ b/Scripts/Items/Addons/SpinningwheelEastAddon.cs
@@ -51,7 +51,7 @@ namespace Server.Items
}
}
- public bool Spinning{ get{ return m_Timer != null; } }
+ public bool Spinning => m_Timer != null;
public void BeginSpin( SpinCallback callback, Mobile from, int hue )
{
diff --git a/Scripts/Items/Addons/SpinningwheelSouthAddon.cs b/Scripts/Items/Addons/SpinningwheelSouthAddon.cs
index 843663708..1bedeaa18 100644
--- a/Scripts/Items/Addons/SpinningwheelSouthAddon.cs
+++ b/Scripts/Items/Addons/SpinningwheelSouthAddon.cs
@@ -43,7 +43,7 @@ namespace Server.Items
}
}
- public bool Spinning{ get{ return m_Timer != null; } }
+ public bool Spinning => m_Timer != null;
public void BeginSpin( SpinCallback callback, Mobile from, int hue )
{
diff --git a/Scripts/Items/Addons/TrainingDummies.cs b/Scripts/Items/Addons/TrainingDummies.cs
index 87bd6a4c2..370519f8f 100644
--- a/Scripts/Items/Addons/TrainingDummies.cs
+++ b/Scripts/Items/Addons/TrainingDummies.cs
@@ -13,22 +13,19 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public double MinSkill
{
- get{ return m_MinSkill; }
- set{ m_MinSkill = value; }
+ get => m_MinSkill;
+ set => m_MinSkill = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public double MaxSkill
{
- get{ return m_MaxSkill; }
- set{ m_MaxSkill = value; }
+ get => m_MaxSkill;
+ set => m_MaxSkill = value;
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool Swinging
- {
- get{ return ( m_Timer != null ); }
- }
+ public bool Swinging => ( m_Timer != null );
[Constructible]
public TrainingDummy() : this( 0x1074 )
diff --git a/Scripts/Items/Addons/WaterTroughEastAddon.cs b/Scripts/Items/Addons/WaterTroughEastAddon.cs
index 47abbc1d2..c8cd87808 100644
--- a/Scripts/Items/Addons/WaterTroughEastAddon.cs
+++ b/Scripts/Items/Addons/WaterTroughEastAddon.cs
@@ -31,7 +31,7 @@ namespace Server.Items
public int Quantity
{
- get{ return 500; }
+ get => 500;
set{}
}
}
diff --git a/Scripts/Items/Addons/WaterTroughSouthAddon.cs b/Scripts/Items/Addons/WaterTroughSouthAddon.cs
index 920f3100c..75c6a62bc 100644
--- a/Scripts/Items/Addons/WaterTroughSouthAddon.cs
+++ b/Scripts/Items/Addons/WaterTroughSouthAddon.cs
@@ -31,7 +31,7 @@ namespace Server.Items
public int Quantity
{
- get{ return 500; }
+ get => 500;
set{}
}
}
diff --git a/Scripts/Items/Aquarium/Aquarium.cs b/Scripts/Items/Aquarium/Aquarium.cs
index ca8657c4a..6f2df6663 100644
--- a/Scripts/Items/Aquarium/Aquarium.cs
+++ b/Scripts/Items/Aquarium/Aquarium.cs
@@ -14,10 +14,7 @@ namespace Server.Items
private int m_LiveCreatures;
[CommandProperty( AccessLevel.GameMaster )]
- public int LiveCreatures
- {
- get{ return m_LiveCreatures; }
- }
+ public int LiveCreatures => m_LiveCreatures;
[CommandProperty( AccessLevel.GameMaster )]
public int DeadCreatures
@@ -57,10 +54,7 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsFull
- {
- get{ return ( Items.Count >= MaxItems ); }
- }
+ public bool IsFull => ( Items.Count >= MaxItems );
// vacation info
private int m_VacationLeft;
@@ -68,7 +62,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int VacationLeft
{
- get{ return m_VacationLeft; }
+ get => m_VacationLeft;
set{ m_VacationLeft = value; InvalidateProperties(); }
}
@@ -79,37 +73,31 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public AquariumState Food
{
- get{ return m_Food; }
+ get => m_Food;
set{ m_Food = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public AquariumState Water
{
- get{ return m_Water; }
+ get => m_Water;
set{ m_Water = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool OptimalState
- {
- get{ return ( m_Food.State == (int) FoodState.Full && m_Water.State == (int) WaterState.Strong ); }
- }
+ public bool OptimalState => ( m_Food.State == (int) FoodState.Full && m_Water.State == (int) WaterState.Strong );
// events
private List m_Events;
private bool m_RewardAvailable;
private bool m_EvaluateDay;
- public List Events
- {
- get{ return m_Events; }
- }
+ public List Events => m_Events;
[CommandProperty( AccessLevel.GameMaster )]
public bool RewardAvailable
{
- get{ return m_RewardAvailable; }
+ get => m_RewardAvailable;
set{ m_RewardAvailable = value; InvalidateProperties(); }
}
@@ -941,10 +929,8 @@ namespace Server.Items
0x1C2, 0x1C3, 0x2A3, 0x47E, 0x51D
};
- public static int[] FishHues
- {
- get{ return m_FishHues; }
- }
+ public static int[] FishHues => m_FishHues;
+
#endregion
#region Context entries
diff --git a/Scripts/Items/Aquarium/AquariumState.cs b/Scripts/Items/Aquarium/AquariumState.cs
index d7920e19d..bb6290b65 100644
--- a/Scripts/Items/Aquarium/AquariumState.cs
+++ b/Scripts/Items/Aquarium/AquariumState.cs
@@ -29,7 +29,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int State
{
- get{ return m_State; }
+ get => m_State;
set
{
m_State = value;
@@ -45,22 +45,22 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Maintain
{
- get{ return m_Maintain; }
- set{ m_Maintain = value; }
+ get => m_Maintain;
+ set => m_Maintain = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Improve
{
- get{ return m_Improve; }
- set{ m_Improve = value; }
+ get => m_Improve;
+ set => m_Improve = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Added
{
- get{ return m_Added; }
- set{ m_Added = value; }
+ get => m_Added;
+ set => m_Added = value;
}
public AquariumState()
diff --git a/Scripts/Items/Aquarium/BaseFish.cs b/Scripts/Items/Aquarium/BaseFish.cs
index b5d702bd3..1a6e7f010 100644
--- a/Scripts/Items/Aquarium/BaseFish.cs
+++ b/Scripts/Items/Aquarium/BaseFish.cs
@@ -9,10 +9,7 @@ namespace Server.Items
private Timer m_Timer;
[CommandProperty( AccessLevel.GameMaster )]
- public bool Dead
- {
- get{ return ( ItemID == 0x3B0C ); }
- }
+ public bool Dead => ( ItemID == 0x3B0C );
[Constructible]
public BaseFish( int itemID ) : base( itemID )
diff --git a/Scripts/Items/Aquarium/FishBowl.cs b/Scripts/Items/Aquarium/FishBowl.cs
index 7bfbc7d44..c983c3edc 100644
--- a/Scripts/Items/Aquarium/FishBowl.cs
+++ b/Scripts/Items/Aquarium/FishBowl.cs
@@ -9,10 +9,7 @@ namespace Server.Items
public override int LabelNumber => 1074499; // A fish bowl
[CommandProperty( AccessLevel.GameMaster )]
- public bool Empty
- {
- get{ return ( Items.Count == 0 ); }
- }
+ public bool Empty => ( Items.Count == 0 );
[CommandProperty( AccessLevel.GameMaster )]
public BaseFish Fish
diff --git a/Scripts/Items/Armor/BaseArmor.cs b/Scripts/Items/Armor/BaseArmor.cs
index ae5e952e8..d984c1625 100644
--- a/Scripts/Items/Armor/BaseArmor.cs
+++ b/Scripts/Items/Armor/BaseArmor.cs
@@ -16,7 +16,7 @@ namespace Server.Items
public FactionItem FactionItemState
{
- get{ return m_FactionState; }
+ get => m_FactionState;
set
{
m_FactionState = value;
@@ -68,35 +68,35 @@ namespace Server.Items
private AMA m_Meditate = (AMA)(-1);
- public virtual bool AllowMaleWearer{ get{ return true; } }
- public virtual bool AllowFemaleWearer{ get{ return true; } }
+ public virtual bool AllowMaleWearer => true;
+ public virtual bool AllowFemaleWearer => true;
public abstract AMT MaterialType{ get; }
- public virtual int RevertArmorBase{ get{ return ArmorBase; } }
- public virtual int ArmorBase{ get{ return 0; } }
+ public virtual int RevertArmorBase => ArmorBase;
+ public virtual int ArmorBase => 0;
- public virtual AMA DefMedAllowance{ get{ return AMA.None; } }
- public virtual AMA AosMedAllowance{ get{ return DefMedAllowance; } }
- public virtual AMA OldMedAllowance{ get{ return DefMedAllowance; } }
+ public virtual AMA DefMedAllowance => AMA.None;
+ public virtual AMA AosMedAllowance => DefMedAllowance;
+ public virtual AMA OldMedAllowance => DefMedAllowance;
- public virtual int AosStrBonus{ get{ return 0; } }
- public virtual int AosDexBonus{ get{ return 0; } }
- public virtual int AosIntBonus{ get{ return 0; } }
- public virtual int AosStrReq{ get{ return 0; } }
- public virtual int AosDexReq{ get{ return 0; } }
- public virtual int AosIntReq{ get{ return 0; } }
+ public virtual int AosStrBonus => 0;
+ public virtual int AosDexBonus => 0;
+ public virtual int AosIntBonus => 0;
+ public virtual int AosStrReq => 0;
+ public virtual int AosDexReq => 0;
+ public virtual int AosIntReq => 0;
- public virtual int OldStrBonus{ get{ return 0; } }
- public virtual int OldDexBonus{ get{ return 0; } }
- public virtual int OldIntBonus{ get{ return 0; } }
- public virtual int OldStrReq{ get{ return 0; } }
- public virtual int OldDexReq{ get{ return 0; } }
- public virtual int OldIntReq{ get{ return 0; } }
+ public virtual int OldStrBonus => 0;
+ public virtual int OldDexBonus => 0;
+ public virtual int OldIntBonus => 0;
+ public virtual int OldStrReq => 0;
+ public virtual int OldDexReq => 0;
+ public virtual int OldIntReq => 0;
- public virtual bool CanFortify{ get{ return true; } }
+ public virtual bool CanFortify => true;
public override void OnAfterDuped( Item newItem )
{
@@ -111,8 +111,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public AMA MeditationAllowance
{
- get{ return ( m_Meditate == (AMA)(-1) ? Core.AOS ? AosMedAllowance : OldMedAllowance : m_Meditate ); }
- set{ m_Meditate = value; }
+ get => ( m_Meditate == (AMA)(-1) ? Core.AOS ? AosMedAllowance : OldMedAllowance : m_Meditate );
+ set => m_Meditate = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -130,13 +130,7 @@ namespace Server.Items
}
}
- public double BaseArmorRatingScaled
- {
- get
- {
- return ( BaseArmorRating * ArmorScalar );
- }
- }
+ public double BaseArmorRatingScaled => ( BaseArmorRating * ArmorScalar );
public virtual double ArmorRating
{
@@ -167,77 +161,68 @@ namespace Server.Items
}
}
- public double ArmorRatingScaled
- {
- get
- {
- return ( ArmorRating * ArmorScalar );
- }
- }
+ public double ArmorRatingScaled => ( ArmorRating * ArmorScalar );
[CommandProperty( AccessLevel.GameMaster )]
public int StrBonus
{
- get{ return ( m_StrBonus == -1 ? Core.AOS ? AosStrBonus : OldStrBonus : m_StrBonus ); }
+ get => ( m_StrBonus == -1 ? Core.AOS ? AosStrBonus : OldStrBonus : m_StrBonus );
set{ m_StrBonus = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int DexBonus
{
- get{ return ( m_DexBonus == -1 ? Core.AOS ? AosDexBonus : OldDexBonus : m_DexBonus ); }
+ get => ( m_DexBonus == -1 ? Core.AOS ? AosDexBonus : OldDexBonus : m_DexBonus );
set{ m_DexBonus = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int IntBonus
{
- get{ return ( m_IntBonus == -1 ? Core.AOS ? AosIntBonus : OldIntBonus : m_IntBonus ); }
+ get => ( m_IntBonus == -1 ? Core.AOS ? AosIntBonus : OldIntBonus : m_IntBonus );
set{ m_IntBonus = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int StrRequirement
{
- get{ return ( m_StrReq == -1 ? Core.AOS ? AosStrReq : OldStrReq : m_StrReq ); }
+ get => ( m_StrReq == -1 ? Core.AOS ? AosStrReq : OldStrReq : m_StrReq );
set{ m_StrReq = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int DexRequirement
{
- get{ return ( m_DexReq == -1 ? Core.AOS ? AosDexReq : OldDexReq : m_DexReq ); }
+ get => ( m_DexReq == -1 ? Core.AOS ? AosDexReq : OldDexReq : m_DexReq );
set{ m_DexReq = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int IntRequirement
{
- get{ return ( m_IntReq == -1 ? Core.AOS ? AosIntReq : OldIntReq : m_IntReq ); }
+ get => ( m_IntReq == -1 ? Core.AOS ? AosIntReq : OldIntReq : m_IntReq );
set{ m_IntReq = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Identified
{
- get{ return m_Identified; }
+ get => m_Identified;
set{ m_Identified = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool PlayerConstructed
{
- get{ return m_PlayerConstructed; }
- set{ m_PlayerConstructed = value; }
+ get => m_PlayerConstructed;
+ set => m_PlayerConstructed = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get
- {
- return m_Resource;
- }
+ get => m_Resource;
set
{
if ( m_Resource != value )
@@ -277,17 +262,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int MaxHitPoints
{
- get{ return m_MaxHitPoints; }
+ get => m_MaxHitPoints;
set{ m_MaxHitPoints = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int HitPoints
{
- get
- {
- return m_HitPoints;
- }
+ get => m_HitPoints;
set
{
if ( value != m_HitPoints && MaxHitPoints > 0 )
@@ -308,7 +290,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Crafter
{
- get{ return m_Crafter; }
+ get => m_Crafter;
set{ m_Crafter = value; InvalidateProperties(); }
}
@@ -316,29 +298,23 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public ArmorQuality Quality
{
- get{ return m_Quality; }
+ get => m_Quality;
set{ UnscaleDurability(); m_Quality = value; Invalidate(); InvalidateProperties(); ScaleDurability(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public ArmorDurabilityLevel Durability
{
- get{ return m_Durability; }
+ get => m_Durability;
set{ UnscaleDurability(); m_Durability = value; ScaleDurability(); InvalidateProperties(); }
}
- public virtual int ArtifactRarity
- {
- get{ return 0; }
- }
+ public virtual int ArtifactRarity => 0;
[CommandProperty( AccessLevel.GameMaster )]
public ArmorProtectionLevel ProtectionLevel
{
- get
- {
- return m_Protection;
- }
+ get => m_Protection;
set
{
if ( m_Protection != value )
@@ -356,21 +332,21 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public AosAttributes Attributes
{
- get{ return m_AosAttributes; }
+ get => m_AosAttributes;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosArmorAttributes ArmorAttributes
{
- get{ return m_AosArmorAttributes; }
+ get => m_AosArmorAttributes;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosSkillBonuses SkillBonuses
{
- get{ return m_AosSkillBonuses; }
+ get => m_AosSkillBonuses;
set{}
}
@@ -399,25 +375,30 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public int PhysicalBonus{ get{ return m_PhysicalBonus; } set{ m_PhysicalBonus = value; InvalidateProperties(); } }
+ public int PhysicalBonus{ get => m_PhysicalBonus;
+ set{ m_PhysicalBonus = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int FireBonus{ get{ return m_FireBonus; } set{ m_FireBonus = value; InvalidateProperties(); } }
+ public int FireBonus{ get => m_FireBonus;
+ set{ m_FireBonus = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int ColdBonus{ get{ return m_ColdBonus; } set{ m_ColdBonus = value; InvalidateProperties(); } }
+ public int ColdBonus{ get => m_ColdBonus;
+ set{ m_ColdBonus = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int PoisonBonus{ get{ return m_PoisonBonus; } set{ m_PoisonBonus = value; InvalidateProperties(); } }
+ public int PoisonBonus{ get => m_PoisonBonus;
+ set{ m_PoisonBonus = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int EnergyBonus{ get{ return m_EnergyBonus; } set{ m_EnergyBonus = value; InvalidateProperties(); } }
+ public int EnergyBonus{ get => m_EnergyBonus;
+ set{ m_EnergyBonus = value; InvalidateProperties(); } }
- public virtual int BasePhysicalResistance{ get{ return 0; } }
- public virtual int BaseFireResistance{ get{ return 0; } }
- public virtual int BaseColdResistance{ get{ return 0; } }
- public virtual int BasePoisonResistance{ get{ return 0; } }
- public virtual int BaseEnergyResistance{ get{ return 0; } }
+ public virtual int BasePhysicalResistance => 0;
+ public virtual int BaseFireResistance => 0;
+ public virtual int BaseColdResistance => 0;
+ public virtual int BasePoisonResistance => 0;
+ public virtual int BaseEnergyResistance => 0;
public override int PhysicalResistance => BasePhysicalResistance + GetProtOffset() + GetResourceAttrs().ArmorPhysicalResist + m_PhysicalBonus;
public override int FireResistance => BaseFireResistance + GetProtOffset() + GetResourceAttrs().ArmorFireResist + m_FireBonus;
@@ -425,8 +406,8 @@ namespace Server.Items
public override int PoisonResistance => BasePoisonResistance + GetProtOffset() + GetResourceAttrs().ArmorPoisonResist + m_PoisonBonus;
public override int EnergyResistance => BaseEnergyResistance + GetProtOffset() + GetResourceAttrs().ArmorEnergyResist + m_EnergyBonus;
- public virtual int InitMinHits{ get{ return 0; } }
- public virtual int InitMaxHits{ get{ return 0; } }
+ public virtual int InitMinHits => 0;
+ public virtual int InitMaxHits => 0;
[CommandProperty( AccessLevel.GameMaster )]
public ArmorBodyType BodyPosition
@@ -584,14 +565,8 @@ namespace Server.Items
public static double[] ArmorScalars
{
- get
- {
- return m_ArmorScalars;
- }
- set
- {
- m_ArmorScalars = value;
- }
+ get => m_ArmorScalars;
+ set => m_ArmorScalars = value;
}
public static void ValidateMobile( Mobile m )
@@ -1123,7 +1098,7 @@ namespace Server.Items
m_PlayerConstructed = true; // we don't know, so, assume it's crafted
}
- public virtual CraftResource DefaultResource{ get{ return CraftResource.Iron; } }
+ public virtual CraftResource DefaultResource => CraftResource.Iron;
public BaseArmor( int itemID ) : base( itemID )
{
@@ -1347,7 +1322,7 @@ namespace Server.Items
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get{ return base.Hue; }
+ get => base.Hue;
set{ base.Hue = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Armor/Glasses/ElvenGlasses.cs b/Scripts/Items/Armor/Glasses/ElvenGlasses.cs
index 5e40d988a..a446c226f 100644
--- a/Scripts/Items/Armor/Glasses/ElvenGlasses.cs
+++ b/Scripts/Items/Armor/Glasses/ElvenGlasses.cs
@@ -27,7 +27,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public AosWeaponAttributes WeaponAttributes
{
- get{ return m_AosWeaponAttributes; }
+ get => m_AosWeaponAttributes;
set{}
}
diff --git a/Scripts/Items/Armor/Leather/LeafGloves.cs b/Scripts/Items/Armor/Leather/LeafGloves.cs
index 30981eb6a..448e65b6c 100644
--- a/Scripts/Items/Armor/Leather/LeafGloves.cs
+++ b/Scripts/Items/Armor/Leather/LeafGloves.cs
@@ -83,22 +83,19 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int MaxArcaneCharges
{
- get{ return m_MaxArcaneCharges; }
+ get => m_MaxArcaneCharges;
set{ m_MaxArcaneCharges = value; InvalidateProperties(); Update(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int CurArcaneCharges
{
- get{ return m_CurArcaneCharges; }
+ get => m_CurArcaneCharges;
set{ m_CurArcaneCharges = value; InvalidateProperties(); Update(); }
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsArcane
- {
- get{ return ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 ); }
- }
+ public bool IsArcane => ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 );
public void Update()
{
diff --git a/Scripts/Items/Armor/Leather/LeatherGloves.cs b/Scripts/Items/Armor/Leather/LeatherGloves.cs
index 5a6896125..01a6d5612 100644
--- a/Scripts/Items/Armor/Leather/LeatherGloves.cs
+++ b/Scripts/Items/Armor/Leather/LeatherGloves.cs
@@ -82,22 +82,19 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int MaxArcaneCharges
{
- get{ return m_MaxArcaneCharges; }
+ get => m_MaxArcaneCharges;
set{ m_MaxArcaneCharges = value; InvalidateProperties(); Update(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int CurArcaneCharges
{
- get{ return m_CurArcaneCharges; }
+ get => m_CurArcaneCharges;
set{ m_CurArcaneCharges = value; InvalidateProperties(); Update(); }
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsArcane
- {
- get{ return ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 ); }
- }
+ public bool IsArcane => ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 );
public void Update()
{
diff --git a/Scripts/Items/Body Parts/Head.cs b/Scripts/Items/Body Parts/Head.cs
index 5324a0d49..7dcd1d821 100644
--- a/Scripts/Items/Body Parts/Head.cs
+++ b/Scripts/Items/Body Parts/Head.cs
@@ -17,15 +17,15 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string PlayerName
{
- get { return m_PlayerName; }
- set { m_PlayerName = value; }
+ get => m_PlayerName;
+ set => m_PlayerName = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public HeadType HeadType
{
- get { return m_HeadType; }
- set { m_HeadType = value; }
+ get => m_HeadType;
+ set => m_HeadType = value;
}
public override string DefaultName
diff --git a/Scripts/Items/Books/BaseBook.cs b/Scripts/Items/Books/BaseBook.cs
index 5c0e47477..da8205c05 100644
--- a/Scripts/Items/Books/BaseBook.cs
+++ b/Scripts/Items/Books/BaseBook.cs
@@ -15,14 +15,8 @@ namespace Server.Items
public string[] Lines
{
- get
- {
- return m_Lines;
- }
- set
- {
- m_Lines = value;
- }
+ get => m_Lines;
+ set => m_Lines = value;
}
public BookPageInfo()
@@ -65,34 +59,28 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string Title
{
- get { return m_Title; }
+ get => m_Title;
set { m_Title = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string Author
{
- get { return m_Author; }
+ get => m_Author;
set { m_Author = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Writable
{
- get { return m_Writable; }
- set { m_Writable = value; }
+ get => m_Writable;
+ set => m_Writable = value;
}
[CommandProperty(AccessLevel.GameMaster)]
- public int PagesCount
- {
- get { return m_Pages.Length; }
- }
+ public int PagesCount => m_Pages.Length;
- public BookPageInfo[] Pages
- {
- get { return m_Pages; }
- }
+ public BookPageInfo[] Pages => m_Pages;
[Constructible]
public BaseBook( int itemID ) : this( itemID, 20, true )
@@ -145,7 +133,7 @@ namespace Server.Items
}
}
- public virtual BookContent DefaultContent{ get{ return null; } }
+ public virtual BookContent DefaultContent => null;
public BaseBook( Serial serial ) : base( serial )
{
@@ -463,14 +451,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get
- {
- return m_SecureLevel;
- }
- set
- {
- m_SecureLevel = value;
- }
+ get => m_SecureLevel;
+ set => m_SecureLevel = value;
}
#endregion
diff --git a/Scripts/Items/Books/Defined/BookContent.cs b/Scripts/Items/Books/Defined/BookContent.cs
index 31ebce1ba..9fbef9f47 100644
--- a/Scripts/Items/Books/Defined/BookContent.cs
+++ b/Scripts/Items/Books/Defined/BookContent.cs
@@ -7,10 +7,10 @@ namespace Server.Items
private BookPageInfo[] m_Pages;
- public string Title{ get{ return m_Title; } }
- public string Author{ get{ return m_Author; } }
+ public string Title => m_Title;
+ public string Author => m_Author;
- public BookPageInfo[] Pages{ get{ return m_Pages; } }
+ public BookPageInfo[] Pages => m_Pages;
public BookContent( string title, string author, params BookPageInfo[] pages )
{
diff --git a/Scripts/Items/Champion Artifacts/Shared/DetectiveBoots.cs b/Scripts/Items/Champion Artifacts/Shared/DetectiveBoots.cs
index 06146edbd..ba9835e78 100644
--- a/Scripts/Items/Champion Artifacts/Shared/DetectiveBoots.cs
+++ b/Scripts/Items/Champion Artifacts/Shared/DetectiveBoots.cs
@@ -16,7 +16,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Level
{
- get{ return m_Level; }
+ get => m_Level;
set{ m_Level = Math.Max( Math.Min( 2, value), 0 ); Attributes.BonusInt = 2 + m_Level; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Clothing/BaseClothing.cs b/Scripts/Items/Clothing/BaseClothing.cs
index ee669c1a6..6011940aa 100644
--- a/Scripts/Items/Clothing/BaseClothing.cs
+++ b/Scripts/Items/Clothing/BaseClothing.cs
@@ -27,7 +27,7 @@ namespace Server.Items
public FactionItem FactionItemState
{
- get{ return m_FactionState; }
+ get => m_FactionState;
set
{
m_FactionState = value;
@@ -40,7 +40,7 @@ namespace Server.Items
}
#endregion
- public virtual bool CanFortify{ get{ return true; } }
+ public virtual bool CanFortify => true;
private int m_MaxHitPoints;
private int m_HitPoints;
@@ -58,17 +58,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int MaxHitPoints
{
- get{ return m_MaxHitPoints; }
+ get => m_MaxHitPoints;
set{ m_MaxHitPoints = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int HitPoints
{
- get
- {
- return m_HitPoints;
- }
+ get => m_HitPoints;
set
{
if ( value != m_HitPoints && MaxHitPoints > 0 )
@@ -88,73 +85,73 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Crafter
{
- get{ return m_Crafter; }
+ get => m_Crafter;
set{ m_Crafter = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int StrRequirement
{
- get{ return ( m_StrReq == -1 ? (Core.AOS ? AosStrReq : OldStrReq) : m_StrReq ); }
+ get => ( m_StrReq == -1 ? (Core.AOS ? AosStrReq : OldStrReq) : m_StrReq );
set{ m_StrReq = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public ClothingQuality Quality
{
- get{ return m_Quality; }
+ get => m_Quality;
set{ m_Quality = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool PlayerConstructed
{
- get{ return m_PlayerConstructed; }
- set{ m_PlayerConstructed = value; }
+ get => m_PlayerConstructed;
+ set => m_PlayerConstructed = value;
}
- public virtual CraftResource DefaultResource{ get{ return CraftResource.None; } }
+ public virtual CraftResource DefaultResource => CraftResource.None;
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set{ m_Resource = value; Hue = CraftResources.GetHue( m_Resource ); InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public AosAttributes Attributes
{
- get{ return m_AosAttributes; }
+ get => m_AosAttributes;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosArmorAttributes ClothingAttributes
{
- get{ return m_AosClothingAttributes; }
+ get => m_AosClothingAttributes;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosSkillBonuses SkillBonuses
{
- get{ return m_AosSkillBonuses; }
+ get => m_AosSkillBonuses;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosElementAttributes Resistances
{
- get{ return m_AosResistances; }
+ get => m_AosResistances;
set{}
}
- public virtual int BasePhysicalResistance{ get{ return 0; } }
- public virtual int BaseFireResistance{ get{ return 0; } }
- public virtual int BaseColdResistance{ get{ return 0; } }
- public virtual int BasePoisonResistance{ get{ return 0; } }
- public virtual int BaseEnergyResistance{ get{ return 0; } }
+ public virtual int BasePhysicalResistance => 0;
+ public virtual int BaseFireResistance => 0;
+ public virtual int BaseColdResistance => 0;
+ public virtual int BasePoisonResistance => 0;
+ public virtual int BaseEnergyResistance => 0;
public override int PhysicalResistance => BasePhysicalResistance + m_AosResistances.Physical;
public override int FireResistance => BaseFireResistance + m_AosResistances.Fire;
@@ -162,11 +159,11 @@ namespace Server.Items
public override int PoisonResistance => BasePoisonResistance + m_AosResistances.Poison;
public override int EnergyResistance => BaseEnergyResistance + m_AosResistances.Energy;
- public virtual int ArtifactRarity{ get{ return 0; } }
+ public virtual int ArtifactRarity => 0;
- public virtual int BaseStrBonus{ get{ return 0; } }
- public virtual int BaseDexBonus{ get{ return 0; } }
- public virtual int BaseIntBonus{ get{ return 0; } }
+ public virtual int BaseStrBonus => 0;
+ public virtual int BaseDexBonus => 0;
+ public virtual int BaseIntBonus => 0;
public override bool AllowSecureTrade( Mobile from, Mobile to, Mobile newOwner, bool accepted )
{
@@ -228,15 +225,15 @@ namespace Server.Items
return base.CanEquip( from );
}
- public virtual int AosStrReq{ get{ return 10; } }
- public virtual int OldStrReq{ get{ return 0; } }
+ public virtual int AosStrReq => 10;
+ public virtual int OldStrReq => 0;
- public virtual int InitMinHits{ get{ return 0; } }
- public virtual int InitMaxHits{ get{ return 0; } }
+ public virtual int InitMinHits => 0;
+ public virtual int InitMaxHits => 0;
- public virtual bool AllowMaleWearer{ get{ return true; } }
- public virtual bool AllowFemaleWearer{ get{ return true; } }
- public virtual bool CanBeBlessed{ get{ return true; } }
+ public virtual bool AllowMaleWearer => true;
+ public virtual bool AllowFemaleWearer => true;
+ public virtual bool CanBeBlessed => true;
public int ComputeStatReq( StatType type )
{
diff --git a/Scripts/Items/Clothing/Cloaks.cs b/Scripts/Items/Clothing/Cloaks.cs
index ac9f14e4e..846314958 100644
--- a/Scripts/Items/Clothing/Cloaks.cs
+++ b/Scripts/Items/Clothing/Cloaks.cs
@@ -41,22 +41,19 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int MaxArcaneCharges
{
- get{ return m_MaxArcaneCharges; }
+ get => m_MaxArcaneCharges;
set{ m_MaxArcaneCharges = value; InvalidateProperties(); Update(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int CurArcaneCharges
{
- get{ return m_CurArcaneCharges; }
+ get => m_CurArcaneCharges;
set{ m_CurArcaneCharges = value; InvalidateProperties(); Update(); }
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsArcane
- {
- get{ return ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 ); }
- }
+ public bool IsArcane => ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 );
public void Update()
{
@@ -164,14 +161,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Number
{
- get{ return m_LabelNumber; }
+ get => m_LabelNumber;
set{ m_LabelNumber = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Clothing/Hats.cs b/Scripts/Items/Clothing/Hats.cs
index 567f94e67..2378179bd 100644
--- a/Scripts/Items/Clothing/Hats.cs
+++ b/Scripts/Items/Clothing/Hats.cs
@@ -12,8 +12,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsShipwreckedItem
{
- get { return m_IsShipwreckedItem; }
- set { m_IsShipwreckedItem = value; }
+ get => m_IsShipwreckedItem;
+ set => m_IsShipwreckedItem = value;
}
public BaseHat( int itemID ) : this( itemID, 0 )
@@ -698,10 +698,7 @@ namespace Server.Items
return false;
}
- public override string DefaultName
- {
- get { return "a mask of orcish kin"; }
- }
+ public override string DefaultName => "a mask of orcish kin";
[Constructible]
public OrcishKinMask() : this( 0x8A4 )
diff --git a/Scripts/Items/Clothing/OuterTorso.cs b/Scripts/Items/Clothing/OuterTorso.cs
index 1f3b1eff2..6fd771db2 100644
--- a/Scripts/Items/Clothing/OuterTorso.cs
+++ b/Scripts/Items/Clothing/OuterTorso.cs
@@ -105,10 +105,7 @@ namespace Server.Items
private static TimeSpan m_DefaultDecayTime = TimeSpan.FromMinutes(1.0);
- public override bool DisplayLootType
- {
- get{ return false; }
- }
+ public override bool DisplayLootType => false;
[Constructible]
public DeathRobe()
@@ -241,14 +238,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Number
{
- get{ return m_LabelNumber; }
+ get => m_LabelNumber;
set{ m_LabelNumber = value; InvalidateProperties(); }
}
@@ -366,14 +363,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Number
{
- get{ return m_LabelNumber; }
+ get => m_LabelNumber;
set{ m_LabelNumber = value; InvalidateProperties(); }
}
@@ -491,22 +488,19 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int MaxArcaneCharges
{
- get{ return m_MaxArcaneCharges; }
+ get => m_MaxArcaneCharges;
set{ m_MaxArcaneCharges = value; InvalidateProperties(); Update(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int CurArcaneCharges
{
- get{ return m_CurArcaneCharges; }
+ get => m_CurArcaneCharges;
set{ m_CurArcaneCharges = value; InvalidateProperties(); Update(); }
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsArcane
- {
- get{ return ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 ); }
- }
+ public bool IsArcane => ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 );
public void Update()
{
diff --git a/Scripts/Items/Clothing/Shoes.cs b/Scripts/Items/Clothing/Shoes.cs
index eea9953f8..7962ce1fd 100644
--- a/Scripts/Items/Clothing/Shoes.cs
+++ b/Scripts/Items/Clothing/Shoes.cs
@@ -132,22 +132,19 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int MaxArcaneCharges
{
- get{ return m_MaxArcaneCharges; }
+ get => m_MaxArcaneCharges;
set{ m_MaxArcaneCharges = value; InvalidateProperties(); Update(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int CurArcaneCharges
{
- get{ return m_CurArcaneCharges; }
+ get => m_CurArcaneCharges;
set{ m_CurArcaneCharges = value; InvalidateProperties(); Update(); }
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsArcane
- {
- get{ return ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 ); }
- }
+ public bool IsArcane => ( m_MaxArcaneCharges > 0 && m_CurArcaneCharges >= 0 );
public override void OnSingleClick( Mobile from )
{
diff --git a/Scripts/Items/Construction/Ankhs.cs b/Scripts/Items/Construction/Ankhs.cs
index 7bdb5b8e4..95db23205 100644
--- a/Scripts/Items/Construction/Ankhs.cs
+++ b/Scripts/Items/Construction/Ankhs.cs
@@ -134,7 +134,7 @@ namespace Server.Items
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get{ return base.Hue; }
+ get => base.Hue;
set{ base.Hue = value; if ( m_Item.Hue != value ) m_Item.Hue = value; }
}
@@ -233,7 +233,7 @@ namespace Server.Items
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get{ return base.Hue; }
+ get => base.Hue;
set{ base.Hue = value; if ( m_Item.Hue != value ) m_Item.Hue = value; }
}
@@ -302,7 +302,7 @@ namespace Server.Items
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get{ return base.Hue; }
+ get => base.Hue;
set{ base.Hue = value; if ( m_Item.Hue != value ) m_Item.Hue = value; }
}
@@ -403,7 +403,7 @@ namespace Server.Items
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get{ return base.Hue; }
+ get => base.Hue;
set{ base.Hue = value; if ( m_Item.Hue != value ) m_Item.Hue = value; }
}
diff --git a/Scripts/Items/Construction/Doors/BaseDoor.cs b/Scripts/Items/Construction/Doors/BaseDoor.cs
index c57925c2a..773072e42 100644
--- a/Scripts/Items/Construction/Doors/BaseDoor.cs
+++ b/Scripts/Items/Construction/Doors/BaseDoor.cs
@@ -198,36 +198,21 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool Locked
{
- get
- {
- return m_Locked;
- }
- set
- {
- m_Locked = value;
- }
+ get => m_Locked;
+ set => m_Locked = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public uint KeyValue
{
- get
- {
- return m_KeyValue;
- }
- set
- {
- m_KeyValue = value;
- }
+ get => m_KeyValue;
+ set => m_KeyValue = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Open
{
- get
- {
- return m_Open;
- }
+ get => m_Open;
set
{
if ( m_Open != value )
@@ -317,66 +302,36 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int OpenedID
{
- get
- {
- return m_OpenedID;
- }
- set
- {
- m_OpenedID = value;
- }
+ get => m_OpenedID;
+ set => m_OpenedID = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int ClosedID
{
- get
- {
- return m_ClosedID;
- }
- set
- {
- m_ClosedID = value;
- }
+ get => m_ClosedID;
+ set => m_ClosedID = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int OpenedSound
{
- get
- {
- return m_OpenedSound;
- }
- set
- {
- m_OpenedSound = value;
- }
+ get => m_OpenedSound;
+ set => m_OpenedSound = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int ClosedSound
{
- get
- {
- return m_ClosedSound;
- }
- set
- {
- m_ClosedSound = value;
- }
+ get => m_ClosedSound;
+ set => m_ClosedSound = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Point3D Offset
{
- get
- {
- return m_Offset;
- }
- set
- {
- m_Offset = value;
- }
+ get => m_Offset;
+ set => m_Offset = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -389,13 +344,10 @@ namespace Server.Items
return m_Link;
}
- set
- {
- m_Link = value;
- }
+ set => m_Link = value;
}
- public virtual bool UseChainedFunctionality{ get{ return false; } }
+ public virtual bool UseChainedFunctionality => false;
public List GetChain()
{
diff --git a/Scripts/Items/Construction/Doors/HouseDoors.cs b/Scripts/Items/Construction/Doors/HouseDoors.cs
index 81fa95fa8..2f96bac3c 100644
--- a/Scripts/Items/Construction/Doors/HouseDoors.cs
+++ b/Scripts/Items/Construction/Doors/HouseDoors.cs
@@ -98,15 +98,15 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public DoorFacing Facing
{
- get{ return m_Facing; }
- set{ m_Facing = value; }
+ get => m_Facing;
+ set => m_Facing = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get{ return m_Level; }
- set{ m_Level = value; }
+ get => m_Level;
+ set => m_Level = value;
}
public override void GetContextMenuEntries( Mobile from, List list )
diff --git a/Scripts/Items/Construction/Signs/LocalizedSign.cs b/Scripts/Items/Construction/Signs/LocalizedSign.cs
index 38244d036..96c911c84 100644
--- a/Scripts/Items/Construction/Signs/LocalizedSign.cs
+++ b/Scripts/Items/Construction/Signs/LocalizedSign.cs
@@ -7,7 +7,8 @@ namespace Server.Items
public override int LabelNumber => m_LabelNumber;
[CommandProperty( AccessLevel.GameMaster )]
- public int Number{ get{ return m_LabelNumber; } set{ m_LabelNumber = value; InvalidateProperties(); } }
+ public int Number{ get => m_LabelNumber;
+ set{ m_LabelNumber = value; InvalidateProperties(); } }
[Constructible]
public LocalizedSign( SignType type, SignFacing facing, int labelNumber ) : base( ( 0xB95 + (2 * (int)type) ) + (int)facing )
diff --git a/Scripts/Items/Construction/Signs/SubtextSign.cs b/Scripts/Items/Construction/Signs/SubtextSign.cs
index 5a5ccfdc8..1e6c1a813 100644
--- a/Scripts/Items/Construction/Signs/SubtextSign.cs
+++ b/Scripts/Items/Construction/Signs/SubtextSign.cs
@@ -9,7 +9,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string Subtext
{
- get { return m_Subtext; }
+ get => m_Subtext;
set { m_Subtext = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Containers/BaseTreasureChest.cs b/Scripts/Items/Containers/BaseTreasureChest.cs
index 22552c7bc..34f021510 100644
--- a/Scripts/Items/Containers/BaseTreasureChest.cs
+++ b/Scripts/Items/Containers/BaseTreasureChest.cs
@@ -12,45 +12,27 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public TreasureLevel Level
{
- get
- {
- return m_TreasureLevel;
- }
- set
- {
- m_TreasureLevel = value;
- }
+ get => m_TreasureLevel;
+ set => m_TreasureLevel = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public short MaxSpawnTime
{
- get
- {
- return m_MaxSpawnTime;
- }
- set
- {
- m_MaxSpawnTime = value;
- }
+ get => m_MaxSpawnTime;
+ set => m_MaxSpawnTime = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public short MinSpawnTime
{
- get
- {
- return m_MinSpawnTime;
- }
- set
- {
- m_MinSpawnTime = value;
- }
+ get => m_MinSpawnTime;
+ set => m_MinSpawnTime = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public override bool Locked {
- get { return base.Locked; }
+ get => base.Locked;
set {
if ( base.Locked != value ) {
base.Locked = value;
@@ -61,10 +43,7 @@ namespace Server.Items
}
}
- public override bool IsDecoContainer
- {
- get{ return false; }
- }
+ public override bool IsDecoContainer => false;
public BaseTreasureChest( int itemID ) : this( itemID, TreasureLevel.Level2 )
{
diff --git a/Scripts/Items/Containers/FillableContainers.cs b/Scripts/Items/Containers/FillableContainers.cs
index 249d4c34d..ae3b3f37b 100644
--- a/Scripts/Items/Containers/FillableContainers.cs
+++ b/Scripts/Items/Containers/FillableContainers.cs
@@ -26,13 +26,13 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public FillableContentType ContentType
{
- get { return FillableContent.Lookup( m_Content ); }
- set { Content = FillableContent.Lookup( value ); }
+ get => FillableContent.Lookup( m_Content );
+ set => Content = FillableContent.Lookup( value );
}
public FillableContent Content
{
- get { return m_Content; }
+ get => m_Content;
set
{
if ( m_Content == value )
@@ -701,7 +701,7 @@ namespace Server.Items
public int Level => m_Level;
public Type[] Vendors => m_Vendors;
- public FillableContentType TypeID { get { return Lookup( this ); } }
+ public FillableContentType TypeID => Lookup( this );
public FillableContent( int level, Type[] vendors, FillableEntry[] entries )
{
diff --git a/Scripts/Items/Containers/LockableContainer.cs b/Scripts/Items/Containers/LockableContainer.cs
index cae1284a9..d0ba14985 100644
--- a/Scripts/Items/Containers/LockableContainer.cs
+++ b/Scripts/Items/Containers/LockableContainer.cs
@@ -15,62 +15,35 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Picker
{
- get
- {
- return m_Picker;
- }
- set
- {
- m_Picker = value;
- }
+ get => m_Picker;
+ set => m_Picker = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int MaxLockLevel
{
- get
- {
- return m_MaxLockLevel;
- }
- set
- {
- m_MaxLockLevel = value;
- }
+ get => m_MaxLockLevel;
+ set => m_MaxLockLevel = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int LockLevel
{
- get
- {
- return m_LockLevel;
- }
- set
- {
- m_LockLevel = value;
- }
+ get => m_LockLevel;
+ set => m_LockLevel = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int RequiredSkill
{
- get
- {
- return m_RequiredSkill;
- }
- set
- {
- m_RequiredSkill = value;
- }
+ get => m_RequiredSkill;
+ set => m_RequiredSkill = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public virtual bool Locked
{
- get
- {
- return m_Locked;
- }
+ get => m_Locked;
set
{
m_Locked = value;
@@ -85,35 +58,17 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public uint KeyValue
{
- get
- {
- return m_KeyValue;
- }
- set
- {
- m_KeyValue = value;
- }
+ get => m_KeyValue;
+ set => m_KeyValue = value;
}
- public override bool TrapOnOpen
- {
- get
- {
- return !m_TrapOnLockpick;
- }
- }
+ public override bool TrapOnOpen => !m_TrapOnLockpick;
[CommandProperty( AccessLevel.GameMaster )]
public bool TrapOnLockpick
{
- get
- {
- return m_TrapOnLockpick;
- }
- set
- {
- m_TrapOnLockpick = value;
- }
+ get => m_TrapOnLockpick;
+ set => m_TrapOnLockpick = value;
}
public override void Serialize( GenericWriter writer )
@@ -403,8 +358,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsShipwreckedItem
{
- get { return m_IsShipwreckedItem; }
- set { m_IsShipwreckedItem = value; }
+ get => m_IsShipwreckedItem;
+ set => m_IsShipwreckedItem = value;
}
#endregion
diff --git a/Scripts/Items/Containers/MarkContainer.cs b/Scripts/Items/Containers/MarkContainer.cs
index 8a9497fc8..997619334 100644
--- a/Scripts/Items/Containers/MarkContainer.cs
+++ b/Scripts/Items/Containers/MarkContainer.cs
@@ -68,7 +68,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool AutoLock
{
- get { return m_AutoLock; }
+ get => m_AutoLock;
set
{
m_AutoLock = value;
@@ -81,15 +81,19 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public Map TargetMap { get { return m_TargetMap; } set { m_TargetMap = value; } }
+ public Map TargetMap { get => m_TargetMap;
+ set => m_TargetMap = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Point3D Target { get { return m_Target; } set { m_Target = value; } }
+ public Point3D Target { get => m_Target;
+ set => m_Target = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
public bool Bone
{
- get { return ItemID == 0xECA; }
+ get => ItemID == 0xECA;
set
{
ItemID = value ? 0xECA : 0xE79;
@@ -98,13 +102,12 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public string Description { get { return m_Description; } set { m_Description = value; } }
-
- public override bool IsDecoContainer
- {
- get{ return false; }
+ public string Description { get => m_Description;
+ set => m_Description = value;
}
+ public override bool IsDecoContainer => false;
+
[Constructible]
public MarkContainer() : this( false )
{
@@ -137,7 +140,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public override bool Locked
{
- get { return base.Locked; }
+ get => base.Locked;
set
{
base.Locked = value;
diff --git a/Scripts/Items/Containers/Strongbox.cs b/Scripts/Items/Containers/Strongbox.cs
index 35ad51163..d248d0b29 100644
--- a/Scripts/Items/Containers/Strongbox.cs
+++ b/Scripts/Items/Containers/Strongbox.cs
@@ -24,10 +24,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Owner
{
- get
- {
- return m_Owner;
- }
+ get => m_Owner;
set
{
m_Owner = value;
@@ -91,13 +88,7 @@ namespace Server.Items
}
}
- public override TimeSpan DecayTime
- {
- get
- {
- return TimeSpan.FromMinutes( 30.0 );
- }
- }
+ public override TimeSpan DecayTime => TimeSpan.FromMinutes( 30.0 );
public override void AddNameProperty( ObjectPropertyList list )
{
diff --git a/Scripts/Items/Containers/TrappableContainer.cs b/Scripts/Items/Containers/TrappableContainer.cs
index 843d65ab8..c798abe8b 100644
--- a/Scripts/Items/Containers/TrappableContainer.cs
+++ b/Scripts/Items/Containers/TrappableContainer.cs
@@ -20,43 +20,25 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public TrapType TrapType
{
- get
- {
- return m_TrapType;
- }
- set
- {
- m_TrapType = value;
- }
+ get => m_TrapType;
+ set => m_TrapType = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int TrapPower
{
- get
- {
- return m_TrapPower;
- }
- set
- {
- m_TrapPower = value;
- }
+ get => m_TrapPower;
+ set => m_TrapPower = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int TrapLevel
{
- get
- {
- return m_TrapLevel;
- }
- set
- {
- m_TrapLevel = value;
- }
+ get => m_TrapLevel;
+ set => m_TrapLevel = value;
}
- public virtual bool TrapOnOpen{ get{ return true; } }
+ public virtual bool TrapOnOpen => true;
public TrappableContainer( int itemID ) : base( itemID )
{
diff --git a/Scripts/Items/Containers/TreasureMapChest.cs b/Scripts/Items/Containers/TreasureMapChest.cs
index 1a73830df..4be227e2e 100644
--- a/Scripts/Items/Containers/TreasureMapChest.cs
+++ b/Scripts/Items/Containers/TreasureMapChest.cs
@@ -33,16 +33,22 @@ namespace Server.Items
private List m_Guardians;
[CommandProperty( AccessLevel.GameMaster )]
- public int Level{ get{ return m_Level; } set{ m_Level = value; } }
+ public int Level{ get => m_Level;
+ set => m_Level = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Mobile Owner{ get{ return m_Owner; } set{ m_Owner = value; } }
+ public Mobile Owner{ get => m_Owner;
+ set => m_Owner = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public DateTime DeleteTime{ get{ return m_DeleteTime; } }
+ public DateTime DeleteTime => m_DeleteTime;
[CommandProperty( AccessLevel.GameMaster )]
- public bool Temporary{ get{ return m_Temporary; } set{ m_Temporary = value; } }
+ public bool Temporary{ get => m_Temporary;
+ set => m_Temporary = value;
+ }
public List Guardians => m_Guardians;
@@ -332,10 +338,7 @@ namespace Server.Items
return false;
}
- public override bool IsDecoContainer
- {
- get{ return false; }
- }
+ public override bool IsDecoContainer => false;
public override bool CheckItemUse( Mobile from, Item item )
{
diff --git a/Scripts/Items/Decoration Artifacts/SEDecorationArtifacts.cs b/Scripts/Items/Decoration Artifacts/SEDecorationArtifacts.cs
index ec5f65a4c..e3b31eb16 100644
--- a/Scripts/Items/Decoration Artifacts/SEDecorationArtifacts.cs
+++ b/Scripts/Items/Decoration Artifacts/SEDecorationArtifacts.cs
@@ -1418,8 +1418,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsOn
{
- get{ return this.ItemID == 0x24BF; }
- set{ this.ItemID = value ? 0x24BF : 0x24C0; }
+ get => this.ItemID == 0x24BF;
+ set => this.ItemID = value ? 0x24BF : 0x24C0;
}
[Constructible]
diff --git a/Scripts/Items/Decoration Artifacts/StealableArtifactsSpawner.cs b/Scripts/Items/Decoration Artifacts/StealableArtifactsSpawner.cs
index 48c936d57..ad5904844 100644
--- a/Scripts/Items/Decoration Artifacts/StealableArtifactsSpawner.cs
+++ b/Scripts/Items/Decoration Artifacts/StealableArtifactsSpawner.cs
@@ -15,12 +15,12 @@ namespace Server.Items
private Type m_Type;
private int m_Hue;
- public Map Map{ get{ return m_Map; } }
- public Point3D Location{ get{ return m_Location; } }
- public int MinDelay{ get{ return m_MinDelay; } }
- public int MaxDelay{ get{ return m_MaxDelay; } }
- public Type Type{ get{ return m_Type; } }
- public int Hue{ get{ return m_Hue; } }
+ public Map Map => m_Map;
+ public Point3D Location => m_Location;
+ public int MinDelay => m_MinDelay;
+ public int MaxDelay => m_MaxDelay;
+ public Type Type => m_Type;
+ public int Hue => m_Hue;
public StealableEntry( Map map, Point3D location, int minDelay, int maxDelay, Type type ) : this( map, location, minDelay, maxDelay, type, 0 )
{
@@ -158,7 +158,7 @@ namespace Server.Items
new StealableEntry( Map.Malas, new Point3D( 178, 629, -1 ), 18432, 27648, typeof( ManStatuetteEastArtifact ) )
};
- public static StealableEntry[] Entries{ get{ return m_Entries; } }
+ public static StealableEntry[] Entries => m_Entries;
private static Type[] m_TypesOfEntries = null;
public static Type[] TypesOfEntires
@@ -179,7 +179,7 @@ namespace Server.Items
private static StealableArtifactsSpawner m_Instance;
- public static StealableArtifactsSpawner Instance{ get{ return m_Instance; } }
+ public static StealableArtifactsSpawner Instance => m_Instance;
private static int GetLampPostHue()
{
@@ -254,11 +254,11 @@ namespace Server.Items
private Item m_Item;
private DateTime m_NextRespawn;
- public StealableEntry Entry{ get{ return m_Entry; } }
+ public StealableEntry Entry => m_Entry;
public Item Item
{
- get{ return m_Item; }
+ get => m_Item;
set
{
if ( m_Item != null && value == null )
@@ -282,8 +282,8 @@ namespace Server.Items
public DateTime NextRespawn
{
- get{ return m_NextRespawn; }
- set{ m_NextRespawn = value; }
+ get => m_NextRespawn;
+ set => m_NextRespawn = value;
}
public StealableInstance( StealableEntry entry ) : this( entry, null, DateTime.UtcNow )
@@ -313,10 +313,7 @@ namespace Server.Items
private StealableInstance[] m_Artifacts;
private Hashtable m_Table;
- public override string DefaultName
- {
- get { return "Stealable Artifacts Spawner - Internal"; }
- }
+ public override string DefaultName => "Stealable Artifacts Spawner - Internal";
private StealableArtifactsSpawner() : base( 1 )
{
diff --git a/Scripts/Items/Deeds/BarkeepContract.cs b/Scripts/Items/Deeds/BarkeepContract.cs
index 1e74d3e42..d237595a6 100644
--- a/Scripts/Items/Deeds/BarkeepContract.cs
+++ b/Scripts/Items/Deeds/BarkeepContract.cs
@@ -6,10 +6,7 @@ namespace Server.Items
{
public class BarkeepContract : Item
{
- public override string DefaultName
- {
- get { return "a barkeep contract"; }
- }
+ public override string DefaultName => "a barkeep contract";
[Constructible]
public BarkeepContract() : base( 0x14F0 )
diff --git a/Scripts/Items/Deeds/ClothingBlessDeed.cs b/Scripts/Items/Deeds/ClothingBlessDeed.cs
index d65afb1cc..3782a29c0 100644
--- a/Scripts/Items/Deeds/ClothingBlessDeed.cs
+++ b/Scripts/Items/Deeds/ClothingBlessDeed.cs
@@ -53,10 +53,7 @@ namespace Server.Items
public class ClothingBlessDeed : Item // Create the item class which is derived from the base item class
{
- public override string DefaultName
- {
- get { return "a clothing bless deed"; }
- }
+ public override string DefaultName => "a clothing bless deed";
[Constructible]
public ClothingBlessDeed() : base( 0x14F0 )
diff --git a/Scripts/Items/Deeds/CommodityDeed.cs b/Scripts/Items/Deeds/CommodityDeed.cs
index c6d4d5795..b51cf458f 100644
--- a/Scripts/Items/Deeds/CommodityDeed.cs
+++ b/Scripts/Items/Deeds/CommodityDeed.cs
@@ -14,13 +14,7 @@ namespace Server.Items
private Item m_Commodity;
[CommandProperty( AccessLevel.GameMaster )]
- public Item Commodity
- {
- get
- {
- return m_Commodity;
- }
- }
+ public Item Commodity => m_Commodity;
public bool SetCommodity( Item item )
{
diff --git a/Scripts/Items/Deeds/DragonBardingDeed.cs b/Scripts/Items/Deeds/DragonBardingDeed.cs
index 39ca4412a..547cb29ab 100644
--- a/Scripts/Items/Deeds/DragonBardingDeed.cs
+++ b/Scripts/Items/Deeds/DragonBardingDeed.cs
@@ -14,13 +14,16 @@ namespace Server.Items
public override int LabelNumber => m_Exceptional ? 1053181 : 1053012; // dragon barding deed
[CommandProperty( AccessLevel.GameMaster )]
- public Mobile Crafter{ get{ return m_Crafter; } set{ m_Crafter = value; InvalidateProperties(); } }
+ public Mobile Crafter{ get => m_Crafter;
+ set{ m_Crafter = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public bool Exceptional{ get{ return m_Exceptional; } set{ m_Exceptional = value; InvalidateProperties(); } }
+ public bool Exceptional{ get => m_Exceptional;
+ set{ m_Exceptional = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public CraftResource Resource{ get{ return m_Resource; } set{ m_Resource = value; Hue = CraftResources.GetHue( value ); InvalidateProperties(); } }
+ public CraftResource Resource{ get => m_Resource;
+ set{ m_Resource = value; Hue = CraftResources.GetHue( value ); InvalidateProperties(); } }
public DragonBardingDeed() : base( 0x14F0 )
{
diff --git a/Scripts/Items/Deeds/NameChangeDeed.cs b/Scripts/Items/Deeds/NameChangeDeed.cs
index f78face87..f8126f4b7 100644
--- a/Scripts/Items/Deeds/NameChangeDeed.cs
+++ b/Scripts/Items/Deeds/NameChangeDeed.cs
@@ -7,10 +7,7 @@ namespace Server.Items
{
public class NameChangeDeed : Item
{
- public override string DefaultName
- {
- get { return "a name change deed"; }
- }
+ public override string DefaultName => "a name change deed";
[Constructible]
public NameChangeDeed() : base( 0x14F0 )
diff --git a/Scripts/Items/Deeds/NewPlayerTicket.cs b/Scripts/Items/Deeds/NewPlayerTicket.cs
index 1f28d7815..25be54ead 100644
--- a/Scripts/Items/Deeds/NewPlayerTicket.cs
+++ b/Scripts/Items/Deeds/NewPlayerTicket.cs
@@ -11,8 +11,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Owner
{
- get{ return m_Owner; }
- set{ m_Owner = value; }
+ get => m_Owner;
+ set => m_Owner = value;
}
public override int LabelNumber => 1062094; // a young player ticket
diff --git a/Scripts/Items/Deeds/VendorRentalContract.cs b/Scripts/Items/Deeds/VendorRentalContract.cs
index 6aacdd143..8ef1a997b 100644
--- a/Scripts/Items/Deeds/VendorRentalContract.cs
+++ b/Scripts/Items/Deeds/VendorRentalContract.cs
@@ -21,7 +21,7 @@ namespace Server.Items
public VendorRentalDuration Duration
{
- get{ return m_Duration; }
+ get => m_Duration;
set
{
if ( value != null )
@@ -32,20 +32,20 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Price
{
- get{ return m_Price; }
- set{ m_Price = value; }
+ get => m_Price;
+ set => m_Price = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool LandlordRenew
{
- get{ return m_LandlordRenew; }
- set{ m_LandlordRenew = value; }
+ get => m_LandlordRenew;
+ set => m_LandlordRenew = value;
}
public Mobile Offeree
{
- get{ return m_Offeree; }
+ get => m_Offeree;
set
{
if ( m_OfferExpireTimer != null )
diff --git a/Scripts/Items/Food/Beverage.cs b/Scripts/Items/Food/Beverage.cs
index c97b80b83..bbdba64fa 100644
--- a/Scripts/Items/Food/Beverage.cs
+++ b/Scripts/Items/Food/Beverage.cs
@@ -565,7 +565,7 @@ namespace Server.Items
}
}
- public virtual bool ShowQuantity { get { return ( MaxQuantity > 1 ); } }
+ public virtual bool ShowQuantity => ( MaxQuantity > 1 );
public virtual bool Fillable => true;
public virtual bool Pourable => true;
@@ -577,41 +577,32 @@ namespace Server.Items
public abstract int ComputeItemID();
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsEmpty
- {
- get { return ( m_Quantity <= 0 ); }
- }
+ public bool IsEmpty => ( m_Quantity <= 0 );
[CommandProperty( AccessLevel.GameMaster )]
- public bool ContainsAlchohol
- {
- get { return ( !IsEmpty && m_Content != BeverageType.Milk && m_Content != BeverageType.Water ); }
- }
+ public bool ContainsAlchohol => ( !IsEmpty && m_Content != BeverageType.Milk && m_Content != BeverageType.Water );
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsFull
- {
- get { return ( m_Quantity >= MaxQuantity ); }
- }
+ public bool IsFull => ( m_Quantity >= MaxQuantity );
[CommandProperty( AccessLevel.GameMaster )]
public Poison Poison
{
- get { return m_Poison; }
- set { m_Poison = value; }
+ get => m_Poison;
+ set => m_Poison = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Poisoner
{
- get { return m_Poisoner; }
- set { m_Poisoner = value; }
+ get => m_Poisoner;
+ set => m_Poisoner = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public BeverageType Content
{
- get { return m_Content; }
+ get => m_Content;
set
{
m_Content = value;
@@ -630,7 +621,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Quantity
{
- get { return m_Quantity; }
+ get => m_Quantity;
set
{
if ( value < 0 )
diff --git a/Scripts/Items/Food/CookableFood.cs b/Scripts/Items/Food/CookableFood.cs
index ec07ff3a3..268d45b05 100644
--- a/Scripts/Items/Food/CookableFood.cs
+++ b/Scripts/Items/Food/CookableFood.cs
@@ -10,14 +10,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int CookingLevel
{
- get
- {
- return m_CookingLevel;
- }
- set
- {
- m_CookingLevel = value;
- }
+ get => m_CookingLevel;
+ set => m_CookingLevel = value;
}
public CookableFood( int itemID, int cookingLevel ) : base( itemID )
@@ -706,10 +700,7 @@ namespace Server.Items
// ********** BrightlyColoredEggs **********
public class BrightlyColoredEggs : CookableFood
{
- public override string DefaultName
- {
- get { return "brightly colored eggs"; }
- }
+ public override string DefaultName => "brightly colored eggs";
[Constructible]
public BrightlyColoredEggs() : base( 0x9B5, 15 )
@@ -848,10 +839,7 @@ namespace Server.Items
public class RawFishSteak : CookableFood
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public RawFishSteak() : this( 1 )
diff --git a/Scripts/Items/Food/Cooking.cs b/Scripts/Items/Food/Cooking.cs
index edca74825..4f9fc7d89 100644
--- a/Scripts/Items/Food/Cooking.cs
+++ b/Scripts/Items/Food/Cooking.cs
@@ -410,7 +410,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Quantity
{
- get{ return m_Quantity; }
+ get => m_Quantity;
set
{
m_Quantity = Math.Min(20, Math.Max(0, value));
diff --git a/Scripts/Items/Food/Food.cs b/Scripts/Items/Food/Food.cs
index 4e54c3c0b..78600043e 100644
--- a/Scripts/Items/Food/Food.cs
+++ b/Scripts/Items/Food/Food.cs
@@ -12,22 +12,22 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Poisoner
{
- get { return m_Poisoner; }
- set { m_Poisoner = value; }
+ get => m_Poisoner;
+ set => m_Poisoner = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Poison Poison
{
- get { return m_Poison; }
- set { m_Poison = value; }
+ get => m_Poison;
+ set => m_Poison = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int FillFactor
{
- get { return m_FillFactor; }
- set { m_FillFactor = value; }
+ get => m_FillFactor;
+ set => m_FillFactor = value;
}
public Food( int itemID ) : this( 1, itemID )
@@ -280,10 +280,7 @@ namespace Server.Items
public class FishSteak : Food
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public FishSteak() : this( 1 )
@@ -317,10 +314,7 @@ namespace Server.Items
public class CheeseWheel : Food
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public CheeseWheel() : this( 1 )
@@ -354,10 +348,7 @@ namespace Server.Items
public class CheeseWedge : Food
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public CheeseWedge() : this( 1 )
@@ -391,10 +382,7 @@ namespace Server.Items
public class CheeseSlice : Food
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public CheeseSlice() : this( 1 )
diff --git a/Scripts/Items/Games/BaseBoard.cs b/Scripts/Items/Games/BaseBoard.cs
index d7083948c..d11b12ac2 100644
--- a/Scripts/Items/Games/BaseBoard.cs
+++ b/Scripts/Items/Games/BaseBoard.cs
@@ -14,8 +14,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get{ return m_Level; }
- set{ m_Level = value; }
+ get => m_Level;
+ set => m_Level = value;
}
public BaseBoard( int itemID ) : base( itemID )
diff --git a/Scripts/Items/Games/BasePiece.cs b/Scripts/Items/Games/BasePiece.cs
index 60a458317..fdb141f2d 100644
--- a/Scripts/Items/Games/BasePiece.cs
+++ b/Scripts/Items/Games/BasePiece.cs
@@ -6,8 +6,8 @@ namespace Server.Items
public BaseBoard Board
{
- get { return m_Board; }
- set { m_Board = value; }
+ get => m_Board;
+ set => m_Board = value;
}
public override bool IsVirtualItem => true;
diff --git a/Scripts/Items/Games/CheckersPieces.cs b/Scripts/Items/Games/CheckersPieces.cs
index 9dc7b0d44..67ee12eb5 100644
--- a/Scripts/Items/Games/CheckersPieces.cs
+++ b/Scripts/Items/Games/CheckersPieces.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class PieceWhiteChecker : BasePiece
{
- public override string DefaultName
- {
- get { return "white checker"; }
- }
+ public override string DefaultName => "white checker";
public PieceWhiteChecker( BaseBoard board ) : base( 0x3584, board )
{
@@ -30,10 +27,7 @@ namespace Server.Items
public class PieceBlackChecker : BasePiece
{
- public override string DefaultName
- {
- get { return "black checker"; }
- }
+ public override string DefaultName => "black checker";
public PieceBlackChecker( BaseBoard board ) : base( 0x358B, board )
{
diff --git a/Scripts/Items/Games/ChessPieces.cs b/Scripts/Items/Games/ChessPieces.cs
index 35e348429..b692b19c3 100644
--- a/Scripts/Items/Games/ChessPieces.cs
+++ b/Scripts/Items/Games/ChessPieces.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class PieceWhiteKing : BasePiece
{
- public override string DefaultName
- {
- get { return "white king"; }
- }
+ public override string DefaultName => "white king";
public PieceWhiteKing( BaseBoard board ) : base( 0x3587, board )
{
@@ -30,10 +27,7 @@ namespace Server.Items
public class PieceBlackKing : BasePiece
{
- public override string DefaultName
- {
- get { return "black king"; }
- }
+ public override string DefaultName => "black king";
public PieceBlackKing( BaseBoard board ) : base( 0x358E, board )
{
@@ -58,10 +52,7 @@ namespace Server.Items
public class PieceWhiteQueen : BasePiece
{
- public override string DefaultName
- {
- get { return "white queen"; }
- }
+ public override string DefaultName => "white queen";
public PieceWhiteQueen( BaseBoard board ) : base( 0x358A, board )
{
@@ -86,10 +77,7 @@ namespace Server.Items
public class PieceBlackQueen : BasePiece
{
- public override string DefaultName
- {
- get { return "black queen"; }
- }
+ public override string DefaultName => "black queen";
public PieceBlackQueen( BaseBoard board ) : base( 0x3591, board )
{
@@ -114,10 +102,7 @@ namespace Server.Items
public class PieceWhiteRook : BasePiece
{
- public override string DefaultName
- {
- get { return "white rook"; }
- }
+ public override string DefaultName => "white rook";
public PieceWhiteRook( BaseBoard board ) : base( 0x3586, board )
{
@@ -142,10 +127,7 @@ namespace Server.Items
public class PieceBlackRook : BasePiece
{
- public override string DefaultName
- {
- get { return "black rook"; }
- }
+ public override string DefaultName => "black rook";
public PieceBlackRook( BaseBoard board ) : base( 0x358D, board )
{
@@ -170,10 +152,7 @@ namespace Server.Items
public class PieceWhiteBishop : BasePiece
{
- public override string DefaultName
- {
- get { return "white bishop"; }
- }
+ public override string DefaultName => "white bishop";
public PieceWhiteBishop( BaseBoard board ) : base( 0x3585, board )
{
@@ -198,10 +177,7 @@ namespace Server.Items
public class PieceBlackBishop : BasePiece
{
- public override string DefaultName
- {
- get { return "black bishop"; }
- }
+ public override string DefaultName => "black bishop";
public PieceBlackBishop( BaseBoard board ) : base( 0x358C, board )
{
@@ -226,10 +202,7 @@ namespace Server.Items
public class PieceWhiteKnight : BasePiece
{
- public override string DefaultName
- {
- get { return "white knight"; }
- }
+ public override string DefaultName => "white knight";
public PieceWhiteKnight( BaseBoard board ) : base( 0x3588, board )
{
@@ -254,10 +227,7 @@ namespace Server.Items
public class PieceBlackKnight : BasePiece
{
- public override string DefaultName
- {
- get { return "black knight"; }
- }
+ public override string DefaultName => "black knight";
public PieceBlackKnight( BaseBoard board ) : base( 0x358F, board )
{
@@ -282,10 +252,7 @@ namespace Server.Items
public class PieceWhitePawn : BasePiece
{
- public override string DefaultName
- {
- get { return "white pawn"; }
- }
+ public override string DefaultName => "white pawn";
public PieceWhitePawn( BaseBoard board ) : base( 0x3589, board )
{
@@ -310,10 +277,7 @@ namespace Server.Items
public class PieceBlackPawn : BasePiece
{
- public override string DefaultName
- {
- get { return "black pawn"; }
- }
+ public override string DefaultName => "black pawn";
public PieceBlackPawn( BaseBoard board ) : base( 0x3590, board )
{
diff --git a/Scripts/Items/Games/Mahjong/MahjongDealerIndicator.cs b/Scripts/Items/Games/Mahjong/MahjongDealerIndicator.cs
index 2c09c3aa0..850b651bd 100644
--- a/Scripts/Items/Games/Mahjong/MahjongDealerIndicator.cs
+++ b/Scripts/Items/Games/Mahjong/MahjongDealerIndicator.cs
@@ -28,10 +28,7 @@ namespace Server.Engines.Mahjong
m_Wind = wind;
}
- public MahjongPieceDim Dimensions
- {
- get { return GetDimensions( m_Position, m_Direction ); }
- }
+ public MahjongPieceDim Dimensions => GetDimensions( m_Position, m_Direction );
public void Move( Point2D position, MahjongPieceDirection direction, MahjongWind wind )
{
diff --git a/Scripts/Items/Games/Mahjong/MahjongGame.cs b/Scripts/Items/Games/Mahjong/MahjongGame.cs
index 1149d2398..353ec2d7d 100644
--- a/Scripts/Items/Games/Mahjong/MahjongGame.cs
+++ b/Scripts/Items/Games/Mahjong/MahjongGame.cs
@@ -31,14 +31,14 @@ namespace Server.Engines.Mahjong
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get{ return m_Level; }
- set{ m_Level = value; }
+ get => m_Level;
+ set => m_Level = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool ShowScores
{
- get { return m_ShowScores; }
+ get => m_ShowScores;
set
{
if ( m_ShowScores == value )
@@ -58,7 +58,7 @@ namespace Server.Engines.Mahjong
[CommandProperty( AccessLevel.GameMaster )]
public bool SpectatorVision
{
- get { return m_SpectatorVision; }
+ get => m_SpectatorVision;
set
{
if ( m_SpectatorVision == value )
diff --git a/Scripts/Items/Games/Mahjong/MahjongTile.cs b/Scripts/Items/Games/Mahjong/MahjongTile.cs
index 7703ab5d5..35231debf 100644
--- a/Scripts/Items/Games/Mahjong/MahjongTile.cs
+++ b/Scripts/Items/Games/Mahjong/MahjongTile.cs
@@ -37,15 +37,9 @@ namespace Server.Engines.Mahjong
m_Flipped = flipped;
}
- public MahjongPieceDim Dimensions
- {
- get { return GetDimensions( m_Position, m_Direction ); }
- }
+ public MahjongPieceDim Dimensions => GetDimensions( m_Position, m_Direction );
- public bool IsMovable
- {
- get { return m_Game.GetStackLevel( Dimensions ) <= m_StackLevel; }
- }
+ public bool IsMovable => m_Game.GetStackLevel( Dimensions ) <= m_StackLevel;
public void Move( Point2D position, MahjongPieceDirection direction, bool flip, int validHandArea )
{
diff --git a/Scripts/Items/Games/Mahjong/MahjongWallBreakIndicator.cs b/Scripts/Items/Games/Mahjong/MahjongWallBreakIndicator.cs
index e2915b769..b4aa34847 100644
--- a/Scripts/Items/Games/Mahjong/MahjongWallBreakIndicator.cs
+++ b/Scripts/Items/Games/Mahjong/MahjongWallBreakIndicator.cs
@@ -19,10 +19,7 @@ namespace Server.Engines.Mahjong
m_Position = position;
}
- public MahjongPieceDim Dimensions
- {
- get { return GetDimensions( m_Position ); }
- }
+ public MahjongPieceDim Dimensions => GetDimensions( m_Position );
public void Move( Point2D position )
{
diff --git a/Scripts/Items/Gems/Amber.cs b/Scripts/Items/Gems/Amber.cs
index 7c87be0a5..a1c3746e2 100644
--- a/Scripts/Items/Gems/Amber.cs
+++ b/Scripts/Items/Gems/Amber.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class Amber : Item
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Amber() : this( 1 )
diff --git a/Scripts/Items/Gems/Amethyst.cs b/Scripts/Items/Gems/Amethyst.cs
index cfbe53c4c..b95ba98a8 100644
--- a/Scripts/Items/Gems/Amethyst.cs
+++ b/Scripts/Items/Gems/Amethyst.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class Amethyst : Item
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Amethyst() : this( 1 )
diff --git a/Scripts/Items/Gems/Citrine.cs b/Scripts/Items/Gems/Citrine.cs
index a735a87f2..b507e15d2 100644
--- a/Scripts/Items/Gems/Citrine.cs
+++ b/Scripts/Items/Gems/Citrine.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class Citrine : Item
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Citrine() : this( 1 )
diff --git a/Scripts/Items/Gems/Diamond.cs b/Scripts/Items/Gems/Diamond.cs
index 09ef46263..229a418bc 100644
--- a/Scripts/Items/Gems/Diamond.cs
+++ b/Scripts/Items/Gems/Diamond.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class Diamond : Item
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Diamond() : this( 1 )
diff --git a/Scripts/Items/Gems/Emerald.cs b/Scripts/Items/Gems/Emerald.cs
index 3f6a58786..5fc727c68 100644
--- a/Scripts/Items/Gems/Emerald.cs
+++ b/Scripts/Items/Gems/Emerald.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class Emerald : Item
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Emerald() : this( 1 )
diff --git a/Scripts/Items/Gems/Ruby.cs b/Scripts/Items/Gems/Ruby.cs
index 480adc620..1f52b38a3 100644
--- a/Scripts/Items/Gems/Ruby.cs
+++ b/Scripts/Items/Gems/Ruby.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class Ruby : Item
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Ruby() : this( 1 )
diff --git a/Scripts/Items/Gems/Sapphire.cs b/Scripts/Items/Gems/Sapphire.cs
index 06c162f12..ef2a16144 100644
--- a/Scripts/Items/Gems/Sapphire.cs
+++ b/Scripts/Items/Gems/Sapphire.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class Sapphire : Item
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Sapphire() : this( 1 )
diff --git a/Scripts/Items/Gems/StarSapphire.cs b/Scripts/Items/Gems/StarSapphire.cs
index 2623f76c2..c4a2bb74a 100644
--- a/Scripts/Items/Gems/StarSapphire.cs
+++ b/Scripts/Items/Gems/StarSapphire.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class StarSapphire : Item
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public StarSapphire() : this( 1 )
diff --git a/Scripts/Items/Gems/Tourmaline.cs b/Scripts/Items/Gems/Tourmaline.cs
index 08ce1f937..1d77eb108 100644
--- a/Scripts/Items/Gems/Tourmaline.cs
+++ b/Scripts/Items/Gems/Tourmaline.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class Tourmaline : Item
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Tourmaline() : this( 1 )
diff --git a/Scripts/Items/Guilds/Guildstone.cs b/Scripts/Items/Guilds/Guildstone.cs
index 0b9f5f8e4..33133a518 100644
--- a/Scripts/Items/Guilds/Guildstone.cs
+++ b/Scripts/Items/Guilds/Guildstone.cs
@@ -16,25 +16,19 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string GuildName
{
- get { return m_GuildName; }
+ get => m_GuildName;
set { m_GuildName = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string GuildAbbrev
{
- get { return m_GuildAbbrev; }
+ get => m_GuildAbbrev;
set { m_GuildAbbrev = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
- public Guild Guild
- {
- get
- {
- return m_Guild;
- }
- }
+ public Guild Guild => m_Guild;
public override int LabelNumber => 1041429; // a guildstone
@@ -228,10 +222,7 @@ namespace Server.Items
}
#region IAddon Members
- public Item Deed
- {
- get { return new GuildstoneDeed( m_Guild, m_GuildName, m_GuildAbbrev ); }
- }
+ public Item Deed => new GuildstoneDeed( m_Guild, m_GuildName, m_GuildAbbrev );
public bool CouldFit( IPoint3D p, Map map )
{
@@ -283,25 +274,19 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string GuildName
{
- get { return m_GuildName; }
+ get => m_GuildName;
set { m_GuildName = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public string GuildAbbrev
{
- get { return m_GuildAbbrev; }
+ get => m_GuildAbbrev;
set { m_GuildAbbrev = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
- public Guild Guild
- {
- get
- {
- return m_Guild;
- }
- }
+ public Guild Guild => m_Guild;
[Constructible]
public GuildstoneDeed() : this( null, null )
diff --git a/Scripts/Items/Jewels/BaseJewel.cs b/Scripts/Items/Jewels/BaseJewel.cs
index 96a2b9bc5..4041bf72f 100644
--- a/Scripts/Items/Jewels/BaseJewel.cs
+++ b/Scripts/Items/Jewels/BaseJewel.cs
@@ -31,17 +31,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int MaxHitPoints
{
- get{ return m_MaxHitPoints; }
+ get => m_MaxHitPoints;
set{ m_MaxHitPoints = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int HitPoints
{
- get
- {
- return m_HitPoints;
- }
+ get => m_HitPoints;
set
{
if ( value != m_HitPoints && MaxHitPoints > 0 )
@@ -61,35 +58,35 @@ namespace Server.Items
[CommandProperty( AccessLevel.Player )]
public AosAttributes Attributes
{
- get{ return m_AosAttributes; }
+ get => m_AosAttributes;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosElementAttributes Resistances
{
- get{ return m_AosResistances; }
+ get => m_AosResistances;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosSkillBonuses SkillBonuses
{
- get{ return m_AosSkillBonuses; }
+ get => m_AosSkillBonuses;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set{ m_Resource = value; Hue = CraftResources.GetHue( m_Resource ); }
}
[CommandProperty( AccessLevel.GameMaster )]
public GemType GemType
{
- get{ return m_GemType; }
+ get => m_GemType;
set{ m_GemType = value; InvalidateProperties(); }
}
@@ -98,10 +95,10 @@ namespace Server.Items
public override int ColdResistance => m_AosResistances.Cold;
public override int PoisonResistance => m_AosResistances.Poison;
public override int EnergyResistance => m_AosResistances.Energy;
- public virtual int BaseGemTypeNumber{ get{ return 0; } }
+ public virtual int BaseGemTypeNumber => 0;
- public virtual int InitMinHits{ get{ return 0; } }
- public virtual int InitMaxHits{ get{ return 0; } }
+ public virtual int InitMinHits => 0;
+ public virtual int InitMaxHits => 0;
public override int LabelNumber
{
@@ -124,7 +121,7 @@ namespace Server.Items
jewel.m_AosSkillBonuses = new AosSkillBonuses( newItem, m_AosSkillBonuses );
}
- public virtual int ArtifactRarity{ get{ return 0; } }
+ public virtual int ArtifactRarity => 0;
public BaseJewel( int itemID, Layer layer ) : base( itemID )
{
diff --git a/Scripts/Items/Lights/BaseLight.cs b/Scripts/Items/Lights/BaseLight.cs
index be427ec0c..77010341a 100644
--- a/Scripts/Items/Lights/BaseLight.cs
+++ b/Scripts/Items/Lights/BaseLight.cs
@@ -25,7 +25,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool Burning
{
- get { return m_Burning; }
+ get => m_Burning;
set
{
if ( m_Burning != value )
@@ -39,15 +39,15 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool BurntOut
{
- get { return m_BurntOut; }
- set { m_BurntOut = value; }
+ get => m_BurntOut;
+ set => m_BurntOut = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Protected
{
- get { return m_Protected; }
- set { m_Protected = value; }
+ get => m_Protected;
+ set => m_Protected = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -63,7 +63,7 @@ namespace Server.Items
return m_Duration;
}
- set { m_Duration = value; }
+ set => m_Duration = value;
}
[Constructible]
diff --git a/Scripts/Items/Lights/Candelabra.cs b/Scripts/Items/Lights/Candelabra.cs
index 9e4f9f4ec..ce25fda4f 100644
--- a/Scripts/Items/Lights/Candelabra.cs
+++ b/Scripts/Items/Lights/Candelabra.cs
@@ -66,8 +66,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsShipwreckedItem
{
- get { return m_IsShipwreckedItem; }
- set { m_IsShipwreckedItem = value; }
+ get => m_IsShipwreckedItem;
+ set => m_IsShipwreckedItem = value;
}
#endregion
}
diff --git a/Scripts/Items/Maps/MapItem.cs b/Scripts/Items/Maps/MapItem.cs
index e6fb35488..18ff953bf 100644
--- a/Scripts/Items/Maps/MapItem.cs
+++ b/Scripts/Items/Maps/MapItem.cs
@@ -22,35 +22,32 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool Protected
{
- get { return m_Protected; }
- set { m_Protected = value; }
+ get => m_Protected;
+ set => m_Protected = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Rectangle2D Bounds
{
- get { return m_Bounds; }
- set { m_Bounds = value; }
+ get => m_Bounds;
+ set => m_Bounds = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Width
{
- get { return m_Width; }
- set { m_Width = value; }
+ get => m_Width;
+ set => m_Width = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Height
{
- get { return m_Height; }
- set { m_Height = value; }
+ get => m_Height;
+ set => m_Height = value;
}
- public List Pins
- {
- get { return m_Pins; }
- }
+ public List Pins => m_Pins;
[Constructible]
public MapItem() : base( 0x14EC )
diff --git a/Scripts/Items/Maps/PresetMap.cs b/Scripts/Items/Maps/PresetMap.cs
index ccc1d4f7f..cbe381565 100644
--- a/Scripts/Items/Maps/PresetMap.cs
+++ b/Scripts/Items/Maps/PresetMap.cs
@@ -66,10 +66,10 @@ namespace Server.Items
private int m_Width, m_Height;
private Rectangle2D m_Bounds;
- public int Name{ get{ return m_Name; } }
- public int Width{ get{ return m_Width; } }
- public int Height{ get{ return m_Height; } }
- public Rectangle2D Bounds{ get{ return m_Bounds; } }
+ public int Name => m_Name;
+ public int Width => m_Width;
+ public int Height => m_Height;
+ public Rectangle2D Bounds => m_Bounds;
public PresetMapEntry( int name, int width, int height, int xLeft, int yTop, int xRight, int yBottom )
{
@@ -111,7 +111,7 @@ namespace Server.Items
new PresetMapEntry( 1041202, 200, 200, 0000, 0512, 1792, 2048 ) // map of Yew to Britain
};
- public static PresetMapEntry[] Table{ get{ return m_Table; } }
+ public static PresetMapEntry[] Table => m_Table;
}
public enum PresetMapType
diff --git a/Scripts/Items/Maps/TreasureMap.cs b/Scripts/Items/Maps/TreasureMap.cs
index 5b66e81fb..bd2f30c10 100644
--- a/Scripts/Items/Maps/TreasureMap.cs
+++ b/Scripts/Items/Maps/TreasureMap.cs
@@ -18,22 +18,29 @@ namespace Server.Items
private Point2D m_Location;
[CommandProperty( AccessLevel.GameMaster )]
- public int Level{ get{ return m_Level; } set{ m_Level = value; InvalidateProperties(); } }
+ public int Level{ get => m_Level;
+ set{ m_Level = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public bool Completed{ get{ return m_Completed; } set{ m_Completed = value; InvalidateProperties(); } }
+ public bool Completed{ get => m_Completed;
+ set{ m_Completed = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public Mobile CompletedBy{ get{ return m_CompletedBy; } set{ m_CompletedBy = value; InvalidateProperties(); } }
+ public Mobile CompletedBy{ get => m_CompletedBy;
+ set{ m_CompletedBy = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public Mobile Decoder{ get{ return m_Decoder; } set{ m_Decoder = value; InvalidateProperties(); } }
+ public Mobile Decoder{ get => m_Decoder;
+ set{ m_Decoder = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public Map ChestMap{ get{ return m_Map; } set{ m_Map = value; InvalidateProperties(); } }
+ public Map ChestMap{ get => m_Map;
+ set{ m_Map = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public Point2D ChestLocation{ get{ return m_Location; } set{ m_Location = value; } }
+ public Point2D ChestLocation{ get => m_Location;
+ set => m_Location = value;
+ }
private static Point2D[] m_Locations;
private static Point2D[] m_HavenLocations;
diff --git a/Scripts/Items/Minor Artifacts/ML/AegisOfGrace.cs b/Scripts/Items/Minor Artifacts/ML/AegisOfGrace.cs
index cf49b94f6..42b81f718 100644
--- a/Scripts/Items/Minor Artifacts/ML/AegisOfGrace.cs
+++ b/Scripts/Items/Minor Artifacts/ML/AegisOfGrace.cs
@@ -26,13 +26,7 @@ namespace Server.Items
ArmorAttributes.SelfRepair = 2;
}
- public override Race RequiredRace
- {
- get
- {
- return Race.Elf;
- }
- }
+ public override Race RequiredRace => Race.Elf;
public AegisOfGrace( Serial serial ) : base( serial )
{
diff --git a/Scripts/Items/Misc/ArcaneGem.cs b/Scripts/Items/Misc/ArcaneGem.cs
index b8972bbbe..5e2e77117 100644
--- a/Scripts/Items/Misc/ArcaneGem.cs
+++ b/Scripts/Items/Misc/ArcaneGem.cs
@@ -5,10 +5,7 @@ namespace Server.Items
{
public class ArcaneGem : Item
{
- public override string DefaultName
- {
- get { return "arcane gem"; }
- }
+ public override string DefaultName => "arcane gem";
[Constructible]
public ArcaneGem() : base( 0x1EA7 )
diff --git a/Scripts/Items/Misc/BankCheck.cs b/Scripts/Items/Misc/BankCheck.cs
index 515fb2dd2..03764481d 100644
--- a/Scripts/Items/Misc/BankCheck.cs
+++ b/Scripts/Items/Misc/BankCheck.cs
@@ -15,7 +15,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Worth
{
- get{ return m_Worth; }
+ get => m_Worth;
set{ m_Worth = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Misc/BulletinBoards.cs b/Scripts/Items/Misc/BulletinBoards.cs
index 2edc0c4f2..a3314b0d8 100644
--- a/Scripts/Items/Misc/BulletinBoards.cs
+++ b/Scripts/Items/Misc/BulletinBoards.cs
@@ -38,8 +38,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string BoardName
{
- get{ return m_BoardName; }
- set{ m_BoardName = value; }
+ get => m_BoardName;
+ set => m_BoardName = value;
}
public BaseBulletinBoard( int itemID ) : base( itemID )
@@ -368,16 +368,18 @@ namespace Server.Items
m_PostedEquip = list.ToArray();
}
- public Mobile Poster{ get{ return m_Poster; } }
- public BulletinMessage Thread{ get{ return m_Thread; } }
- public string Subject{ get{ return m_Subject; } }
- public DateTime Time{ get{ return m_Time; } }
- public DateTime LastPostTime{ get{ return m_LastPostTime; } set{ m_LastPostTime = value; } }
- public string PostedName{ get{ return m_PostedName; } }
- public int PostedBody{ get{ return m_PostedBody; } }
- public int PostedHue{ get{ return m_PostedHue; } }
- public BulletinEquip[] PostedEquip{ get{ return m_PostedEquip; } }
- public string[] Lines{ get{ return m_Lines; } }
+ public Mobile Poster => m_Poster;
+ public BulletinMessage Thread => m_Thread;
+ public string Subject => m_Subject;
+ public DateTime Time => m_Time;
+ public DateTime LastPostTime{ get => m_LastPostTime;
+ set => m_LastPostTime = value;
+ }
+ public string PostedName => m_PostedName;
+ public int PostedBody => m_PostedBody;
+ public int PostedHue => m_PostedHue;
+ public BulletinEquip[] PostedEquip => m_PostedEquip;
+ public string[] Lines => m_Lines;
public BulletinMessage( Serial serial ) : base( serial )
{
diff --git a/Scripts/Items/Misc/ClockworkAssembly.cs b/Scripts/Items/Misc/ClockworkAssembly.cs
index be01efe86..8f50b4bfd 100644
--- a/Scripts/Items/Misc/ClockworkAssembly.cs
+++ b/Scripts/Items/Misc/ClockworkAssembly.cs
@@ -5,10 +5,7 @@ namespace Server.Items
{
public class ClockworkAssembly : Item
{
- public override string DefaultName
- {
- get { return "clockwork assembly"; }
- }
+ public override string DefaultName => "clockwork assembly";
[Constructible]
public ClockworkAssembly() : base( 0x1EA8 )
diff --git a/Scripts/Items/Misc/CommunicationCrystals.cs b/Scripts/Items/Misc/CommunicationCrystals.cs
index 307577749..e598673c5 100644
--- a/Scripts/Items/Misc/CommunicationCrystals.cs
+++ b/Scripts/Items/Misc/CommunicationCrystals.cs
@@ -33,8 +33,8 @@ namespace Server.Items
private Type m_Type;
private int m_Amount;
- public Type Type{ get{ return m_Type; } }
- public int Amount{ get{ return m_Amount; } }
+ public Type Type => m_Type;
+ public int Amount => m_Amount;
private CrystalRechargeInfo( Type type, int amount )
{
@@ -55,7 +55,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool Active
{
- get{ return this.ItemID == 0x1ECD; }
+ get => this.ItemID == 0x1ECD;
set
{
this.ItemID = value ? 0x1ECD : 0x1ED0;
@@ -66,7 +66,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get{ return m_Charges; }
+ get => m_Charges;
set
{
m_Charges = value;
@@ -74,10 +74,7 @@ namespace Server.Items
}
}
- public List Receivers
- {
- get{ return m_Receivers; }
- }
+ public List Receivers => m_Receivers;
[Constructible]
public BroadcastCrystal() : this( 2000 )
@@ -122,10 +119,7 @@ namespace Server.Items
LabelTo( from, 1060746, Receivers.Count.ToString() ); // links: ~1_val~
}
- public override bool HandlesOnSpeech
- {
- get{ return true; }
- }
+ public override bool HandlesOnSpeech => true;
public override void OnSpeech( SpeechEventArgs e )
{
@@ -304,7 +298,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool Active
{
- get{ return this.ItemID == 0x1ED1; }
+ get => this.ItemID == 0x1ED1;
set
{
this.ItemID = value ? 0x1ED1 : 0x1ED0;
@@ -315,7 +309,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public BroadcastCrystal Sender
{
- get{ return m_Sender; }
+ get => m_Sender;
set
{
if ( m_Sender != null )
diff --git a/Scripts/Items/Misc/Corpses/Corpse.cs b/Scripts/Items/Misc/Corpses/Corpse.cs
index 465b489e6..1732175f0 100644
--- a/Scripts/Items/Misc/Corpses/Corpse.cs
+++ b/Scripts/Items/Misc/Corpses/Corpse.cs
@@ -114,7 +114,9 @@ namespace Server.Items
private Item m_Item;
private bool m_Perpetual; //Needed for Rummaged stuff. CONTRARY to the Patchlog, cause a later FoF contradicts it. Verify on OSI.
- public bool Perpetual { get { return m_Perpetual; } set { m_Perpetual = value; } }
+ public bool Perpetual { get => m_Perpetual;
+ set => m_Perpetual = value;
+ }
public InstancedItemInfo( Item i, Mobile m )
{
@@ -249,16 +251,13 @@ namespace Server.Items
}
}
- public override bool IsDecoContainer
- {
- get{ return false; }
- }
+ public override bool IsDecoContainer => false;
[CommandProperty( AccessLevel.GameMaster )]
public DateTime TimeOfDeath
{
- get{ return m_TimeOfDeath; }
- set{ m_TimeOfDeath = value; }
+ get => m_TimeOfDeath;
+ set => m_TimeOfDeath = value;
}
public override bool DisplayWeight => false;
@@ -267,109 +266,82 @@ namespace Server.Items
public FacialHairInfo FacialHair => m_FacialHair;
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsBones
- {
- get { return GetFlag( CorpseFlag.IsBones ); }
- }
+ public bool IsBones => GetFlag( CorpseFlag.IsBones );
[CommandProperty( AccessLevel.GameMaster )]
- public bool Devoured
- {
- get { return (m_Devourer != null); }
- }
+ public bool Devoured => (m_Devourer != null);
[CommandProperty( AccessLevel.GameMaster )]
public bool Carved
{
- get{ return GetFlag( CorpseFlag.Carved ); }
- set { SetFlag( CorpseFlag.Carved, value ); }
+ get => GetFlag( CorpseFlag.Carved );
+ set => SetFlag( CorpseFlag.Carved, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool VisitedByTaxidermist
{
- get { return GetFlag( CorpseFlag.VisitedByTaxidermist ); }
- set { SetFlag( CorpseFlag.VisitedByTaxidermist, value ); }
+ get => GetFlag( CorpseFlag.VisitedByTaxidermist );
+ set => SetFlag( CorpseFlag.VisitedByTaxidermist, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Channeled
{
- get { return GetFlag( CorpseFlag.Channeled ); }
- set { SetFlag( CorpseFlag.Channeled, value ); }
+ get => GetFlag( CorpseFlag.Channeled );
+ set => SetFlag( CorpseFlag.Channeled, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Animated
{
- get { return GetFlag( CorpseFlag.Animated ); }
- set { SetFlag( CorpseFlag.Animated, value ); }
+ get => GetFlag( CorpseFlag.Animated );
+ set => SetFlag( CorpseFlag.Animated, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool SelfLooted
{
- get { return GetFlag( CorpseFlag.SelfLooted ); }
- set { SetFlag( CorpseFlag.SelfLooted, value ); }
+ get => GetFlag( CorpseFlag.SelfLooted );
+ set => SetFlag( CorpseFlag.SelfLooted, value );
}
[CommandProperty( AccessLevel.GameMaster )]
- public AccessLevel AccessLevel
- {
- get{ return m_AccessLevel; }
- }
+ public AccessLevel AccessLevel => m_AccessLevel;
- public List Aggressors
- {
- get{ return m_Aggressors; }
- }
+ public List Aggressors => m_Aggressors;
- public List Looters
- {
- get{ return m_Looters; }
- }
+ public List Looters => m_Looters;
[CommandProperty( AccessLevel.GameMaster )]
- public Mobile Killer
- {
- get{ return m_Killer; }
- }
+ public Mobile Killer => m_Killer;
- public List- EquipItems
- {
- get{ return m_EquipItems; }
- }
+ public List
- EquipItems => m_EquipItems;
public List
- RestoreEquip
{
- get { return m_RestoreEquip; }
- set { m_RestoreEquip = value; }
+ get => m_RestoreEquip;
+ set => m_RestoreEquip = value;
}
- public Guild Guild
- {
- get{ return m_Guild; }
- }
+ public Guild Guild => m_Guild;
[CommandProperty( AccessLevel.GameMaster )]
public int Kills
{
- get{ return m_Kills; }
- set{ m_Kills = value; }
+ get => m_Kills;
+ set => m_Kills = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Criminal
{
- get { return GetFlag( CorpseFlag.Criminal ); }
- set { SetFlag( CorpseFlag.Criminal, value ); }
+ get => GetFlag( CorpseFlag.Criminal );
+ set => SetFlag( CorpseFlag.Criminal, value );
}
[CommandProperty( AccessLevel.GameMaster )]
- public Mobile Owner
- {
- get{ return m_Owner; }
- }
+ public Mobile Owner => m_Owner;
public void TurnToBones()
{
diff --git a/Scripts/Items/Misc/Corpses/CorpseNameAttribute.cs b/Scripts/Items/Misc/Corpses/CorpseNameAttribute.cs
index d71d3f988..1d317a4f9 100644
--- a/Scripts/Items/Misc/Corpses/CorpseNameAttribute.cs
+++ b/Scripts/Items/Misc/Corpses/CorpseNameAttribute.cs
@@ -7,10 +7,7 @@ namespace Server
{
private string m_Name;
- public string Name
- {
- get{ return m_Name; }
- }
+ public string Name => m_Name;
public CorpseNameAttribute( string name )
{
diff --git a/Scripts/Items/Misc/DeceitBrazier.cs b/Scripts/Items/Misc/DeceitBrazier.cs
index 5dab0ce89..90ce32fa0 100644
--- a/Scripts/Items/Misc/DeceitBrazier.cs
+++ b/Scripts/Items/Misc/DeceitBrazier.cs
@@ -77,10 +77,14 @@ namespace Server.Items
public DateTime NextSpawn => m_NextSpawn;
[CommandProperty( AccessLevel.GameMaster )]
- public int SpawnRange { get { return m_SpawnRange; } set { m_SpawnRange = value; } }
+ public int SpawnRange { get => m_SpawnRange;
+ set => m_SpawnRange = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public TimeSpan NextSpawnDelay { get { return m_NextSpawnDelay; } set { m_NextSpawnDelay = value; } }
+ public TimeSpan NextSpawnDelay { get => m_NextSpawnDelay;
+ set => m_NextSpawnDelay = value;
+ }
public override int LabelNumber => 1023633; // Brazier
diff --git a/Scripts/Items/Misc/EffectController.cs b/Scripts/Items/Misc/EffectController.cs
index f2c8db28d..2f75cb883 100644
--- a/Scripts/Items/Misc/EffectController.cs
+++ b/Scripts/Items/Misc/EffectController.cs
@@ -56,96 +56,145 @@ namespace Server.Items
private int m_TriggerRange;
[CommandProperty( AccessLevel.GameMaster )]
- public ECEffectType EffectType{ get{ return m_EffectType; } set{ m_EffectType = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public EffectTriggerType TriggerType{ get{ return m_TriggerType; } set{ m_TriggerType = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public EffectLayer EffectLayer{ get{ return m_EffectLayer; } set{ m_EffectLayer = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public TimeSpan EffectDelay{ get{ return m_EffectDelay; } set{ m_EffectDelay = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public TimeSpan TriggerDelay{ get{ return m_TriggerDelay; } set{ m_TriggerDelay = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public TimeSpan SoundDelay{ get{ return m_SoundDelay; } set{ m_SoundDelay = value; } }
-
-
- [CommandProperty( AccessLevel.GameMaster )]
- public Item SourceItem{ get{ return m_Source as Item; } set{ m_Source = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public Mobile SourceMobile{ get{ return m_Source as Mobile; } set{ m_Source = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public bool SourceNull{ get{ return ( m_Source == null ); } set{ if ( value ) m_Source = null; } }
-
-
- [CommandProperty( AccessLevel.GameMaster )]
- public Item TargetItem{ get{ return m_Target as Item; } set{ m_Target = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public Mobile TargetMobile{ get{ return m_Target as Mobile; } set{ m_Target = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public bool TargetNull{ get{ return ( m_Target == null ); } set{ if ( value ) m_Target = null; } }
-
-
- [CommandProperty( AccessLevel.GameMaster )]
- public EffectController Sequence{ get{ return m_Trigger; } set{ m_Trigger = value; } }
-
-
- [CommandProperty( AccessLevel.GameMaster )]
- private bool FixedDirection{ get{ return m_FixedDirection; } set{ m_FixedDirection = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- private bool Explodes{ get{ return m_Explodes; } set{ m_Explodes = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- private bool PlaySoundAtTrigger{ get{ return m_PlaySoundAtTrigger; } set{ m_PlaySoundAtTrigger = value; } }
-
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int EffectItemID{ get{ return m_ItemID; } set{ m_ItemID = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int EffectHue{ get{ return m_Hue; } set{ m_Hue = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int RenderMode{ get{ return m_RenderMode; } set{ m_RenderMode = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int Speed{ get{ return m_Speed; } set{ m_Speed = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int Duration{ get{ return m_Duration; } set{ m_Duration = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int ParticleEffect{ get{ return m_ParticleEffect; } set{ m_ParticleEffect = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int ExplodeParticleEffect{ get{ return m_ExplodeParticleEffect; } set{ m_ExplodeParticleEffect = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int ExplodeSound{ get{ return m_ExplodeSound; } set{ m_ExplodeSound = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int Unknown{ get{ return m_Unknown; } set{ m_Unknown = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int SoundID{ get{ return m_SoundID; } set{ m_SoundID = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public int TriggerRange{ get{ return m_TriggerRange; } set{ m_TriggerRange = value; } }
-
- public override string DefaultName
- {
- get { return "Effect Controller"; }
+ public ECEffectType EffectType{ get => m_EffectType;
+ set => m_EffectType = value;
}
+ [CommandProperty( AccessLevel.GameMaster )]
+ public EffectTriggerType TriggerType{ get => m_TriggerType;
+ set => m_TriggerType = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public EffectLayer EffectLayer{ get => m_EffectLayer;
+ set => m_EffectLayer = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public TimeSpan EffectDelay{ get => m_EffectDelay;
+ set => m_EffectDelay = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public TimeSpan TriggerDelay{ get => m_TriggerDelay;
+ set => m_TriggerDelay = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public TimeSpan SoundDelay{ get => m_SoundDelay;
+ set => m_SoundDelay = value;
+ }
+
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public Item SourceItem{ get => m_Source as Item;
+ set => m_Source = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public Mobile SourceMobile{ get => m_Source as Mobile;
+ set => m_Source = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public bool SourceNull{ get => ( m_Source == null );
+ set{ if ( value ) m_Source = null; } }
+
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public Item TargetItem{ get => m_Target as Item;
+ set => m_Target = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public Mobile TargetMobile{ get => m_Target as Mobile;
+ set => m_Target = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public bool TargetNull{ get => ( m_Target == null );
+ set{ if ( value ) m_Target = null; } }
+
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public EffectController Sequence{ get => m_Trigger;
+ set => m_Trigger = value;
+ }
+
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ private bool FixedDirection{ get => m_FixedDirection;
+ set => m_FixedDirection = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ private bool Explodes{ get => m_Explodes;
+ set => m_Explodes = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ private bool PlaySoundAtTrigger{ get => m_PlaySoundAtTrigger;
+ set => m_PlaySoundAtTrigger = value;
+ }
+
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int EffectItemID{ get => m_ItemID;
+ set => m_ItemID = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int EffectHue{ get => m_Hue;
+ set => m_Hue = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int RenderMode{ get => m_RenderMode;
+ set => m_RenderMode = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int Speed{ get => m_Speed;
+ set => m_Speed = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int Duration{ get => m_Duration;
+ set => m_Duration = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int ParticleEffect{ get => m_ParticleEffect;
+ set => m_ParticleEffect = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int ExplodeParticleEffect{ get => m_ExplodeParticleEffect;
+ set => m_ExplodeParticleEffect = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int ExplodeSound{ get => m_ExplodeSound;
+ set => m_ExplodeSound = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int Unknown{ get => m_Unknown;
+ set => m_Unknown = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int SoundID{ get => m_SoundID;
+ set => m_SoundID = value;
+ }
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public int TriggerRange{ get => m_TriggerRange;
+ set => m_TriggerRange = value;
+ }
+
+ public override string DefaultName => "Effect Controller";
+
[Constructible]
public EffectController() : base( 0x1B72 )
{
diff --git a/Scripts/Items/Misc/EffectItem.cs b/Scripts/Items/Misc/EffectItem.cs
index cd302686a..2d569f3d7 100644
--- a/Scripts/Items/Misc/EffectItem.cs
+++ b/Scripts/Items/Misc/EffectItem.cs
@@ -44,13 +44,7 @@ namespace Server.Items
new FreeTimer( this, duration ).Start();
}
- public override bool Decays
- {
- get
- {
- return true;
- }
- }
+ public override bool Decays => true;
public EffectItem( Serial serial ) : base( serial )
{
diff --git a/Scripts/Items/Misc/Firebomb.cs b/Scripts/Items/Misc/Firebomb.cs
index ae241690a..e6cf31e76 100644
--- a/Scripts/Items/Misc/Firebomb.cs
+++ b/Scripts/Items/Misc/Firebomb.cs
@@ -193,10 +193,7 @@ namespace Server.Items
{
private Firebomb m_Bomb;
- public Firebomb Bomb
- {
- get { return m_Bomb; }
- }
+ public Firebomb Bomb => m_Bomb;
public ThrowTarget( Firebomb bomb )
: base( 12, true, TargetFlags.None )
diff --git a/Scripts/Items/Misc/FlippableAddonAttribute.cs b/Scripts/Items/Misc/FlippableAddonAttribute.cs
index e26c8a81e..8170eee3d 100644
--- a/Scripts/Items/Misc/FlippableAddonAttribute.cs
+++ b/Scripts/Items/Misc/FlippableAddonAttribute.cs
@@ -16,10 +16,7 @@ namespace Server.Items
private Direction[] m_Directions;
- public Direction[] Directions
- {
- get { return m_Directions; }
- }
+ public Direction[] Directions => m_Directions;
public FlippableAddonAttribute( params Direction[] directions )
{
diff --git a/Scripts/Items/Misc/FlippableAttribute.cs b/Scripts/Items/Misc/FlippableAttribute.cs
index b67e4fd1e..908ba5437 100644
--- a/Scripts/Items/Misc/FlippableAttribute.cs
+++ b/Scripts/Items/Misc/FlippableAttribute.cs
@@ -63,10 +63,7 @@ namespace Server.Items
{
private int[] m_ItemIDs;
- public int[] ItemIDs
- {
- get { return m_ItemIDs; }
- }
+ public int[] ItemIDs => m_ItemIDs;
public FlippableAttribute()
: this( null )
diff --git a/Scripts/Items/Misc/Gold.cs b/Scripts/Items/Misc/Gold.cs
index b1d4013f8..a2a1ec513 100644
--- a/Scripts/Items/Misc/Gold.cs
+++ b/Scripts/Items/Misc/Gold.cs
@@ -6,10 +6,7 @@ namespace Server.Items
{
public class Gold : Item
{
- public override double DefaultWeight
- {
- get { return ( Core.ML ? ( 0.02 / 3 ) : 0.02 ); }
- }
+ public override double DefaultWeight => ( Core.ML ? ( 0.02 / 3 ) : 0.02 );
[Constructible]
public Gold() : this( 1 )
diff --git a/Scripts/Items/Misc/HairDye.cs b/Scripts/Items/Misc/HairDye.cs
index 050952065..73a50807b 100644
--- a/Scripts/Items/Misc/HairDye.cs
+++ b/Scripts/Items/Misc/HairDye.cs
@@ -55,29 +55,11 @@ namespace Server.Items
private int m_HueStart;
private int m_HueCount;
- public string Name
- {
- get
- {
- return m_Name;
- }
- }
+ public string Name => m_Name;
- public int HueStart
- {
- get
- {
- return m_HueStart;
- }
- }
+ public int HueStart => m_HueStart;
- public int HueCount
- {
- get
- {
- return m_HueCount;
- }
- }
+ public int HueCount => m_HueCount;
public HairDyeEntry( string name, int hueStart, int hueCount )
{
diff --git a/Scripts/Items/Misc/InteriorDecorator.cs b/Scripts/Items/Misc/InteriorDecorator.cs
index ddb1fe401..dee6491aa 100644
--- a/Scripts/Items/Misc/InteriorDecorator.cs
+++ b/Scripts/Items/Misc/InteriorDecorator.cs
@@ -18,7 +18,8 @@ namespace Server.Items
private DecorateCommand m_Command;
[CommandProperty( AccessLevel.GameMaster )]
- public DecorateCommand Command{ get{ return m_Command; } set{ m_Command = value; InvalidateProperties(); } }
+ public DecorateCommand Command{ get => m_Command;
+ set{ m_Command = value; InvalidateProperties(); } }
[Constructible]
public InteriorDecorator() : base( 0xFC1 )
diff --git a/Scripts/Items/Misc/Key.cs b/Scripts/Items/Misc/Key.cs
index 78ec2c5c8..881d5b158 100644
--- a/Scripts/Items/Misc/Key.cs
+++ b/Scripts/Items/Misc/Key.cs
@@ -92,10 +92,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string Description
{
- get
- {
- return m_Description;
- }
+ get => m_Description;
set
{
m_Description = value;
@@ -106,24 +103,15 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int MaxRange
{
- get
- {
- return m_MaxRange;
- }
+ get => m_MaxRange;
- set
- {
- m_MaxRange = value;
- }
+ set => m_MaxRange = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public uint KeyValue
{
- get
- {
- return m_KeyVal;
- }
+ get => m_KeyVal;
set
{
@@ -135,15 +123,9 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Item Link
{
- get
- {
- return m_Link;
- }
+ get => m_Link;
- set
- {
- m_Link = value;
- }
+ set => m_Link = value;
}
public override void Serialize( GenericWriter writer )
diff --git a/Scripts/Items/Misc/LOSBlocker.cs b/Scripts/Items/Misc/LOSBlocker.cs
index b86ad5e6f..1cf55ca33 100644
--- a/Scripts/Items/Misc/LOSBlocker.cs
+++ b/Scripts/Items/Misc/LOSBlocker.cs
@@ -10,10 +10,7 @@ namespace Server.Items
TileData.ItemTable[0x21A2].Height = 20;
}
- public override string DefaultName
- {
- get { return "no line of sight"; }
- }
+ public override string DefaultName => "no line of sight";
[Constructible]
public LOSBlocker() : base( 0x21A2 )
diff --git a/Scripts/Items/Misc/Moonstone.cs b/Scripts/Items/Misc/Moonstone.cs
index 621bba90e..d4bafa54a 100644
--- a/Scripts/Items/Misc/Moonstone.cs
+++ b/Scripts/Items/Misc/Moonstone.cs
@@ -16,10 +16,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public MoonstoneType Type
{
- get
- {
- return m_Type;
- }
+ get => m_Type;
set
{
m_Type = value;
diff --git a/Scripts/Items/Misc/MorphItem.cs b/Scripts/Items/Misc/MorphItem.cs
index d27730561..370e6bc3d 100644
--- a/Scripts/Items/Misc/MorphItem.cs
+++ b/Scripts/Items/Misc/MorphItem.cs
@@ -12,33 +12,33 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int InactiveItemID
{
- get{ return m_InactiveItemID; }
- set{ m_InactiveItemID = value; }
+ get => m_InactiveItemID;
+ set => m_InactiveItemID = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int ActiveItemID
{
- get{ return m_ActiveItemID; }
- set{ m_ActiveItemID = value; }
+ get => m_ActiveItemID;
+ set => m_ActiveItemID = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int InRange
{
- get{ return m_InRange; }
+ get => m_InRange;
set{ if ( value > 18 ) value = 18; m_InRange = value; }
}
[CommandProperty( AccessLevel.GameMaster )]
public int OutRange
{
- get{ return m_OutRange; }
+ get => m_OutRange;
set{ if ( value > 18 ) value = 18; m_OutRange = value; }
}
[CommandProperty( AccessLevel.GameMaster )]
- public int CurrentRange{ get{ return ItemID == InactiveItemID ? InRange : OutRange; } }
+ public int CurrentRange => ItemID == InactiveItemID ? InRange : OutRange;
[Constructible]
public MorphItem( int inactiveItemID, int activeItemID, int range ) : this( inactiveItemID, activeItemID, range, range )
diff --git a/Scripts/Items/Misc/OilCloth.cs b/Scripts/Items/Misc/OilCloth.cs
index 00f14a717..a1a1c1e53 100644
--- a/Scripts/Items/Misc/OilCloth.cs
+++ b/Scripts/Items/Misc/OilCloth.cs
@@ -8,10 +8,7 @@ namespace Server.Items
{
public override int LabelNumber => 1041498; // oil cloth
- public override double DefaultWeight
- {
- get { return 1.0; }
- }
+ public override double DefaultWeight => 1.0;
[Constructible]
public OilCloth() : base( 0x175D )
diff --git a/Scripts/Items/Misc/PlayerBulletinBoards.cs b/Scripts/Items/Misc/PlayerBulletinBoards.cs
index 874fec344..ec255ad63 100644
--- a/Scripts/Items/Misc/PlayerBulletinBoards.cs
+++ b/Scripts/Items/Misc/PlayerBulletinBoards.cs
@@ -74,29 +74,26 @@ namespace Server.Items
private string m_Title;
private SecureLevel m_Level;
- public List Messages
- {
- get{ return m_Messages; }
- }
+ public List Messages => m_Messages;
public PlayerBBMessage Greeting
{
- get{ return m_Greeting; }
- set{ m_Greeting = value; }
+ get => m_Greeting;
+ set => m_Greeting = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string Title
{
- get{ return m_Title; }
- set{ m_Title = value; }
+ get => m_Title;
+ set => m_Title = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get{ return m_Level; }
- set{ m_Level = value; }
+ get => m_Level;
+ set => m_Level = value;
}
public BasePlayerBB( int itemID ) : base( itemID )
@@ -335,22 +332,22 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public DateTime Time
{
- get{ return m_Time; }
- set{ m_Time = value; }
+ get => m_Time;
+ set => m_Time = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Poster
{
- get{ return m_Poster; }
- set{ m_Poster = value; }
+ get => m_Poster;
+ set => m_Poster = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string Message
{
- get{ return m_Message; }
- set{ m_Message = value; }
+ get => m_Message;
+ set => m_Message = value;
}
public PlayerBBMessage( DateTime time, Mobile poster, string message )
diff --git a/Scripts/Items/Misc/PowerCrystal.cs b/Scripts/Items/Misc/PowerCrystal.cs
index 3182e8743..732a91cfa 100644
--- a/Scripts/Items/Misc/PowerCrystal.cs
+++ b/Scripts/Items/Misc/PowerCrystal.cs
@@ -4,10 +4,7 @@ namespace Server.Items
{
public class PowerCrystal : Item
{
- public override string DefaultName
- {
- get { return "power crystal"; }
- }
+ public override string DefaultName => "power crystal";
[Constructible]
public PowerCrystal() : base( 0x1F1C )
diff --git a/Scripts/Items/Misc/PowerGenerator.cs b/Scripts/Items/Misc/PowerGenerator.cs
index 1fa5b5d3c..1b9b50a7f 100644
--- a/Scripts/Items/Misc/PowerGenerator.cs
+++ b/Scripts/Items/Misc/PowerGenerator.cs
@@ -62,8 +62,12 @@ namespace Server.Items
private int m_X;
private int m_Y;
- public int X{ get{ return m_X; } set{ m_X = value; } }
- public int Y{ get{ return m_Y; } set{ m_Y = value; } }
+ public int X{ get => m_X;
+ set => m_X = value;
+ }
+ public int Y{ get => m_Y;
+ set => m_Y = value;
+ }
public Node( int x, int y )
{
@@ -78,7 +82,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int SideLength
{
- get{ return m_SideLength; }
+ get => m_SideLength;
set
{
if ( value < 3 )
@@ -94,12 +98,9 @@ namespace Server.Items
}
}
- public Node[] Path{ get{ return m_Path; } }
+ public Node[] Path => m_Path;
- public override string DefaultName
- {
- get { return "a control panel"; }
- }
+ public override string DefaultName => "a control panel";
public ControlPanel( int sideLength ) : base( 0xBDC )
{
diff --git a/Scripts/Items/Misc/PublicMoongate.cs b/Scripts/Items/Misc/PublicMoongate.cs
index 520120d82..917270861 100644
--- a/Scripts/Items/Misc/PublicMoongate.cs
+++ b/Scripts/Items/Misc/PublicMoongate.cs
@@ -157,21 +157,9 @@ namespace Server.Items
private Point3D m_Location;
private int m_Number;
- public Point3D Location
- {
- get
- {
- return m_Location;
- }
- }
+ public Point3D Location => m_Location;
- public int Number
- {
- get
- {
- return m_Number;
- }
- }
+ public int Number => m_Number;
public PMEntry( Point3D loc, int number )
{
@@ -186,37 +174,13 @@ namespace Server.Items
private Map m_Map;
private PMEntry[] m_Entries;
- public int Number
- {
- get
- {
- return m_Number;
- }
- }
+ public int Number => m_Number;
- public int SelNumber
- {
- get
- {
- return m_SelNumber;
- }
- }
+ public int SelNumber => m_SelNumber;
- public Map Map
- {
- get
- {
- return m_Map;
- }
- }
+ public Map Map => m_Map;
- public PMEntry[] Entries
- {
- get
- {
- return m_Entries;
- }
- }
+ public PMEntry[] Entries => m_Entries;
public PMList( int number, int selNumber, Map map, PMEntry[] entries )
{
diff --git a/Scripts/Items/Misc/SerpentPillar.cs b/Scripts/Items/Misc/SerpentPillar.cs
index 928967762..8be852551 100644
--- a/Scripts/Items/Misc/SerpentPillar.cs
+++ b/Scripts/Items/Misc/SerpentPillar.cs
@@ -11,22 +11,22 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool Active
{
- get{ return m_Active; }
- set{ m_Active = value; }
+ get => m_Active;
+ set => m_Active = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string Word
{
- get{ return m_Word; }
- set{ m_Word = value; }
+ get => m_Word;
+ set => m_Word = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Rectangle2D Destination
{
- get{ return m_Destination; }
- set{ m_Destination = value; }
+ get => m_Destination;
+ set => m_Destination = value;
}
[Constructible]
diff --git a/Scripts/Items/Misc/SpecialBeardDye.cs b/Scripts/Items/Misc/SpecialBeardDye.cs
index b6467d85e..d99d8808e 100644
--- a/Scripts/Items/Misc/SpecialBeardDye.cs
+++ b/Scripts/Items/Misc/SpecialBeardDye.cs
@@ -56,29 +56,11 @@ namespace Server.Items
private int m_HueStart;
private int m_HueCount;
- public string Name
- {
- get
- {
- return m_Name;
- }
- }
+ public string Name => m_Name;
- public int HueStart
- {
- get
- {
- return m_HueStart;
- }
- }
+ public int HueStart => m_HueStart;
- public int HueCount
- {
- get
- {
- return m_HueCount;
- }
- }
+ public int HueCount => m_HueCount;
public SpecialBeardDyeEntry( string name, int hueStart, int hueCount )
{
diff --git a/Scripts/Items/Misc/SpecialHairDye.cs b/Scripts/Items/Misc/SpecialHairDye.cs
index 6ee0444d6..e4a600f67 100644
--- a/Scripts/Items/Misc/SpecialHairDye.cs
+++ b/Scripts/Items/Misc/SpecialHairDye.cs
@@ -5,10 +5,7 @@ namespace Server.Items
{
public class SpecialHairDye : Item
{
- public override string DefaultName
- {
- get { return "Special Hair Dye"; }
- }
+ public override string DefaultName => "Special Hair Dye";
[Constructible]
public SpecialHairDye() : base( 0xE26 )
@@ -60,29 +57,11 @@ namespace Server.Items
private int m_HueStart;
private int m_HueCount;
- public string Name
- {
- get
- {
- return m_Name;
- }
- }
+ public string Name => m_Name;
- public int HueStart
- {
- get
- {
- return m_HueStart;
- }
- }
+ public int HueStart => m_HueStart;
- public int HueCount
- {
- get
- {
- return m_HueCount;
- }
- }
+ public int HueCount => m_HueCount;
public SpecialHairDyeEntry( string name, int hueStart, int hueCount )
{
diff --git a/Scripts/Items/Misc/Static.cs b/Scripts/Items/Misc/Static.cs
index f14879057..85daa2d59 100644
--- a/Scripts/Items/Misc/Static.cs
+++ b/Scripts/Items/Misc/Static.cs
@@ -47,7 +47,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Number
{
- get{ return m_LabelNumber; }
+ get => m_LabelNumber;
set{ m_LabelNumber = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Misc/SwarmOfFlies.cs b/Scripts/Items/Misc/SwarmOfFlies.cs
index d684573d4..1fb1488e5 100644
--- a/Scripts/Items/Misc/SwarmOfFlies.cs
+++ b/Scripts/Items/Misc/SwarmOfFlies.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public class SwarmOfFlies : Item
{
- public override string DefaultName
- {
- get { return "a swarm of flies"; }
- }
+ public override string DefaultName => "a swarm of flies";
[Constructible]
public SwarmOfFlies() : base( 0x91B )
diff --git a/Scripts/Items/Misc/Teleporter.cs b/Scripts/Items/Misc/Teleporter.cs
index 427c8c137..4379a8dd2 100644
--- a/Scripts/Items/Misc/Teleporter.cs
+++ b/Scripts/Items/Misc/Teleporter.cs
@@ -20,70 +20,70 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public bool SourceEffect
{
- get { return m_SourceEffect; }
+ get => m_SourceEffect;
set { m_SourceEffect = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool DestEffect
{
- get { return m_DestEffect; }
+ get => m_DestEffect;
set { m_DestEffect = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public int SoundID
{
- get { return m_SoundID; }
+ get => m_SoundID;
set { m_SoundID = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public TimeSpan Delay
{
- get { return m_Delay; }
+ get => m_Delay;
set { m_Delay = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool Active
{
- get { return m_Active; }
+ get => m_Active;
set { m_Active = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public Point3D PointDest
{
- get { return m_PointDest; }
+ get => m_PointDest;
set { m_PointDest = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public Map MapDest
{
- get { return m_MapDest; }
+ get => m_MapDest;
set { m_MapDest = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool Creatures
{
- get { return m_Creatures; }
+ get => m_Creatures;
set { m_Creatures = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool CombatCheck
{
- get { return m_CombatCheck; }
+ get => m_CombatCheck;
set { m_CombatCheck = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool CriminalCheck
{
- get { return m_CriminalCheck; }
+ get => m_CriminalCheck;
set { m_CriminalCheck = value; InvalidateProperties(); }
}
@@ -302,28 +302,28 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public SkillName Skill
{
- get { return m_Skill; }
+ get => m_Skill;
set { m_Skill = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public double Required
{
- get { return m_Required; }
+ get => m_Required;
set { m_Required = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public string MessageString
{
- get { return m_MessageString; }
+ get => m_MessageString;
set { m_MessageString = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public int MessageNumber
{
- get { return m_MessageNumber; }
+ get => m_MessageNumber;
set { m_MessageNumber = value; InvalidateProperties(); }
}
@@ -429,21 +429,21 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public string Substring
{
- get { return m_Substring; }
+ get => m_Substring;
set { m_Substring = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public int Keyword
{
- get { return m_Keyword; }
+ get => m_Keyword;
set { m_Keyword = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public int Range
{
- get { return m_Range; }
+ get => m_Range;
set { m_Range = value; InvalidateProperties(); }
}
@@ -573,36 +573,36 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public int StartNumber
{
- get { return m_StartNumber; }
- set { m_StartNumber = value; }
+ get => m_StartNumber;
+ set => m_StartNumber = value;
}
[CommandProperty(AccessLevel.GameMaster)]
public string StartMessage
{
- get { return m_StartMessage; }
- set { m_StartMessage = value; }
+ get => m_StartMessage;
+ set => m_StartMessage = value;
}
[CommandProperty(AccessLevel.GameMaster)]
public int ProgressNumber
{
- get { return m_ProgressNumber; }
- set { m_ProgressNumber = value; }
+ get => m_ProgressNumber;
+ set => m_ProgressNumber = value;
}
[CommandProperty(AccessLevel.GameMaster)]
public string ProgressMessage
{
- get { return m_ProgressMessage; }
- set { m_ProgressMessage = value; }
+ get => m_ProgressMessage;
+ set => m_ProgressMessage = value;
}
[CommandProperty(AccessLevel.GameMaster)]
public bool ShowTimeRemaining
{
- get { return m_ShowTimeRemaining; }
- set { m_ShowTimeRemaining = value; }
+ get => m_ShowTimeRemaining;
+ set => m_ShowTimeRemaining = value;
}
[Constructible]
@@ -732,8 +732,8 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public TimeSpan TimeoutDelay
{
- get { return m_TimeoutDelay; }
- set { m_TimeoutDelay = value; }
+ get => m_TimeoutDelay;
+ set => m_TimeoutDelay = value;
}
[Constructible]
@@ -846,8 +846,8 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public TimeoutTeleporter Teleporter
{
- get { return m_Teleporter; }
- set { m_Teleporter = value; }
+ get => m_Teleporter;
+ set => m_Teleporter = value;
}
[Constructible]
@@ -868,10 +868,7 @@ namespace Server.Items
return true;
}
- public override string DefaultName
- {
- get { return "timeout teleporter goal"; }
- }
+ public override string DefaultName => "timeout teleporter goal";
public TimeoutGoal(Serial serial)
: base(serial)
@@ -919,63 +916,63 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public bool DenyMounted
{
- get { return GetFlag(ConditionFlag.DenyMounted); }
+ get => GetFlag(ConditionFlag.DenyMounted);
set { SetFlag(ConditionFlag.DenyMounted, value); InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool DenyFollowers
{
- get { return GetFlag(ConditionFlag.DenyFollowers); }
+ get => GetFlag(ConditionFlag.DenyFollowers);
set { SetFlag(ConditionFlag.DenyFollowers, value); InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool DenyPackContents
{
- get { return GetFlag(ConditionFlag.DenyPackContents); }
+ get => GetFlag(ConditionFlag.DenyPackContents);
set { SetFlag(ConditionFlag.DenyPackContents, value); InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool DenyHolding
{
- get { return GetFlag(ConditionFlag.DenyHolding); }
+ get => GetFlag(ConditionFlag.DenyHolding);
set { SetFlag(ConditionFlag.DenyHolding, value); InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool DenyEquipment
{
- get { return GetFlag(ConditionFlag.DenyEquipment); }
+ get => GetFlag(ConditionFlag.DenyEquipment);
set { SetFlag(ConditionFlag.DenyEquipment, value); InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool DenyTransformed
{
- get { return GetFlag(ConditionFlag.DenyTransformed); }
+ get => GetFlag(ConditionFlag.DenyTransformed);
set { SetFlag(ConditionFlag.DenyTransformed, value); InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool StaffOnly
{
- get { return GetFlag(ConditionFlag.StaffOnly); }
+ get => GetFlag(ConditionFlag.StaffOnly);
set { SetFlag(ConditionFlag.StaffOnly, value); InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool DenyPackEthereals
{
- get { return GetFlag(ConditionFlag.DenyPackEthereals); }
+ get => GetFlag(ConditionFlag.DenyPackEthereals);
set { SetFlag(ConditionFlag.DenyPackEthereals, value); InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool DeadOnly
{
- get { return GetFlag(ConditionFlag.DeadOnly); }
+ get => GetFlag(ConditionFlag.DeadOnly);
set { SetFlag(ConditionFlag.DeadOnly, value); InvalidateProperties(); }
}
diff --git a/Scripts/Items/Misc/TrashBarrel.cs b/Scripts/Items/Misc/TrashBarrel.cs
index 5c3387213..dceca857c 100644
--- a/Scripts/Items/Misc/TrashBarrel.cs
+++ b/Scripts/Items/Misc/TrashBarrel.cs
@@ -10,10 +10,7 @@ namespace Server.Items
public override int DefaultMaxWeight => 0; // A value of 0 signals unlimited weight
- public override bool IsDecoContainer
- {
- get{ return false; }
- }
+ public override bool IsDecoContainer => false;
[Constructible]
public TrashBarrel() : base( 0xE77 )
diff --git a/Scripts/Items/Misc/TrashChest.cs b/Scripts/Items/Misc/TrashChest.cs
index a3a459f61..273a40ced 100644
--- a/Scripts/Items/Misc/TrashChest.cs
+++ b/Scripts/Items/Misc/TrashChest.cs
@@ -5,10 +5,7 @@ namespace Server.Items
{
public override int DefaultMaxWeight => 0; // A value of 0 signals unlimited weight
- public override bool IsDecoContainer
- {
- get{ return false; }
- }
+ public override bool IsDecoContainer => false;
[Constructible]
public TrashChest() : base( 0xE41 )
diff --git a/Scripts/Items/Misc/UnholyBone.cs b/Scripts/Items/Misc/UnholyBone.cs
index bc8f90081..eba5f6d5e 100644
--- a/Scripts/Items/Misc/UnholyBone.cs
+++ b/Scripts/Items/Misc/UnholyBone.cs
@@ -7,10 +7,7 @@ namespace Server.Items
{
private SpawnTimer m_Timer;
- public override string DefaultName
- {
- get { return "unholy bone"; }
- }
+ public override string DefaultName => "unholy bone";
[Constructible]
public UnholyBone() : base( 0xF7E )
diff --git a/Scripts/Items/Misc/WarningItem.cs b/Scripts/Items/Misc/WarningItem.cs
index 0e9c276f6..e3e8d3c96 100644
--- a/Scripts/Items/Misc/WarningItem.cs
+++ b/Scripts/Items/Misc/WarningItem.cs
@@ -14,29 +14,29 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string WarningString
{
- get{ return m_WarningString; }
- set{ m_WarningString = value; }
+ get => m_WarningString;
+ set => m_WarningString = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int WarningNumber
{
- get{ return m_WarningNumber; }
- set{ m_WarningNumber = value; }
+ get => m_WarningNumber;
+ set => m_WarningNumber = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Range
{
- get{ return m_Range; }
+ get => m_Range;
set{ if ( value > 18 ) value = 18; m_Range = value; }
}
[CommandProperty( AccessLevel.GameMaster )]
public TimeSpan ResetDelay
{
- get{ return m_ResetDelay; }
- set{ m_ResetDelay = value; }
+ get => m_ResetDelay;
+ set => m_ResetDelay = value;
}
[Constructible]
@@ -89,7 +89,7 @@ namespace Server.Items
}
}
- public virtual bool OnlyToTriggerer{ get{ return false; } }
+ public virtual bool OnlyToTriggerer => false;
public virtual int NeighborRange => 5;
public virtual void Broadcast( Mobile triggerer )
@@ -175,15 +175,15 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string HintString
{
- get{ return m_HintString; }
- set{ m_HintString = value; }
+ get => m_HintString;
+ set => m_HintString = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int HintNumber
{
- get{ return m_HintNumber; }
- set{ m_HintNumber = value; }
+ get => m_HintNumber;
+ set => m_HintNumber = value;
}
public override bool OnlyToTriggerer => true;
diff --git a/Scripts/Items/Misc/Waypoint.cs b/Scripts/Items/Misc/Waypoint.cs
index 9a1dcc27c..46703c9e4 100644
--- a/Scripts/Items/Misc/Waypoint.cs
+++ b/Scripts/Items/Misc/Waypoint.cs
@@ -19,10 +19,7 @@ namespace Server.Items
private WayPoint m_Next;
- public override string DefaultName
- {
- get { return "AI Way Point"; }
- }
+ public override string DefaultName => "AI Way Point";
[Constructible]
public WayPoint() : base( 0x1f14 )
@@ -41,10 +38,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public WayPoint NextPoint
{
- get
- {
- return m_Next;
- }
+ get => m_Next;
set
{
if ( m_Next != this )
diff --git a/Scripts/Items/Misc/WindChimes.cs b/Scripts/Items/Misc/WindChimes.cs
index 01aaa80f3..011414051 100644
--- a/Scripts/Items/Misc/WindChimes.cs
+++ b/Scripts/Items/Misc/WindChimes.cs
@@ -11,7 +11,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool TurnedOn
{
- get{ return m_TurnedOn; }
+ get => m_TurnedOn;
set{ m_TurnedOn = value; InvalidateProperties(); }
}
@@ -21,10 +21,7 @@ namespace Server.Items
private static int[] m_Sounds = new int[] { 0x505, 0x506, 0x507 };
- public static int[] Sounds
- {
- get{ return m_Sounds; }
- }
+ public static int[] Sounds => m_Sounds;
public override bool HandlesOnMovement => m_TurnedOn && IsLockedDown;
diff --git a/Scripts/Items/Quivers/BaseQuiver.cs b/Scripts/Items/Quivers/BaseQuiver.cs
index f9c778dbb..f4c06d88a 100644
--- a/Scripts/Items/Quivers/BaseQuiver.cs
+++ b/Scripts/Items/Quivers/BaseQuiver.cs
@@ -19,35 +19,35 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster)]
public AosAttributes Attributes
{
- get{ return m_Attributes; }
+ get => m_Attributes;
set{}
}
[CommandProperty( AccessLevel.GameMaster)]
public int Capacity
{
- get{ return m_Capacity; }
+ get => m_Capacity;
set{ m_Capacity = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster)]
public int LowerAmmoCost
{
- get{ return m_LowerAmmoCost; }
+ get => m_LowerAmmoCost;
set{ m_LowerAmmoCost = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster)]
public int WeightReduction
{
- get{ return m_WeightReduction; }
+ get => m_WeightReduction;
set{ m_WeightReduction = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster)]
public int DamageIncrease
{
- get{ return m_DamageIncrease; }
+ get => m_DamageIncrease;
set{ m_DamageIncrease = value; InvalidateProperties(); }
}
@@ -57,21 +57,18 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Crafter
{
- get{ return m_Crafter; }
+ get => m_Crafter;
set{ m_Crafter = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public ClothingQuality Quality
{
- get{ return m_Quality; }
+ get => m_Quality;
set{ m_Quality = value; InvalidateProperties(); }
}
- public Item Ammo
- {
- get{ return Items.Count > 0 ? Items[ 0 ] : null; }
- }
+ public Item Ammo => Items.Count > 0 ? Items[ 0 ] : null;
public BaseQuiver() : this( 0x2FB7 )
{
diff --git a/Scripts/Items/Resources/Arrows/Arrow.cs b/Scripts/Items/Resources/Arrows/Arrow.cs
index 2277cb5a1..1c879789d 100644
--- a/Scripts/Items/Resources/Arrows/Arrow.cs
+++ b/Scripts/Items/Resources/Arrows/Arrow.cs
@@ -2,13 +2,10 @@ namespace Server.Items
{
public class Arrow : Item, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Arrow() : this( 1 )
diff --git a/Scripts/Items/Resources/Arrows/Bolt.cs b/Scripts/Items/Resources/Arrows/Bolt.cs
index f8413ed14..003effe1b 100644
--- a/Scripts/Items/Resources/Arrows/Bolt.cs
+++ b/Scripts/Items/Resources/Arrows/Bolt.cs
@@ -2,13 +2,10 @@ namespace Server.Items
{
public class Bolt : Item, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Bolt() : this( 1 )
diff --git a/Scripts/Items/Resources/Arrows/Feather.cs b/Scripts/Items/Resources/Arrows/Feather.cs
index 457bfbb5b..124981ee5 100644
--- a/Scripts/Items/Resources/Arrows/Feather.cs
+++ b/Scripts/Items/Resources/Arrows/Feather.cs
@@ -2,13 +2,10 @@ namespace Server.Items
{
public class Feather : Item, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Feather() : this( 1 )
diff --git a/Scripts/Items/Resources/Arrows/Shaft.cs b/Scripts/Items/Resources/Arrows/Shaft.cs
index 22437e6bf..a01adc17d 100644
--- a/Scripts/Items/Resources/Arrows/Shaft.cs
+++ b/Scripts/Items/Resources/Arrows/Shaft.cs
@@ -2,13 +2,10 @@ namespace Server.Items
{
public class Shaft : Item, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Shaft() : this( 1 )
diff --git a/Scripts/Items/Resources/Blacksmithing/Ingots.cs b/Scripts/Items/Resources/Blacksmithing/Ingots.cs
index f98ec3871..c0f8f6510 100644
--- a/Scripts/Items/Resources/Blacksmithing/Ingots.cs
+++ b/Scripts/Items/Resources/Blacksmithing/Ingots.cs
@@ -7,17 +7,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set{ m_Resource = value; InvalidateProperties(); }
}
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
-
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ public override double DefaultWeight => 0.1;
+
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Items/Resources/Blacksmithing/Ore.cs b/Scripts/Items/Resources/Blacksmithing/Ore.cs
index 51699a48b..084dbf9cc 100644
--- a/Scripts/Items/Resources/Blacksmithing/Ore.cs
+++ b/Scripts/Items/Resources/Blacksmithing/Ore.cs
@@ -11,7 +11,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set{ m_Resource = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Resources/Blacksmithing/Scales.cs b/Scripts/Items/Resources/Blacksmithing/Scales.cs
index f432dc28e..cb60eb70f 100644
--- a/Scripts/Items/Resources/Blacksmithing/Scales.cs
+++ b/Scripts/Items/Resources/Blacksmithing/Scales.cs
@@ -9,17 +9,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set{ m_Resource = value; InvalidateProperties(); }
}
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Items/Resources/Fishing/BigFish.cs b/Scripts/Items/Resources/Fishing/BigFish.cs
index 5ab692470..108a2ade2 100644
--- a/Scripts/Items/Resources/Fishing/BigFish.cs
+++ b/Scripts/Items/Resources/Fishing/BigFish.cs
@@ -9,7 +9,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Fisher
{
- get{ return m_Fisher; }
+ get => m_Fisher;
set{ m_Fisher = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Resources/Fishing/MagicFish.cs b/Scripts/Items/Resources/Fishing/MagicFish.cs
index 3fd3f6def..c943e6e9c 100644
--- a/Scripts/Items/Resources/Fishing/MagicFish.cs
+++ b/Scripts/Items/Resources/Fishing/MagicFish.cs
@@ -5,13 +5,10 @@ namespace Server.Items
{
public abstract class BaseMagicFish : Item
{
- public virtual int Bonus{ get{ return 0; } }
- public virtual StatType Type{ get{ return StatType.Str; } }
+ public virtual int Bonus => 0;
+ public virtual StatType Type => StatType.Str;
- public override double DefaultWeight
- {
- get { return 1.0; }
- }
+ public override double DefaultWeight => 1.0;
public BaseMagicFish( int hue ) : base( 0xDD6 )
{
diff --git a/Scripts/Items/Resources/Masonry/Granite.cs b/Scripts/Items/Resources/Masonry/Granite.cs
index 8076345c1..98a680898 100644
--- a/Scripts/Items/Resources/Masonry/Granite.cs
+++ b/Scripts/Items/Resources/Masonry/Granite.cs
@@ -7,7 +7,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set{ m_Resource = value; InvalidateProperties(); }
}
@@ -40,10 +40,7 @@ namespace Server.Items
Stackable = Core.ML;
}
- public override double DefaultWeight
- {
- get { return Core.ML ? 1.0 : 10.0; } // Pub 57
- }
+ public override double DefaultWeight => Core.ML ? 1.0 : 10.0;
public BaseGranite( CraftResource resource ) : base( 0x1779 )
{
diff --git a/Scripts/Items/Resources/Reagents/BaseReagent.cs b/Scripts/Items/Resources/Reagents/BaseReagent.cs
index 47c380d15..189f63fee 100644
--- a/Scripts/Items/Resources/Reagents/BaseReagent.cs
+++ b/Scripts/Items/Resources/Reagents/BaseReagent.cs
@@ -2,10 +2,7 @@ namespace Server.Items
{
public abstract class BaseReagent : Item
{
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
public BaseReagent( int itemID ) : this( itemID, 1 )
{
diff --git a/Scripts/Items/Resources/Reagents/BatWing.cs b/Scripts/Items/Resources/Reagents/BatWing.cs
index 68fae0021..5e0db1c8d 100644
--- a/Scripts/Items/Resources/Reagents/BatWing.cs
+++ b/Scripts/Items/Resources/Reagents/BatWing.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class BatWing : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public BatWing() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/BlackPearl.cs b/Scripts/Items/Resources/Reagents/BlackPearl.cs
index c9749c07e..32aee0ead 100644
--- a/Scripts/Items/Resources/Reagents/BlackPearl.cs
+++ b/Scripts/Items/Resources/Reagents/BlackPearl.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class BlackPearl : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public BlackPearl() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/Bloodmoss.cs b/Scripts/Items/Resources/Reagents/Bloodmoss.cs
index 7b5463e4a..f49ffbac0 100644
--- a/Scripts/Items/Resources/Reagents/Bloodmoss.cs
+++ b/Scripts/Items/Resources/Reagents/Bloodmoss.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class Bloodmoss : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public Bloodmoss() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/DaemonBlood.cs b/Scripts/Items/Resources/Reagents/DaemonBlood.cs
index b54c1e435..24f07a484 100644
--- a/Scripts/Items/Resources/Reagents/DaemonBlood.cs
+++ b/Scripts/Items/Resources/Reagents/DaemonBlood.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class DaemonBlood : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public DaemonBlood() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/DaemonBone.cs b/Scripts/Items/Resources/Reagents/DaemonBone.cs
index 23b73f754..0ffa9971a 100644
--- a/Scripts/Items/Resources/Reagents/DaemonBone.cs
+++ b/Scripts/Items/Resources/Reagents/DaemonBone.cs
@@ -3,10 +3,7 @@ namespace Server.Items
// TODO: Commodity?
public class DaemonBone : BaseReagent
{
- public override double DefaultWeight
- {
- get { return 1.0; }
- }
+ public override double DefaultWeight => 1.0;
[Constructible]
public DaemonBone() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/DeadWood.cs b/Scripts/Items/Resources/Reagents/DeadWood.cs
index 3f04c28e3..6a5cf3e6a 100644
--- a/Scripts/Items/Resources/Reagents/DeadWood.cs
+++ b/Scripts/Items/Resources/Reagents/DeadWood.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class DeadWood : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public DeadWood() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/DragonsBlood.cs b/Scripts/Items/Resources/Reagents/DragonsBlood.cs
index 3c78982a0..7cd67f355 100644
--- a/Scripts/Items/Resources/Reagents/DragonsBlood.cs
+++ b/Scripts/Items/Resources/Reagents/DragonsBlood.cs
@@ -2,8 +2,8 @@
{
public class DragonsBlood : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return Core.ML; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => Core.ML;
[Constructible]
public DragonsBlood()
diff --git a/Scripts/Items/Resources/Reagents/Garlic.cs b/Scripts/Items/Resources/Reagents/Garlic.cs
index a65179888..b1d24b434 100644
--- a/Scripts/Items/Resources/Reagents/Garlic.cs
+++ b/Scripts/Items/Resources/Reagents/Garlic.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class Garlic : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public Garlic() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/Ginseng.cs b/Scripts/Items/Resources/Reagents/Ginseng.cs
index 179ca45a3..b59a6a8cf 100644
--- a/Scripts/Items/Resources/Reagents/Ginseng.cs
+++ b/Scripts/Items/Resources/Reagents/Ginseng.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class Ginseng : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public Ginseng() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/GraveDust.cs b/Scripts/Items/Resources/Reagents/GraveDust.cs
index 2aa51d98d..5fa2a4da8 100644
--- a/Scripts/Items/Resources/Reagents/GraveDust.cs
+++ b/Scripts/Items/Resources/Reagents/GraveDust.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class GraveDust : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public GraveDust() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/MandrakeRoot.cs b/Scripts/Items/Resources/Reagents/MandrakeRoot.cs
index e525c0d7a..c6a3cd3d4 100644
--- a/Scripts/Items/Resources/Reagents/MandrakeRoot.cs
+++ b/Scripts/Items/Resources/Reagents/MandrakeRoot.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class MandrakeRoot : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public MandrakeRoot() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/Nightshade.cs b/Scripts/Items/Resources/Reagents/Nightshade.cs
index 4372f1997..9868408c0 100644
--- a/Scripts/Items/Resources/Reagents/Nightshade.cs
+++ b/Scripts/Items/Resources/Reagents/Nightshade.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class Nightshade : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public Nightshade() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/NoxCrystal.cs b/Scripts/Items/Resources/Reagents/NoxCrystal.cs
index 5267b7b23..d7736cda1 100644
--- a/Scripts/Items/Resources/Reagents/NoxCrystal.cs
+++ b/Scripts/Items/Resources/Reagents/NoxCrystal.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class NoxCrystal : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public NoxCrystal() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/PigIron.cs b/Scripts/Items/Resources/Reagents/PigIron.cs
index 0f62f4675..0b88ec676 100644
--- a/Scripts/Items/Resources/Reagents/PigIron.cs
+++ b/Scripts/Items/Resources/Reagents/PigIron.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class PigIron : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public PigIron() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/SpidersSilk.cs b/Scripts/Items/Resources/Reagents/SpidersSilk.cs
index 732199151..3d84ea39a 100644
--- a/Scripts/Items/Resources/Reagents/SpidersSilk.cs
+++ b/Scripts/Items/Resources/Reagents/SpidersSilk.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class SpidersSilk : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public SpidersSilk() : this( 1 )
diff --git a/Scripts/Items/Resources/Reagents/SulfurousAsh.cs b/Scripts/Items/Resources/Reagents/SulfurousAsh.cs
index f9666067c..2be7fed8c 100644
--- a/Scripts/Items/Resources/Reagents/SulfurousAsh.cs
+++ b/Scripts/Items/Resources/Reagents/SulfurousAsh.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class SulfurousAsh : BaseReagent, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public SulfurousAsh() : this( 1 )
diff --git a/Scripts/Items/Resources/Tailor/BoltOfCloth.cs b/Scripts/Items/Resources/Tailor/BoltOfCloth.cs
index 5cfa14189..ba856c83f 100644
--- a/Scripts/Items/Resources/Tailor/BoltOfCloth.cs
+++ b/Scripts/Items/Resources/Tailor/BoltOfCloth.cs
@@ -5,8 +5,8 @@ namespace Server.Items
[FlippableAttribute( 0xF95, 0xF96, 0xF97, 0xF98, 0xF99, 0xF9A, 0xF9B, 0xF9C )]
public class BoltOfCloth : Item, IScissorable, IDyable, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public BoltOfCloth() : this( 1 )
diff --git a/Scripts/Items/Resources/Tailor/Bone.cs b/Scripts/Items/Resources/Tailor/Bone.cs
index db92ee626..e31657257 100644
--- a/Scripts/Items/Resources/Tailor/Bone.cs
+++ b/Scripts/Items/Resources/Tailor/Bone.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class Bone : Item, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
[Constructible]
public Bone() : this( 1 )
diff --git a/Scripts/Items/Resources/Tailor/Cloth.cs b/Scripts/Items/Resources/Tailor/Cloth.cs
index ca43b96e5..9e47a1e3d 100644
--- a/Scripts/Items/Resources/Tailor/Cloth.cs
+++ b/Scripts/Items/Resources/Tailor/Cloth.cs
@@ -5,13 +5,10 @@ namespace Server.Items
[FlippableAttribute( 0x1766, 0x1768 )]
public class Cloth : Item, IScissorable, IDyable, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public Cloth() : this( 1 )
diff --git a/Scripts/Items/Resources/Tailor/Hides.cs b/Scripts/Items/Resources/Tailor/Hides.cs
index f52855a61..126602328 100644
--- a/Scripts/Items/Resources/Tailor/Hides.cs
+++ b/Scripts/Items/Resources/Tailor/Hides.cs
@@ -7,12 +7,12 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set{ m_Resource = value; InvalidateProperties(); }
}
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Items/Resources/Tailor/Leathers.cs b/Scripts/Items/Resources/Tailor/Leathers.cs
index ccf8688c1..ec9024e43 100644
--- a/Scripts/Items/Resources/Tailor/Leathers.cs
+++ b/Scripts/Items/Resources/Tailor/Leathers.cs
@@ -7,12 +7,12 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set{ m_Resource = value; InvalidateProperties(); }
}
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Items/Resources/Tailor/UncutCloth.cs b/Scripts/Items/Resources/Tailor/UncutCloth.cs
index 83ccea6b1..8dd032ff2 100644
--- a/Scripts/Items/Resources/Tailor/UncutCloth.cs
+++ b/Scripts/Items/Resources/Tailor/UncutCloth.cs
@@ -5,13 +5,10 @@ namespace Server.Items
[FlippableAttribute( 0x1765, 0x1767 )]
public class UncutCloth : Item, IScissorable, IDyable, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
[Constructible]
public UncutCloth() : this( 1 )
diff --git a/Scripts/Items/Skill Items/Camping/Campfire.cs b/Scripts/Items/Skill Items/Camping/Campfire.cs
index 9ce3589a5..95c08034a 100644
--- a/Scripts/Items/Skill Items/Camping/Campfire.cs
+++ b/Scripts/Items/Skill Items/Camping/Campfire.cs
@@ -50,10 +50,7 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public DateTime Created
- {
- get{ return m_Created; }
- }
+ public DateTime Created => m_Created;
[CommandProperty( AccessLevel.GameMaster )]
public CampfireStatus Status
@@ -186,19 +183,16 @@ namespace Server.Items
private DateTime m_Start;
private bool m_Safe;
- public PlayerMobile Player{ get{ return m_Player; } }
- public Campfire Fire{ get{ return m_Fire; } }
- public DateTime Start{ get{ return m_Start; } }
+ public PlayerMobile Player => m_Player;
+ public Campfire Fire => m_Fire;
+ public DateTime Start => m_Start;
- public bool Valid
- {
- get{ return !Fire.Deleted && Fire.Status != CampfireStatus.Off && Player.Map == Fire.Map && Player.InRange( Fire, Campfire.SecureRange ); }
- }
+ public bool Valid => !Fire.Deleted && Fire.Status != CampfireStatus.Off && Player.Map == Fire.Map && Player.InRange( Fire, Campfire.SecureRange );
public bool Safe
{
- get{ return Valid && m_Safe; }
- set{ m_Safe = value; }
+ get => Valid && m_Safe;
+ set => m_Safe = value;
}
public CampfireEntry( PlayerMobile player, Campfire fire )
diff --git a/Scripts/Items/Skill Items/Carpenter Items/Board.cs b/Scripts/Items/Skill Items/Carpenter Items/Board.cs
index 3b28eab98..9a5e1879b 100644
--- a/Scripts/Items/Skill Items/Carpenter Items/Board.cs
+++ b/Scripts/Items/Skill Items/Carpenter Items/Board.cs
@@ -8,7 +8,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get { return m_Resource; }
+ get => m_Resource;
set { m_Resource = value; InvalidateProperties(); }
}
@@ -30,7 +30,7 @@ namespace Server.Items
}
}
- bool ICommodity.IsDeedable { get { return true; } }
+ bool ICommodity.IsDeedable => true;
[Constructible]
public Board()
diff --git a/Scripts/Items/Skill Items/Carpenter Items/TaxidermyKit.cs b/Scripts/Items/Skill Items/Carpenter Items/TaxidermyKit.cs
index b9ac6b233..77f641c12 100644
--- a/Scripts/Items/Skill Items/Carpenter Items/TaxidermyKit.cs
+++ b/Scripts/Items/Skill Items/Carpenter Items/TaxidermyKit.cs
@@ -180,22 +180,31 @@ namespace Server.Items
private int m_AnimalWeight;
[CommandProperty( AccessLevel.GameMaster )]
- public int WestID{ get{ return m_WestID; } set{ m_WestID = value; } }
+ public int WestID{ get => m_WestID;
+ set => m_WestID = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int NorthID{ get{ return m_NorthID; } set{ m_NorthID = value; } }
+ public int NorthID{ get => m_NorthID;
+ set => m_NorthID = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int DeedNumber{ get{ return m_DeedNumber; } set{ m_DeedNumber = value; } }
+ public int DeedNumber{ get => m_DeedNumber;
+ set => m_DeedNumber = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int AddonNumber{ get{ return m_AddonNumber; } set{ m_AddonNumber = value; InvalidateProperties(); } }
+ public int AddonNumber{ get => m_AddonNumber;
+ set{ m_AddonNumber = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public Mobile Hunter{ get{ return m_Hunter; } set{ m_Hunter = value; InvalidateProperties(); } }
+ public Mobile Hunter{ get => m_Hunter;
+ set{ m_Hunter = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int AnimalWeight{ get{ return m_AnimalWeight; } set{ m_AnimalWeight = value; InvalidateProperties(); } }
+ public int AnimalWeight{ get => m_AnimalWeight;
+ set{ m_AnimalWeight = value; InvalidateProperties(); } }
public override int LabelNumber => m_AddonNumber;
@@ -312,10 +321,7 @@ namespace Server.Items
}
}
- public Item Deed
- {
- get{ return new TrophyDeed( m_WestID, m_NorthID, m_DeedNumber, m_AddonNumber, m_Hunter, m_AnimalWeight ); }
- }
+ public Item Deed => new TrophyDeed( m_WestID, m_NorthID, m_DeedNumber, m_AddonNumber, m_Hunter, m_AnimalWeight );
public override void OnDoubleClick( Mobile from )
{
@@ -348,22 +354,31 @@ namespace Server.Items
private int m_AnimalWeight;
[CommandProperty( AccessLevel.GameMaster )]
- public int WestID{ get{ return m_WestID; } set{ m_WestID = value; } }
+ public int WestID{ get => m_WestID;
+ set => m_WestID = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int NorthID{ get{ return m_NorthID; } set{ m_NorthID = value; } }
+ public int NorthID{ get => m_NorthID;
+ set => m_NorthID = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int DeedNumber{ get{ return m_DeedNumber; } set{ m_DeedNumber = value; InvalidateProperties(); } }
+ public int DeedNumber{ get => m_DeedNumber;
+ set{ m_DeedNumber = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int AddonNumber{ get{ return m_AddonNumber; } set{ m_AddonNumber = value; } }
+ public int AddonNumber{ get => m_AddonNumber;
+ set => m_AddonNumber = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public Mobile Hunter{ get{ return m_Hunter; } set{ m_Hunter = value; InvalidateProperties(); } }
+ public Mobile Hunter{ get => m_Hunter;
+ set{ m_Hunter = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int AnimalWeight{ get{ return m_AnimalWeight; } set{ m_AnimalWeight = value; InvalidateProperties(); } }
+ public int AnimalWeight{ get => m_AnimalWeight;
+ set{ m_AnimalWeight = value; InvalidateProperties(); } }
public override int LabelNumber => m_DeedNumber;
diff --git a/Scripts/Items/Skill Items/Fishing/Misc/MessageInABottle.cs b/Scripts/Items/Skill Items/Fishing/Misc/MessageInABottle.cs
index 4e10b8010..722829027 100644
--- a/Scripts/Items/Skill Items/Fishing/Misc/MessageInABottle.cs
+++ b/Scripts/Items/Skill Items/Fishing/Misc/MessageInABottle.cs
@@ -20,15 +20,15 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Map TargetMap
{
- get{ return m_TargetMap; }
- set{ m_TargetMap = value; }
+ get => m_TargetMap;
+ set => m_TargetMap = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Level
{
- get{ return m_Level; }
- set{ m_Level = Math.Max( 1, Math.Min( value, 4 ) ); }
+ get => m_Level;
+ set => m_Level = Math.Max( 1, Math.Min( value, 4 ) );
}
[Constructible]
diff --git a/Scripts/Items/Skill Items/Fishing/Misc/SOS.cs b/Scripts/Items/Skill Items/Fishing/Misc/SOS.cs
index 957ecaee6..a44d14634 100644
--- a/Scripts/Items/Skill Items/Fishing/Misc/SOS.cs
+++ b/Scripts/Items/Skill Items/Fishing/Misc/SOS.cs
@@ -23,15 +23,12 @@ namespace Server.Items
private int m_MessageIndex;
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsAncient
- {
- get{ return ( m_Level >= 4 ); }
- }
+ public bool IsAncient => ( m_Level >= 4 );
[CommandProperty( AccessLevel.GameMaster )]
public int Level
{
- get{ return m_Level; }
+ get => m_Level;
set
{
m_Level = Math.Max( 1, Math.Min( value, 4 ) );
@@ -43,22 +40,22 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Map TargetMap
{
- get{ return m_TargetMap; }
- set{ m_TargetMap = value; }
+ get => m_TargetMap;
+ set => m_TargetMap = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Point3D TargetLocation
{
- get{ return m_TargetLocation; }
- set{ m_TargetLocation = value; }
+ get => m_TargetLocation;
+ set => m_TargetLocation = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int MessageIndex
{
- get{ return m_MessageIndex; }
- set{ m_MessageIndex = value; }
+ get => m_MessageIndex;
+ set => m_MessageIndex = value;
}
public void UpdateHue()
@@ -304,9 +301,9 @@ namespace Server.Items
private int m_Width, m_Height;
private string m_Message;
- public int Width{ get{ return m_Width; } }
- public int Height{ get{ return m_Height; } }
- public string Message{ get{ return m_Message; } }
+ public int Width => m_Width;
+ public int Height => m_Height;
+ public string Message => m_Message;
public MessageEntry( int width, int height, string message )
{
@@ -331,10 +328,7 @@ namespace Server.Items
new MessageEntry( 280, 250, "...was a cad and a boor, no matter what momma s...rew him overboard! Oh, Anna, 'twas so exciting!
Unfort...y he grabbe...est, and all his riches went with him!
...sked the captain, and he says we're at {0}
...so maybe..." )
};
- public static MessageEntry[] Entries
- {
- get{ return m_Entries; }
- }
+ public static MessageEntry[] Entries => m_Entries;
}
}
}
diff --git a/Scripts/Items/Skill Items/Fishing/Misc/ShipwreckedItem.cs b/Scripts/Items/Skill Items/Fishing/Misc/ShipwreckedItem.cs
index 5d1eb6c73..d8a01e639 100644
--- a/Scripts/Items/Skill Items/Fishing/Misc/ShipwreckedItem.cs
+++ b/Scripts/Items/Skill Items/Fishing/Misc/ShipwreckedItem.cs
@@ -67,10 +67,7 @@ namespace Server.Items
public bool IsShipwreckedItem
{
- get
- {
- return true; //It's a ShipwreckedItem item. 'Course it's gonna be a Shipwreckeditem
- }
+ get => true;
set
{
}
diff --git a/Scripts/Items/Skill Items/Fishing/Misc/SpecialFishingNet.cs b/Scripts/Items/Skill Items/Fishing/Misc/SpecialFishingNet.cs
index 604b0ddce..b4139d864 100644
--- a/Scripts/Items/Skill Items/Fishing/Misc/SpecialFishingNet.cs
+++ b/Scripts/Items/Skill Items/Fishing/Misc/SpecialFishingNet.cs
@@ -15,8 +15,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool InUse
{
- get{ return m_InUse; }
- set{ m_InUse = value; }
+ get => m_InUse;
+ set => m_InUse = value;
}
[Constructible]
diff --git a/Scripts/Items/Skill Items/Harvest Tools/BaseHarvestTool.cs b/Scripts/Items/Skill Items/Harvest Tools/BaseHarvestTool.cs
index c3f331ad4..7806897c8 100644
--- a/Scripts/Items/Skill Items/Harvest Tools/BaseHarvestTool.cs
+++ b/Scripts/Items/Skill Items/Harvest Tools/BaseHarvestTool.cs
@@ -23,21 +23,21 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Crafter
{
- get{ return m_Crafter; }
+ get => m_Crafter;
set{ m_Crafter = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public ToolQuality Quality
{
- get{ return m_Quality; }
+ get => m_Quality;
set{ UnscaleUses(); m_Quality = value; InvalidateProperties(); ScaleUses(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
@@ -60,7 +60,8 @@ namespace Server.Items
return 100;
}
- public bool ShowUsesRemaining{ get{ return true; } set{} }
+ public bool ShowUsesRemaining{ get => true;
+ set{} }
public abstract HarvestSystem HarvestSystem{ get; }
diff --git a/Scripts/Items/Skill Items/Harvest Tools/ProspectorsTool.cs b/Scripts/Items/Skill Items/Harvest Tools/ProspectorsTool.cs
index a77ff62a4..4be358b32 100644
--- a/Scripts/Items/Skill Items/Harvest Tools/ProspectorsTool.cs
+++ b/Scripts/Items/Skill Items/Harvest Tools/ProspectorsTool.cs
@@ -11,11 +11,12 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
- public bool ShowUsesRemaining{ get{ return true; } set{} }
+ public bool ShowUsesRemaining{ get => true;
+ set{} }
public override int LabelNumber => 1049065; // prospector's tool
diff --git a/Scripts/Items/Skill Items/Lumberjack/Log.cs b/Scripts/Items/Skill Items/Lumberjack/Log.cs
index ffacfc6ef..33072ac4a 100644
--- a/Scripts/Items/Skill Items/Lumberjack/Log.cs
+++ b/Scripts/Items/Skill Items/Lumberjack/Log.cs
@@ -8,12 +8,12 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get { return m_Resource; }
+ get => m_Resource;
set { m_Resource = value; InvalidateProperties(); }
}
- int ICommodity.DescriptionNumber { get { return CraftResources.IsStandard( m_Resource ) ? LabelNumber : 1075062 + ( (int)m_Resource - (int)CraftResource.RegularWood ); } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => CraftResources.IsStandard( m_Resource ) ? LabelNumber : 1075062 + ( (int)m_Resource - (int)CraftResource.RegularWood );
+ bool ICommodity.IsDeedable => true;
[Constructible]
public Log() : this( 1 )
diff --git a/Scripts/Items/Skill Items/Magical/Misc/BlankScroll.cs b/Scripts/Items/Skill Items/Magical/Misc/BlankScroll.cs
index d95a08b0c..f7f70269f 100644
--- a/Scripts/Items/Skill Items/Magical/Misc/BlankScroll.cs
+++ b/Scripts/Items/Skill Items/Magical/Misc/BlankScroll.cs
@@ -15,8 +15,8 @@ namespace Server.Items
Amount = amount;
}
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return (Core.ML); } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => (Core.ML);
public BlankScroll( Serial serial ) : base( serial )
{
diff --git a/Scripts/Items/Skill Items/Magical/Misc/Bottle.cs b/Scripts/Items/Skill Items/Magical/Misc/Bottle.cs
index 7398c78d0..6c8237e2c 100644
--- a/Scripts/Items/Skill Items/Magical/Misc/Bottle.cs
+++ b/Scripts/Items/Skill Items/Magical/Misc/Bottle.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class Bottle : Item, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return (Core.ML); } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => (Core.ML);
[Constructible]
public Bottle() : this( 1 )
diff --git a/Scripts/Items/Skill Items/Magical/Misc/Moongate.cs b/Scripts/Items/Skill Items/Magical/Misc/Moongate.cs
index 803bdfc6e..4aab20440 100644
--- a/Scripts/Items/Skill Items/Magical/Misc/Moongate.cs
+++ b/Scripts/Items/Skill Items/Magical/Misc/Moongate.cs
@@ -17,43 +17,25 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Point3D Target
{
- get
- {
- return m_Target;
- }
- set
- {
- m_Target = value;
- }
+ get => m_Target;
+ set => m_Target = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Map TargetMap
{
- get
- {
- return m_TargetMap;
- }
- set
- {
- m_TargetMap = value;
- }
+ get => m_TargetMap;
+ set => m_TargetMap = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Dispellable
{
- get
- {
- return m_bDispellable;
- }
- set
- {
- m_bDispellable = value;
- }
+ get => m_bDispellable;
+ set => m_bDispellable = value;
}
- public virtual bool ShowFeluccaWarning{ get{ return false; } }
+ public virtual bool ShowFeluccaWarning => false;
[Constructible]
public Moongate() : this( Point3D.Zero, null )
@@ -273,50 +255,50 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int GumpWidth
{
- get{ return m_GumpWidth; }
- set{ m_GumpWidth = value; }
+ get => m_GumpWidth;
+ set => m_GumpWidth = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int GumpHeight
{
- get{ return m_GumpHeight; }
- set{ m_GumpHeight = value; }
+ get => m_GumpHeight;
+ set => m_GumpHeight = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int TitleColor
{
- get{ return m_TitleColor; }
- set{ m_TitleColor = value; }
+ get => m_TitleColor;
+ set => m_TitleColor = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int MessageColor
{
- get{ return m_MessageColor; }
- set{ m_MessageColor = value; }
+ get => m_MessageColor;
+ set => m_MessageColor = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int TitleNumber
{
- get{ return m_TitleNumber; }
- set{ m_TitleNumber = value; }
+ get => m_TitleNumber;
+ set => m_TitleNumber = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int MessageNumber
{
- get{ return m_MessageNumber; }
- set{ m_MessageNumber = value; }
+ get => m_MessageNumber;
+ set => m_MessageNumber = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string MessageString
{
- get{ return m_MessageString; }
- set{ m_MessageString = value; }
+ get => m_MessageString;
+ set => m_MessageString = value;
}
[Constructible]
diff --git a/Scripts/Items/Skill Items/Magical/Misc/PotionKeg.cs b/Scripts/Items/Skill Items/Magical/Misc/PotionKeg.cs
index f0bd208cd..7fa36979d 100644
--- a/Scripts/Items/Skill Items/Magical/Misc/PotionKeg.cs
+++ b/Scripts/Items/Skill Items/Magical/Misc/PotionKeg.cs
@@ -10,10 +10,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Held
{
- get
- {
- return m_Held;
- }
+ get => m_Held;
set
{
if ( m_Held != value )
@@ -28,10 +25,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public PotionEffect Type
{
- get
- {
- return m_Type;
- }
+ get => m_Type;
set
{
m_Type = value;
diff --git a/Scripts/Items/Skill Items/Magical/Misc/RecallRune.cs b/Scripts/Items/Skill Items/Magical/Misc/RecallRune.cs
index 9df99a8d5..aef79e020 100644
--- a/Scripts/Items/Skill Items/Magical/Misc/RecallRune.cs
+++ b/Scripts/Items/Skill Items/Magical/Misc/RecallRune.cs
@@ -78,10 +78,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.Counselor, AccessLevel.GameMaster )]
public string Description
{
- get
- {
- return m_Description;
- }
+ get => m_Description;
set
{
m_Description = value;
@@ -92,10 +89,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.Counselor, AccessLevel.GameMaster )]
public bool Marked
{
- get
- {
- return m_Marked;
- }
+ get => m_Marked;
set
{
if ( m_Marked != value )
@@ -110,23 +104,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.Counselor, AccessLevel.GameMaster )]
public Point3D Target
{
- get
- {
- return m_Target;
- }
- set
- {
- m_Target = value;
- }
+ get => m_Target;
+ set => m_Target = value;
}
[CommandProperty( AccessLevel.Counselor, AccessLevel.GameMaster )]
public Map TargetMap
{
- get
- {
- return m_TargetMap;
- }
+ get => m_TargetMap;
set
{
if ( m_TargetMap != value )
diff --git a/Scripts/Items/Skill Items/Magical/Potions/BasePotion.cs b/Scripts/Items/Skill Items/Magical/Potions/BasePotion.cs
index 8a7ad8f97..40f11e4e9 100644
--- a/Scripts/Items/Skill Items/Magical/Potions/BasePotion.cs
+++ b/Scripts/Items/Skill Items/Magical/Potions/BasePotion.cs
@@ -43,10 +43,7 @@ namespace Server.Items
public PotionEffect PotionEffect
{
- get
- {
- return m_PotionEffect;
- }
+ get => m_PotionEffect;
set
{
m_PotionEffect = value;
@@ -54,8 +51,8 @@ namespace Server.Items
}
}
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return (Core.ML); } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => (Core.ML);
public override int LabelNumber => 1041314 + (int)m_PotionEffect;
@@ -71,7 +68,7 @@ namespace Server.Items
{
}
- public virtual bool RequireFreeHand{ get{ return true; } }
+ public virtual bool RequireFreeHand => true;
public static bool HasFreeHand( Mobile m )
{
diff --git a/Scripts/Items/Skill Items/Magical/Potions/Conflagration Potions/BaseConflagrationPotion.cs b/Scripts/Items/Skill Items/Magical/Potions/Conflagration Potions/BaseConflagrationPotion.cs
index ad132a35e..d950f962c 100644
--- a/Scripts/Items/Skill Items/Magical/Potions/Conflagration Potions/BaseConflagrationPotion.cs
+++ b/Scripts/Items/Skill Items/Magical/Potions/Conflagration Potions/BaseConflagrationPotion.cs
@@ -140,10 +140,7 @@ namespace Server.Items
{
private BaseConflagrationPotion m_Potion;
- public BaseConflagrationPotion Potion
- {
- get{ return m_Potion; }
- }
+ public BaseConflagrationPotion Potion => m_Potion;
public ThrowTarget( BaseConflagrationPotion potion ) : base( 12, true, TargetFlags.None )
{
@@ -185,7 +182,7 @@ namespace Server.Items
private DateTime m_End;
private Timer m_Timer;
- public Mobile From{ get{ return m_From; } }
+ public Mobile From => m_From;
public override bool BlocksFit => true;
diff --git a/Scripts/Items/Skill Items/Magical/Potions/Confusion Blast Potions/BaseConfusionBlastPotion.cs b/Scripts/Items/Skill Items/Magical/Potions/Confusion Blast Potions/BaseConfusionBlastPotion.cs
index b60ede52d..2ad2093b7 100644
--- a/Scripts/Items/Skill Items/Magical/Potions/Confusion Blast Potions/BaseConfusionBlastPotion.cs
+++ b/Scripts/Items/Skill Items/Magical/Potions/Confusion Blast Potions/BaseConfusionBlastPotion.cs
@@ -160,10 +160,7 @@ namespace Server.Items
{
private BaseConfusionBlastPotion m_Potion;
- public BaseConfusionBlastPotion Potion
- {
- get{ return m_Potion; }
- }
+ public BaseConfusionBlastPotion Potion => m_Potion;
public ThrowTarget( BaseConfusionBlastPotion potion ) : base( 12, true, TargetFlags.None )
{
diff --git a/Scripts/Items/Skill Items/Magical/Potions/Cure Potions/BaseCurePotion.cs b/Scripts/Items/Skill Items/Magical/Potions/Cure Potions/BaseCurePotion.cs
index 6256408e3..bb37ec6cf 100644
--- a/Scripts/Items/Skill Items/Magical/Potions/Cure Potions/BaseCurePotion.cs
+++ b/Scripts/Items/Skill Items/Magical/Potions/Cure Potions/BaseCurePotion.cs
@@ -7,15 +7,9 @@ namespace Server.Items
private Poison m_Poison;
private double m_Chance;
- public Poison Poison
- {
- get{ return m_Poison; }
- }
+ public Poison Poison => m_Poison;
- public double Chance
- {
- get{ return m_Chance; }
- }
+ public double Chance => m_Chance;
public CureLevelInfo( Poison poison, double chance )
{
diff --git a/Scripts/Items/Skill Items/Magical/Potions/Explosion Potions/BaseExplosionPotion.cs b/Scripts/Items/Skill Items/Magical/Potions/Explosion Potions/BaseExplosionPotion.cs
index 3d42b3cd8..5e793c258 100644
--- a/Scripts/Items/Skill Items/Magical/Potions/Explosion Potions/BaseExplosionPotion.cs
+++ b/Scripts/Items/Skill Items/Magical/Potions/Explosion Potions/BaseExplosionPotion.cs
@@ -166,10 +166,7 @@ namespace Server.Items
{
private BaseExplosionPotion m_Potion;
- public BaseExplosionPotion Potion
- {
- get{ return m_Potion; }
- }
+ public BaseExplosionPotion Potion => m_Potion;
public ThrowTarget( BaseExplosionPotion potion ) : base( 12, true, TargetFlags.None )
{
diff --git a/Scripts/Items/Skill Items/Magical/Runebook.cs b/Scripts/Items/Skill Items/Magical/Runebook.cs
index 1c9bc4aee..a80026a11 100644
--- a/Scripts/Items/Skill Items/Magical/Runebook.cs
+++ b/Scripts/Items/Skill Items/Magical/Runebook.cs
@@ -18,7 +18,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public BookQuality Quality
{
- get{ return m_Quality; }
+ get => m_Quality;
set{ m_Quality = value; InvalidateProperties(); }
}
@@ -36,31 +36,28 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public DateTime NextUse
{
- get{ return m_NextUse; }
- set{ m_NextUse = value; }
+ get => m_NextUse;
+ set => m_NextUse = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Crafter
{
- get{ return m_Crafter; }
+ get => m_Crafter;
set{ m_Crafter = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get{ return m_Level; }
- set{ m_Level = value; }
+ get => m_Level;
+ set => m_Level = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string Description
{
- get
- {
- return m_Description;
- }
+ get => m_Description;
set
{
m_Description = value;
@@ -71,39 +68,21 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int CurCharges
{
- get
- {
- return m_CurCharges;
- }
- set
- {
- m_CurCharges = value;
- }
+ get => m_CurCharges;
+ set => m_CurCharges = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int MaxCharges
{
- get
- {
- return m_MaxCharges;
- }
- set
- {
- m_MaxCharges = value;
- }
+ get => m_MaxCharges;
+ set => m_MaxCharges = value;
}
public List Openers
{
- get
- {
- return m_Openers;
- }
- set
- {
- m_Openers = value;
- }
+ get => m_Openers;
+ set => m_Openers = value;
}
public override int LabelNumber => 1041267; // runebook
@@ -131,13 +110,7 @@ namespace Server.Items
{
}
- public List Entries
- {
- get
- {
- return m_Entries;
- }
- }
+ public List Entries => m_Entries;
public RunebookEntry Default
{
@@ -480,25 +453,13 @@ namespace Server.Items
private string m_Description;
private BaseHouse m_House;
- public Point3D Location
- {
- get{ return m_Location; }
- }
+ public Point3D Location => m_Location;
- public Map Map
- {
- get{ return m_Map; }
- }
+ public Map Map => m_Map;
- public string Description
- {
- get{ return m_Description; }
- }
+ public string Description => m_Description;
- public BaseHouse House
- {
- get{ return m_House; }
- }
+ public BaseHouse House => m_House;
public RunebookEntry( Point3D loc, Map map, string desc, BaseHouse house )
{
diff --git a/Scripts/Items/Skill Items/Magical/Scrolls/SpellScroll.cs b/Scripts/Items/Skill Items/Magical/Scrolls/SpellScroll.cs
index bdb3528de..58fa42848 100644
--- a/Scripts/Items/Skill Items/Magical/Scrolls/SpellScroll.cs
+++ b/Scripts/Items/Skill Items/Magical/Scrolls/SpellScroll.cs
@@ -8,16 +8,10 @@ namespace Server.Items
{
private int m_SpellID;
- public int SpellID
- {
- get
- {
- return m_SpellID;
- }
- }
+ public int SpellID => m_SpellID;
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return (Core.ML); } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => (Core.ML);
public SpellScroll( Serial serial ) : base( serial )
{
diff --git a/Scripts/Items/Skill Items/Magical/Spellbook.cs b/Scripts/Items/Skill Items/Magical/Spellbook.cs
index fd659e4fa..8750cc3b2 100644
--- a/Scripts/Items/Skill Items/Magical/Spellbook.cs
+++ b/Scripts/Items/Skill Items/Magical/Spellbook.cs
@@ -34,14 +34,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string EngravedText
{
- get{ return m_EngravedText; }
+ get => m_EngravedText;
set{ m_EngravedText = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public BookQuality Quality
{
- get{ return m_Quality; }
+ get => m_Quality;
set{ m_Quality = value; InvalidateProperties(); }
}
@@ -302,20 +302,20 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public AosAttributes Attributes
{
- get{ return m_AosAttributes; }
+ get => m_AosAttributes;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosSkillBonuses SkillBonuses
{
- get{ return m_AosSkillBonuses; }
+ get => m_AosSkillBonuses;
set{}
}
- public virtual SpellbookType SpellbookType{ get{ return SpellbookType.Regular; } }
- public virtual int BookOffset{ get{ return 0; } }
- public virtual int BookCount{ get{ return 64; } }
+ public virtual SpellbookType SpellbookType => SpellbookType.Regular;
+ public virtual int BookOffset => 0;
+ public virtual int BookCount => 64;
private ulong m_Content;
private int m_Count;
@@ -386,10 +386,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public ulong Content
{
- get
- {
- return m_Content;
- }
+ get => m_Content;
set
{
if ( m_Content != value )
@@ -410,13 +407,7 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public int SpellCount
- {
- get
- {
- return m_Count;
- }
- }
+ public int SpellCount => m_Count;
[Constructible]
public Spellbook() : this( (ulong)0 )
@@ -560,7 +551,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Crafter
{
- get{ return m_Crafter; }
+ get => m_Crafter;
set{ m_Crafter = value; InvalidateProperties(); }
}
@@ -700,14 +691,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SlayerName Slayer
{
- get { return m_Slayer; }
+ get => m_Slayer;
set { m_Slayer = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public SlayerName Slayer2
{
- get { return m_Slayer2; }
+ get => m_Slayer2;
set { m_Slayer2 = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Skill Items/Misc/Bandage.cs b/Scripts/Items/Skill Items/Misc/Bandage.cs
index d20cff9ac..07f3535ce 100644
--- a/Scripts/Items/Skill Items/Misc/Bandage.cs
+++ b/Scripts/Items/Skill Items/Misc/Bandage.cs
@@ -10,10 +10,7 @@ namespace Server.Items
{
public static int Range = ( Core.AOS ? 2 : 1 );
- public override double DefaultWeight
- {
- get { return 0.1; }
- }
+ public override double DefaultWeight => 0.1;
public static void Initialize()
{
@@ -165,10 +162,12 @@ namespace Server.Items
private int m_Slips;
private Timer m_Timer;
- public Mobile Healer{ get{ return m_Healer; } }
- public Mobile Patient{ get{ return m_Patient; } }
- public int Slips{ get{ return m_Slips; } set{ m_Slips = value; } }
- public Timer Timer{ get{ return m_Timer; } }
+ public Mobile Healer => m_Healer;
+ public Mobile Patient => m_Patient;
+ public int Slips{ get => m_Slips;
+ set => m_Slips = value;
+ }
+ public Timer Timer => m_Timer;
public void Slip()
{
diff --git a/Scripts/Items/Skill Items/Misc/RecipeScroll.cs b/Scripts/Items/Skill Items/Misc/RecipeScroll.cs
index 7b78e566e..2b21be0a3 100644
--- a/Scripts/Items/Skill Items/Misc/RecipeScroll.cs
+++ b/Scripts/Items/Skill Items/Misc/RecipeScroll.cs
@@ -13,7 +13,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int RecipeID
{
- get { return m_RecipeID; }
+ get => m_RecipeID;
set { m_RecipeID = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Skill Items/Misc/RepairDeed.cs b/Scripts/Items/Skill Items/Misc/RepairDeed.cs
index bb2e01bce..6ba6c6af0 100644
--- a/Scripts/Items/Skill Items/Misc/RepairDeed.cs
+++ b/Scripts/Items/Skill Items/Misc/RepairDeed.cs
@@ -13,7 +13,7 @@ namespace Server.Items
private Type[] m_NearbyTypes;
private TextDefinition m_NotNearbyMessage, m_Name;
- public TextDefinition NotNearbyMessage{ get { return m_NotNearbyMessage; } }
+ public TextDefinition NotNearbyMessage => m_NotNearbyMessage;
public TextDefinition Name => m_Name;
@@ -72,21 +72,21 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public RepairSkillType RepairSkill
{
- get { return m_Skill; }
+ get => m_Skill;
set { m_Skill = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public double SkillLevel
{
- get { return m_SkillLevel; }
+ get => m_SkillLevel;
set { m_SkillLevel = Math.Max( Math.Min( value, 120.0 ), 0 ) ; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Crafter
{
- get { return m_Crafter; }
+ get => m_Crafter;
set { m_Crafter = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Skill Items/Musical Instruments/BaseInstrument.cs b/Scripts/Items/Skill Items/Musical Instruments/BaseInstrument.cs
index d57b7dd02..a07eb9de3 100644
--- a/Scripts/Items/Skill Items/Musical Instruments/BaseInstrument.cs
+++ b/Scripts/Items/Skill Items/Musical Instruments/BaseInstrument.cs
@@ -27,49 +27,49 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int SuccessSound
{
- get{ return m_WellSound; }
- set{ m_WellSound = value; }
+ get => m_WellSound;
+ set => m_WellSound = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int FailureSound
{
- get{ return m_BadlySound; }
- set{ m_BadlySound = value; }
+ get => m_BadlySound;
+ set => m_BadlySound = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public SlayerName Slayer
{
- get{ return m_Slayer; }
+ get => m_Slayer;
set{ m_Slayer = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public SlayerName Slayer2
{
- get{ return m_Slayer2; }
+ get => m_Slayer2;
set{ m_Slayer2 = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public InstrumentQuality Quality
{
- get{ return m_Quality; }
+ get => m_Quality;
set{ UnscaleUses(); m_Quality = value; InvalidateProperties(); ScaleUses(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Crafter
{
- get{ return m_Crafter; }
+ get => m_Crafter;
set{ m_Crafter = value; InvalidateProperties(); }
}
- public virtual int InitMinUses{ get{ return 350; } }
- public virtual int InitMaxUses{ get{ return 450; } }
+ public virtual int InitMinUses => 350;
+ public virtual int InitMaxUses => 450;
- public virtual TimeSpan ChargeReplenishRate { get { return TimeSpan.FromMinutes( 5.0 ); } }
+ public virtual TimeSpan ChargeReplenishRate => TimeSpan.FromMinutes( 5.0 );
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
@@ -83,7 +83,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public DateTime LastReplenished
{
- get { return m_LastReplenished; }
+ get => m_LastReplenished;
set { m_LastReplenished = value; CheckReplenishUses(); }
}
@@ -91,7 +91,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool ReplenishesCharges
{
- get { return m_ReplenishesCharges; }
+ get => m_ReplenishesCharges;
set
{
if ( value != m_ReplenishesCharges && value )
diff --git a/Scripts/Items/Skill Items/Ninjitsu/EggBomb.cs b/Scripts/Items/Skill Items/Ninjitsu/EggBomb.cs
index efe4c1042..07412265f 100644
--- a/Scripts/Items/Skill Items/Ninjitsu/EggBomb.cs
+++ b/Scripts/Items/Skill Items/Ninjitsu/EggBomb.cs
@@ -2,11 +2,8 @@ namespace Server.Items
{
public class EggBomb : Item
{
- public override int LabelNumber
- {
- get { return 1030249; }
- }
-
+ public override int LabelNumber => 1030249;
+
[Constructible]
public EggBomb() : base( 0x2808 )
{
diff --git a/Scripts/Items/Skill Items/Ninjitsu/Fukiya.cs b/Scripts/Items/Skill Items/Ninjitsu/Fukiya.cs
index a8623a37b..ff8a1387d 100644
--- a/Scripts/Items/Skill Items/Ninjitsu/Fukiya.cs
+++ b/Scripts/Items/Skill Items/Ninjitsu/Fukiya.cs
@@ -17,7 +17,7 @@ namespace Server.Items
public virtual int WeaponMinRange => 0;
public virtual int WeaponMaxRange => 6;
- public virtual int WeaponDamage { get { return Utility.RandomMinMax(4, 6); } }
+ public virtual int WeaponDamage => Utility.RandomMinMax(4, 6);
public Type AmmoType => typeof(FukiyaDarts);
@@ -28,25 +28,26 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public Poison Poison
{
- get{ return m_Poison; }
+ get => m_Poison;
set{ m_Poison = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int PoisonCharges
{
- get { return m_PoisonCharges; }
+ get => m_PoisonCharges;
set { m_PoisonCharges = value; InvalidateProperties(); }
}
- public bool ShowUsesRemaining{ get{ return true; } set{} }
+ public bool ShowUsesRemaining{ get => true;
+ set{} }
[Constructible]
public Fukiya() : base( 0x27AA )
diff --git a/Scripts/Items/Skill Items/Ninjitsu/FukiyaDarts.cs b/Scripts/Items/Skill Items/Ninjitsu/FukiyaDarts.cs
index 97ad8f665..b023450ec 100644
--- a/Scripts/Items/Skill Items/Ninjitsu/FukiyaDarts.cs
+++ b/Scripts/Items/Skill Items/Ninjitsu/FukiyaDarts.cs
@@ -13,25 +13,26 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public Poison Poison
{
- get{ return m_Poison; }
+ get => m_Poison;
set{ m_Poison = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int PoisonCharges
{
- get { return m_PoisonCharges; }
+ get => m_PoisonCharges;
set { m_PoisonCharges = value; InvalidateProperties(); }
}
- public bool ShowUsesRemaining{ get{ return true; } set{} }
+ public bool ShowUsesRemaining{ get => true;
+ set{} }
[Constructible]
public FukiyaDarts() : this( 1 )
diff --git a/Scripts/Items/Skill Items/Ninjitsu/LeatherNinjaBelt.cs b/Scripts/Items/Skill Items/Ninjitsu/LeatherNinjaBelt.cs
index c1ae2d2cd..e0b47231b 100644
--- a/Scripts/Items/Skill Items/Ninjitsu/LeatherNinjaBelt.cs
+++ b/Scripts/Items/Skill Items/Ninjitsu/LeatherNinjaBelt.cs
@@ -19,7 +19,7 @@ namespace Server.Items
public virtual int WeaponMinRange => 2;
public virtual int WeaponMaxRange => 10;
- public virtual int WeaponDamage { get { return Utility.RandomMinMax(3, 5); } }
+ public virtual int WeaponDamage => Utility.RandomMinMax(3, 5);
public virtual Type AmmoType => typeof(Shuriken);
@@ -30,25 +30,26 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public Poison Poison
{
- get{ return m_Poison; }
+ get => m_Poison;
set{ m_Poison = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int PoisonCharges
{
- get { return m_PoisonCharges; }
+ get => m_PoisonCharges;
set { m_PoisonCharges = value; InvalidateProperties(); }
}
- public bool ShowUsesRemaining{ get{ return true; } set{} }
+ public bool ShowUsesRemaining{ get => true;
+ set{} }
[Constructible]
public LeatherNinjaBelt() : base( 0x2790 )
diff --git a/Scripts/Items/Skill Items/Ninjitsu/Shuriken.cs b/Scripts/Items/Skill Items/Ninjitsu/Shuriken.cs
index 915d2573f..d0ecd0d58 100644
--- a/Scripts/Items/Skill Items/Ninjitsu/Shuriken.cs
+++ b/Scripts/Items/Skill Items/Ninjitsu/Shuriken.cs
@@ -14,25 +14,26 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public Poison Poison
{
- get{ return m_Poison; }
+ get => m_Poison;
set{ m_Poison = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int PoisonCharges
{
- get { return m_PoisonCharges; }
+ get => m_PoisonCharges;
set { m_PoisonCharges = value; InvalidateProperties(); }
}
- public bool ShowUsesRemaining{ get{ return true; } set{} }
+ public bool ShowUsesRemaining{ get => true;
+ set{} }
[Constructible]
public Shuriken() : this( 1 )
diff --git a/Scripts/Items/Skill Items/Specialized/GlassblowingBook.cs b/Scripts/Items/Skill Items/Specialized/GlassblowingBook.cs
index 84434af66..4faeb4339 100644
--- a/Scripts/Items/Skill Items/Specialized/GlassblowingBook.cs
+++ b/Scripts/Items/Skill Items/Specialized/GlassblowingBook.cs
@@ -4,10 +4,7 @@ namespace Server.Items
{
public class GlassblowingBook : Item
{
- public override string DefaultName
- {
- get { return "Crafting Glass With Glassblowing"; }
- }
+ public override string DefaultName => "Crafting Glass With Glassblowing";
[Constructible]
public GlassblowingBook() : base( 0xFF4 )
diff --git a/Scripts/Items/Skill Items/Specialized/MasonryBook.cs b/Scripts/Items/Skill Items/Specialized/MasonryBook.cs
index c824fb299..1558e8a21 100644
--- a/Scripts/Items/Skill Items/Specialized/MasonryBook.cs
+++ b/Scripts/Items/Skill Items/Specialized/MasonryBook.cs
@@ -4,10 +4,7 @@ namespace Server.Items
{
public class MasonryBook : Item
{
- public override string DefaultName
- {
- get { return "Making Valuables With Stonecrafting"; }
- }
+ public override string DefaultName => "Making Valuables With Stonecrafting";
[Constructible]
public MasonryBook() : base( 0xFBE )
diff --git a/Scripts/Items/Skill Items/Specialized/Sand.cs b/Scripts/Items/Skill Items/Specialized/Sand.cs
index a7d7da67b..b3e375f2c 100644
--- a/Scripts/Items/Skill Items/Specialized/Sand.cs
+++ b/Scripts/Items/Skill Items/Specialized/Sand.cs
@@ -3,8 +3,8 @@ namespace Server.Items
[FlippableAttribute( 0x11EA, 0x11EB )]
public class Sand : Item, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return true; } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => true;
public override int LabelNumber => 1044626; // sand
diff --git a/Scripts/Items/Skill Items/Specialized/SandMiningBook.cs b/Scripts/Items/Skill Items/Specialized/SandMiningBook.cs
index b14c6ea38..785474b92 100644
--- a/Scripts/Items/Skill Items/Specialized/SandMiningBook.cs
+++ b/Scripts/Items/Skill Items/Specialized/SandMiningBook.cs
@@ -4,10 +4,7 @@ namespace Server.Items
{
public class SandMiningBook : Item
{
- public override string DefaultName
- {
- get { return "Find Glass-Quality Sand"; }
- }
+ public override string DefaultName => "Find Glass-Quality Sand";
[Constructible]
public SandMiningBook() : base( 0xFF4 )
diff --git a/Scripts/Items/Skill Items/Specialized/StoneMiningBook.cs b/Scripts/Items/Skill Items/Specialized/StoneMiningBook.cs
index 6a1847aad..7ee9ec107 100644
--- a/Scripts/Items/Skill Items/Specialized/StoneMiningBook.cs
+++ b/Scripts/Items/Skill Items/Specialized/StoneMiningBook.cs
@@ -4,10 +4,7 @@ namespace Server.Items
{
public class StoneMiningBook : Item
{
- public override string DefaultName
- {
- get { return "Mining For Quality Stone"; }
- }
+ public override string DefaultName => "Mining For Quality Stone";
[Constructible]
public StoneMiningBook() : base( 0xFBE )
diff --git a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/CustomHuePicker.cs b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/CustomHuePicker.cs
index 120db8473..313493b6f 100644
--- a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/CustomHuePicker.cs
+++ b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/CustomHuePicker.cs
@@ -9,10 +9,10 @@ namespace Server.Items
private string m_NameString;
private int[] m_Hues;
- public int Name{ get{ return m_Name; } }
- public string NameString{ get{ return m_NameString; } }
+ public int Name => m_Name;
+ public string NameString => m_NameString;
- public int[] Hues{ get{ return m_Hues; } }
+ public int[] Hues => m_Hues;
public CustomHueGroup( int name, int[] hues )
{
@@ -34,10 +34,10 @@ namespace Server.Items
private int m_Title;
private string m_TitleString;
- public bool DefaultSupported{ get{ return m_DefaultSupported; } }
- public CustomHueGroup[] Groups{ get{ return m_Groups; } }
- public int Title{ get{ return m_Title; } }
- public string TitleString{ get{ return m_TitleString; } }
+ public bool DefaultSupported => m_DefaultSupported;
+ public CustomHueGroup[] Groups => m_Groups;
+ public int Title => m_Title;
+ public string TitleString => m_TitleString;
public CustomHuePicker( CustomHueGroup[] groups, bool defaultSupported )
{
diff --git a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/DyeTub.cs b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/DyeTub.cs
index 649063c22..6ff63d506 100644
--- a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/DyeTub.cs
+++ b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/DyeTub.cs
@@ -17,32 +17,17 @@ namespace Server.Items
private int m_DyedHue;
private SecureLevel m_SecureLevel;
- public virtual CustomHuePicker CustomHuePicker{ get{ return null; } }
+ public virtual CustomHuePicker CustomHuePicker => null;
- public virtual bool AllowRunebooks
- {
- get{ return false; }
- }
+ public virtual bool AllowRunebooks => false;
- public virtual bool AllowFurniture
- {
- get{ return false; }
- }
+ public virtual bool AllowFurniture => false;
- public virtual bool AllowStatuettes
- {
- get{ return false; }
- }
+ public virtual bool AllowStatuettes => false;
- public virtual bool AllowLeather
- {
- get{ return false; }
- }
+ public virtual bool AllowLeather => false;
- public virtual bool AllowDyables
- {
- get{ return true; }
- }
+ public virtual bool AllowDyables => true;
public override void Serialize( GenericWriter writer )
{
@@ -81,23 +66,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public virtual bool Redyable
{
- get
- {
- return m_Redyable;
- }
- set
- {
- m_Redyable = value;
- }
+ get => m_Redyable;
+ set => m_Redyable = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int DyedHue
{
- get
- {
- return m_DyedHue;
- }
+ get => m_DyedHue;
set
{
if ( m_Redyable )
@@ -111,14 +87,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get
- {
- return m_SecureLevel;
- }
- set
- {
- m_SecureLevel = value;
- }
+ get => m_SecureLevel;
+ set => m_SecureLevel = value;
}
[Constructible]
@@ -142,10 +112,10 @@ namespace Server.Items
public virtual bool MetallicHues => false;
// Select the clothing to dye.
- public virtual int TargetMessage{ get{ return 500859; } }
+ public virtual int TargetMessage => 500859;
// You can not dye that.
- public virtual int FailMessage{ get{ return 1042083; } }
+ public virtual int FailMessage => 1042083;
public override void OnDoubleClick( Mobile from )
{
diff --git a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/FurnitureDyeTub.cs b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/FurnitureDyeTub.cs
index 49f780b51..91686bbcd 100644
--- a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/FurnitureDyeTub.cs
+++ b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/FurnitureDyeTub.cs
@@ -13,8 +13,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
[Constructible]
diff --git a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/LeatherDyeTub.cs b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/LeatherDyeTub.cs
index 44691205f..1d8053252 100644
--- a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/LeatherDyeTub.cs
+++ b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/LeatherDyeTub.cs
@@ -14,8 +14,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
[Constructible]
diff --git a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/RewardBlackDyeTub.cs b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/RewardBlackDyeTub.cs
index 1f81fa244..f5fa77487 100644
--- a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/RewardBlackDyeTub.cs
+++ b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/RewardBlackDyeTub.cs
@@ -9,8 +9,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
[Constructible]
diff --git a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/RunebookDyeTub.cs b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/RunebookDyeTub.cs
index 7c0b169c0..6a1b90333 100644
--- a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/RunebookDyeTub.cs
+++ b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/RunebookDyeTub.cs
@@ -14,8 +14,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
[Constructible]
diff --git a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/SpecialDyeTub.cs b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/SpecialDyeTub.cs
index 2ae81e97e..8f37a8fb9 100644
--- a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/SpecialDyeTub.cs
+++ b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/SpecialDyeTub.cs
@@ -12,8 +12,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
[Constructible]
diff --git a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs
index 7ff474219..66ff29be0 100644
--- a/Scripts/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs
+++ b/Scripts/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs
@@ -14,8 +14,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
[Constructible]
diff --git a/Scripts/Items/Skill Items/Thief/DisguiseKit.cs b/Scripts/Items/Skill Items/Thief/DisguiseKit.cs
index 8f53d05de..8ce2ae39a 100644
--- a/Scripts/Items/Skill Items/Thief/DisguiseKit.cs
+++ b/Scripts/Items/Skill Items/Thief/DisguiseKit.cs
@@ -364,9 +364,6 @@ namespace Server.Items
private static Dictionary m_Timers = new Dictionary();
- public static Dictionary Timers
- {
- get { return m_Timers; }
- }
+ public static Dictionary Timers => m_Timers;
}
}
diff --git a/Scripts/Items/Skill Items/Thief/DisguisePersistance.cs b/Scripts/Items/Skill Items/Thief/DisguisePersistance.cs
index 9341f1505..67bf6b9db 100644
--- a/Scripts/Items/Skill Items/Thief/DisguisePersistance.cs
+++ b/Scripts/Items/Skill Items/Thief/DisguisePersistance.cs
@@ -7,12 +7,9 @@ namespace Server.Items
{
private static DisguisePersistance m_Instance;
- public static DisguisePersistance Instance{ get{ return m_Instance; } }
+ public static DisguisePersistance Instance => m_Instance;
- public override string DefaultName
- {
- get { return "Disguise Persistance - Internal"; }
- }
+ public override string DefaultName => "Disguise Persistance - Internal";
public DisguisePersistance() : base( 1 )
{
diff --git a/Scripts/Items/Skill Items/Tinkering/Clocks.cs b/Scripts/Items/Skill Items/Tinkering/Clocks.cs
index cab4cd0bf..1a650db09 100644
--- a/Scripts/Items/Skill Items/Tinkering/Clocks.cs
+++ b/Scripts/Items/Skill Items/Tinkering/Clocks.cs
@@ -19,10 +19,7 @@ namespace Server.Items
{
private static DateTime m_ServerStart;
- public static DateTime ServerStart
- {
- get{ return m_ServerStart; }
- }
+ public static DateTime ServerStart => m_ServerStart;
public static void Initialize()
{
diff --git a/Scripts/Items/Skill Items/Tools/BaseRunicTool.cs b/Scripts/Items/Skill Items/Tools/BaseRunicTool.cs
index 255e2ee20..b7dd54beb 100644
--- a/Scripts/Items/Skill Items/Tools/BaseRunicTool.cs
+++ b/Scripts/Items/Skill Items/Tools/BaseRunicTool.cs
@@ -11,7 +11,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set{ m_Resource = value; Hue = CraftResources.GetHue( m_Resource ); InvalidateProperties(); }
}
diff --git a/Scripts/Items/Skill Items/Tools/BaseTool.cs b/Scripts/Items/Skill Items/Tools/BaseTool.cs
index fc6a7faf2..aad3f7100 100644
--- a/Scripts/Items/Skill Items/Tools/BaseTool.cs
+++ b/Scripts/Items/Skill Items/Tools/BaseTool.cs
@@ -20,21 +20,21 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Crafter
{
- get{ return m_Crafter; }
+ get => m_Crafter;
set{ m_Crafter = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public ToolQuality Quality
{
- get{ return m_Quality; }
+ get => m_Quality;
set{ UnscaleUses(); m_Quality = value; InvalidateProperties(); ScaleUses(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
@@ -59,7 +59,8 @@ namespace Server.Items
return 100;
}
- public bool ShowUsesRemaining{ get{ return true; } set{} }
+ public bool ShowUsesRemaining{ get => true;
+ set{} }
public abstract CraftSystem CraftSystem{ get; }
diff --git a/Scripts/Items/Special/11th Year promo/EarringsOfProtection.cs b/Scripts/Items/Special/11th Year promo/EarringsOfProtection.cs
index a61b3305c..217d5450b 100644
--- a/Scripts/Items/Special/11th Year promo/EarringsOfProtection.cs
+++ b/Scripts/Items/Special/11th Year promo/EarringsOfProtection.cs
@@ -35,29 +35,11 @@
public class EarringsOfProtection : BaseJewel
{
[CommandProperty( AccessLevel.GameMaster )]
- public virtual AosElementAttribute Attribute
- {
- get
- {
- return m_Attribute;
- }
- }
+ public virtual AosElementAttribute Attribute => m_Attribute;
- public override int LabelNumber
- {
- get
- {
- return GetItemData( m_Attribute, true );
- }
- }
+ public override int LabelNumber => GetItemData( m_Attribute, true );
- public override int Hue
- {
- get
- {
- return GetItemData( m_Attribute, false );
- }
- }
+ public override int Hue => GetItemData( m_Attribute, false );
private AosElementAttribute m_Attribute;
diff --git a/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicBox.cs b/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicBox.cs
index 3a411ab14..8f9b989d9 100644
--- a/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicBox.cs
+++ b/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicBox.cs
@@ -24,18 +24,15 @@ namespace Server.Items
private List m_Tracks;
- public List Tracks
- {
- get { return m_Tracks; }
- }
+ public List Tracks => m_Tracks;
private SecureLevel m_Level;
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get { return m_Level; }
- set { m_Level = value; }
+ get => m_Level;
+ set => m_Level = value;
}
[Constructible]
diff --git a/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicGear.cs b/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicGear.cs
index a8c7a65fc..43fadd80e 100644
--- a/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicGear.cs
+++ b/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicGear.cs
@@ -5,28 +5,19 @@ namespace Server.Items
[Flippable( 0x1053, 0x1054 )]
public class DawnsMusicGear : Item
{
- public static DawnsMusicGear RandomCommon
- {
- get { return new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Common ) ); }
- }
+ public static DawnsMusicGear RandomCommon => new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Common ) );
- public static DawnsMusicGear RandomUncommon
- {
- get { return new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Uncommon ) ); }
- }
+ public static DawnsMusicGear RandomUncommon => new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Uncommon ) );
- public static DawnsMusicGear RandomRare
- {
- get { return new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Rare ) ); }
- }
+ public static DawnsMusicGear RandomRare => new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Rare ) );
private MusicName m_Music;
[CommandProperty( AccessLevel.GameMaster )]
public MusicName Music
{
- get { return m_Music; }
- set { m_Music = value; }
+ get => m_Music;
+ set => m_Music = value;
}
[Constructible]
diff --git a/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicInfo.cs b/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicInfo.cs
index 980e4c573..08d61fc20 100644
--- a/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicInfo.cs
+++ b/Scripts/Items/Special/8th Anniversary Items/Dawn's Music Box/DawnsMusicInfo.cs
@@ -11,17 +11,11 @@
{
private int m_Name;
- public int Name
- {
- get { return m_Name; }
- }
+ public int Name => m_Name;
private DawnsMusicRarity m_Rarity;
- public DawnsMusicRarity Rarity
- {
- get { return m_Rarity; }
- }
+ public DawnsMusicRarity Rarity => m_Rarity;
public DawnsMusicInfo( int name, DawnsMusicRarity rarity )
{
diff --git a/Scripts/Items/Special/8th Anniversary Items/FountainOfLife.cs b/Scripts/Items/Special/8th Anniversary Items/FountainOfLife.cs
index 702835ce5..7b90ef1b1 100644
--- a/Scripts/Items/Special/8th Anniversary Items/FountainOfLife.cs
+++ b/Scripts/Items/Special/8th Anniversary Items/FountainOfLife.cs
@@ -56,17 +56,14 @@ namespace Server.Items
[FlippableAttribute( 0x2AC0, 0x2AC3 )]
public class FountainOfLife : BaseAddonContainer
{
- public override BaseAddonContainerDeed Deed
- {
- get { return new FountainOfLifeDeed( m_Charges ); }
- }
+ public override BaseAddonContainerDeed Deed => new FountainOfLifeDeed( m_Charges );
public override bool OnDragLift( Mobile from )
{
return false;
}
- public virtual TimeSpan RechargeTime { get { return TimeSpan.FromDays( 1 ); } }
+ public virtual TimeSpan RechargeTime => TimeSpan.FromDays( 1 );
public override int LabelNumber => 1075197; // Fountain of Life
public override int DefaultGumpID => 0x484;
@@ -78,7 +75,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get { return m_Charges; }
+ get => m_Charges;
set { m_Charges = Math.Min( value, 10 ); InvalidateProperties(); }
}
@@ -230,7 +227,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get { return m_Charges; }
+ get => m_Charges;
set { m_Charges = Math.Min( value, 10 ); InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/AncientSmithyHammer.cs b/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/AncientSmithyHammer.cs
index 0520d6465..cc45e4fcc 100644
--- a/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/AncientSmithyHammer.cs
+++ b/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/AncientSmithyHammer.cs
@@ -11,10 +11,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Bonus
{
- get
- {
- return m_Bonus;
- }
+ get => m_Bonus;
set
{
m_Bonus = value;
diff --git a/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/GlovesOfMining.cs b/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/GlovesOfMining.cs
index e55e10912..a70f4f029 100644
--- a/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/GlovesOfMining.cs
+++ b/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/GlovesOfMining.cs
@@ -146,10 +146,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Bonus
{
- get
- {
- return m_Bonus;
- }
+ get => m_Bonus;
set
{
m_Bonus = value;
diff --git a/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/PowderOfTemperament.cs b/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/PowderOfTemperament.cs
index 2dbf76d57..6b645a234 100644
--- a/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/PowderOfTemperament.cs
+++ b/Scripts/Items/Special/Bulk Order Rewards/Blacksmithy/PowderOfTemperament.cs
@@ -10,11 +10,12 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
- public bool ShowUsesRemaining{ get{ return true; } set{} }
+ public bool ShowUsesRemaining{ get => true;
+ set{} }
public override int LabelNumber => 1049082; // powder of fortifying
diff --git a/Scripts/Items/Special/Evil Home Decor Collection/AwesomeDisturbingPortrait.cs b/Scripts/Items/Special/Evil Home Decor Collection/AwesomeDisturbingPortrait.cs
index dc3396418..44c546a87 100644
--- a/Scripts/Items/Special/Evil Home Decor Collection/AwesomeDisturbingPortrait.cs
+++ b/Scripts/Items/Special/Evil Home Decor Collection/AwesomeDisturbingPortrait.cs
@@ -7,7 +7,7 @@ namespace Server.Items
public class AwesomeDisturbingPortraitComponent : AddonComponent
{
public override int LabelNumber => 1074479; // Disturbing portrait
- public bool FacingSouth { get { return ItemID < 0x2A61; } }
+ public bool FacingSouth => ItemID < 0x2A61;
private InternalTimer m_Timer;
diff --git a/Scripts/Items/Special/Gifts/RoseOfTrinsic.cs b/Scripts/Items/Special/Gifts/RoseOfTrinsic.cs
index 76d2391a2..7fe6cebf7 100644
--- a/Scripts/Items/Special/Gifts/RoseOfTrinsic.cs
+++ b/Scripts/Items/Special/Gifts/RoseOfTrinsic.cs
@@ -23,14 +23,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get{ return m_Level; }
- set{ m_Level = value; }
+ get => m_Level;
+ set => m_Level = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Petals
{
- get{ return m_Petals; }
+ get => m_Petals;
set
{
if ( value >= 10 )
diff --git a/Scripts/Items/Special/Gifts/TapestryOfSosaria.cs b/Scripts/Items/Special/Gifts/TapestryOfSosaria.cs
index e07bf32ab..60aa26932 100644
--- a/Scripts/Items/Special/Gifts/TapestryOfSosaria.cs
+++ b/Scripts/Items/Special/Gifts/TapestryOfSosaria.cs
@@ -16,8 +16,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get{ return m_Level; }
- set{ m_Level = value; }
+ get => m_Level;
+ set => m_Level = value;
}
[Constructible]
diff --git a/Scripts/Items/Special/Heritage Items/Curtains.cs b/Scripts/Items/Special/Heritage Items/Curtains.cs
index f150c2d46..24ebd5da0 100644
--- a/Scripts/Items/Special/Heritage Items/Curtains.cs
+++ b/Scripts/Items/Special/Heritage Items/Curtains.cs
@@ -13,8 +13,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int ClosedID
{
- get { return m_ClosedID; }
- set { m_ClosedID = value; }
+ get => m_ClosedID;
+ set => m_ClosedID = value;
}
public CurtainsComponent( int itemID, int closedID ) : base( itemID )
diff --git a/Scripts/Items/Special/Heritage Items/FruitTrees.cs b/Scripts/Items/Special/Heritage Items/FruitTrees.cs
index c9f2d4a88..d96e93367 100644
--- a/Scripts/Items/Special/Heritage Items/FruitTrees.cs
+++ b/Scripts/Items/Special/Heritage Items/FruitTrees.cs
@@ -13,7 +13,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Fruits
{
- get { return m_Fruits; }
+ get => m_Fruits;
set
{
if ( value < 0 )
diff --git a/Scripts/Items/Special/Holiday/Christmas/HolidayTree.cs b/Scripts/Items/Special/Holiday/Christmas/HolidayTree.cs
index d4a00180e..6c186d13b 100644
--- a/Scripts/Items/Special/Holiday/Christmas/HolidayTree.cs
+++ b/Scripts/Items/Special/Holiday/Christmas/HolidayTree.cs
@@ -18,8 +18,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Placer
{
- get{ return m_Placer; }
- set{ m_Placer = value; }
+ get => m_Placer;
+ set => m_Placer = value;
}
private class Ornament : Item
@@ -212,10 +212,7 @@ namespace Server.Items
return map.CanFit( (Point3D)p, 20 );
}
- Item IAddon.Deed
- {
- get{ return new HolidayTreeDeed(); }
- }
+ Item IAddon.Deed => new HolidayTreeDeed();
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Items/Special/Holiday/HolidayBell.cs b/Scripts/Items/Special/Holiday/HolidayBell.cs
index f22db46da..91fbc534e 100644
--- a/Scripts/Items/Special/Holiday/HolidayBell.cs
+++ b/Scripts/Items/Special/Holiday/HolidayBell.cs
@@ -37,18 +37,17 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public int SoundID
{
- get { return m_SoundID; }
+ get => m_SoundID;
set { m_SoundID = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
- public string Giver { get { return m_Maker; } set { m_Maker = value; } }
-
- public override string DefaultName
- {
- get { return String.Format("A Holiday Bell From {0}", Giver); }
+ public string Giver { get => m_Maker;
+ set => m_Maker = value;
}
+ public override string DefaultName => String.Format("A Holiday Bell From {0}", Giver);
+
private string m_Maker;
private int m_SoundID;
diff --git a/Scripts/Items/Special/Holiday/HolidayFoods.cs b/Scripts/Items/Special/Holiday/HolidayFoods.cs
index 36f9461cd..37a36ec67 100644
--- a/Scripts/Items/Special/Holiday/HolidayFoods.cs
+++ b/Scripts/Items/Special/Holiday/HolidayFoods.cs
@@ -9,8 +9,8 @@ namespace Server.Items
public static Dictionary ToothAches
{
- get { return m_ToothAches; }
- set { m_ToothAches = value; }
+ get => m_ToothAches;
+ set => m_ToothAches = value;
}
public static void Initialize()
@@ -24,7 +24,9 @@ namespace Server.Items
private Mobile m_Eater;
public Mobile Eater => m_Eater;
- public int Eaten { get { return m_Eaten; } set { m_Eaten = value; } }
+ public int Eaten { get => m_Eaten;
+ set => m_Eaten = value;
+ }
public CandyCaneTimer( Mobile eater )
: base( TimeSpan.FromSeconds( 30 ), TimeSpan.FromSeconds( 30 ) )
diff --git a/Scripts/Items/Special/Holiday/HolidayGiftBoxes.cs b/Scripts/Items/Special/Holiday/HolidayGiftBoxes.cs
index bd4eeea29..a522aa63b 100644
--- a/Scripts/Items/Special/Holiday/HolidayGiftBoxes.cs
+++ b/Scripts/Items/Special/Holiday/HolidayGiftBoxes.cs
@@ -2,8 +2,8 @@
{
public class GiftBoxHues
{
- public static int RandomGiftBoxHue{ get { return m_NormalHues[Utility.Random(m_NormalHues.Length)]; }}
- public static int RandomNeonBoxHue{ get { return m_NeonHues[Utility.Random(m_NeonHues.Length)]; }}
+ public static int RandomGiftBoxHue => m_NormalHues[Utility.Random(m_NormalHues.Length)];
+ public static int RandomNeonBoxHue => m_NeonHues[Utility.Random(m_NeonHues.Length)];
/* there's possibly a couple more, but this is what we could verify on OSI */
diff --git a/Scripts/Items/Special/Holiday/PKHolidayStuff.cs b/Scripts/Items/Special/Holiday/PKHolidayStuff.cs
index ce06852d6..f6a35aa6b 100644
--- a/Scripts/Items/Special/Holiday/PKHolidayStuff.cs
+++ b/Scripts/Items/Special/Holiday/PKHolidayStuff.cs
@@ -2,7 +2,7 @@ namespace Server.Items
{
public class Coal : Item
{
- public override string DefaultName{ get { return "Coal"; }}
+ public override string DefaultName => "Coal";
[Constructible]
public Coal() : base( 0x19b9 )
@@ -31,7 +31,8 @@ namespace Server.Items
public class BadCard : Item
{
- public override int LabelNumber{ get { return 1041428; }} // Maybe next year youll get a better...
+ public override int LabelNumber // Maybe next year youll get a better...
+ => 1041428;
[Constructible]
public BadCard() : base( 0x14ef )
diff --git a/Scripts/Items/Special/Holiday/SnowGlobes.cs b/Scripts/Items/Special/Holiday/SnowGlobes.cs
index 4ff23b2d0..ef483f848 100644
--- a/Scripts/Items/Special/Holiday/SnowGlobes.cs
+++ b/Scripts/Items/Special/Holiday/SnowGlobes.cs
@@ -63,7 +63,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SnowGlobeTypeOne Place
{
- get { return m_Type; }
+ get => m_Type;
set { m_Type = value; InvalidateProperties(); }
}
@@ -165,7 +165,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SnowGlobeTypeTwo Place
{
- get { return m_Type; }
+ get => m_Type;
set { m_Type = value; InvalidateProperties(); }
}
@@ -251,7 +251,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SnowGlobeTypeThree Place
{
- get { return m_Type; }
+ get => m_Type;
set { m_Type = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Holiday/Snowman.cs b/Scripts/Items/Special/Holiday/Snowman.cs
index afcb0e31d..540719ebb 100644
--- a/Scripts/Items/Special/Holiday/Snowman.cs
+++ b/Scripts/Items/Special/Holiday/Snowman.cs
@@ -74,7 +74,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string Title
{
- get{ return m_Title; }
+ get => m_Title;
set{ m_Title = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Holiday/Wreath.cs b/Scripts/Items/Special/Holiday/Wreath.cs
index ea20293fc..bcfe2ff37 100644
--- a/Scripts/Items/Special/Holiday/Wreath.cs
+++ b/Scripts/Items/Special/Holiday/Wreath.cs
@@ -74,10 +74,7 @@ namespace Server.Items
}
}
- public Item Deed
- {
- get{ return new WreathDeed( this.Hue ); }
- }
+ public Item Deed => new WreathDeed( this.Hue );
public override void OnDoubleClick( Mobile from )
{
diff --git a/Scripts/Items/Special/House Raffle/HouseRaffleDeed.cs b/Scripts/Items/Special/House Raffle/HouseRaffleDeed.cs
index fcfdfb565..1875b7618 100644
--- a/Scripts/Items/Special/House Raffle/HouseRaffleDeed.cs
+++ b/Scripts/Items/Special/House Raffle/HouseRaffleDeed.cs
@@ -13,46 +13,37 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public HouseRaffleStone Stone
{
- get { return m_Stone; }
+ get => m_Stone;
set { m_Stone = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public Point3D PlotLocation
{
- get { return m_PlotLocation; }
+ get => m_PlotLocation;
set { m_PlotLocation = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public Map PlotFacet
{
- get { return m_Facet; }
+ get => m_Facet;
set { m_Facet = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public Mobile AwardedTo
{
- get { return m_AwardedTo; }
+ get => m_AwardedTo;
set { m_AwardedTo = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
- public bool IsExpired
- {
- get { return ( m_Stone == null || m_Stone.Deleted || m_Stone.IsExpired ); }
- }
+ public bool IsExpired => ( m_Stone == null || m_Stone.Deleted || m_Stone.IsExpired );
- public override string DefaultName
- {
- get { return "a writ of lease"; }
- }
+ public override string DefaultName => "a writ of lease";
- public override double DefaultWeight
- {
- get { return 1.0; }
- }
+ public override double DefaultWeight => 1.0;
[Constructible]
public HouseRaffleDeed()
diff --git a/Scripts/Items/Special/House Raffle/HouseRaffleStone.cs b/Scripts/Items/Special/House Raffle/HouseRaffleStone.cs
index 6d2fa8129..af1e63328 100644
--- a/Scripts/Items/Special/House Raffle/HouseRaffleStone.cs
+++ b/Scripts/Items/Special/House Raffle/HouseRaffleStone.cs
@@ -16,20 +16,11 @@ namespace Server.Items
private IPAddress m_Address;
private DateTime m_Date;
- public Mobile From
- {
- get { return m_From; }
- }
+ public Mobile From => m_From;
- public IPAddress Address
- {
- get { return m_Address; }
- }
+ public IPAddress Address => m_Address;
- public DateTime Date
- {
- get { return m_Date; }
- }
+ public DateTime Date => m_Date;
public RaffleEntry( Mobile from )
{
@@ -111,7 +102,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public HouseRaffleState CurrentState
{
- get { return m_State; }
+ get => m_State;
set
{
if ( m_State != value )
@@ -133,7 +124,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public Rectangle2D PlotBounds
{
- get { return m_Bounds; }
+ get => m_Bounds;
set
{
m_Bounds = value;
@@ -146,7 +137,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public Map PlotFacet
{
- get { return m_Facet; }
+ get => m_Facet;
set
{
m_Facet = value;
@@ -159,28 +150,28 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public Mobile Winner
{
- get { return m_Winner; }
+ get => m_Winner;
set { m_Winner = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public HouseRaffleDeed Deed
{
- get { return m_Deed; }
- set { m_Deed = value; }
+ get => m_Deed;
+ set => m_Deed = value;
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public DateTime Started
{
- get { return m_Started; }
+ get => m_Started;
set { m_Started = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public TimeSpan Duration
{
- get { return m_Duration; }
+ get => m_Duration;
set { m_Duration = value; InvalidateProperties(); }
}
@@ -199,14 +190,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public HouseRaffleExpireAction ExpireAction
{
- get { return m_ExpireAction; }
- set { m_ExpireAction = value; }
+ get => m_ExpireAction;
+ set => m_ExpireAction = value;
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Seer )]
public int TicketPrice
{
- get { return m_TicketPrice; }
+ get => m_TicketPrice;
set
{
m_TicketPrice = Math.Max( 0, value );
@@ -214,20 +205,11 @@ namespace Server.Items
}
}
- public List Entries
- {
- get { return m_Entries; }
- }
+ public List Entries => m_Entries;
- public override string DefaultName
- {
- get { return "a house raffle stone"; }
- }
+ public override string DefaultName => "a house raffle stone";
- public override bool DisplayWeight
- {
- get { return false; }
- }
+ public override bool DisplayWeight => false;
private static List m_AllStones = new List();
diff --git a/Scripts/Items/Special/MiniHouses.cs b/Scripts/Items/Special/MiniHouses.cs
index caac66fd2..8a0e0dee8 100644
--- a/Scripts/Items/Special/MiniHouses.cs
+++ b/Scripts/Items/Special/MiniHouses.cs
@@ -9,7 +9,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public MiniHouseType Type
{
- get{ return m_Type; }
+ get => m_Type;
set{ m_Type = value; Construct(); }
}
@@ -86,7 +86,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public MiniHouseType Type
{
- get{ return m_Type; }
+ get => m_Type;
set{ m_Type = value; InvalidateProperties(); }
}
@@ -178,8 +178,8 @@ namespace Server.Items
private int[] m_Graphics;
private int m_LabelNumber;
- public int[] Graphics{ get{ return m_Graphics; } }
- public int LabelNumber{ get{ return m_LabelNumber; } }
+ public int[] Graphics => m_Graphics;
+ public int LabelNumber => m_LabelNumber;
public MiniHouseInfo( int start, int count, int labelNumber )
{
diff --git a/Scripts/Items/Special/MonsterStatuette.cs b/Scripts/Items/Special/MonsterStatuette.cs
index 01a8469a8..548b9f871 100644
--- a/Scripts/Items/Special/MonsterStatuette.cs
+++ b/Scripts/Items/Special/MonsterStatuette.cs
@@ -55,9 +55,9 @@ namespace Server.Items
private int m_ItemID;
private int[] m_Sounds;
- public int LabelNumber{ get{ return m_LabelNumber; } }
- public int ItemID{ get{ return m_ItemID; } }
- public int[] Sounds{ get{ return m_Sounds; } }
+ public int LabelNumber => m_LabelNumber;
+ public int ItemID => m_ItemID;
+ public int[] Sounds => m_Sounds;
public MonsterStatuetteInfo( int labelNumber, int itemID, int baseSoundID )
{
@@ -137,21 +137,21 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool TurnedOn
{
- get{ return m_TurnedOn; }
+ get => m_TurnedOn;
set{ m_TurnedOn = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public MonsterStatuetteType Type
{
- get{ return m_Type; }
+ get => m_Type;
set
{
m_Type = value;
@@ -170,15 +170,9 @@ namespace Server.Items
}
}
- public override int LabelNumber
- {
- get{ return MonsterStatuetteInfo.GetInfo( m_Type ).LabelNumber; }
- }
+ public override int LabelNumber => MonsterStatuetteInfo.GetInfo( m_Type ).LabelNumber;
- public override double DefaultWeight
- {
- get { return 1.0; }
- }
+ public override double DefaultWeight => 1.0;
[Constructible]
public MonsterStatuette() : this( MonsterStatuetteType.Crocodile )
diff --git a/Scripts/Items/Special/Mutation Core/PlagueBeastBlood.cs b/Scripts/Items/Special/Mutation Core/PlagueBeastBlood.cs
index 52e02906a..bb43bdd9c 100644
--- a/Scripts/Items/Special/Mutation Core/PlagueBeastBlood.cs
+++ b/Scripts/Items/Special/Mutation Core/PlagueBeastBlood.cs
@@ -5,15 +5,9 @@ namespace Server.Items
{
public class PlagueBeastBlood : PlagueBeastComponent
{
- public bool Patched
- {
- get { return ItemID == 0x1765; }
- }
+ public bool Patched => ItemID == 0x1765;
- public bool Starting
- {
- get { return ItemID == 0x122C; }
- }
+ public bool Starting => ItemID == 0x122C;
private Timer m_Timer;
diff --git a/Scripts/Items/Special/Mutation Core/PlagueBeastInnard.cs b/Scripts/Items/Special/Mutation Core/PlagueBeastInnard.cs
index f5cf58602..7730161bd 100644
--- a/Scripts/Items/Special/Mutation Core/PlagueBeastInnard.cs
+++ b/Scripts/Items/Special/Mutation Core/PlagueBeastInnard.cs
@@ -79,24 +79,15 @@ namespace Server.Items
public PlagueBeastOrgan Organ
{
- get { return m_Organ; }
- set { m_Organ = value; }
+ get => m_Organ;
+ set => m_Organ = value;
}
- public bool IsBrain
- {
- get { return ItemID == 0x1CF0; }
- }
+ public bool IsBrain => ItemID == 0x1CF0;
- public bool IsGland
- {
- get { return ItemID == 0x1CEF; }
- }
+ public bool IsGland => ItemID == 0x1CEF;
- public bool IsReceptacle
- {
- get { return ItemID == 0x9DF; }
- }
+ public bool IsReceptacle => ItemID == 0x9DF;
public PlagueBeastComponent( int itemID, int hue ) : this( itemID, hue, false )
{
diff --git a/Scripts/Items/Special/Mutation Core/PlagueBeastMutationCore.cs b/Scripts/Items/Special/Mutation Core/PlagueBeastMutationCore.cs
index dc688cb5d..da6b637c8 100644
--- a/Scripts/Items/Special/Mutation Core/PlagueBeastMutationCore.cs
+++ b/Scripts/Items/Special/Mutation Core/PlagueBeastMutationCore.cs
@@ -11,8 +11,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool Cut
{
- get { return m_Cut; }
- set { m_Cut = value; }
+ get => m_Cut;
+ set => m_Cut = value;
}
public override string DefaultName => "a plague beast mutation core";
diff --git a/Scripts/Items/Special/Mutation Core/PlagueBeastOrgans.cs b/Scripts/Items/Special/Mutation Core/PlagueBeastOrgans.cs
index 773a1fb8d..e1b90e029 100644
--- a/Scripts/Items/Special/Mutation Core/PlagueBeastOrgans.cs
+++ b/Scripts/Items/Special/Mutation Core/PlagueBeastOrgans.cs
@@ -10,25 +10,22 @@ namespace Server.Items
private List m_Components;
- public List Components
- {
- get { return m_Components; }
- }
+ public List Components => m_Components;
private int m_BrainHue;
public int BrainHue
{
- get { return m_BrainHue; }
- set { m_BrainHue = value; }
+ get => m_BrainHue;
+ set => m_BrainHue = value;
}
private bool m_Opened;
public bool Opened
{
- get { return m_Opened; }
- set { m_Opened = value; }
+ get => m_Opened;
+ set => m_Opened = value;
}
private Timer m_Timer;
@@ -466,10 +463,7 @@ namespace Server.Items
{
private int m_Brains;
- public bool Complete
- {
- get { return m_Brains >= 4; }
- }
+ public bool Complete => m_Brains >= 4;
public PlagueBeastMainOrgan()
{
diff --git a/Scripts/Items/Special/Mutation Core/PlagueBeastVein.cs b/Scripts/Items/Special/Mutation Core/PlagueBeastVein.cs
index c54b8d622..13f5b63eb 100644
--- a/Scripts/Items/Special/Mutation Core/PlagueBeastVein.cs
+++ b/Scripts/Items/Special/Mutation Core/PlagueBeastVein.cs
@@ -7,10 +7,7 @@ namespace Server.Items
{
private bool m_Cut;
- public bool Cut
- {
- get { return m_Cut; }
- }
+ public bool Cut => m_Cut;
private Timer m_Timer;
diff --git a/Scripts/Items/Special/Rares/Containers/BaseWaterContainer.cs b/Scripts/Items/Special/Rares/Containers/BaseWaterContainer.cs
index d072d7b01..717c5f651 100644
--- a/Scripts/Items/Special/Rares/Containers/BaseWaterContainer.cs
+++ b/Scripts/Items/Special/Rares/Containers/BaseWaterContainer.cs
@@ -9,18 +9,15 @@
public override int DefaultGumpID => 0x3e;
[CommandProperty( AccessLevel.GameMaster )]
- public virtual bool IsEmpty { get { return ( m_Quantity <= 0 ); } }
+ public virtual bool IsEmpty => ( m_Quantity <= 0 );
[CommandProperty( AccessLevel.GameMaster )]
- public virtual bool IsFull { get { return ( m_Quantity >= MaxQuantity ); } }
+ public virtual bool IsFull => ( m_Quantity >= MaxQuantity );
[CommandProperty( AccessLevel.GameMaster )]
public virtual int Quantity
{
- get
- {
- return m_Quantity;
- }
+ get => m_Quantity;
set
{
if ( value != m_Quantity )
diff --git a/Scripts/Items/Special/Solen Items/BagOfSending.cs b/Scripts/Items/Special/Solen Items/BagOfSending.cs
index df48867ad..a63286bdf 100644
--- a/Scripts/Items/Special/Solen Items/BagOfSending.cs
+++ b/Scripts/Items/Special/Solen Items/BagOfSending.cs
@@ -32,7 +32,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get{ return m_Charges; }
+ get => m_Charges;
set
{
if ( value > this.MaxCharges )
@@ -49,7 +49,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Recharges
{
- get{ return m_Recharges; }
+ get => m_Recharges;
set
{
if ( value > this.MaxRecharges )
@@ -64,19 +64,19 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public int MaxCharges{ get{ return 30; } }
+ public int MaxCharges => 30;
[CommandProperty( AccessLevel.GameMaster )]
- public int MaxRecharges{ get{ return 255; } }
+ public int MaxRecharges => 255;
- public string TranslocationItemName{ get{ return "bag of sending"; } }
+ public string TranslocationItemName => "bag of sending";
public override int LabelNumber => 1054104; // a bag of sending
[CommandProperty( AccessLevel.GameMaster )]
public BagOfSendingHue BagOfSendingHue
{
- get{ return m_BagOfSendingHue; }
+ get => m_BagOfSendingHue;
set
{
m_BagOfSendingHue = value;
diff --git a/Scripts/Items/Special/Solen Items/BallOfSummoning.cs b/Scripts/Items/Special/Solen Items/BallOfSummoning.cs
index 5abf4bff1..392025759 100644
--- a/Scripts/Items/Special/Solen Items/BallOfSummoning.cs
+++ b/Scripts/Items/Special/Solen Items/BallOfSummoning.cs
@@ -20,7 +20,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get{ return m_Charges; }
+ get => m_Charges;
set
{
if ( value > this.MaxCharges )
@@ -37,7 +37,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Recharges
{
- get{ return m_Recharges; }
+ get => m_Recharges;
set
{
if ( value > this.MaxRecharges )
@@ -52,12 +52,12 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public int MaxCharges{ get{ return 20; } }
+ public int MaxCharges => 20;
[CommandProperty( AccessLevel.GameMaster )]
- public int MaxRecharges{ get{ return 255; } }
+ public int MaxRecharges => 255;
- public string TranslocationItemName{ get{ return "crystal ball of pet summoning"; } }
+ public string TranslocationItemName => "crystal ball of pet summoning";
[CommandProperty( AccessLevel.GameMaster )]
public BaseCreature Pet
@@ -80,7 +80,7 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public string PetName{ get{ return m_PetName; } }
+ public string PetName => m_PetName;
[Constructible]
public BallOfSummoning() : base( 0xE2E )
@@ -399,13 +399,7 @@ namespace Server.Items
public override double CastDelayFastScalar => 0;
- public override TimeSpan CastDelayBase
- {
- get
- {
- return TimeSpan.FromSeconds( 2.0 );
- }
- }
+ public override TimeSpan CastDelayBase => TimeSpan.FromSeconds( 2.0 );
public override int GetMana()
{
diff --git a/Scripts/Items/Special/Solen Items/BraceletOfBinding.cs b/Scripts/Items/Special/Solen Items/BraceletOfBinding.cs
index f094166f8..b045ec6fc 100644
--- a/Scripts/Items/Special/Solen Items/BraceletOfBinding.cs
+++ b/Scripts/Items/Special/Solen Items/BraceletOfBinding.cs
@@ -20,7 +20,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get{ return m_Charges; }
+ get => m_Charges;
set
{
if ( value > this.MaxCharges )
@@ -37,7 +37,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Recharges
{
- get{ return m_Recharges; }
+ get => m_Recharges;
set
{
if ( value > this.MaxRecharges )
@@ -52,17 +52,17 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public int MaxCharges{ get{ return 20; } }
+ public int MaxCharges => 20;
[CommandProperty( AccessLevel.GameMaster )]
- public int MaxRecharges{ get{ return 255; } }
+ public int MaxRecharges => 255;
- public string TranslocationItemName{ get{ return "bracelet of binding"; } }
+ public string TranslocationItemName => "bracelet of binding";
[CommandProperty( AccessLevel.GameMaster )]
public string Inscription
{
- get{ return m_Inscription; }
+ get => m_Inscription;
set
{
m_Inscription = value;
@@ -80,7 +80,7 @@ namespace Server.Items
return m_Bound;
}
- set{ m_Bound = value; }
+ set => m_Bound = value;
}
[Constructible]
diff --git a/Scripts/Items/Special/Solen Items/ZoogiFungus.cs b/Scripts/Items/Special/Solen Items/ZoogiFungus.cs
index 532f35f43..2354b1376 100644
--- a/Scripts/Items/Special/Solen Items/ZoogiFungus.cs
+++ b/Scripts/Items/Special/Solen Items/ZoogiFungus.cs
@@ -2,8 +2,8 @@ namespace Server.Items
{
public class ZoogiFungus : Item, ICommodity
{
- int ICommodity.DescriptionNumber { get { return LabelNumber; } }
- bool ICommodity.IsDeedable { get { return (Core.ML); } }
+ int ICommodity.DescriptionNumber => LabelNumber;
+ bool ICommodity.IsDeedable => (Core.ML);
[Constructible]
public ZoogiFungus() : this( 1 )
diff --git a/Scripts/Items/Special/SoulStone.cs b/Scripts/Items/Special/SoulStone.cs
index 0525f3688..fff949374 100644
--- a/Scripts/Items/Special/SoulStone.cs
+++ b/Scripts/Items/Special/SoulStone.cs
@@ -20,14 +20,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SecureLevel Level
{
- get{ return m_Level; }
- set{ m_Level = value; }
+ get => m_Level;
+ set => m_Level = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public virtual int ActiveItemID
{
- get { return m_ActiveItemID; }
+ get => m_ActiveItemID;
set
{
m_ActiveItemID = value;
@@ -40,7 +40,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public virtual int InactiveItemID
{
- get { return m_InactiveItemID; }
+ get => m_InactiveItemID;
set
{
m_InactiveItemID = value;
@@ -59,28 +59,28 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string Account
{
- get{ return m_Account; }
- set{ m_Account = value; }
+ get => m_Account;
+ set => m_Account = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string LastUserName
{
- get{ return m_LastUserName; }
+ get => m_LastUserName;
set{ m_LastUserName = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public SkillName Skill
{
- get{ return m_Skill; }
+ get => m_Skill;
set{ m_Skill = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public double SkillValue
{
- get{ return m_SkillValue; }
+ get => m_SkillValue;
set
{
m_SkillValue = value;
@@ -95,10 +95,7 @@ namespace Server.Items
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsEmpty
- {
- get{ return m_SkillValue <= 0.0; }
- }
+ public bool IsEmpty => m_SkillValue <= 0.0;
[Constructible]
public SoulStone() : this( null )
@@ -849,10 +846,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get
- {
- return m_UsesRemaining;
- }
+ get => m_UsesRemaining;
set
{
m_UsesRemaining = value; InvalidateProperties();
@@ -915,7 +909,8 @@ namespace Server.Items
}
- public bool ShowUsesRemaining{ get{ return true; } set{} }
+ public bool ShowUsesRemaining{ get => true;
+ set{} }
}
[Flippable]
@@ -989,7 +984,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Special Scrolls/SpecialScroll.cs b/Scripts/Items/Special/Special Scrolls/SpecialScroll.cs
index 8af58c90c..91e34e484 100644
--- a/Scripts/Items/Special/Special Scrolls/SpecialScroll.cs
+++ b/Scripts/Items/Special/Special Scrolls/SpecialScroll.cs
@@ -13,10 +13,8 @@ namespace Server.Items
/* DO NOT USE! Only used in serialization of special scrolls that originally derived from Item */
private bool m_InheritsItem;
- protected bool InheritsItem
- {
- get{ return m_InheritsItem; }
- }
+ protected bool InheritsItem => m_InheritsItem;
+
#endregion
public abstract int Message{ get; }
@@ -39,15 +37,15 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public SkillName Skill
{
- get { return m_Skill; }
- set { m_Skill = value; }
+ get => m_Skill;
+ set => m_Skill = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public double Value
{
- get { return m_Value; }
- set { m_Value = value; }
+ get => m_Value;
+ set => m_Value = value;
}
public virtual string GetNameLocalized()
diff --git a/Scripts/Items/Special/Valentines/2007/ValentinesCard.cs b/Scripts/Items/Special/Valentines/2007/ValentinesCard.cs
index d41ba873d..d162a75f5 100644
--- a/Scripts/Items/Special/Valentines/2007/ValentinesCard.cs
+++ b/Scripts/Items/Special/Valentines/2007/ValentinesCard.cs
@@ -9,10 +9,14 @@ namespace Server.Items
public override string DefaultName => "a Valentine's card";
[CommandProperty(AccessLevel.GameMaster)]
- public virtual string From { get { return m_From; } set { m_From = value; } }
+ public virtual string From { get => m_From;
+ set => m_From = value;
+ }
[CommandProperty(AccessLevel.GameMaster)]
- public virtual string To { get { return m_To; } set { m_To = value; } }
+ public virtual string To { get => m_To;
+ set => m_To = value;
+ }
private static string Unsigned = "___";
diff --git a/Scripts/Items/Special/Veteran Rewards/AnkhOfSacrifice.cs b/Scripts/Items/Special/Veteran Rewards/AnkhOfSacrifice.cs
index d39048715..3b07625bd 100644
--- a/Scripts/Items/Special/Veteran Rewards/AnkhOfSacrifice.cs
+++ b/Scripts/Items/Special/Veteran Rewards/AnkhOfSacrifice.cs
@@ -169,7 +169,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -246,7 +246,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/Banner.cs b/Scripts/Items/Special/Veteran Rewards/Banner.cs
index cbcad8763..57ca664ea 100644
--- a/Scripts/Items/Special/Veteran Rewards/Banner.cs
+++ b/Scripts/Items/Special/Veteran Rewards/Banner.cs
@@ -26,14 +26,11 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
- public bool FacingSouth
- {
- get{ return ( ItemID & 0x1 ) == 0; }
- }
+ public bool FacingSouth => ( ItemID & 0x1 ) == 0;
[Constructible]
public Banner( int itemID ) : base( itemID )
@@ -121,7 +118,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
[Constructible]
diff --git a/Scripts/Items/Special/Veteran Rewards/BloodyPentagram.cs b/Scripts/Items/Special/Veteran Rewards/BloodyPentagram.cs
index a8176170d..a6f760f93 100644
--- a/Scripts/Items/Special/Veteran Rewards/BloodyPentagram.cs
+++ b/Scripts/Items/Special/Veteran Rewards/BloodyPentagram.cs
@@ -48,7 +48,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -139,7 +139,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/Brazier.cs b/Scripts/Items/Special/Veteran Rewards/Brazier.cs
index f780588f1..6c07b0bce 100644
--- a/Scripts/Items/Special/Veteran Rewards/Brazier.cs
+++ b/Scripts/Items/Special/Veteran Rewards/Brazier.cs
@@ -14,7 +14,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -135,7 +135,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/Cannon.cs b/Scripts/Items/Special/Veteran Rewards/Cannon.cs
index 230cfb316..0d6ca3190 100644
--- a/Scripts/Items/Special/Veteran Rewards/Cannon.cs
+++ b/Scripts/Items/Special/Veteran Rewards/Cannon.cs
@@ -67,15 +67,12 @@ namespace Server.Items
private bool m_IsRewardItem;
[CommandProperty( AccessLevel.GameMaster )]
- public CannonDirection CannonDirection
- {
- get{ return m_CannonDirection; }
- }
+ public CannonDirection CannonDirection => m_CannonDirection;
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get{ return m_Charges; }
+ get => m_Charges;
set
{
m_Charges = value;
@@ -88,7 +85,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set
{
m_IsRewardItem = value;
@@ -381,14 +378,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get{ return m_Charges; }
+ get => m_Charges;
set{ m_Charges = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/CommodityDeedBox.cs b/Scripts/Items/Special/Veteran Rewards/CommodityDeedBox.cs
index 3e72876d0..81c9051cf 100644
--- a/Scripts/Items/Special/Veteran Rewards/CommodityDeedBox.cs
+++ b/Scripts/Items/Special/Veteran Rewards/CommodityDeedBox.cs
@@ -13,7 +13,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/ContestMiniHouse.cs b/Scripts/Items/Special/Veteran Rewards/ContestMiniHouse.cs
index 679f2aeff..4045c0213 100644
--- a/Scripts/Items/Special/Veteran Rewards/ContestMiniHouse.cs
+++ b/Scripts/Items/Special/Veteran Rewards/ContestMiniHouse.cs
@@ -20,7 +20,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -75,7 +75,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/DecorativeShield.cs b/Scripts/Items/Special/Veteran Rewards/DecorativeShield.cs
index 074fb4249..3ef927339 100644
--- a/Scripts/Items/Special/Veteran Rewards/DecorativeShield.cs
+++ b/Scripts/Items/Special/Veteran Rewards/DecorativeShield.cs
@@ -26,7 +26,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -121,7 +121,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/FlamingHead.cs b/Scripts/Items/Special/Veteran Rewards/FlamingHead.cs
index b85c75954..873a06df8 100644
--- a/Scripts/Items/Special/Veteran Rewards/FlamingHead.cs
+++ b/Scripts/Items/Special/Veteran Rewards/FlamingHead.cs
@@ -27,7 +27,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -117,7 +117,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/HangingSkeleton.cs b/Scripts/Items/Special/Veteran Rewards/HangingSkeleton.cs
index 3f4a85fd2..d72349fce 100644
--- a/Scripts/Items/Special/Veteran Rewards/HangingSkeleton.cs
+++ b/Scripts/Items/Special/Veteran Rewards/HangingSkeleton.cs
@@ -26,7 +26,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -123,7 +123,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/MiningCart.cs b/Scripts/Items/Special/Veteran Rewards/MiningCart.cs
index f7044dbc6..735b590a8 100644
--- a/Scripts/Items/Special/Veteran Rewards/MiningCart.cs
+++ b/Scripts/Items/Special/Veteran Rewards/MiningCart.cs
@@ -34,25 +34,22 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
- set{ m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
private MiningCartType m_CartType;
[CommandProperty( AccessLevel.GameMaster )]
- public MiningCartType CartType
- {
- get{ return m_CartType; }
- }
+ public MiningCartType CartType => m_CartType;
private int m_Gems;
[CommandProperty( AccessLevel.GameMaster )]
public int Gems
{
- get{ return m_Gems; }
- set{ m_Gems = value; }
+ get => m_Gems;
+ set => m_Gems = value;
}
private int m_Ore;
@@ -60,8 +57,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Ore
{
- get{ return m_Ore; }
- set{ m_Ore = value; }
+ get => m_Ore;
+ set => m_Ore = value;
}
private Timer m_Timer;
@@ -327,7 +324,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -336,8 +333,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Gems
{
- get{ return m_Gems; }
- set{ m_Gems = value; }
+ get => m_Gems;
+ set => m_Gems = value;
}
private int m_Ore;
@@ -345,8 +342,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Ore
{
- get{ return m_Ore; }
- set{ m_Ore = value; }
+ get => m_Ore;
+ set => m_Ore = value;
}
[Constructible]
diff --git a/Scripts/Items/Special/Veteran Rewards/MinotaurStatue.cs b/Scripts/Items/Special/Veteran Rewards/MinotaurStatue.cs
index a9e15a942..5e0ede3e7 100644
--- a/Scripts/Items/Special/Veteran Rewards/MinotaurStatue.cs
+++ b/Scripts/Items/Special/Veteran Rewards/MinotaurStatue.cs
@@ -29,7 +29,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -104,7 +104,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/PottedCactus.cs b/Scripts/Items/Special/Veteran Rewards/PottedCactus.cs
index a5d5de5f4..423806758 100644
--- a/Scripts/Items/Special/Veteran Rewards/PottedCactus.cs
+++ b/Scripts/Items/Special/Veteran Rewards/PottedCactus.cs
@@ -13,7 +13,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get { return m_IsRewardItem; }
+ get => m_IsRewardItem;
set { m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -66,7 +66,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/StoneAnkh.cs b/Scripts/Items/Special/Veteran Rewards/StoneAnkh.cs
index 0edf2d54e..4c1d389b0 100644
--- a/Scripts/Items/Special/Veteran Rewards/StoneAnkh.cs
+++ b/Scripts/Items/Special/Veteran Rewards/StoneAnkh.cs
@@ -59,7 +59,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -148,7 +148,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/TreeStump.cs b/Scripts/Items/Special/Veteran Rewards/TreeStump.cs
index bdfc34046..4460a1dbc 100644
--- a/Scripts/Items/Special/Veteran Rewards/TreeStump.cs
+++ b/Scripts/Items/Special/Veteran Rewards/TreeStump.cs
@@ -25,7 +25,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -34,7 +34,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Logs
{
- get{ return m_Logs; }
+ get => m_Logs;
set{ m_Logs = value; InvalidateProperties(); }
}
@@ -177,7 +177,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -186,7 +186,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Logs
{
- get{ return m_Logs; }
+ get => m_Logs;
set{ m_Logs = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/WallBanner.cs b/Scripts/Items/Special/Veteran Rewards/WallBanner.cs
index 27bd8d791..4dc9a6e44 100644
--- a/Scripts/Items/Special/Veteran Rewards/WallBanner.cs
+++ b/Scripts/Items/Special/Veteran Rewards/WallBanner.cs
@@ -63,7 +63,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -72,7 +72,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool East
{
- get{ return m_East; }
+ get => m_East;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
@@ -276,7 +276,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Special/Veteran Rewards/WeaponEngravingTool.cs b/Scripts/Items/Special/Veteran Rewards/WeaponEngravingTool.cs
index fe30c372e..bd1b2af6f 100644
--- a/Scripts/Items/Special/Veteran Rewards/WeaponEngravingTool.cs
+++ b/Scripts/Items/Special/Veteran Rewards/WeaponEngravingTool.cs
@@ -16,20 +16,20 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get{ return m_UsesRemaining; }
+ get => m_UsesRemaining;
set{ m_UsesRemaining = value; InvalidateProperties(); }
}
public virtual bool ShowUsesRemaining
{
- get{ return true; }
+ get => true;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get{ return m_IsRewardItem; }
+ get => m_IsRewardItem;
set{ m_IsRewardItem = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Suits/BaseSuit.cs b/Scripts/Items/Suits/BaseSuit.cs
index 66cf9f0f7..e9698ef83 100644
--- a/Scripts/Items/Suits/BaseSuit.cs
+++ b/Scripts/Items/Suits/BaseSuit.cs
@@ -5,7 +5,9 @@ namespace Server.Items
private AccessLevel m_AccessLevel;
[CommandProperty( AccessLevel.Administrator )]
- public AccessLevel AccessLevel{ get{ return m_AccessLevel; } set{ m_AccessLevel = value; } }
+ public AccessLevel AccessLevel{ get => m_AccessLevel;
+ set => m_AccessLevel = value;
+ }
public BaseSuit( AccessLevel level, int hue, int itemID ) : base( itemID )
{
diff --git a/Scripts/Items/Talismans/BaseTalisman.cs b/Scripts/Items/Talismans/BaseTalisman.cs
index a2c62daa4..bc344937a 100644
--- a/Scripts/Items/Talismans/BaseTalisman.cs
+++ b/Scripts/Items/Talismans/BaseTalisman.cs
@@ -51,14 +51,14 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public int MaxCharges
{
- get { return m_MaxCharges; }
+ get => m_MaxCharges;
set { m_MaxCharges = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public int Charges
{
- get { return m_Charges; }
+ get => m_Charges;
set
{
m_Charges = value;
@@ -73,20 +73,20 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public int MaxChargeTime
{
- get { return m_MaxChargeTime; }
+ get => m_MaxChargeTime;
set { m_MaxChargeTime = value; InvalidateProperties(); }
}
public int ChargeTime
{
- get { return m_ChargeTime; }
+ get => m_ChargeTime;
set { m_ChargeTime = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public bool Blessed
{
- get { return m_Blessed; }
+ get => m_Blessed;
set { m_Blessed = value; InvalidateProperties(); }
}
@@ -96,7 +96,7 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public TalismanSlayerName Slayer
{
- get { return m_Slayer; }
+ get => m_Slayer;
set { m_Slayer = value; InvalidateProperties(); }
}
#endregion
@@ -109,14 +109,14 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public TalismanAttribute Summoner
{
- get { return m_Summoner; }
+ get => m_Summoner;
set { m_Summoner = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public TalismanRemoval Removal
{
- get { return m_Removal; }
+ get => m_Removal;
set { m_Removal = value; InvalidateProperties(); }
}
#endregion
@@ -128,14 +128,14 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public TalismanAttribute Protection
{
- get { return m_Protection; }
+ get => m_Protection;
set { m_Protection = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public TalismanAttribute Killer
{
- get { return m_Killer; }
+ get => m_Killer;
set { m_Killer = value; InvalidateProperties(); }
}
#endregion
@@ -148,21 +148,21 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public SkillName Skill
{
- get { return m_Skill; }
+ get => m_Skill;
set { m_Skill = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public int SuccessBonus
{
- get { return m_SuccessBonus; }
+ get => m_SuccessBonus;
set { m_SuccessBonus = value; InvalidateProperties(); }
}
[CommandProperty(AccessLevel.GameMaster)]
public int ExceptionalBonus
{
- get { return m_ExceptionalBonus; }
+ get => m_ExceptionalBonus;
set { m_ExceptionalBonus = value; InvalidateProperties(); }
}
#endregion
@@ -174,14 +174,14 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public AosAttributes Attributes
{
- get { return m_AosAttributes; }
+ get => m_AosAttributes;
set { }
}
[CommandProperty(AccessLevel.GameMaster)]
public AosSkillBonuses SkillBonuses
{
- get { return m_AosSkillBonuses; }
+ get => m_AosSkillBonuses;
set { }
}
#endregion
diff --git a/Scripts/Items/Talismans/TalismanAttribute.cs b/Scripts/Items/Talismans/TalismanAttribute.cs
index 7f6159d10..650bcb324 100644
--- a/Scripts/Items/Talismans/TalismanAttribute.cs
+++ b/Scripts/Items/Talismans/TalismanAttribute.cs
@@ -12,35 +12,29 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Type Type
{
- get{ return m_Type; }
- set{ m_Type = value; }
+ get => m_Type;
+ set => m_Type = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public TextDefinition Name
{
- get{ return m_Name; }
- set{ m_Name = value; }
+ get => m_Name;
+ set => m_Name = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Amount
{
- get { return m_Amount; }
- set { m_Amount = value; }
+ get => m_Amount;
+ set => m_Amount = value;
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsEmpty
- {
- get { return m_Type == null; }
- }
+ public bool IsEmpty => m_Type == null;
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsItem
- {
- get { return m_Type != null && m_Type.Namespace.Equals( "Server.Items" ); }
- }
+ public bool IsItem => m_Type != null && m_Type.Namespace.Equals( "Server.Items" );
public TalismanAttribute() : this( null, 0, 0 )
{
diff --git a/Scripts/Items/Traps/BaseTrap.cs b/Scripts/Items/Traps/BaseTrap.cs
index 6f32a49c9..748223eb6 100644
--- a/Scripts/Items/Traps/BaseTrap.cs
+++ b/Scripts/Items/Traps/BaseTrap.cs
@@ -4,10 +4,10 @@ namespace Server.Items
{
public abstract class BaseTrap : Item
{
- public virtual bool PassivelyTriggered{ get{ return false; } }
- public virtual TimeSpan PassiveTriggerDelay{ get{ return TimeSpan.Zero; } }
- public virtual int PassiveTriggerRange{ get{ return -1; } }
- public virtual TimeSpan ResetDelay{ get{ return TimeSpan.Zero; } }
+ public virtual bool PassivelyTriggered => false;
+ public virtual TimeSpan PassiveTriggerDelay => TimeSpan.Zero;
+ public virtual int PassiveTriggerRange => -1;
+ public virtual TimeSpan ResetDelay => TimeSpan.Zero;
private DateTime m_NextPassiveTrigger, m_NextActiveTrigger;
diff --git a/Scripts/Items/Traps/FireColumnTrap.cs b/Scripts/Items/Traps/FireColumnTrap.cs
index bea33b582..23960516c 100644
--- a/Scripts/Items/Traps/FireColumnTrap.cs
+++ b/Scripts/Items/Traps/FireColumnTrap.cs
@@ -23,8 +23,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public virtual int MinDamage
{
- get { return m_MinDamage; }
- set { m_MinDamage = value; }
+ get => m_MinDamage;
+ set => m_MinDamage = value;
}
private int m_MaxDamage;
@@ -32,8 +32,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public virtual int MaxDamage
{
- get { return m_MaxDamage; }
- set { m_MaxDamage = value; }
+ get => m_MaxDamage;
+ set => m_MaxDamage = value;
}
private bool m_WarningFlame;
@@ -41,8 +41,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public virtual bool WarningFlame
{
- get { return m_WarningFlame; }
- set { m_WarningFlame = value; }
+ get => m_WarningFlame;
+ set => m_WarningFlame = value;
}
public override void OnTrigger( Mobile from )
diff --git a/Scripts/Items/Traps/GasTrap.cs b/Scripts/Items/Traps/GasTrap.cs
index 3bb335c2d..7404eb234 100644
--- a/Scripts/Items/Traps/GasTrap.cs
+++ b/Scripts/Items/Traps/GasTrap.cs
@@ -17,8 +17,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public Poison Poison
{
- get{ return m_Poison; }
- set{ m_Poison = value; }
+ get => m_Poison;
+ set => m_Poison = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -35,10 +35,7 @@ namespace Server.Items
return GasTrapType.WestWall;
}
- set
- {
- ItemID = GetBaseID( value );
- }
+ set => ItemID = GetBaseID( value );
}
public static int GetBaseID( GasTrapType type )
diff --git a/Scripts/Items/Traps/SawTrap.cs b/Scripts/Items/Traps/SawTrap.cs
index 1bb229dee..f186d3a85 100644
--- a/Scripts/Items/Traps/SawTrap.cs
+++ b/Scripts/Items/Traps/SawTrap.cs
@@ -28,10 +28,7 @@ namespace Server.Items
return SawTrapType.NorthWall;
}
- set
- {
- ItemID = GetBaseID( value );
- }
+ set => ItemID = GetBaseID( value );
}
public static int GetBaseID( SawTrapType type )
diff --git a/Scripts/Items/Traps/SpikeTrap.cs b/Scripts/Items/Traps/SpikeTrap.cs
index 2b27c0cb6..1a5e8a6da 100644
--- a/Scripts/Items/Traps/SpikeTrap.cs
+++ b/Scripts/Items/Traps/SpikeTrap.cs
@@ -38,7 +38,7 @@ namespace Server.Items
public bool Extended
{
- get{ return ( ItemID == GetExtendedID( this.Type ) ); }
+ get => ( ItemID == GetExtendedID( this.Type ) );
set
{
if ( value )
diff --git a/Scripts/Items/Traps/StoneFaceTrap.cs b/Scripts/Items/Traps/StoneFaceTrap.cs
index d1309c204..1c584e0cf 100644
--- a/Scripts/Items/Traps/StoneFaceTrap.cs
+++ b/Scripts/Items/Traps/StoneFaceTrap.cs
@@ -35,7 +35,7 @@ namespace Server.Items
public bool Breathing
{
- get{ return ( ItemID == GetFireID( this.Type ) ); }
+ get => ( ItemID == GetFireID( this.Type ) );
set
{
if ( value )
diff --git a/Scripts/Items/TreasureChests/TreasureChestLevel1.cs b/Scripts/Items/TreasureChests/TreasureChestLevel1.cs
index 43a99b701..349f4696b 100644
--- a/Scripts/Items/TreasureChests/TreasureChestLevel1.cs
+++ b/Scripts/Items/TreasureChests/TreasureChestLevel1.cs
@@ -39,10 +39,7 @@ namespace Server.Items
public override int DefaultDropSound => 0x42;
- public override Rectangle2D Bounds
- {
- get { return new Rectangle2D( 18, 105, 144, 73 ); }
- }
+ public override Rectangle2D Bounds => new Rectangle2D( 18, 105, 144, 73 );
[Constructible]
public TreasureChestLevel1()
diff --git a/Scripts/Items/TreasureChests/TreasureChestLevel2.cs b/Scripts/Items/TreasureChests/TreasureChestLevel2.cs
index edd77aa29..0dace56af 100644
--- a/Scripts/Items/TreasureChests/TreasureChestLevel2.cs
+++ b/Scripts/Items/TreasureChests/TreasureChestLevel2.cs
@@ -64,10 +64,7 @@ namespace Server.Items
public override int DefaultDropSound => 0x42;
- public override Rectangle2D Bounds
- {
- get { return new Rectangle2D( 18, 105, 144, 73 ); }
- }
+ public override Rectangle2D Bounds => new Rectangle2D( 18, 105, 144, 73 );
[Constructible]
public TreasureChestLevel2()
diff --git a/Scripts/Items/TreasureChests/TreasureChestLevel3.cs b/Scripts/Items/TreasureChests/TreasureChestLevel3.cs
index 714fbdc92..84fa757ad 100644
--- a/Scripts/Items/TreasureChests/TreasureChestLevel3.cs
+++ b/Scripts/Items/TreasureChests/TreasureChestLevel3.cs
@@ -38,10 +38,7 @@ namespace Server.Items
public override int DefaultDropSound => 0x42;
- public override Rectangle2D Bounds
- {
- get { return new Rectangle2D( 18, 105, 144, 73 ); }
- }
+ public override Rectangle2D Bounds => new Rectangle2D( 18, 105, 144, 73 );
[Constructible]
public TreasureChestLevel3()
diff --git a/Scripts/Items/TreasureChests/TreasureChestLevel4.cs b/Scripts/Items/TreasureChests/TreasureChestLevel4.cs
index f352ef957..64a0a4d50 100644
--- a/Scripts/Items/TreasureChests/TreasureChestLevel4.cs
+++ b/Scripts/Items/TreasureChests/TreasureChestLevel4.cs
@@ -44,10 +44,7 @@ namespace Server.Items
public override int DefaultDropSound => 0x42;
- public override Rectangle2D Bounds
- {
- get { return new Rectangle2D( 18, 105, 144, 73 ); }
- }
+ public override Rectangle2D Bounds => new Rectangle2D( 18, 105, 144, 73 );
[Constructible]
public TreasureChestLevel4()
diff --git a/Scripts/Items/Wands/BaseWand.cs b/Scripts/Items/Wands/BaseWand.cs
index 57b0c2ce9..075707a1a 100644
--- a/Scripts/Items/Wands/BaseWand.cs
+++ b/Scripts/Items/Wands/BaseWand.cs
@@ -43,19 +43,19 @@ namespace Server.Items
private WandEffect m_WandEffect;
private int m_Charges;
- public virtual TimeSpan GetUseDelay{ get{ return TimeSpan.FromSeconds( 4.0 ); } }
+ public virtual TimeSpan GetUseDelay => TimeSpan.FromSeconds( 4.0 );
[CommandProperty( AccessLevel.GameMaster )]
public WandEffect Effect
{
- get{ return m_WandEffect; }
+ get => m_WandEffect;
set{ m_WandEffect = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get{ return m_Charges; }
+ get => m_Charges;
set{ m_Charges = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Weapons/Abilities/WeaponAbility.cs b/Scripts/Items/Weapons/Abilities/WeaponAbility.cs
index 33187ff6e..9d127dabd 100644
--- a/Scripts/Items/Weapons/Abilities/WeaponAbility.cs
+++ b/Scripts/Items/Weapons/Abilities/WeaponAbility.cs
@@ -8,10 +8,10 @@ namespace Server.Items
{
public abstract class WeaponAbility
{
- public virtual int BaseMana{ get{ return 0; } }
+ public virtual int BaseMana => 0;
- public virtual int AccuracyBonus{ get{ return 0; } }
- public virtual double DamageScalar{ get{ return 1.0; } }
+ public virtual int AccuracyBonus => 0;
+ public virtual double DamageScalar => 1.0;
public virtual bool RequiresSE => false;
@@ -285,11 +285,11 @@ namespace Server.Items
new Disrobe()
};
- public static WeaponAbility[] Abilities{ get{ return m_Abilities; } }
+ public static WeaponAbility[] Abilities => m_Abilities;
private static Hashtable m_Table = new Hashtable();
- public static Hashtable Table{ get{ return m_Table; } }
+ public static Hashtable Table => m_Table;
public static readonly WeaponAbility ArmorIgnore = m_Abilities[ 1];
public static readonly WeaponAbility BleedAttack = m_Abilities[ 2];
@@ -473,7 +473,7 @@ namespace Server.Items
{
private Timer m_Timer;
- public Timer Timer{ get{ return m_Timer; } }
+ public Timer Timer => m_Timer;
public WeaponAbilityContext( Timer timer )
{
diff --git a/Scripts/Items/Weapons/Axes/BaseAxe.cs b/Scripts/Items/Weapons/Axes/BaseAxe.cs
index 49f35556f..2c8dc4cd8 100644
--- a/Scripts/Items/Weapons/Axes/BaseAxe.cs
+++ b/Scripts/Items/Weapons/Axes/BaseAxe.cs
@@ -20,7 +20,7 @@ namespace Server.Items
public override WeaponType DefType => WeaponType.Axe;
public override WeaponAnimation DefAnimation => WeaponAnimation.Slash2H;
- public virtual HarvestSystem HarvestSystem{ get{ return Lumberjacking.System; } }
+ public virtual HarvestSystem HarvestSystem => Lumberjacking.System;
private int m_UsesRemaining;
private bool m_ShowUsesRemaining;
@@ -28,14 +28,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool ShowUsesRemaining
{
- get { return m_ShowUsesRemaining; }
+ get => m_ShowUsesRemaining;
set { m_ShowUsesRemaining = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Weapons/BaseWeapon.cs b/Scripts/Items/Weapons/BaseWeapon.cs
index be2e6043a..9b9a8abb7 100644
--- a/Scripts/Items/Weapons/BaseWeapon.cs
+++ b/Scripts/Items/Weapons/BaseWeapon.cs
@@ -25,7 +25,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public string EngravedText
{
- get{ return m_EngravedText; }
+ get => m_EngravedText;
set{ m_EngravedText = value; InvalidateProperties(); }
}
@@ -34,7 +34,7 @@ namespace Server.Items
public FactionItem FactionItemState
{
- get{ return m_FactionState; }
+ get => m_FactionState;
set
{
m_FactionState = value;
@@ -102,47 +102,47 @@ namespace Server.Items
#endregion
#region Virtual Properties
- public virtual WeaponAbility PrimaryAbility{ get{ return null; } }
- public virtual WeaponAbility SecondaryAbility{ get{ return null; } }
+ public virtual WeaponAbility PrimaryAbility => null;
+ public virtual WeaponAbility SecondaryAbility => null;
- public virtual int DefMaxRange{ get{ return 1; } }
- public virtual int DefHitSound{ get{ return 0; } }
- public virtual int DefMissSound{ get{ return 0; } }
- public virtual SkillName DefSkill{ get{ return SkillName.Swords; } }
- public virtual WeaponType DefType{ get{ return WeaponType.Slashing; } }
- public virtual WeaponAnimation DefAnimation{ get{ return WeaponAnimation.Slash1H; } }
+ public virtual int DefMaxRange => 1;
+ public virtual int DefHitSound => 0;
+ public virtual int DefMissSound => 0;
+ public virtual SkillName DefSkill => SkillName.Swords;
+ public virtual WeaponType DefType => WeaponType.Slashing;
+ public virtual WeaponAnimation DefAnimation => WeaponAnimation.Slash1H;
- public virtual int AosStrengthReq{ get{ return 0; } }
- public virtual int AosDexterityReq{ get{ return 0; } }
- public virtual int AosIntelligenceReq{ get{ return 0; } }
- public virtual int AosMinDamage{ get{ return 0; } }
- public virtual int AosMaxDamage{ get{ return 0; } }
- public virtual int AosSpeed{ get{ return 0; } }
- public virtual float MlSpeed{ get{ return 0.0f; } }
- public virtual int AosMaxRange{ get{ return DefMaxRange; } }
- public virtual int AosHitSound{ get{ return DefHitSound; } }
- public virtual int AosMissSound{ get{ return DefMissSound; } }
- public virtual SkillName AosSkill{ get{ return DefSkill; } }
- public virtual WeaponType AosType{ get{ return DefType; } }
- public virtual WeaponAnimation AosAnimation{ get{ return DefAnimation; } }
+ public virtual int AosStrengthReq => 0;
+ public virtual int AosDexterityReq => 0;
+ public virtual int AosIntelligenceReq => 0;
+ public virtual int AosMinDamage => 0;
+ public virtual int AosMaxDamage => 0;
+ public virtual int AosSpeed => 0;
+ public virtual float MlSpeed => 0.0f;
+ public virtual int AosMaxRange => DefMaxRange;
+ public virtual int AosHitSound => DefHitSound;
+ public virtual int AosMissSound => DefMissSound;
+ public virtual SkillName AosSkill => DefSkill;
+ public virtual WeaponType AosType => DefType;
+ public virtual WeaponAnimation AosAnimation => DefAnimation;
- public virtual int OldStrengthReq{ get{ return 0; } }
- public virtual int OldDexterityReq{ get{ return 0; } }
- public virtual int OldIntelligenceReq{ get{ return 0; } }
- public virtual int OldMinDamage{ get{ return 0; } }
- public virtual int OldMaxDamage{ get{ return 0; } }
- public virtual int OldSpeed{ get{ return 0; } }
- public virtual int OldMaxRange{ get{ return DefMaxRange; } }
- public virtual int OldHitSound{ get{ return DefHitSound; } }
- public virtual int OldMissSound{ get{ return DefMissSound; } }
- public virtual SkillName OldSkill{ get{ return DefSkill; } }
- public virtual WeaponType OldType{ get{ return DefType; } }
- public virtual WeaponAnimation OldAnimation{ get{ return DefAnimation; } }
+ public virtual int OldStrengthReq => 0;
+ public virtual int OldDexterityReq => 0;
+ public virtual int OldIntelligenceReq => 0;
+ public virtual int OldMinDamage => 0;
+ public virtual int OldMaxDamage => 0;
+ public virtual int OldSpeed => 0;
+ public virtual int OldMaxRange => DefMaxRange;
+ public virtual int OldHitSound => DefHitSound;
+ public virtual int OldMissSound => DefMissSound;
+ public virtual SkillName OldSkill => DefSkill;
+ public virtual WeaponType OldType => DefType;
+ public virtual WeaponAnimation OldAnimation => DefAnimation;
- public virtual int InitMinHits{ get{ return 0; } }
- public virtual int InitMaxHits{ get{ return 0; } }
+ public virtual int InitMinHits => 0;
+ public virtual int InitMaxHits => 0;
- public virtual bool CanFortify{ get{ return true; } }
+ public virtual bool CanFortify => true;
public override int PhysicalResistance => m_AosWeaponAttributes.ResistPhysicalBonus;
public override int FireResistance => m_AosWeaponAttributes.ResistFireBonus;
@@ -157,56 +157,56 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public AosAttributes Attributes
{
- get{ return m_AosAttributes; }
+ get => m_AosAttributes;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosWeaponAttributes WeaponAttributes
{
- get{ return m_AosWeaponAttributes; }
+ get => m_AosWeaponAttributes;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosSkillBonuses SkillBonuses
{
- get{ return m_AosSkillBonuses; }
+ get => m_AosSkillBonuses;
set{}
}
[CommandProperty( AccessLevel.GameMaster )]
public AosElementAttributes AosElementDamages
{
- get { return m_AosElementDamages; }
+ get => m_AosElementDamages;
set { }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Cursed
{
- get{ return m_Cursed; }
- set{ m_Cursed = value; }
+ get => m_Cursed;
+ set => m_Cursed = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Consecrated
{
- get{ return m_Consecrated; }
- set{ m_Consecrated = value; }
+ get => m_Consecrated;
+ set => m_Consecrated = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Identified
{
- get{ return m_Identified; }
+ get => m_Identified;
set{ m_Identified = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int HitPoints
{
- get{ return m_Hits; }
+ get => m_Hits;
set
{
if ( m_Hits == value )
@@ -224,133 +224,133 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int MaxHitPoints
{
- get{ return m_MaxHits; }
+ get => m_MaxHits;
set{ m_MaxHits = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int PoisonCharges
{
- get{ return m_PoisonCharges; }
+ get => m_PoisonCharges;
set{ m_PoisonCharges = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public Poison Poison
{
- get{ return m_Poison; }
+ get => m_Poison;
set{ m_Poison = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public WeaponQuality Quality
{
- get{ return m_Quality; }
+ get => m_Quality;
set{ UnscaleDurability(); m_Quality = value; ScaleDurability(); InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Crafter
{
- get{ return m_Crafter; }
+ get => m_Crafter;
set{ m_Crafter = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public SlayerName Slayer
{
- get{ return m_Slayer; }
+ get => m_Slayer;
set{ m_Slayer = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public SlayerName Slayer2
{
- get { return m_Slayer2; }
+ get => m_Slayer2;
set { m_Slayer2 = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource Resource
{
- get{ return m_Resource; }
+ get => m_Resource;
set{ UnscaleDurability(); m_Resource = value; Hue = CraftResources.GetHue( m_Resource ); InvalidateProperties(); ScaleDurability(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public WeaponDamageLevel DamageLevel
{
- get{ return m_DamageLevel; }
+ get => m_DamageLevel;
set{ m_DamageLevel = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public WeaponDurabilityLevel DurabilityLevel
{
- get{ return m_DurabilityLevel; }
+ get => m_DurabilityLevel;
set{ UnscaleDurability(); m_DurabilityLevel = value; InvalidateProperties(); ScaleDurability(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool PlayerConstructed
{
- get{ return m_PlayerConstructed; }
- set{ m_PlayerConstructed = value; }
+ get => m_PlayerConstructed;
+ set => m_PlayerConstructed = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int MaxRange
{
- get{ return ( m_MaxRange == -1 ? Core.AOS ? AosMaxRange : OldMaxRange : m_MaxRange ); }
+ get => ( m_MaxRange == -1 ? Core.AOS ? AosMaxRange : OldMaxRange : m_MaxRange );
set{ m_MaxRange = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public WeaponAnimation Animation
{
- get{ return ( m_Animation == (WeaponAnimation)(-1) ? Core.AOS ? AosAnimation : OldAnimation : m_Animation ); }
- set{ m_Animation = value; }
+ get => ( m_Animation == (WeaponAnimation)(-1) ? Core.AOS ? AosAnimation : OldAnimation : m_Animation );
+ set => m_Animation = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public WeaponType Type
{
- get{ return ( m_Type == (WeaponType)(-1) ? Core.AOS ? AosType : OldType : m_Type ); }
- set{ m_Type = value; }
+ get => ( m_Type == (WeaponType)(-1) ? Core.AOS ? AosType : OldType : m_Type );
+ set => m_Type = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public SkillName Skill
{
- get{ return ( m_Skill == (SkillName)(-1) ? Core.AOS ? AosSkill : OldSkill : m_Skill ); }
+ get => ( m_Skill == (SkillName)(-1) ? Core.AOS ? AosSkill : OldSkill : m_Skill );
set{ m_Skill = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int HitSound
{
- get{ return ( m_HitSound == -1 ? Core.AOS ? AosHitSound : OldHitSound : m_HitSound ); }
- set{ m_HitSound = value; }
+ get => ( m_HitSound == -1 ? Core.AOS ? AosHitSound : OldHitSound : m_HitSound );
+ set => m_HitSound = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int MissSound
{
- get{ return ( m_MissSound == -1 ? Core.AOS ? AosMissSound : OldMissSound : m_MissSound ); }
- set{ m_MissSound = value; }
+ get => ( m_MissSound == -1 ? Core.AOS ? AosMissSound : OldMissSound : m_MissSound );
+ set => m_MissSound = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int MinDamage
{
- get{ return ( m_MinDamage == -1 ? Core.AOS ? AosMinDamage : OldMinDamage : m_MinDamage ); }
+ get => ( m_MinDamage == -1 ? Core.AOS ? AosMinDamage : OldMinDamage : m_MinDamage );
set{ m_MinDamage = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int MaxDamage
{
- get{ return ( m_MaxDamage == -1 ? Core.AOS ? AosMaxDamage : OldMaxDamage : m_MaxDamage ); }
+ get => ( m_MaxDamage == -1 ? Core.AOS ? AosMaxDamage : OldMaxDamage : m_MaxDamage );
set{ m_MaxDamage = value; InvalidateProperties(); }
}
@@ -375,31 +375,28 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int StrRequirement
{
- get{ return ( m_StrReq == -1 ? Core.AOS ? AosStrengthReq : OldStrengthReq : m_StrReq ); }
+ get => ( m_StrReq == -1 ? Core.AOS ? AosStrengthReq : OldStrengthReq : m_StrReq );
set{ m_StrReq = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int DexRequirement
{
- get{ return ( m_DexReq == -1 ? Core.AOS ? AosDexterityReq : OldDexterityReq : m_DexReq ); }
- set{ m_DexReq = value; }
+ get => ( m_DexReq == -1 ? Core.AOS ? AosDexterityReq : OldDexterityReq : m_DexReq );
+ set => m_DexReq = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int IntRequirement
{
- get{ return ( m_IntReq == -1 ? Core.AOS ? AosIntelligenceReq : OldIntelligenceReq : m_IntReq ); }
- set{ m_IntReq = value; }
+ get => ( m_IntReq == -1 ? Core.AOS ? AosIntelligenceReq : OldIntelligenceReq : m_IntReq );
+ set => m_IntReq = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public WeaponAccuracyLevel AccuracyLevel
{
- get
- {
- return m_AccuracyLevel;
- }
+ get => m_AccuracyLevel;
set
{
if ( m_AccuracyLevel != value )
@@ -599,7 +596,7 @@ namespace Server.Items
return base.CanEquip( from );
}
- public virtual bool UseSkillMod{ get{ return !Core.AOS; } }
+ public virtual bool UseSkillMod => !Core.AOS;
public override bool OnEquip( Mobile from )
{
@@ -1310,8 +1307,8 @@ namespace Server.Items
public static bool InDoubleStrike
{
- get{ return m_InDoubleStrike; }
- set{ m_InDoubleStrike = value; }
+ get => m_InDoubleStrike;
+ set => m_InDoubleStrike = value;
}
public virtual void OnHit( Mobile attacker, Mobile defender, double damageBonus = 1.0)
@@ -2189,7 +2186,7 @@ namespace Server.Items
return damage + (int)(damage * totalBonus);
}
- public virtual int VirtualDamageBonus{ get{ return 0; } }
+ public virtual int VirtualDamageBonus => 0;
public virtual int ComputeDamageAOS( Mobile attacker, Mobile defender )
{
@@ -2926,7 +2923,7 @@ namespace Server.Items
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get{ return base.Hue; }
+ get => base.Hue;
set{ base.Hue = value; InvalidateProperties(); }
}
@@ -3024,10 +3021,7 @@ namespace Server.Items
return ( m_AosAttributes.SpellChanneling != 0 );
}
- public virtual int ArtifactRarity
- {
- get{ return 0; }
- }
+ public virtual int ArtifactRarity => 0;
public virtual int GetLuckBonus()
{
@@ -3362,8 +3356,8 @@ namespace Server.Items
public static BaseWeapon Fists
{
- get{ return m_Fists; }
- set{ m_Fists = value; }
+ get => m_Fists;
+ set => m_Fists = value;
}
#region ICraftable Members
diff --git a/Scripts/Items/Weapons/Knives/ThrowingDagger.cs b/Scripts/Items/Weapons/Knives/ThrowingDagger.cs
index e4e2e7b74..b41d29485 100644
--- a/Scripts/Items/Weapons/Knives/ThrowingDagger.cs
+++ b/Scripts/Items/Weapons/Knives/ThrowingDagger.cs
@@ -6,10 +6,7 @@ namespace Server.Items
[FlippableAttribute( 0xF52, 0xF51 )]
public class ThrowingDagger : Item
{
- public override string DefaultName
- {
- get { return "a throwing dagger"; }
- }
+ public override string DefaultName => "a throwing dagger";
[Constructible]
public ThrowingDagger() : base( 0xF52 )
diff --git a/Scripts/Items/Weapons/Maces/FireworksWand.cs b/Scripts/Items/Weapons/Maces/FireworksWand.cs
index e33eca858..b4d1be517 100644
--- a/Scripts/Items/Weapons/Maces/FireworksWand.cs
+++ b/Scripts/Items/Weapons/Maces/FireworksWand.cs
@@ -11,7 +11,7 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int Charges
{
- get{ return m_Charges; }
+ get => m_Charges;
set{ m_Charges = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Weapons/PoleArms/BasePoleArm.cs b/Scripts/Items/Weapons/PoleArms/BasePoleArm.cs
index f483a4505..308e53c0c 100644
--- a/Scripts/Items/Weapons/PoleArms/BasePoleArm.cs
+++ b/Scripts/Items/Weapons/PoleArms/BasePoleArm.cs
@@ -14,7 +14,7 @@ namespace Server.Items
public override WeaponType DefType => WeaponType.Polearm;
public override WeaponAnimation DefAnimation => WeaponAnimation.Slash2H;
- public virtual HarvestSystem HarvestSystem{ get{ return Lumberjacking.System; } }
+ public virtual HarvestSystem HarvestSystem => Lumberjacking.System;
private int m_UsesRemaining;
private bool m_ShowUsesRemaining;
@@ -22,14 +22,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int UsesRemaining
{
- get { return m_UsesRemaining; }
+ get => m_UsesRemaining;
set { m_UsesRemaining = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool ShowUsesRemaining
{
- get { return m_ShowUsesRemaining; }
+ get => m_ShowUsesRemaining;
set { m_ShowUsesRemaining = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Weapons/Ranged/BaseRanged.cs b/Scripts/Items/Weapons/Ranged/BaseRanged.cs
index a1641706d..132ec1517 100644
--- a/Scripts/Items/Weapons/Ranged/BaseRanged.cs
+++ b/Scripts/Items/Weapons/Ranged/BaseRanged.cs
@@ -27,14 +27,14 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool Balanced
{
- get{ return m_Balanced; }
+ get => m_Balanced;
set{ m_Balanced = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int Velocity
{
- get{ return m_Velocity; }
+ get => m_Velocity;
set{ m_Velocity = value; InvalidateProperties(); }
}
diff --git a/Scripts/Items/Weapons/Ranged/JukaBow.cs b/Scripts/Items/Weapons/Ranged/JukaBow.cs
index 85759c0a8..cde4f8028 100644
--- a/Scripts/Items/Weapons/Ranged/JukaBow.cs
+++ b/Scripts/Items/Weapons/Ranged/JukaBow.cs
@@ -10,10 +10,7 @@ namespace Server.Items
public override int OldDexterityReq => 80;
[CommandProperty( AccessLevel.GameMaster )]
- public bool IsModified
- {
- get{ return ( Hue == 0x453 ); }
- }
+ public bool IsModified => ( Hue == 0x453 );
[Constructible]
public JukaBow()
diff --git a/Scripts/Items/Weapons/SlayerEntry.cs b/Scripts/Items/Weapons/SlayerEntry.cs
index 15f5cd122..ac3fa6a7f 100644
--- a/Scripts/Items/Weapons/SlayerEntry.cs
+++ b/Scripts/Items/Weapons/SlayerEntry.cs
@@ -8,9 +8,11 @@ namespace Server.Items
private SlayerName m_Name;
private Type[] m_Types;
- public SlayerGroup Group{ get{ return m_Group; } set{ m_Group = value; } }
- public SlayerName Name{ get{ return m_Name; } }
- public Type[] Types{ get{ return m_Types; } }
+ public SlayerGroup Group{ get => m_Group;
+ set => m_Group = value;
+ }
+ public SlayerName Name => m_Name;
+ public Type[] Types => m_Types;
private static int[] m_AosTitles = new int[]
{
diff --git a/Scripts/Items/Weapons/SlayerGroup.cs b/Scripts/Items/Weapons/SlayerGroup.cs
index 78f93aaf2..c934ba8ba 100644
--- a/Scripts/Items/Weapons/SlayerGroup.cs
+++ b/Scripts/Items/Weapons/SlayerGroup.cs
@@ -8,15 +8,9 @@ namespace Server.Items
private static SlayerEntry[] m_TotalEntries;
private static SlayerGroup[] m_Groups;
- public static SlayerEntry[] TotalEntries
- {
- get{ return m_TotalEntries; }
- }
+ public static SlayerEntry[] TotalEntries => m_TotalEntries;
- public static SlayerGroup[] Groups
- {
- get{ return m_Groups; }
- }
+ public static SlayerGroup[] Groups => m_Groups;
public static SlayerEntry GetEntryByName( SlayerName name )
{
@@ -183,10 +177,18 @@ namespace Server.Items
private SlayerEntry[] m_Entries;
private Type[] m_FoundOn;
- public SlayerGroup[] Opposition{ get{ return m_Opposition; } set{ m_Opposition = value; } }
- public SlayerEntry Super{ get{ return m_Super; } set{ m_Super = value; } }
- public SlayerEntry[] Entries{ get{ return m_Entries; } set{ m_Entries = value; } }
- public Type[] FoundOn{ get{ return m_FoundOn; } set{ m_FoundOn = value; } }
+ public SlayerGroup[] Opposition{ get => m_Opposition;
+ set => m_Opposition = value;
+ }
+ public SlayerEntry Super{ get => m_Super;
+ set => m_Super = value;
+ }
+ public SlayerEntry[] Entries{ get => m_Entries;
+ set => m_Entries = value;
+ }
+ public Type[] FoundOn{ get => m_FoundOn;
+ set => m_FoundOn = value;
+ }
public bool OppositionSuperSlays( Mobile m )
{
diff --git a/Scripts/Items/Weapons/SpearsAndForks/TribalSpear.cs b/Scripts/Items/Weapons/SpearsAndForks/TribalSpear.cs
index f817d3387..930af368b 100644
--- a/Scripts/Items/Weapons/SpearsAndForks/TribalSpear.cs
+++ b/Scripts/Items/Weapons/SpearsAndForks/TribalSpear.cs
@@ -22,10 +22,7 @@ namespace Server.Items
public override int VirtualDamageBonus => 25;
- public override string DefaultName
- {
- get { return "a tribal spear"; }
- }
+ public override string DefaultName => "a tribal spear";
[Constructible]
public TribalSpear() : base( 0xF62 )
diff --git a/Scripts/Misc/AOS.cs b/Scripts/Misc/AOS.cs
index f167fb050..98b0e17b0 100644
--- a/Scripts/Misc/AOS.cs
+++ b/Scripts/Misc/AOS.cs
@@ -345,8 +345,8 @@ namespace Server
public int this[AosAttribute attribute]
{
- get { return GetValue( (int)attribute ); }
- set { SetValue( (int)attribute, value ); }
+ get => GetValue( (int)attribute );
+ set => SetValue( (int)attribute, value );
}
public override string ToString()
@@ -389,76 +389,124 @@ namespace Server
}
[CommandProperty( AccessLevel.GameMaster )]
- public int RegenHits { get { return this[AosAttribute.RegenHits]; } set { this[AosAttribute.RegenHits] = value; } }
+ public int RegenHits { get => this[AosAttribute.RegenHits];
+ set => this[AosAttribute.RegenHits] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int RegenStam { get { return this[AosAttribute.RegenStam]; } set { this[AosAttribute.RegenStam] = value; } }
+ public int RegenStam { get => this[AosAttribute.RegenStam];
+ set => this[AosAttribute.RegenStam] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int RegenMana { get { return this[AosAttribute.RegenMana]; } set { this[AosAttribute.RegenMana] = value; } }
+ public int RegenMana { get => this[AosAttribute.RegenMana];
+ set => this[AosAttribute.RegenMana] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int DefendChance { get { return this[AosAttribute.DefendChance]; } set { this[AosAttribute.DefendChance] = value; } }
+ public int DefendChance { get => this[AosAttribute.DefendChance];
+ set => this[AosAttribute.DefendChance] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int AttackChance { get { return this[AosAttribute.AttackChance]; } set { this[AosAttribute.AttackChance] = value; } }
+ public int AttackChance { get => this[AosAttribute.AttackChance];
+ set => this[AosAttribute.AttackChance] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int BonusStr { get { return this[AosAttribute.BonusStr]; } set { this[AosAttribute.BonusStr] = value; } }
+ public int BonusStr { get => this[AosAttribute.BonusStr];
+ set => this[AosAttribute.BonusStr] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int BonusDex { get { return this[AosAttribute.BonusDex]; } set { this[AosAttribute.BonusDex] = value; } }
+ public int BonusDex { get => this[AosAttribute.BonusDex];
+ set => this[AosAttribute.BonusDex] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int BonusInt { get { return this[AosAttribute.BonusInt]; } set { this[AosAttribute.BonusInt] = value; } }
+ public int BonusInt { get => this[AosAttribute.BonusInt];
+ set => this[AosAttribute.BonusInt] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int BonusHits { get { return this[AosAttribute.BonusHits]; } set { this[AosAttribute.BonusHits] = value; } }
+ public int BonusHits { get => this[AosAttribute.BonusHits];
+ set => this[AosAttribute.BonusHits] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int BonusStam { get { return this[AosAttribute.BonusStam]; } set { this[AosAttribute.BonusStam] = value; } }
+ public int BonusStam { get => this[AosAttribute.BonusStam];
+ set => this[AosAttribute.BonusStam] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int BonusMana { get { return this[AosAttribute.BonusMana]; } set { this[AosAttribute.BonusMana] = value; } }
+ public int BonusMana { get => this[AosAttribute.BonusMana];
+ set => this[AosAttribute.BonusMana] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int WeaponDamage { get { return this[AosAttribute.WeaponDamage]; } set { this[AosAttribute.WeaponDamage] = value; } }
+ public int WeaponDamage { get => this[AosAttribute.WeaponDamage];
+ set => this[AosAttribute.WeaponDamage] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int WeaponSpeed { get { return this[AosAttribute.WeaponSpeed]; } set { this[AosAttribute.WeaponSpeed] = value; } }
+ public int WeaponSpeed { get => this[AosAttribute.WeaponSpeed];
+ set => this[AosAttribute.WeaponSpeed] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int SpellDamage { get { return this[AosAttribute.SpellDamage]; } set { this[AosAttribute.SpellDamage] = value; } }
+ public int SpellDamage { get => this[AosAttribute.SpellDamage];
+ set => this[AosAttribute.SpellDamage] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int CastRecovery { get { return this[AosAttribute.CastRecovery]; } set { this[AosAttribute.CastRecovery] = value; } }
+ public int CastRecovery { get => this[AosAttribute.CastRecovery];
+ set => this[AosAttribute.CastRecovery] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int CastSpeed { get { return this[AosAttribute.CastSpeed]; } set { this[AosAttribute.CastSpeed] = value; } }
+ public int CastSpeed { get => this[AosAttribute.CastSpeed];
+ set => this[AosAttribute.CastSpeed] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int LowerManaCost { get { return this[AosAttribute.LowerManaCost]; } set { this[AosAttribute.LowerManaCost] = value; } }
+ public int LowerManaCost { get => this[AosAttribute.LowerManaCost];
+ set => this[AosAttribute.LowerManaCost] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int LowerRegCost { get { return this[AosAttribute.LowerRegCost]; } set { this[AosAttribute.LowerRegCost] = value; } }
+ public int LowerRegCost { get => this[AosAttribute.LowerRegCost];
+ set => this[AosAttribute.LowerRegCost] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int ReflectPhysical { get { return this[AosAttribute.ReflectPhysical]; } set { this[AosAttribute.ReflectPhysical] = value; } }
+ public int ReflectPhysical { get => this[AosAttribute.ReflectPhysical];
+ set => this[AosAttribute.ReflectPhysical] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int EnhancePotions { get { return this[AosAttribute.EnhancePotions]; } set { this[AosAttribute.EnhancePotions] = value; } }
+ public int EnhancePotions { get => this[AosAttribute.EnhancePotions];
+ set => this[AosAttribute.EnhancePotions] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Luck { get { return this[AosAttribute.Luck]; } set { this[AosAttribute.Luck] = value; } }
+ public int Luck { get => this[AosAttribute.Luck];
+ set => this[AosAttribute.Luck] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int SpellChanneling { get { return this[AosAttribute.SpellChanneling]; } set { this[AosAttribute.SpellChanneling] = value; } }
+ public int SpellChanneling { get => this[AosAttribute.SpellChanneling];
+ set => this[AosAttribute.SpellChanneling] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int NightSight { get { return this[AosAttribute.NightSight]; } set { this[AosAttribute.NightSight] = value; } }
+ public int NightSight { get => this[AosAttribute.NightSight];
+ set => this[AosAttribute.NightSight] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int IncreasedKarmaLoss { get { return this[AosAttribute.IncreasedKarmaLoss]; } set { this[AosAttribute.IncreasedKarmaLoss] = value; } }
+ public int IncreasedKarmaLoss { get => this[AosAttribute.IncreasedKarmaLoss];
+ set => this[AosAttribute.IncreasedKarmaLoss] = value;
+ }
}
[Flags]
@@ -541,8 +589,8 @@ namespace Server
public int this[AosWeaponAttribute attribute]
{
- get { return GetValue( (int)attribute ); }
- set { SetValue( (int)attribute, value ); }
+ get => GetValue( (int)attribute );
+ set => SetValue( (int)attribute, value );
}
public override string ToString()
@@ -551,79 +599,129 @@ namespace Server
}
[CommandProperty( AccessLevel.GameMaster )]
- public int LowerStatReq { get { return this[AosWeaponAttribute.LowerStatReq]; } set { this[AosWeaponAttribute.LowerStatReq] = value; } }
+ public int LowerStatReq { get => this[AosWeaponAttribute.LowerStatReq];
+ set => this[AosWeaponAttribute.LowerStatReq] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int SelfRepair { get { return this[AosWeaponAttribute.SelfRepair]; } set { this[AosWeaponAttribute.SelfRepair] = value; } }
+ public int SelfRepair { get => this[AosWeaponAttribute.SelfRepair];
+ set => this[AosWeaponAttribute.SelfRepair] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitLeechHits { get { return this[AosWeaponAttribute.HitLeechHits]; } set { this[AosWeaponAttribute.HitLeechHits] = value; } }
+ public int HitLeechHits { get => this[AosWeaponAttribute.HitLeechHits];
+ set => this[AosWeaponAttribute.HitLeechHits] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitLeechStam { get { return this[AosWeaponAttribute.HitLeechStam]; } set { this[AosWeaponAttribute.HitLeechStam] = value; } }
+ public int HitLeechStam { get => this[AosWeaponAttribute.HitLeechStam];
+ set => this[AosWeaponAttribute.HitLeechStam] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitLeechMana { get { return this[AosWeaponAttribute.HitLeechMana]; } set { this[AosWeaponAttribute.HitLeechMana] = value; } }
+ public int HitLeechMana { get => this[AosWeaponAttribute.HitLeechMana];
+ set => this[AosWeaponAttribute.HitLeechMana] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitLowerAttack { get { return this[AosWeaponAttribute.HitLowerAttack]; } set { this[AosWeaponAttribute.HitLowerAttack] = value; } }
+ public int HitLowerAttack { get => this[AosWeaponAttribute.HitLowerAttack];
+ set => this[AosWeaponAttribute.HitLowerAttack] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitLowerDefend { get { return this[AosWeaponAttribute.HitLowerDefend]; } set { this[AosWeaponAttribute.HitLowerDefend] = value; } }
+ public int HitLowerDefend { get => this[AosWeaponAttribute.HitLowerDefend];
+ set => this[AosWeaponAttribute.HitLowerDefend] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitMagicArrow { get { return this[AosWeaponAttribute.HitMagicArrow]; } set { this[AosWeaponAttribute.HitMagicArrow] = value; } }
+ public int HitMagicArrow { get => this[AosWeaponAttribute.HitMagicArrow];
+ set => this[AosWeaponAttribute.HitMagicArrow] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitHarm { get { return this[AosWeaponAttribute.HitHarm]; } set { this[AosWeaponAttribute.HitHarm] = value; } }
+ public int HitHarm { get => this[AosWeaponAttribute.HitHarm];
+ set => this[AosWeaponAttribute.HitHarm] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitFireball { get { return this[AosWeaponAttribute.HitFireball]; } set { this[AosWeaponAttribute.HitFireball] = value; } }
+ public int HitFireball { get => this[AosWeaponAttribute.HitFireball];
+ set => this[AosWeaponAttribute.HitFireball] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitLightning { get { return this[AosWeaponAttribute.HitLightning]; } set { this[AosWeaponAttribute.HitLightning] = value; } }
+ public int HitLightning { get => this[AosWeaponAttribute.HitLightning];
+ set => this[AosWeaponAttribute.HitLightning] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitDispel { get { return this[AosWeaponAttribute.HitDispel]; } set { this[AosWeaponAttribute.HitDispel] = value; } }
+ public int HitDispel { get => this[AosWeaponAttribute.HitDispel];
+ set => this[AosWeaponAttribute.HitDispel] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitColdArea { get { return this[AosWeaponAttribute.HitColdArea]; } set { this[AosWeaponAttribute.HitColdArea] = value; } }
+ public int HitColdArea { get => this[AosWeaponAttribute.HitColdArea];
+ set => this[AosWeaponAttribute.HitColdArea] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitFireArea { get { return this[AosWeaponAttribute.HitFireArea]; } set { this[AosWeaponAttribute.HitFireArea] = value; } }
+ public int HitFireArea { get => this[AosWeaponAttribute.HitFireArea];
+ set => this[AosWeaponAttribute.HitFireArea] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitPoisonArea { get { return this[AosWeaponAttribute.HitPoisonArea]; } set { this[AosWeaponAttribute.HitPoisonArea] = value; } }
+ public int HitPoisonArea { get => this[AosWeaponAttribute.HitPoisonArea];
+ set => this[AosWeaponAttribute.HitPoisonArea] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitEnergyArea { get { return this[AosWeaponAttribute.HitEnergyArea]; } set { this[AosWeaponAttribute.HitEnergyArea] = value; } }
+ public int HitEnergyArea { get => this[AosWeaponAttribute.HitEnergyArea];
+ set => this[AosWeaponAttribute.HitEnergyArea] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int HitPhysicalArea { get { return this[AosWeaponAttribute.HitPhysicalArea]; } set { this[AosWeaponAttribute.HitPhysicalArea] = value; } }
+ public int HitPhysicalArea { get => this[AosWeaponAttribute.HitPhysicalArea];
+ set => this[AosWeaponAttribute.HitPhysicalArea] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int ResistPhysicalBonus { get { return this[AosWeaponAttribute.ResistPhysicalBonus]; } set { this[AosWeaponAttribute.ResistPhysicalBonus] = value; } }
+ public int ResistPhysicalBonus { get => this[AosWeaponAttribute.ResistPhysicalBonus];
+ set => this[AosWeaponAttribute.ResistPhysicalBonus] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int ResistFireBonus { get { return this[AosWeaponAttribute.ResistFireBonus]; } set { this[AosWeaponAttribute.ResistFireBonus] = value; } }
+ public int ResistFireBonus { get => this[AosWeaponAttribute.ResistFireBonus];
+ set => this[AosWeaponAttribute.ResistFireBonus] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int ResistColdBonus { get { return this[AosWeaponAttribute.ResistColdBonus]; } set { this[AosWeaponAttribute.ResistColdBonus] = value; } }
+ public int ResistColdBonus { get => this[AosWeaponAttribute.ResistColdBonus];
+ set => this[AosWeaponAttribute.ResistColdBonus] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int ResistPoisonBonus { get { return this[AosWeaponAttribute.ResistPoisonBonus]; } set { this[AosWeaponAttribute.ResistPoisonBonus] = value; } }
+ public int ResistPoisonBonus { get => this[AosWeaponAttribute.ResistPoisonBonus];
+ set => this[AosWeaponAttribute.ResistPoisonBonus] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int ResistEnergyBonus { get { return this[AosWeaponAttribute.ResistEnergyBonus]; } set { this[AosWeaponAttribute.ResistEnergyBonus] = value; } }
+ public int ResistEnergyBonus { get => this[AosWeaponAttribute.ResistEnergyBonus];
+ set => this[AosWeaponAttribute.ResistEnergyBonus] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int UseBestSkill { get { return this[AosWeaponAttribute.UseBestSkill]; } set { this[AosWeaponAttribute.UseBestSkill] = value; } }
+ public int UseBestSkill { get => this[AosWeaponAttribute.UseBestSkill];
+ set => this[AosWeaponAttribute.UseBestSkill] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int MageWeapon { get { return this[AosWeaponAttribute.MageWeapon]; } set { this[AosWeaponAttribute.MageWeapon] = value; } }
+ public int MageWeapon { get => this[AosWeaponAttribute.MageWeapon];
+ set => this[AosWeaponAttribute.MageWeapon] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int DurabilityBonus { get { return this[AosWeaponAttribute.DurabilityBonus]; } set { this[AosWeaponAttribute.DurabilityBonus] = value; } }
+ public int DurabilityBonus { get => this[AosWeaponAttribute.DurabilityBonus];
+ set => this[AosWeaponAttribute.DurabilityBonus] = value;
+ }
}
[Flags]
@@ -685,8 +783,8 @@ namespace Server
public int this[AosArmorAttribute attribute]
{
- get { return GetValue( (int)attribute ); }
- set { SetValue( (int)attribute, value ); }
+ get => GetValue( (int)attribute );
+ set => SetValue( (int)attribute, value );
}
public override string ToString()
@@ -695,16 +793,24 @@ namespace Server
}
[CommandProperty( AccessLevel.GameMaster )]
- public int LowerStatReq { get { return this[AosArmorAttribute.LowerStatReq]; } set { this[AosArmorAttribute.LowerStatReq] = value; } }
+ public int LowerStatReq { get => this[AosArmorAttribute.LowerStatReq];
+ set => this[AosArmorAttribute.LowerStatReq] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int SelfRepair { get { return this[AosArmorAttribute.SelfRepair]; } set { this[AosArmorAttribute.SelfRepair] = value; } }
+ public int SelfRepair { get => this[AosArmorAttribute.SelfRepair];
+ set => this[AosArmorAttribute.SelfRepair] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int MageArmor { get { return this[AosArmorAttribute.MageArmor]; } set { this[AosArmorAttribute.MageArmor] = value; } }
+ public int MageArmor { get => this[AosArmorAttribute.MageArmor];
+ set => this[AosArmorAttribute.MageArmor] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int DurabilityBonus { get { return this[AosArmorAttribute.DurabilityBonus]; } set { this[AosArmorAttribute.DurabilityBonus] = value; } }
+ public int DurabilityBonus { get => this[AosArmorAttribute.DurabilityBonus];
+ set => this[AosArmorAttribute.DurabilityBonus] = value;
+ }
}
public sealed class AosSkillBonuses : BaseAttributes
@@ -911,34 +1017,54 @@ namespace Server
[CommandProperty( AccessLevel.GameMaster )]
- public double Skill_1_Value { get { return GetBonus( 0 ); } set { SetBonus( 0, value ); } }
+ public double Skill_1_Value { get => GetBonus( 0 );
+ set => SetBonus( 0, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public SkillName Skill_1_Name { get { return GetSkill( 0 ); } set { SetSkill( 0, value ); } }
+ public SkillName Skill_1_Name { get => GetSkill( 0 );
+ set => SetSkill( 0, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public double Skill_2_Value { get { return GetBonus( 1 ); } set { SetBonus( 1, value ); } }
+ public double Skill_2_Value { get => GetBonus( 1 );
+ set => SetBonus( 1, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public SkillName Skill_2_Name { get { return GetSkill( 1 ); } set { SetSkill( 1, value ); } }
+ public SkillName Skill_2_Name { get => GetSkill( 1 );
+ set => SetSkill( 1, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public double Skill_3_Value { get { return GetBonus( 2 ); } set { SetBonus( 2, value ); } }
+ public double Skill_3_Value { get => GetBonus( 2 );
+ set => SetBonus( 2, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public SkillName Skill_3_Name { get { return GetSkill( 2 ); } set { SetSkill( 2, value ); } }
+ public SkillName Skill_3_Name { get => GetSkill( 2 );
+ set => SetSkill( 2, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public double Skill_4_Value { get { return GetBonus( 3 ); } set { SetBonus( 3, value ); } }
+ public double Skill_4_Value { get => GetBonus( 3 );
+ set => SetBonus( 3, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public SkillName Skill_4_Name { get { return GetSkill( 3 ); } set { SetSkill( 3, value ); } }
+ public SkillName Skill_4_Name { get => GetSkill( 3 );
+ set => SetSkill( 3, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public double Skill_5_Value { get { return GetBonus( 4 ); } set { SetBonus( 4, value ); } }
+ public double Skill_5_Value { get => GetBonus( 4 );
+ set => SetBonus( 4, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public SkillName Skill_5_Name { get { return GetSkill( 4 ); } set { SetSkill( 4, value ); } }
+ public SkillName Skill_5_Name { get => GetSkill( 4 );
+ set => SetSkill( 4, value );
+ }
}
[Flags]
@@ -972,8 +1098,8 @@ namespace Server
public int this[AosElementAttribute attribute]
{
- get { return GetValue( (int)attribute ); }
- set { SetValue( (int)attribute, value ); }
+ get => GetValue( (int)attribute );
+ set => SetValue( (int)attribute, value );
}
public override string ToString()
@@ -982,25 +1108,39 @@ namespace Server
}
[CommandProperty( AccessLevel.GameMaster )]
- public int Physical { get { return this[AosElementAttribute.Physical]; } set { this[AosElementAttribute.Physical] = value; } }
+ public int Physical { get => this[AosElementAttribute.Physical];
+ set => this[AosElementAttribute.Physical] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Fire { get { return this[AosElementAttribute.Fire]; } set { this[AosElementAttribute.Fire] = value; } }
+ public int Fire { get => this[AosElementAttribute.Fire];
+ set => this[AosElementAttribute.Fire] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Cold { get { return this[AosElementAttribute.Cold]; } set { this[AosElementAttribute.Cold] = value; } }
+ public int Cold { get => this[AosElementAttribute.Cold];
+ set => this[AosElementAttribute.Cold] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Poison { get { return this[AosElementAttribute.Poison]; } set { this[AosElementAttribute.Poison] = value; } }
+ public int Poison { get => this[AosElementAttribute.Poison];
+ set => this[AosElementAttribute.Poison] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Energy { get { return this[AosElementAttribute.Energy]; } set { this[AosElementAttribute.Energy] = value; } }
+ public int Energy { get => this[AosElementAttribute.Energy];
+ set => this[AosElementAttribute.Energy] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Chaos { get { return this[AosElementAttribute.Chaos]; } set { this[AosElementAttribute.Chaos] = value; } }
+ public int Chaos { get => this[AosElementAttribute.Chaos];
+ set => this[AosElementAttribute.Chaos] = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Direct { get { return this[AosElementAttribute.Direct]; } set { this[AosElementAttribute.Direct] = value; } }
+ public int Direct { get => this[AosElementAttribute.Direct];
+ set => this[AosElementAttribute.Direct] = value;
+ }
}
[PropertyObject]
@@ -1012,7 +1152,7 @@ namespace Server
private static int[] m_Empty = new int[0];
- public bool IsEmpty { get { return (m_Names == 0); } }
+ public bool IsEmpty => (m_Names == 0);
public Item Owner => m_Owner;
public BaseAttributes( Item owner )
diff --git a/Scripts/Misc/AutoRestart.cs b/Scripts/Misc/AutoRestart.cs
index bb0f403ab..e51ecabc1 100644
--- a/Scripts/Misc/AutoRestart.cs
+++ b/Scripts/Misc/AutoRestart.cs
@@ -15,10 +15,7 @@ namespace Server.Misc
private static bool m_Restarting;
private static DateTime m_RestartTime;
- public static bool Restarting
- {
- get{ return m_Restarting; }
- }
+ public static bool Restarting => m_Restarting;
public static void Initialize()
{
diff --git a/Scripts/Misc/AutoSave.cs b/Scripts/Misc/AutoSave.cs
index 42ed85314..35f809d41 100644
--- a/Scripts/Misc/AutoSave.cs
+++ b/Scripts/Misc/AutoSave.cs
@@ -20,8 +20,8 @@ namespace Server.Misc
public static bool SavesEnabled
{
- get{ return m_SavesEnabled; }
- set{ m_SavesEnabled = value; }
+ get => m_SavesEnabled;
+ set => m_SavesEnabled = value;
}
[Usage( "SetSaves " )]
diff --git a/Scripts/Misc/ClientVerification.cs b/Scripts/Misc/ClientVerification.cs
index 0d5e887d0..c8dbf4ff7 100644
--- a/Scripts/Misc/ClientVerification.cs
+++ b/Scripts/Misc/ClientVerification.cs
@@ -31,62 +31,32 @@ namespace Server.Misc
public static ClientVersion Required
{
- get
- {
- return m_Required;
- }
- set
- {
- m_Required = value;
- }
+ get => m_Required;
+ set => m_Required = value;
}
public static bool AllowRegular
{
- get
- {
- return m_AllowRegular;
- }
- set
- {
- m_AllowRegular = value;
- }
+ get => m_AllowRegular;
+ set => m_AllowRegular = value;
}
public static bool AllowUOTD
{
- get
- {
- return m_AllowUOTD;
- }
- set
- {
- m_AllowUOTD = value;
- }
+ get => m_AllowUOTD;
+ set => m_AllowUOTD = value;
}
public static bool AllowGod
{
- get
- {
- return m_AllowGod;
- }
- set
- {
- m_AllowGod = value;
- }
+ get => m_AllowGod;
+ set => m_AllowGod = value;
}
public static TimeSpan KickDelay
{
- get
- {
- return m_KickDelay;
- }
- set
- {
- m_KickDelay = value;
- }
+ get => m_KickDelay;
+ set => m_KickDelay = value;
}
public static void Initialize()
diff --git a/Scripts/Misc/Emitter.cs b/Scripts/Misc/Emitter.cs
index 4139a84eb..976f8771e 100644
--- a/Scripts/Misc/Emitter.cs
+++ b/Scripts/Misc/Emitter.cs
@@ -63,15 +63,9 @@ namespace Server
private Type[] m_ArgumentTypes;
- public TypeBuilder Type
- {
- get { return m_TypeBuilder; }
- }
+ public TypeBuilder Type => m_TypeBuilder;
- public ILGenerator Generator
- {
- get { return m_Generator; }
- }
+ public ILGenerator Generator => m_Generator;
private class CallInfo
{
@@ -95,10 +89,7 @@ namespace Server
private Dictionary> m_Temps;
- public MethodBuilder Method
- {
- get { return m_Builder; }
- }
+ public MethodBuilder Method => m_Builder;
public MethodEmitter( TypeBuilder typeBuilder )
{
@@ -464,10 +455,7 @@ namespace Server
m_Generator.Emit( OpCodes.Xor );
}
- public Type Active
- {
- get { return m_Stack.Peek(); }
- }
+ public Type Active => m_Stack.Peek();
public void Chain( Property prop )
{
diff --git a/Scripts/Misc/Geometry.cs b/Scripts/Misc/Geometry.cs
index 3031c4519..a722677ba 100644
--- a/Scripts/Misc/Geometry.cs
+++ b/Scripts/Misc/Geometry.cs
@@ -29,10 +29,10 @@ namespace Server.Misc
private int angle;
private int quadrant;
- public Point2D Point{ get{ return point; } }
- public int Angle{ get{ return angle; } }
- public int Quadrant{ get{ return quadrant; } }
-
+ public Point2D Point => point;
+ public int Angle => angle;
+ public int Quadrant => quadrant;
+
public CirclePoint( Point2D point, int angle, int quadrant )
{
this.point = point;
diff --git a/Scripts/Misc/Gifts/Winter2004/LightOfTheWinterSolstice.cs b/Scripts/Misc/Gifts/Winter2004/LightOfTheWinterSolstice.cs
index 9bfc16910..d1cb42008 100644
--- a/Scripts/Misc/Gifts/Winter2004/LightOfTheWinterSolstice.cs
+++ b/Scripts/Misc/Gifts/Winter2004/LightOfTheWinterSolstice.cs
@@ -28,7 +28,9 @@ namespace Server.Items
private string m_Dipper;
[CommandProperty( AccessLevel.GameMaster )]
- public string Dipper{ get{ return m_Dipper; } set{ m_Dipper = value; } }
+ public string Dipper{ get => m_Dipper;
+ set => m_Dipper = value;
+ }
[Constructible]
public LightOfTheWinterSolstice() : this( m_StaffNames[Utility.Random( m_StaffNames.Length )] )
diff --git a/Scripts/Misc/Gifts/Winter2004/Mistletoe.cs b/Scripts/Misc/Gifts/Winter2004/Mistletoe.cs
index de55e87eb..1ceb7a429 100644
--- a/Scripts/Misc/Gifts/Winter2004/Mistletoe.cs
+++ b/Scripts/Misc/Gifts/Winter2004/Mistletoe.cs
@@ -74,10 +74,7 @@ namespace Server.Items
}
}
- public Item Deed
- {
- get{ return new MistletoeDeed( this.Hue ); }
- }
+ public Item Deed => new MistletoeDeed( this.Hue );
public override void OnDoubleClick( Mobile from )
{
diff --git a/Scripts/Misc/Guild.cs b/Scripts/Misc/Guild.cs
index d0b7265bf..5956a3ac9 100644
--- a/Scripts/Misc/Guild.cs
+++ b/Scripts/Misc/Guild.cs
@@ -39,17 +39,17 @@ namespace Server.Guilds
new RankDefinition( 1062960, 3, RankFlags.Member | RankFlags.ControlWarStatus ), //Warlord
new RankDefinition( 1062959, 4, RankFlags.All ) //Leader
};
- public static RankDefinition Leader{ get{ return Ranks[4]; } }
- public static RankDefinition Member{ get{ return Ranks[1]; } }
- public static RankDefinition Lowest{ get{ return Ranks[0]; } }
+ public static RankDefinition Leader => Ranks[4];
+ public static RankDefinition Member => Ranks[1];
+ public static RankDefinition Lowest => Ranks[0];
private TextDefinition m_Name;
private int m_Rank;
private RankFlags m_Flags;
- public TextDefinition Name{ get{ return m_Name; } }
- public int Rank{ get{ return m_Rank; } }
- public RankFlags Flags{ get{ return m_Flags; } }
+ public TextDefinition Name => m_Name;
+ public int Rank => m_Rank;
+ public RankFlags Flags => m_Flags;
public RankDefinition( TextDefinition name, int rank, RankFlags flags )
{
@@ -79,20 +79,14 @@ namespace Server.Guilds
{
private static Dictionary m_Alliances = new Dictionary();
- public static Dictionary Alliances
- {
- get{ return m_Alliances; }
- }
+ public static Dictionary Alliances => m_Alliances;
private string m_Name;
private Guild m_Leader;
private List m_Members;
private List m_PendingMembers;
- public string Name
- {
- get{ return m_Name; }
- }
+ public string Name => m_Name;
public void CalculateAllianceLeader()
{
@@ -374,7 +368,7 @@ namespace Server.Guilds
public class AllianceRosterGump : GuildDiplomacyGump
{
- protected override bool AllowAdvancedSearch{ get{ return false; } }
+ protected override bool AllowAdvancedSearch => false;
private AllianceInfo m_Alliance;
@@ -427,36 +421,32 @@ namespace Server.Guilds
public int Kills
{
- get{ return m_Kills; }
- set{ m_Kills = value; }
+ get => m_Kills;
+ set => m_Kills = value;
}
public int MaxKills
{
- get{ return m_MaxKills; }
- set{ m_MaxKills = value; }
+ get => m_MaxKills;
+ set => m_MaxKills = value;
}
public TimeSpan WarLength
{
- get{ return m_WarLength; }
- set{ m_WarLength = value; }
- }
- public Guild Opponent
- {
- get{ return m_Opponent; }
- }
- public Guild Guild
- {
- get{ return m_Guild; }
+ get => m_WarLength;
+ set => m_WarLength = value;
}
+ public Guild Opponent => m_Opponent;
+
+ public Guild Guild => m_Guild;
+
public DateTime WarBeginning
{
- get{ return m_WarBeginning; }
- set{ m_WarBeginning = value; }
+ get => m_WarBeginning;
+ set => m_WarBeginning = value;
}
public bool WarRequester
{
- get{ return m_WarRequester; }
- set{ m_WarRequester = value; }
+ get => m_WarRequester;
+ set => m_WarRequester = value;
}
public WarDeclaration( Guild g, Guild opponent, int maxKills, TimeSpan warLength, bool warRequester )
@@ -673,8 +663,8 @@ namespace Server.Guilds
}
#endregion
- public static bool NewGuildSystem{ get{ return Core.SE; } }
- public static bool OrderChaos{ get{ return !Core.SE; } }
+ public static bool NewGuildSystem => Core.SE;
+ public static bool OrderChaos => !Core.SE;
public static readonly int RegistrationFee = 25000;
public static readonly int AbbrevLimit = 4;
@@ -721,40 +711,16 @@ namespace Server.Guilds
}
[CommandProperty( AccessLevel.Counselor )]
- public string AllianceName
- {
- get
- {
- return Alliance?.Name;
- }
- }
+ public string AllianceName => Alliance?.Name;
[CommandProperty( AccessLevel.Counselor )]
- public Guild AllianceLeader
- {
- get
- {
- return Alliance?.Leader;
- }
- }
+ public Guild AllianceLeader => Alliance?.Leader;
[CommandProperty( AccessLevel.Counselor )]
- public bool IsAllianceMember
- {
- get
- {
- return Alliance?.IsMember( this ) == true;
- }
- }
+ public bool IsAllianceMember => Alliance?.IsMember( this ) == true;
[CommandProperty( AccessLevel.Counselor )]
- public bool IsAlliancePendingMember
- {
- get
- {
- return Alliance?.IsPendingMember( this ) == true;
- }
- }
+ public bool IsAlliancePendingMember => Alliance?.IsPendingMember( this ) == true;
public static Guild GetAllianceLeader( Guild g )
{
@@ -770,14 +736,9 @@ namespace Server.Guilds
#region New Wars
- public List PendingWars
- {
- get{ return m_PendingWars; }
- }
- public List AcceptedWars
- {
- get{ return m_AcceptedWars; }
- }
+ public List PendingWars => m_PendingWars;
+
+ public List AcceptedWars => m_AcceptedWars;
public WarDeclaration FindPendingWar( Guild g )
@@ -1047,13 +1008,7 @@ namespace Server.Guilds
}
- public override bool Disbanded
- {
- get
- {
- return ( m_Leader == null || m_Leader.Deleted );
- }
- }
+ public override bool Disbanded => ( m_Leader == null || m_Leader.Deleted );
public override void OnDelete( Mobile mob )
{
@@ -1600,36 +1555,21 @@ namespace Server.Guilds
[CommandProperty( AccessLevel.GameMaster )]
public Item Guildstone
{
- get
- {
- return m_Guildstone;
- }
- set
- {
- m_Guildstone = value;
- }
+ get => m_Guildstone;
+ set => m_Guildstone = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Item Teleporter
{
- get
- {
- return m_Teleporter;
- }
- set
- {
- m_Teleporter = value;
- }
+ get => m_Teleporter;
+ set => m_Teleporter = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public override string Name
{
- get
- {
- return m_Name;
- }
+ get => m_Name;
set
{
m_Name = value;
@@ -1643,23 +1583,14 @@ namespace Server.Guilds
[CommandProperty( AccessLevel.GameMaster )]
public string Website
{
- get
- {
- return m_Website;
- }
- set
- {
- m_Website = value;
- }
+ get => m_Website;
+ set => m_Website = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public override string Abbreviation
{
- get
- {
- return m_Abbreviation;
- }
+ get => m_Abbreviation;
set
{
m_Abbreviation = value;
@@ -1673,23 +1604,14 @@ namespace Server.Guilds
[CommandProperty( AccessLevel.GameMaster )]
public string Charter
{
- get
- {
- return m_Charter;
- }
- set
- {
- m_Charter = value;
- }
+ get => m_Charter;
+ set => m_Charter = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public override GuildType Type
{
- get
- {
- return OrderChaos ? m_Type : GuildType.Regular;
- }
+ get => OrderChaos ? m_Type : GuildType.Regular;
set
{
if ( m_Type != value )
@@ -1705,96 +1627,31 @@ namespace Server.Guilds
[CommandProperty( AccessLevel.GameMaster )]
public DateTime LastFealty
{
- get
- {
- return m_LastFealty;
- }
- set
- {
- m_LastFealty = value;
- }
+ get => m_LastFealty;
+ set => m_LastFealty = value;
}
[CommandProperty( AccessLevel.GameMaster )]
- public DateTime TypeLastChange
- {
- get
- {
- return m_TypeLastChange;
- }
- }
+ public DateTime TypeLastChange => m_TypeLastChange;
- public List Allies
- {
- get
- {
- return m_Allies;
- }
- }
+ public List Allies => m_Allies;
- public List Enemies
- {
- get
- {
- return m_Enemies;
- }
- }
+ public List Enemies => m_Enemies;
- public List AllyDeclarations
- {
- get
- {
- return m_AllyDeclarations;
- }
- }
+ public List AllyDeclarations => m_AllyDeclarations;
- public List AllyInvitations
- {
- get
- {
- return m_AllyInvitations;
- }
- }
+ public List AllyInvitations => m_AllyInvitations;
- public List WarDeclarations
- {
- get
- {
- return m_WarDeclarations;
- }
- }
+ public List WarDeclarations => m_WarDeclarations;
- public List WarInvitations
- {
- get
- {
- return m_WarInvitations;
- }
- }
+ public List WarInvitations => m_WarInvitations;
- public List Candidates
- {
- get
- {
- return m_Candidates;
- }
- }
+ public List Candidates => m_Candidates;
- public List Accepted
- {
- get
- {
- return m_Accepted;
- }
- }
+ public List Accepted => m_Accepted;
+
+ public List Members => m_Members;
- public List Members
- {
- get
- {
- return m_Members;
- }
- }
#endregion
}
}
diff --git a/Scripts/Misc/HardwareInfo.cs b/Scripts/Misc/HardwareInfo.cs
index 68d4a9110..b27ffcde9 100644
--- a/Scripts/Misc/HardwareInfo.cs
+++ b/Scripts/Misc/HardwareInfo.cs
@@ -22,81 +22,81 @@ namespace Server
private DateTime m_TimeReceived;
[CommandProperty( AccessLevel.GameMaster )]
- public int CpuModel{ get{ return m_CpuModel; } }
+ public int CpuModel => m_CpuModel;
[CommandProperty( AccessLevel.GameMaster )]
- public int CpuClockSpeed{ get{ return m_CpuClockSpeed; } }
+ public int CpuClockSpeed => m_CpuClockSpeed;
[CommandProperty( AccessLevel.GameMaster )]
- public int CpuQuantity{ get{ return m_CpuQuantity; } }
+ public int CpuQuantity => m_CpuQuantity;
[CommandProperty( AccessLevel.GameMaster )]
- public int OSMajor{ get{ return m_OSMajor; } }
+ public int OSMajor => m_OSMajor;
[CommandProperty( AccessLevel.GameMaster )]
- public int OSMinor{ get{ return m_OSMinor; } }
+ public int OSMinor => m_OSMinor;
[CommandProperty( AccessLevel.GameMaster )]
- public int OSRevision{ get{ return m_OSRevision; } }
+ public int OSRevision => m_OSRevision;
[CommandProperty( AccessLevel.GameMaster )]
- public int InstanceID{ get{ return m_InstanceID; } }
+ public int InstanceID => m_InstanceID;
[CommandProperty( AccessLevel.GameMaster )]
- public int ScreenWidth{ get{ return m_ScreenWidth; } }
+ public int ScreenWidth => m_ScreenWidth;
[CommandProperty( AccessLevel.GameMaster )]
- public int ScreenHeight{ get{ return m_ScreenHeight; } }
+ public int ScreenHeight => m_ScreenHeight;
[CommandProperty( AccessLevel.GameMaster )]
- public int ScreenDepth{ get{ return m_ScreenDepth; } }
+ public int ScreenDepth => m_ScreenDepth;
[CommandProperty( AccessLevel.GameMaster )]
- public int PhysicalMemory{ get{ return m_PhysicalMemory; } }
+ public int PhysicalMemory => m_PhysicalMemory;
[CommandProperty( AccessLevel.GameMaster )]
- public int CpuManufacturer{ get{ return m_CpuManufacturer; } }
+ public int CpuManufacturer => m_CpuManufacturer;
[CommandProperty( AccessLevel.GameMaster )]
- public int CpuFamily{ get{ return m_CpuFamily; } }
+ public int CpuFamily => m_CpuFamily;
[CommandProperty( AccessLevel.GameMaster )]
- public int VCVendorID{ get{ return m_VCVendorID; } }
+ public int VCVendorID => m_VCVendorID;
[CommandProperty( AccessLevel.GameMaster )]
- public int VCDeviceID{ get{ return m_VCDeviceID; } }
+ public int VCDeviceID => m_VCDeviceID;
[CommandProperty( AccessLevel.GameMaster )]
- public int VCMemory{ get{ return m_VCMemory; } }
+ public int VCMemory => m_VCMemory;
[CommandProperty( AccessLevel.GameMaster )]
- public int DXMajor{ get{ return m_DXMajor; } }
+ public int DXMajor => m_DXMajor;
[CommandProperty( AccessLevel.GameMaster )]
- public int DXMinor{ get{ return m_DXMinor; } }
+ public int DXMinor => m_DXMinor;
[CommandProperty( AccessLevel.GameMaster )]
- public string VCDescription{ get{ return m_VCDescription; } }
+ public string VCDescription => m_VCDescription;
[CommandProperty( AccessLevel.GameMaster )]
- public string Language{ get{ return m_Language; } }
+ public string Language => m_Language;
[CommandProperty( AccessLevel.GameMaster )]
- public int Distribution{ get{ return m_Distribution; } }
+ public int Distribution => m_Distribution;
[CommandProperty( AccessLevel.GameMaster )]
- public int ClientsRunning{ get{ return m_ClientsRunning; } }
+ public int ClientsRunning => m_ClientsRunning;
[CommandProperty( AccessLevel.GameMaster )]
- public int ClientsInstalled{ get{ return m_ClientsInstalled; } }
+ public int ClientsInstalled => m_ClientsInstalled;
[CommandProperty( AccessLevel.GameMaster )]
- public int PartialInstalled{ get{ return m_PartialInstalled; } }
+ public int PartialInstalled => m_PartialInstalled;
[CommandProperty( AccessLevel.GameMaster )]
- public string Unknown{ get{ return m_Unknown; } }
+ public string Unknown => m_Unknown;
- [CommandProperty( AccessLevel.GameMaster )]
+ [CommandProperty( AccessLevel.GameMaster )]
public DateTime TimeReceived => m_TimeReceived;
public static void Initialize()
diff --git a/Scripts/Misc/InhumanSpeech.cs b/Scripts/Misc/InhumanSpeech.cs
index dfb656dd6..2b43646b8 100644
--- a/Scripts/Misc/InhumanSpeech.cs
+++ b/Scripts/Misc/InhumanSpeech.cs
@@ -287,13 +287,13 @@ namespace Server.Misc
public string[] Syllables
{
- get{ return m_Syllables; }
- set{ m_Syllables = value; }
+ get => m_Syllables;
+ set => m_Syllables = value;
}
public string[] Keywords
{
- get{ return m_Keywords; }
+ get => m_Keywords;
set
{
m_Keywords = value;
@@ -305,26 +305,26 @@ namespace Server.Misc
public string[] Responses
{
- get{ return m_Responses; }
- set{ m_Responses = value; }
+ get => m_Responses;
+ set => m_Responses = value;
}
public int Hue
{
- get{ return m_Hue; }
- set{ m_Hue = value; }
+ get => m_Hue;
+ set => m_Hue = value;
}
public int Sound
{
- get{ return m_Sound; }
- set{ m_Sound = value; }
+ get => m_Sound;
+ set => m_Sound = value;
}
public IHSFlags Flags
{
- get{ return m_Flags; }
- set{ m_Flags = value; }
+ get => m_Flags;
+ set => m_Flags = value;
}
public string GetRandomSyllable()
diff --git a/Scripts/Misc/LanguageStatistics.cs b/Scripts/Misc/LanguageStatistics.cs
index e07c5a1a3..120186968 100644
--- a/Scripts/Misc/LanguageStatistics.cs
+++ b/Scripts/Misc/LanguageStatistics.cs
@@ -33,11 +33,11 @@ namespace Server.Misc
string m_Country_LocalName;
bool m_HasLocalInfo;
- public string Code{ get{ return m_Code; } }
- public string Language{ get{ return m_Language; } }
- public string Country{ get{ return m_Country; } }
- public string Language_LocalName{ get{ return m_Language_LocalName; } }
- public string Country_LocalName{ get{ return m_Country_LocalName; } }
+ public string Code => m_Code;
+ public string Language => m_Language;
+ public string Country => m_Country;
+ public string Language_LocalName => m_Language_LocalName;
+ public string Country_LocalName => m_Country_LocalName;
public InternationalCode( string code, string language, string country ) : this( code, language, country, null, null )
{
@@ -316,8 +316,8 @@ namespace Server.Misc
private string m_Code;
private int m_Count;
- public string Code{ get{ return m_Code; } }
- public int Count{ get{ return m_Count; } }
+ public string Code => m_Code;
+ public int Count => m_Count;
public InternationalCodeCounter( string code )
{
diff --git a/Scripts/Misc/LightCycle.cs b/Scripts/Misc/LightCycle.cs
index 720f2c17b..efba55b8d 100644
--- a/Scripts/Misc/LightCycle.cs
+++ b/Scripts/Misc/LightCycle.cs
@@ -15,7 +15,7 @@ namespace Server
public static int LevelOverride
{
- get{ return m_LevelOverride; }
+ get => m_LevelOverride;
set
{
m_LevelOverride = value;
diff --git a/Scripts/Misc/Loot.cs b/Scripts/Misc/Loot.cs
index eea684b99..dc104334e 100644
--- a/Scripts/Misc/Loot.cs
+++ b/Scripts/Misc/Loot.cs
@@ -16,15 +16,15 @@ namespace Server
typeof( WildStaff )
};
- public static Type[] MLWeaponTypes{ get{ return m_MLWeaponTypes; } }
-
+ public static Type[] MLWeaponTypes => m_MLWeaponTypes;
+
private static Type[] m_MLRangedWeaponTypes = new Type[]
{
typeof( ElvenCompositeLongbow ), typeof( MagicalShortbow )
};
- public static Type[] MLRangedWeaponTypes{ get{ return m_MLRangedWeaponTypes; } }
-
+ public static Type[] MLRangedWeaponTypes => m_MLRangedWeaponTypes;
+
private static Type[] m_MLArmorTypes = new Type[]
{
typeof( Circlet ), typeof( GemmedCirclet ), typeof( LeafTonlet ),
@@ -37,7 +37,7 @@ namespace Server
typeof( HidePauldrons )
};
- public static Type[] MLArmorTypes{ get{ return m_MLArmorTypes; } }
+ public static Type[] MLArmorTypes => m_MLArmorTypes;
private static Type[] m_MLClothingTypes = new Type[]
{
@@ -46,7 +46,8 @@ namespace Server
typeof( VultureHelm ), typeof( WoodlandBelt )
};
- public static Type[] MLClothingTypes{ get{ return m_MLClothingTypes; } }
+ public static Type[] MLClothingTypes => m_MLClothingTypes;
+
#endregion
private static Type[] m_SEWeaponTypes = new Type[]
@@ -57,7 +58,7 @@ namespace Server
typeof( Tetsubo ), typeof( Wakizashi )
};
- public static Type[] SEWeaponTypes{ get{ return m_SEWeaponTypes; } }
+ public static Type[] SEWeaponTypes => m_SEWeaponTypes;
private static Type[] m_AosWeaponTypes = new Type[]
{
@@ -66,7 +67,7 @@ namespace Server
typeof( Lance ), typeof( CrescentBlade )
};
- public static Type[] AosWeaponTypes{ get{ return m_AosWeaponTypes; } }
+ public static Type[] AosWeaponTypes => m_AosWeaponTypes;
private static Type[] m_WeaponTypes = new Type[]
{
@@ -84,28 +85,28 @@ namespace Server
typeof( Dagger ), typeof( SkinningKnife ), typeof( ShepherdsCrook )
};
- public static Type[] WeaponTypes{ get{ return m_WeaponTypes; } }
+ public static Type[] WeaponTypes => m_WeaponTypes;
private static Type[] m_SERangedWeaponTypes = new Type[]
{
typeof( Yumi )
};
- public static Type[] SERangedWeaponTypes{ get{ return m_SERangedWeaponTypes; } }
+ public static Type[] SERangedWeaponTypes => m_SERangedWeaponTypes;
private static Type[] m_AosRangedWeaponTypes = new Type[]
{
typeof( CompositeBow ), typeof( RepeatingCrossbow )
};
- public static Type[] AosRangedWeaponTypes{ get{ return m_AosRangedWeaponTypes; } }
+ public static Type[] AosRangedWeaponTypes => m_AosRangedWeaponTypes;
private static Type[] m_RangedWeaponTypes = new Type[]
{
typeof( Bow ), typeof( Crossbow ), typeof( HeavyCrossbow )
};
- public static Type[] RangedWeaponTypes{ get{ return m_RangedWeaponTypes; } }
+ public static Type[] RangedWeaponTypes => m_RangedWeaponTypes;
private static Type[] m_SEArmorTypes = new Type[]
{
@@ -121,7 +122,7 @@ namespace Server
typeof( StuddedSuneate )
};
- public static Type[] SEArmorTypes{ get{ return m_SEArmorTypes; } }
+ public static Type[] SEArmorTypes => m_SEArmorTypes;
private static Type[] m_ArmorTypes = new Type[]
{
@@ -141,14 +142,14 @@ namespace Server
typeof( StuddedGorget ), typeof( StuddedLegs )
};
- public static Type[] ArmorTypes{ get{ return m_ArmorTypes; } }
+ public static Type[] ArmorTypes => m_ArmorTypes;
private static Type[] m_AosShieldTypes = new Type[]
{
typeof( ChaosShield ), typeof( OrderShield )
};
- public static Type[] AosShieldTypes{ get{ return m_AosShieldTypes; } }
+ public static Type[] AosShieldTypes => m_AosShieldTypes;
private static Type[] m_ShieldTypes = new Type[]
{
@@ -157,7 +158,7 @@ namespace Server
typeof( WoodenShield )
};
- public static Type[] ShieldTypes{ get{ return m_ShieldTypes; } }
+ public static Type[] ShieldTypes => m_ShieldTypes;
private static Type[] m_GemTypes = new Type[]
{
@@ -166,7 +167,7 @@ namespace Server
typeof( Sapphire ), typeof( StarSapphire ), typeof( Tourmaline )
};
- public static Type[] GemTypes{ get{ return m_GemTypes; } }
+ public static Type[] GemTypes => m_GemTypes;
private static Type[] m_JewelryTypes = new Type[]
{
@@ -174,7 +175,7 @@ namespace Server
typeof( SilverRing ), typeof( SilverBracelet )
};
- public static Type[] JewelryTypes{ get{ return m_JewelryTypes; } }
+ public static Type[] JewelryTypes => m_JewelryTypes;
private static Type[] m_RegTypes = new Type[]
{
@@ -183,7 +184,7 @@ namespace Server
typeof( SulfurousAsh ), typeof( SpidersSilk )
};
- public static Type[] RegTypes{ get{ return m_RegTypes; } }
+ public static Type[] RegTypes => m_RegTypes;
private static Type[] m_NecroRegTypes = new Type[]
{
@@ -191,7 +192,7 @@ namespace Server
typeof( NoxCrystal ), typeof( PigIron )
};
- public static Type[] NecroRegTypes{ get{ return m_NecroRegTypes; } }
+ public static Type[] NecroRegTypes => m_NecroRegTypes;
private static Type[] m_PotionTypes = new Type[]
{
@@ -199,14 +200,14 @@ namespace Server
typeof( LesserCurePotion ), typeof( LesserHealPotion ), typeof( LesserPoisonPotion )
};
- public static Type[] PotionTypes{ get{ return m_PotionTypes; } }
+ public static Type[] PotionTypes => m_PotionTypes;
private static Type[] m_SEInstrumentTypes = new Type[]
{
typeof( BambooFlute )
};
- public static Type[] SEInstrumentTypes{ get{ return m_SEInstrumentTypes; } }
+ public static Type[] SEInstrumentTypes => m_SEInstrumentTypes;
private static Type[] m_InstrumentTypes = new Type[]
{
@@ -214,7 +215,7 @@ namespace Server
typeof( Lute ), typeof( Tambourine ), typeof( TambourineTassel )
};
- public static Type[] InstrumentTypes{ get{ return m_InstrumentTypes; } }
+ public static Type[] InstrumentTypes => m_InstrumentTypes;
private static Type[] m_StatueTypes = new Type[]
{
@@ -223,7 +224,7 @@ namespace Server
typeof( StatueSouthEast ), typeof( BustSouth ), typeof( BustEast )
};
- public static Type[] StatueTypes{ get{ return m_StatueTypes; } }
+ public static Type[] StatueTypes => m_StatueTypes;
private static Type[] m_RegularScrollTypes = new Type[]
{
@@ -274,12 +275,14 @@ namespace Server
};
#endregion
- public static Type[] RegularScrollTypes{ get{ return m_RegularScrollTypes; } }
- public static Type[] NecromancyScrollTypes{ get{ return m_NecromancyScrollTypes; } }
- public static Type[] SENecromancyScrollTypes{ get{ return m_SENecromancyScrollTypes; } }
- public static Type[] PaladinScrollTypes{ get{ return m_PaladinScrollTypes; } }
+ public static Type[] RegularScrollTypes => m_RegularScrollTypes;
+ public static Type[] NecromancyScrollTypes => m_NecromancyScrollTypes;
+ public static Type[] SENecromancyScrollTypes => m_SENecromancyScrollTypes;
+ public static Type[] PaladinScrollTypes => m_PaladinScrollTypes;
+
#region Mondain's Legacy
- public static Type[] ArcanistScrollTypes{ get{ return m_ArcanistScrollTypes; } }
+ public static Type[] ArcanistScrollTypes => m_ArcanistScrollTypes;
+
#endregion
private static Type[] m_GrimmochJournalTypes = new Type[]
@@ -289,7 +292,7 @@ namespace Server
typeof( GrimmochJournal14 ), typeof( GrimmochJournal17 ), typeof( GrimmochJournal23 )
};
- public static Type[] GrimmochJournalTypes{ get{ return m_GrimmochJournalTypes; } }
+ public static Type[] GrimmochJournalTypes => m_GrimmochJournalTypes;
private static Type[] m_LysanderNotebookTypes = new Type[]
{
@@ -297,7 +300,7 @@ namespace Server
typeof( LysanderNotebook7 ), typeof( LysanderNotebook8 ), typeof( LysanderNotebook11 )
};
- public static Type[] LysanderNotebookTypes{ get{ return m_LysanderNotebookTypes; } }
+ public static Type[] LysanderNotebookTypes => m_LysanderNotebookTypes;
private static Type[] m_TavarasJournalTypes = new Type[]
{
@@ -308,7 +311,7 @@ namespace Server
typeof( TavarasJournal19 )
};
- public static Type[] TavarasJournalTypes{ get{ return m_TavarasJournalTypes; } }
+ public static Type[] TavarasJournalTypes => m_TavarasJournalTypes;
private static Type[] m_NewWandTypes = new Type[]
@@ -316,20 +319,20 @@ namespace Server
typeof( FireballWand ), typeof( LightningWand ), typeof( MagicArrowWand ),
typeof( GreaterHealWand ), typeof( HarmWand ), typeof( HealWand )
};
- public static Type[] NewWandTypes{ get{ return m_NewWandTypes; } }
+ public static Type[] NewWandTypes => m_NewWandTypes;
private static Type[] m_WandTypes = new Type[]
{
typeof( ClumsyWand ), typeof( FeebleWand ),
typeof( ManaDrainWand ), typeof( WeaknessWand )
};
- public static Type[] WandTypes{ get{ return m_WandTypes; } }
-
+ public static Type[] WandTypes => m_WandTypes;
+
private static Type[] m_OldWandTypes = new Type[]
{
typeof( IDWand )
};
- public static Type[] OldWandTypes{ get{ return m_OldWandTypes; } }
+ public static Type[] OldWandTypes => m_OldWandTypes;
private static Type[] m_SEClothingTypes = new Type[]
{
@@ -339,7 +342,7 @@ namespace Server
typeof( SamuraiTabi ), typeof( TattsukeHakama ), typeof( Waraji )
};
- public static Type[] SEClothingTypes{ get{ return m_SEClothingTypes; } }
+ public static Type[] SEClothingTypes => m_SEClothingTypes;
private static Type[] m_AosClothingTypes = new Type[]
{
@@ -347,7 +350,7 @@ namespace Server
typeof( GildedDress ), typeof( FurBoots ), typeof( FormalShirt ),
};
- public static Type[] AosClothingTypes{ get{ return m_AosClothingTypes; } }
+ public static Type[] AosClothingTypes => m_AosClothingTypes;
private static Type[] m_ClothingTypes = new Type[]
{
@@ -364,21 +367,21 @@ namespace Server
typeof( PlainDress ), typeof( Robe ), typeof( ShortPants ),
typeof( HalfApron )
};
- public static Type[] ClothingTypes{ get{ return m_ClothingTypes; } }
+ public static Type[] ClothingTypes => m_ClothingTypes;
private static Type[] m_SEHatTypes = new Type[]
{
typeof( ClothNinjaHood ), typeof( Kasa )
};
- public static Type[] SEHatTypes{ get{ return m_SEHatTypes; } }
+ public static Type[] SEHatTypes => m_SEHatTypes;
private static Type[] m_AosHatTypes = new Type[]
{
typeof( FlowerGarland ), typeof( BearMask ), typeof( DeerMask ) //Are Bear& Deer mask inside the Pre-AoS loottables too?
};
- public static Type[] AosHatTypes{ get{ return m_AosHatTypes; } }
+ public static Type[] AosHatTypes => m_AosHatTypes;
private static Type[] m_HatTypes = new Type[]
{
@@ -388,7 +391,7 @@ namespace Server
typeof( FeatheredHat ), typeof( TricorneHat ), typeof( JesterHat )
};
- public static Type[] HatTypes{ get{ return m_HatTypes; } }
+ public static Type[] HatTypes => m_HatTypes;
private static Type[] m_LibraryBookTypes = new Type[]
{
@@ -404,7 +407,7 @@ namespace Server
typeof( VirtueBook )
};
- public static Type[] LibraryBookTypes{ get{ return m_LibraryBookTypes; } }
+ public static Type[] LibraryBookTypes => m_LibraryBookTypes;
#endregion
diff --git a/Scripts/Misc/LootPack.cs b/Scripts/Misc/LootPack.cs
index 27f71e7ed..03ce3ecd8 100644
--- a/Scripts/Misc/LootPack.cs
+++ b/Scripts/Misc/LootPack.cs
@@ -465,13 +465,14 @@ namespace Server
#endregion
#region Generic accessors
- public static LootPack Poor{ get{ return Core.SE ? SePoor : Core.AOS ? AosPoor : OldPoor; } }
- public static LootPack Meager{ get{ return Core.SE ? SeMeager : Core.AOS ? AosMeager : OldMeager; } }
- public static LootPack Average{ get{ return Core.SE ? SeAverage : Core.AOS ? AosAverage : OldAverage; } }
- public static LootPack Rich{ get{ return Core.SE ? SeRich : Core.AOS ? AosRich : OldRich; } }
- public static LootPack FilthyRich{ get{ return Core.SE ? SeFilthyRich : Core.AOS ? AosFilthyRich : OldFilthyRich; } }
- public static LootPack UltraRich{ get{ return Core.SE ? SeUltraRich : Core.AOS ? AosUltraRich : OldUltraRich; } }
- public static LootPack SuperBoss{ get{ return Core.SE ? SeSuperBoss : Core.AOS ? AosSuperBoss : OldSuperBoss; } }
+ public static LootPack Poor => Core.SE ? SePoor : Core.AOS ? AosPoor : OldPoor;
+ public static LootPack Meager => Core.SE ? SeMeager : Core.AOS ? AosMeager : OldMeager;
+ public static LootPack Average => Core.SE ? SeAverage : Core.AOS ? AosAverage : OldAverage;
+ public static LootPack Rich => Core.SE ? SeRich : Core.AOS ? AosRich : OldRich;
+ public static LootPack FilthyRich => Core.SE ? SeFilthyRich : Core.AOS ? AosFilthyRich : OldFilthyRich;
+ public static LootPack UltraRich => Core.SE ? SeUltraRich : Core.AOS ? AosUltraRich : OldUltraRich;
+ public static LootPack SuperBoss => Core.SE ? SeSuperBoss : Core.AOS ? AosSuperBoss : OldSuperBoss;
+
#endregion
public static readonly LootPack LowScrolls = new LootPack( new LootPackEntry[]
@@ -528,38 +529,38 @@ namespace Server
public int Chance
{
- get{ return m_Chance; }
- set{ m_Chance = value; }
+ get => m_Chance;
+ set => m_Chance = value;
}
public LootPackDice Quantity
{
- get{ return m_Quantity; }
- set{ m_Quantity = value; }
+ get => m_Quantity;
+ set => m_Quantity = value;
}
public int MaxProps
{
- get{ return m_MaxProps; }
- set{ m_MaxProps = value; }
+ get => m_MaxProps;
+ set => m_MaxProps = value;
}
public int MinIntensity
{
- get{ return m_MinIntensity; }
- set{ m_MinIntensity = value; }
+ get => m_MinIntensity;
+ set => m_MinIntensity = value;
}
public int MaxIntensity
{
- get{ return m_MaxIntensity; }
- set{ m_MaxIntensity = value; }
+ get => m_MaxIntensity;
+ set => m_MaxIntensity = value;
}
public LootPackItem[] Items
{
- get{ return m_Items; }
- set{ m_Items = value; }
+ get => m_Items;
+ set => m_Items = value;
}
private static bool IsInTokuno( Mobile m )
@@ -795,14 +796,14 @@ namespace Server
public Type Type
{
- get{ return m_Type; }
- set{ m_Type = value; }
+ get => m_Type;
+ set => m_Type = value;
}
public int Chance
{
- get{ return m_Chance; }
- set{ m_Chance = value; }
+ get => m_Chance;
+ set => m_Chance = value;
}
private static Type[] m_BlankTypes = new Type[]{ typeof( BlankScroll ) };
@@ -907,20 +908,20 @@ namespace Server
public int Count
{
- get{ return m_Count; }
- set{ m_Count = value; }
+ get => m_Count;
+ set => m_Count = value;
}
public int Sides
{
- get{ return m_Sides; }
- set{ m_Sides = value; }
+ get => m_Sides;
+ set => m_Sides = value;
}
public int Bonus
{
- get{ return m_Bonus; }
- set{ m_Bonus = value; }
+ get => m_Bonus;
+ set => m_Bonus = value;
}
public int Roll()
diff --git a/Scripts/Misc/NameList.cs b/Scripts/Misc/NameList.cs
index 06839633a..351bc09db 100644
--- a/Scripts/Misc/NameList.cs
+++ b/Scripts/Misc/NameList.cs
@@ -10,8 +10,8 @@ namespace Server
private string m_Type;
private string[] m_List;
- public string Type{ get{ return m_Type; } }
- public string[] List{ get{ return m_List; } }
+ public string Type => m_Type;
+ public string[] List => m_List;
public bool ContainsName( string name )
{
diff --git a/Scripts/Misc/Poison.cs b/Scripts/Misc/Poison.cs
index 823eeab62..100324848 100644
--- a/Scripts/Misc/Poison.cs
+++ b/Scripts/Misc/Poison.cs
@@ -75,7 +75,9 @@ namespace Server
private int m_LastDamage;
private int m_Index;
- public Mobile From{ get{ return m_From; } set{ m_From = value; } }
+ public Mobile From{ get => m_From;
+ set => m_From = value;
+ }
public PoisonTimer( Mobile m, PoisonImpl p ) : base( p.m_Delay, p.m_Interval )
{
diff --git a/Scripts/Misc/ProfanityProtection.cs b/Scripts/Misc/ProfanityProtection.cs
index 487150265..ca7ad9f9f 100644
--- a/Scripts/Misc/ProfanityProtection.cs
+++ b/Scripts/Misc/ProfanityProtection.cs
@@ -59,9 +59,9 @@ namespace Server.Misc
e.Blocked = !OnProfanityDetected( from, e.Speech );
}
- public static char[] Exceptions{ get{ return m_Exceptions; } }
- public static string[] StartDisallowed{ get{ return m_StartDisallowed; } }
- public static string[] Disallowed{ get{ return m_Disallowed; } }
+ public static char[] Exceptions => m_Exceptions;
+ public static string[] StartDisallowed => m_StartDisallowed;
+ public static string[] Disallowed => m_Disallowed;
private static char[] m_Exceptions = new char[]
{
diff --git a/Scripts/Misc/ResourceInfo.cs b/Scripts/Misc/ResourceInfo.cs
index 65f91b858..07914269d 100644
--- a/Scripts/Misc/ResourceInfo.cs
+++ b/Scripts/Misc/ResourceInfo.cs
@@ -74,31 +74,77 @@ namespace Server.Items
private int m_RunicMinIntensity;
private int m_RunicMaxIntensity;
- public int WeaponFireDamage{ get{ return m_WeaponFireDamage; } set{ m_WeaponFireDamage = value; } }
- public int WeaponColdDamage{ get{ return m_WeaponColdDamage; } set{ m_WeaponColdDamage = value; } }
- public int WeaponPoisonDamage{ get{ return m_WeaponPoisonDamage; } set{ m_WeaponPoisonDamage = value; } }
- public int WeaponEnergyDamage{ get{ return m_WeaponEnergyDamage; } set{ m_WeaponEnergyDamage = value; } }
- public int WeaponChaosDamage{ get{ return m_WeaponChaosDamage; } set{ m_WeaponChaosDamage = value; } }
- public int WeaponDirectDamage{ get{ return m_WeaponDirectDamage; } set{ m_WeaponDirectDamage = value; } }
- public int WeaponDurability{ get{ return m_WeaponDurability; } set{ m_WeaponDurability = value; } }
- public int WeaponLuck{ get{ return m_WeaponLuck; } set{ m_WeaponLuck = value; } }
- public int WeaponGoldIncrease{ get{ return m_WeaponGoldIncrease; } set{ m_WeaponGoldIncrease = value; } }
- public int WeaponLowerRequirements{ get{ return m_WeaponLowerRequirements; } set{ m_WeaponLowerRequirements = value; } }
+ public int WeaponFireDamage{ get => m_WeaponFireDamage;
+ set => m_WeaponFireDamage = value;
+ }
+ public int WeaponColdDamage{ get => m_WeaponColdDamage;
+ set => m_WeaponColdDamage = value;
+ }
+ public int WeaponPoisonDamage{ get => m_WeaponPoisonDamage;
+ set => m_WeaponPoisonDamage = value;
+ }
+ public int WeaponEnergyDamage{ get => m_WeaponEnergyDamage;
+ set => m_WeaponEnergyDamage = value;
+ }
+ public int WeaponChaosDamage{ get => m_WeaponChaosDamage;
+ set => m_WeaponChaosDamage = value;
+ }
+ public int WeaponDirectDamage{ get => m_WeaponDirectDamage;
+ set => m_WeaponDirectDamage = value;
+ }
+ public int WeaponDurability{ get => m_WeaponDurability;
+ set => m_WeaponDurability = value;
+ }
+ public int WeaponLuck{ get => m_WeaponLuck;
+ set => m_WeaponLuck = value;
+ }
+ public int WeaponGoldIncrease{ get => m_WeaponGoldIncrease;
+ set => m_WeaponGoldIncrease = value;
+ }
+ public int WeaponLowerRequirements{ get => m_WeaponLowerRequirements;
+ set => m_WeaponLowerRequirements = value;
+ }
- public int ArmorPhysicalResist{ get{ return m_ArmorPhysicalResist; } set{ m_ArmorPhysicalResist = value; } }
- public int ArmorFireResist{ get{ return m_ArmorFireResist; } set{ m_ArmorFireResist = value; } }
- public int ArmorColdResist{ get{ return m_ArmorColdResist; } set{ m_ArmorColdResist = value; } }
- public int ArmorPoisonResist{ get{ return m_ArmorPoisonResist; } set{ m_ArmorPoisonResist = value; } }
- public int ArmorEnergyResist{ get{ return m_ArmorEnergyResist; } set{ m_ArmorEnergyResist = value; } }
- public int ArmorDurability{ get{ return m_ArmorDurability; } set{ m_ArmorDurability = value; } }
- public int ArmorLuck{ get{ return m_ArmorLuck; } set{ m_ArmorLuck = value; } }
- public int ArmorGoldIncrease{ get{ return m_ArmorGoldIncrease; } set{ m_ArmorGoldIncrease = value; } }
- public int ArmorLowerRequirements{ get{ return m_ArmorLowerRequirements; } set{ m_ArmorLowerRequirements = value; } }
+ public int ArmorPhysicalResist{ get => m_ArmorPhysicalResist;
+ set => m_ArmorPhysicalResist = value;
+ }
+ public int ArmorFireResist{ get => m_ArmorFireResist;
+ set => m_ArmorFireResist = value;
+ }
+ public int ArmorColdResist{ get => m_ArmorColdResist;
+ set => m_ArmorColdResist = value;
+ }
+ public int ArmorPoisonResist{ get => m_ArmorPoisonResist;
+ set => m_ArmorPoisonResist = value;
+ }
+ public int ArmorEnergyResist{ get => m_ArmorEnergyResist;
+ set => m_ArmorEnergyResist = value;
+ }
+ public int ArmorDurability{ get => m_ArmorDurability;
+ set => m_ArmorDurability = value;
+ }
+ public int ArmorLuck{ get => m_ArmorLuck;
+ set => m_ArmorLuck = value;
+ }
+ public int ArmorGoldIncrease{ get => m_ArmorGoldIncrease;
+ set => m_ArmorGoldIncrease = value;
+ }
+ public int ArmorLowerRequirements{ get => m_ArmorLowerRequirements;
+ set => m_ArmorLowerRequirements = value;
+ }
- public int RunicMinAttributes{ get{ return m_RunicMinAttributes; } set{ m_RunicMinAttributes = value; } }
- public int RunicMaxAttributes{ get{ return m_RunicMaxAttributes; } set{ m_RunicMaxAttributes = value; } }
- public int RunicMinIntensity{ get{ return m_RunicMinIntensity; } set{ m_RunicMinIntensity = value; } }
- public int RunicMaxIntensity{ get{ return m_RunicMaxIntensity; } set{ m_RunicMaxIntensity = value; } }
+ public int RunicMinAttributes{ get => m_RunicMinAttributes;
+ set => m_RunicMinAttributes = value;
+ }
+ public int RunicMaxAttributes{ get => m_RunicMaxAttributes;
+ set => m_RunicMaxAttributes = value;
+ }
+ public int RunicMinIntensity{ get => m_RunicMinIntensity;
+ set => m_RunicMinIntensity = value;
+ }
+ public int RunicMaxIntensity{ get => m_RunicMaxIntensity;
+ set => m_RunicMaxIntensity = value;
+ }
public CraftAttributeInfo()
{
@@ -399,12 +445,12 @@ namespace Server.Items
private CraftResource m_Resource;
private Type[] m_ResourceTypes;
- public int Hue{ get{ return m_Hue; } }
- public int Number{ get{ return m_Number; } }
- public string Name{ get{ return m_Name; } }
- public CraftAttributeInfo AttributeInfo{ get{ return m_AttributeInfo; } }
- public CraftResource Resource{ get{ return m_Resource; } }
- public Type[] ResourceTypes{ get{ return m_ResourceTypes; } }
+ public int Hue => m_Hue;
+ public int Number => m_Number;
+ public string Name => m_Name;
+ public CraftAttributeInfo AttributeInfo => m_AttributeInfo;
+ public CraftResource Resource => m_Resource;
+ public Type[] ResourceTypes => m_ResourceTypes;
public CraftResourceInfo( int hue, int number, string name, CraftAttributeInfo attributeInfo, CraftResource resource, params Type[] resourceTypes )
{
@@ -697,28 +743,10 @@ namespace Server.Items
m_Name = name;
}
- public int Level
- {
- get
- {
- return m_Level;
- }
- }
+ public int Level => m_Level;
- public int Hue
- {
- get
- {
- return m_Hue;
- }
- }
+ public int Hue => m_Hue;
- public string Name
- {
- get
- {
- return m_Name;
- }
- }
+ public string Name => m_Name;
}
}
diff --git a/Scripts/Misc/ShardPoller.cs b/Scripts/Misc/ShardPoller.cs
index d6d3892ef..4eabaa832 100644
--- a/Scripts/Misc/ShardPoller.cs
+++ b/Scripts/Misc/ShardPoller.cs
@@ -22,35 +22,35 @@ namespace Server.Misc
public ShardPollOption[] Options
{
- get{ return m_Options; }
- set{ m_Options = value; }
+ get => m_Options;
+ set => m_Options = value;
}
public IPAddress[] Addresses
{
- get{ return m_Addresses; }
- set{ m_Addresses = value; }
+ get => m_Addresses;
+ set => m_Addresses = value;
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public string Title
{
- get{ return m_Title; }
- set{ m_Title = ShardPollPrompt.UrlToHref( value ); }
+ get => m_Title;
+ set => m_Title = ShardPollPrompt.UrlToHref( value );
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public TimeSpan Duration
{
- get{ return m_Duration; }
- set{ m_Duration = value; }
+ get => m_Duration;
+ set => m_Duration = value;
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public DateTime StartTime
{
- get{ return m_StartTime; }
- set{ m_StartTime = value; }
+ get => m_StartTime;
+ set => m_StartTime = value;
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
@@ -80,7 +80,7 @@ namespace Server.Misc
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public bool Active
{
- get{ return m_Active; }
+ get => m_Active;
set
{
if ( m_Active == value )
@@ -144,10 +144,7 @@ namespace Server.Misc
m_Options[old.Length] = option;
}
- public override string DefaultName
- {
- get { return "shard poller"; }
- }
+ public override string DefaultName => "shard poller";
[Constructible( AccessLevel.Administrator )]
public ShardPoller() : base( 0x1047 )
@@ -291,11 +288,14 @@ namespace Server.Misc
private int m_LineBreaks;
private IPAddress[] m_Voters;
- public string Title{ get{ return m_Title; } set{ m_Title = value; m_LineBreaks = GetBreaks( m_Title ); } }
- public int LineBreaks{ get{ return m_LineBreaks; } }
+ public string Title{ get => m_Title;
+ set{ m_Title = value; m_LineBreaks = GetBreaks( m_Title ); } }
+ public int LineBreaks => m_LineBreaks;
- public int Votes{ get{ return m_Voters.Length; } }
- public IPAddress[] Voters{ get{ return m_Voters; } set{ m_Voters = value; } }
+ public int Votes => m_Voters.Length;
+ public IPAddress[] Voters{ get => m_Voters;
+ set => m_Voters = value;
+ }
public ShardPollOption( string title )
{
@@ -402,7 +402,7 @@ namespace Server.Misc
private bool m_Editing;
private Queue m_Polls;
- public bool Editing{ get{ return m_Editing; } }
+ public bool Editing => m_Editing;
public void QueuePoll( ShardPoller poller )
{
diff --git a/Scripts/Misc/TextDefinition.cs b/Scripts/Misc/TextDefinition.cs
index 049888f0d..76d2c4172 100644
--- a/Scripts/Misc/TextDefinition.cs
+++ b/Scripts/Misc/TextDefinition.cs
@@ -14,7 +14,7 @@ namespace Server
public int Number => m_Number;
public string String => m_String;
- public bool IsEmpty { get { return ( m_Number <= 0 && m_String == null ); } }
+ public bool IsEmpty => ( m_Number <= 0 && m_String == null );
public TextDefinition() : this( 0, null )
{
diff --git a/Scripts/Misc/ToggleItem.cs b/Scripts/Misc/ToggleItem.cs
index 960e45e26..90fb69159 100644
--- a/Scripts/Misc/ToggleItem.cs
+++ b/Scripts/Misc/ToggleItem.cs
@@ -43,22 +43,22 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public int InactiveItemID
{
- get { return m_InactiveItemID; }
- set { m_InactiveItemID = value; }
+ get => m_InactiveItemID;
+ set => m_InactiveItemID = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int ActiveItemID
{
- get { return m_ActiveItemID; }
- set { m_ActiveItemID = value; }
+ get => m_ActiveItemID;
+ set => m_ActiveItemID = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool PlayersCanToggle
{
- get { return m_PlayersCanToggle; }
- set { m_PlayersCanToggle = value; }
+ get => m_PlayersCanToggle;
+ set => m_PlayersCanToggle = value;
}
[Constructible]
diff --git a/Scripts/Misc/Weather.cs b/Scripts/Misc/Weather.cs
index 48a9f1d9a..68c9f3656 100644
--- a/Scripts/Misc/Weather.cs
+++ b/Scripts/Misc/Weather.cs
@@ -111,21 +111,37 @@ namespace Server.Misc
private int m_ChanceOfPercipitation;
private int m_ChanceOfExtremeTemperature;
- public Map Facet{ get{ return m_Facet; } }
- public Rectangle2D[] Area{ get{ return m_Area; } set{ m_Area = value; } }
- public int Temperature{ get{ return m_Temperature; } set{ m_Temperature = value; } }
- public int ChanceOfPercipitation{ get{ return m_ChanceOfPercipitation; } set{ m_ChanceOfPercipitation = value; } }
- public int ChanceOfExtremeTemperature{ get{ return m_ChanceOfExtremeTemperature; } set{ m_ChanceOfExtremeTemperature = value; } }
+ public Map Facet => m_Facet;
+ public Rectangle2D[] Area{ get => m_Area;
+ set => m_Area = value;
+ }
+ public int Temperature{ get => m_Temperature;
+ set => m_Temperature = value;
+ }
+ public int ChanceOfPercipitation{ get => m_ChanceOfPercipitation;
+ set => m_ChanceOfPercipitation = value;
+ }
+ public int ChanceOfExtremeTemperature{ get => m_ChanceOfExtremeTemperature;
+ set => m_ChanceOfExtremeTemperature = value;
+ }
// For dynamic weather:
private Rectangle2D m_Bounds;
private int m_MoveSpeed;
private int m_MoveAngleX, m_MoveAngleY;
- public Rectangle2D Bounds{ get{ return m_Bounds; } set{ m_Bounds = value; } }
- public int MoveSpeed{ get{ return m_MoveSpeed; } set{ m_MoveSpeed = value; } }
- public int MoveAngleX{ get{ return m_MoveAngleX; } set{ m_MoveAngleX = value; } }
- public int MoveAngleY{ get{ return m_MoveAngleY; } set{ m_MoveAngleY = value; } }
+ public Rectangle2D Bounds{ get => m_Bounds;
+ set => m_Bounds = value;
+ }
+ public int MoveSpeed{ get => m_MoveSpeed;
+ set => m_MoveSpeed = value;
+ }
+ public int MoveAngleX{ get => m_MoveAngleX;
+ set => m_MoveAngleX = value;
+ }
+ public int MoveAngleY{ get => m_MoveAngleY;
+ set => m_MoveAngleY = value;
+ }
public static bool CheckIntersection( Rectangle2D r1, Rectangle2D r2 )
{
@@ -337,10 +353,7 @@ namespace Server.Misc
public class WeatherMap : MapItem
{
- public override string DefaultName
- {
- get { return "weather map"; }
- }
+ public override string DefaultName => "weather map";
[Constructible]
public WeatherMap()
diff --git a/Scripts/Misc/WeightOverloading.cs b/Scripts/Misc/WeightOverloading.cs
index 94828c8f8..22ea443c2 100644
--- a/Scripts/Misc/WeightOverloading.cs
+++ b/Scripts/Misc/WeightOverloading.cs
@@ -20,8 +20,8 @@ namespace Server.Misc
public static DFAlgorithm DFA
{
- get{ return m_DFA; }
- set{ m_DFA = value; }
+ get => m_DFA;
+ set => m_DFA = value;
}
public static void FatigueOnDamage( Mobile m, int damage )
diff --git a/Scripts/Mobiles/AI/AIControlMobileTarget.cs b/Scripts/Mobiles/AI/AIControlMobileTarget.cs
index 6b2add13f..564301d1c 100644
--- a/Scripts/Mobiles/AI/AIControlMobileTarget.cs
+++ b/Scripts/Mobiles/AI/AIControlMobileTarget.cs
@@ -9,11 +9,7 @@ namespace Server.Targets
private List m_List;
private OrderType m_Order;
- public OrderType Order {
- get {
- return m_Order;
- }
- }
+ public OrderType Order => m_Order;
public AIControlMobileTarget( BaseAI ai, OrderType order ) : base( -1, false, ( order == OrderType.Attack ? TargetFlags.Harmful : TargetFlags.None ) )
{
diff --git a/Scripts/Mobiles/AI/BaseAI.cs b/Scripts/Mobiles/AI/BaseAI.cs
index f97884fa1..6f40cae8b 100644
--- a/Scripts/Mobiles/AI/BaseAI.cs
+++ b/Scripts/Mobiles/AI/BaseAI.cs
@@ -71,10 +71,7 @@ namespace Server.Mobiles
public ActionType Action
{
- get
- {
- return m_Action;
- }
+ get => m_Action;
set
{
m_Action = value;
@@ -1992,8 +1989,8 @@ namespace Server.Mobiles
public long NextMove
{
- get { return m_NextMove; }
- set { m_NextMove = value; }
+ get => m_NextMove;
+ set => m_NextMove = value;
}
public virtual bool CheckMove()
@@ -2697,7 +2694,7 @@ namespace Server.Mobiles
private long m_NextDetectHidden;
- public virtual bool CanDetectHidden { get { return m_Mobile.Skills[SkillName.DetectHidden].Value > 0; } }
+ public virtual bool CanDetectHidden => m_Mobile.Skills[SkillName.DetectHidden].Value > 0;
/*
* The Timer object
diff --git a/Scripts/Mobiles/AI/MageAI.cs b/Scripts/Mobiles/AI/MageAI.cs
index b497a51c2..80c986280 100644
--- a/Scripts/Mobiles/AI/MageAI.cs
+++ b/Scripts/Mobiles/AI/MageAI.cs
@@ -34,15 +34,9 @@ namespace Server.Mobiles
return base.Think();
}
- public virtual bool SmartAI
- {
- get { return ( m_Mobile is BaseVendor || m_Mobile is BaseEscortable || m_Mobile is Changeling ); }
- }
+ public virtual bool SmartAI => ( m_Mobile is BaseVendor || m_Mobile is BaseEscortable || m_Mobile is Changeling );
- public virtual bool IsNecromancer
- {
- get { return ( Core.AOS && m_Mobile.Skills[ SkillName.Necromancy ].Value > 50 ); }
- }
+ public virtual bool IsNecromancer => ( Core.AOS && m_Mobile.Skills[ SkillName.Necromancy ].Value > 50 );
private const double HealChance = 0.10; // 10% chance to heal at gm magery
private const double TeleportChance = 0.05; // 5% chance to teleport at gm magery
diff --git a/Scripts/Mobiles/AI/OppositionGroup.cs b/Scripts/Mobiles/AI/OppositionGroup.cs
index 2116c19bb..8ae174bd7 100644
--- a/Scripts/Mobiles/AI/OppositionGroup.cs
+++ b/Scripts/Mobiles/AI/OppositionGroup.cs
@@ -62,10 +62,7 @@ namespace Server
}
} );
- public static OppositionGroup TerathansAndOphidians
- {
- get{ return m_TerathansAndOphidians; }
- }
+ public static OppositionGroup TerathansAndOphidians => m_TerathansAndOphidians;
private static OppositionGroup m_SavagesAndOrcs = new OppositionGroup( new Type[][]
{
@@ -88,11 +85,8 @@ namespace Server
}
} );
- public static OppositionGroup SavagesAndOrcs
- {
- get{ return m_SavagesAndOrcs; }
- }
-
+ public static OppositionGroup SavagesAndOrcs => m_SavagesAndOrcs;
+
private static OppositionGroup m_FeyAndUndead = new OppositionGroup( new Type[][]
{
new Type[]
@@ -133,9 +127,6 @@ namespace Server
}
} );
- public static OppositionGroup FeyAndUndead
- {
- get{ return m_FeyAndUndead; }
- }
+ public static OppositionGroup FeyAndUndead => m_FeyAndUndead;
}
}
\ No newline at end of file
diff --git a/Scripts/Mobiles/AI/SpeedInfo.cs b/Scripts/Mobiles/AI/SpeedInfo.cs
index 3544f6655..f431e755f 100644
--- a/Scripts/Mobiles/AI/SpeedInfo.cs
+++ b/Scripts/Mobiles/AI/SpeedInfo.cs
@@ -16,20 +16,20 @@ namespace Server
public double ActiveSpeed
{
- get{ return m_ActiveSpeed; }
- set{ m_ActiveSpeed = value; }
+ get => m_ActiveSpeed;
+ set => m_ActiveSpeed = value;
}
public double PassiveSpeed
{
- get{ return m_PassiveSpeed; }
- set{ m_PassiveSpeed = value; }
+ get => m_PassiveSpeed;
+ set => m_PassiveSpeed = value;
}
public Type[] Types
{
- get{ return m_Types; }
- set{ m_Types = value; }
+ get => m_Types;
+ set => m_Types = value;
}
public SpeedInfo( double activeSpeed, double passiveSpeed, Type[] types )
diff --git a/Scripts/Mobiles/Animals/Cows/Cow.cs b/Scripts/Mobiles/Animals/Cows/Cow.cs
index 821a3cff5..7ba8fd3f6 100644
--- a/Scripts/Mobiles/Animals/Cows/Cow.cs
+++ b/Scripts/Mobiles/Animals/Cows/Cow.cs
@@ -10,8 +10,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public DateTime MilkedOn
{
- get { return m_MilkedOn; }
- set { m_MilkedOn = value; }
+ get => m_MilkedOn;
+ set => m_MilkedOn = value;
}
private int m_Milk;
@@ -19,8 +19,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int Milk
{
- get { return m_Milk; }
- set { m_Milk = value; }
+ get => m_Milk;
+ set => m_Milk = value;
}
public override string DefaultName => "a cow";
diff --git a/Scripts/Mobiles/Animals/Misc/Sheep.cs b/Scripts/Mobiles/Animals/Misc/Sheep.cs
index b2be117c7..378d13b00 100644
--- a/Scripts/Mobiles/Animals/Misc/Sheep.cs
+++ b/Scripts/Mobiles/Animals/Misc/Sheep.cs
@@ -12,7 +12,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public DateTime NextWoolTime
{
- get{ return m_NextWoolTime; }
+ get => m_NextWoolTime;
set{ m_NextWoolTime = value; Body = ( DateTime.UtcNow >= m_NextWoolTime ) ? 0xCF : 0xDF; }
}
diff --git a/Scripts/Mobiles/Animals/Mounts/BaseMount.cs b/Scripts/Mobiles/Animals/Mounts/BaseMount.cs
index 2f9802437..35ee00897 100644
--- a/Scripts/Mobiles/Animals/Mounts/BaseMount.cs
+++ b/Scripts/Mobiles/Animals/Mounts/BaseMount.cs
@@ -15,14 +15,14 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public DateTime NextMountAbility
{
- get { return m_NextMountAbility; }
- set { m_NextMountAbility = value; }
+ get => m_NextMountAbility;
+ set => m_NextMountAbility = value;
}
- protected Item InternalItem { get { return m_InternalItem; } }
+ protected Item InternalItem => m_InternalItem;
- public virtual bool AllowMaleRider{ get{ return true; } }
- public virtual bool AllowFemaleRider{ get{ return true; } }
+ public virtual bool AllowMaleRider => true;
+ public virtual bool AllowFemaleRider => true;
public BaseMount( string name, int bodyID, int itemID, AIType aiType, FightMode fightMode, int rangePerception, int rangeFight, double activeSpeed, double passiveSpeed ) : base ( aiType, fightMode, rangePerception, rangeFight, activeSpeed, passiveSpeed )
{
@@ -35,10 +35,7 @@ namespace Server.Mobiles
[Hue, CommandProperty( AccessLevel.GameMaster )]
public override int Hue
{
- get
- {
- return base.Hue;
- }
+ get => base.Hue;
set
{
base.Hue = value;
@@ -190,10 +187,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int ItemID
{
- get
- {
- return m_InternalItem?.ItemID ?? 0;
- }
+ get => m_InternalItem?.ItemID ?? 0;
set
{
if ( m_InternalItem != null )
@@ -212,10 +206,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Rider
{
- get
- {
- return m_Rider;
- }
+ get => m_Rider;
set
{
if ( m_Rider != value )
@@ -367,13 +358,7 @@ namespace Server.Mobiles
}
}
- public IMount Mount
- {
- get
- {
- return m_Mount;
- }
- }
+ public IMount Mount => m_Mount;
}
}
diff --git a/Scripts/Mobiles/Animals/Mounts/Beetle.cs b/Scripts/Mobiles/Animals/Mounts/Beetle.cs
index 01c5fd8a6..feb1f9eec 100644
--- a/Scripts/Mobiles/Animals/Mounts/Beetle.cs
+++ b/Scripts/Mobiles/Animals/Mounts/Beetle.cs
@@ -7,7 +7,7 @@ namespace Server.Mobiles
public class Beetle : BaseMount
{
public override string CorpseName => "a giant beetle corpse";
- public virtual double BoostedSpeed{ get{ return 0.1; } }
+ public virtual double BoostedSpeed => 0.1;
[Constructible]
public Beetle() : this( "a giant beetle" )
diff --git a/Scripts/Mobiles/Animals/Mounts/Ethereals.cs b/Scripts/Mobiles/Animals/Mounts/Ethereals.cs
index 11aca12ac..08e99dae2 100644
--- a/Scripts/Mobiles/Animals/Mounts/Ethereals.cs
+++ b/Scripts/Mobiles/Animals/Mounts/Ethereals.cs
@@ -16,19 +16,16 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
- get { return m_IsRewardItem; }
- set { m_IsRewardItem = value; }
+ get => m_IsRewardItem;
+ set => m_IsRewardItem = value;
}
- public override double DefaultWeight
- {
- get { return 1.0; }
- }
+ public override double DefaultWeight => 1.0;
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public bool IsDonationItem
{
- get { return m_IsDonationItem; }
+ get => m_IsDonationItem;
set { m_IsDonationItem = value; InvalidateProperties(); }
}
@@ -61,10 +58,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int MountedID
{
- get
- {
- return m_MountedID;
- }
+ get => m_MountedID;
set
{
if ( m_MountedID != value )
@@ -80,10 +74,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int RegularID
{
- get
- {
- return m_RegularID;
- }
+ get => m_RegularID;
set
{
if ( m_RegularID != value )
@@ -253,10 +244,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Rider
{
- get
- {
- return m_Rider;
- }
+ get => m_Rider;
set
{
if ( value != m_Rider )
@@ -334,13 +322,7 @@ namespace Server.Mobiles
ProcessDelta();
}
- public IMount Mount
- {
- get
- {
- return this;
- }
- }
+ public IMount Mount => this;
public static void StopMounting( Mobile mob )
{
@@ -375,13 +357,7 @@ namespace Server.Mobiles
public override double CastDelayFastScalar => 0;
- public override TimeSpan CastDelayBase
- {
- get
- {
- return TimeSpan.FromSeconds( ( ( m_Mount.IsDonationItem && RewardSystem.GetRewardLevel( m_Rider ) < 3 ) ? ( 7.5 + ( Core.AOS ? 3.0 : 2.0 ) ) : ( Core.AOS ? 3.0 : 2.0 ) ) );
- }
- }
+ public override TimeSpan CastDelayBase => TimeSpan.FromSeconds( ( ( m_Mount.IsDonationItem && RewardSystem.GetRewardLevel( m_Rider ) < 3 ) ? ( 7.5 + ( Core.AOS ? 3.0 : 2.0 ) ) : ( Core.AOS ? 3.0 : 2.0 ) ) );
public override int GetMana()
{
diff --git a/Scripts/Mobiles/Animals/Mounts/Kirin.cs b/Scripts/Mobiles/Animals/Mounts/Kirin.cs
index 6333972fe..2187fb655 100644
--- a/Scripts/Mobiles/Animals/Mounts/Kirin.cs
+++ b/Scripts/Mobiles/Animals/Mounts/Kirin.cs
@@ -98,10 +98,7 @@ namespace Server.Mobiles
c.DropItem( new KirinBrains() );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override int Meat => 3;
public override int Hides => 10;
diff --git a/Scripts/Mobiles/Animals/Mounts/SwampDragon.cs b/Scripts/Mobiles/Animals/Mounts/SwampDragon.cs
index 1f2936cd4..cf3f5af4a 100644
--- a/Scripts/Mobiles/Animals/Mounts/SwampDragon.cs
+++ b/Scripts/Mobiles/Animals/Mounts/SwampDragon.cs
@@ -14,28 +14,28 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile BardingCrafter
{
- get{ return m_BardingCrafter; }
+ get => m_BardingCrafter;
set{ m_BardingCrafter = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool BardingExceptional
{
- get{ return m_BardingExceptional; }
+ get => m_BardingExceptional;
set{ m_BardingExceptional = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public int BardingHP
{
- get{ return m_BardingHP; }
+ get => m_BardingHP;
set{ m_BardingHP = value; InvalidateProperties(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool HasBarding
{
- get{ return m_HasBarding; }
+ get => m_HasBarding;
set
{
m_HasBarding = value;
@@ -60,7 +60,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public CraftResource BardingResource
{
- get{ return m_BardingResource; }
+ get => m_BardingResource;
set
{
m_BardingResource = value;
@@ -73,10 +73,7 @@ namespace Server.Mobiles
}
[CommandProperty( AccessLevel.GameMaster )]
- public int BardingMaxHP
- {
- get{ return m_BardingExceptional ? 2500 : 1000; }
- }
+ public int BardingMaxHP => m_BardingExceptional ? 2500 : 1000;
[Constructible]
public SwampDragon() : this( "a swamp dragon" )
diff --git a/Scripts/Mobiles/Animals/Mounts/Unicorn.cs b/Scripts/Mobiles/Animals/Mounts/Unicorn.cs
index 8963d4b93..b5592e34b 100644
--- a/Scripts/Mobiles/Animals/Mounts/Unicorn.cs
+++ b/Scripts/Mobiles/Animals/Mounts/Unicorn.cs
@@ -107,10 +107,7 @@ namespace Server.Mobiles
c.DropItem( new UnicornRibs() );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override Poison PoisonImmune => Poison.Lethal;
public override int Meat => 3;
diff --git a/Scripts/Mobiles/BaseCreature.cs b/Scripts/Mobiles/BaseCreature.cs
index 330d539a1..6ec9b9d1f 100644
--- a/Scripts/Mobiles/BaseCreature.cs
+++ b/Scripts/Mobiles/BaseCreature.cs
@@ -270,7 +270,7 @@ namespace Server.Mobiles
}
}
- public virtual InhumanSpeech SpeechType{ get{ return null; } }
+ public virtual InhumanSpeech SpeechType => null;
/* Do not serialize this till the code is finalized */
@@ -279,27 +279,21 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public bool SeeksHome
{
- get
- {
- return m_SeeksHome;
- }
- set
- {
- m_SeeksHome = value;
- }
+ get => m_SeeksHome;
+ set => m_SeeksHome = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public string CorpseNameOverride
{
- get { return m_CorpseNameOverride; }
- set { m_CorpseNameOverride = value; }
+ get => m_CorpseNameOverride;
+ set => m_CorpseNameOverride = value;
}
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public bool IsStabled
{
- get{ return m_IsStabled; }
+ get => m_IsStabled;
set
{
m_IsStabled = value;
@@ -311,25 +305,25 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster, AccessLevel.Administrator )]
public Mobile StabledBy
{
- get { return m_StabledBy; }
- set { m_StabledBy = value; }
+ get => m_StabledBy;
+ set => m_StabledBy = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool IsPrisoner
{
- get{ return m_IsPrisoner; }
- set{ m_IsPrisoner = value; }
+ get => m_IsPrisoner;
+ set => m_IsPrisoner = value;
}
protected DateTime SummonEnd
{
- get { return m_SummonEnd; }
- set { m_SummonEnd = value; }
+ get => m_SummonEnd;
+ set => m_SummonEnd = value;
}
- public virtual Faction FactionAllegiance{ get{ return null; } }
- public virtual int FactionSilverWorth{ get{ return 30; } }
+ public virtual Faction FactionAllegiance => null;
+ public virtual int FactionSilverWorth => 30;
#region ML Quest System
@@ -354,7 +348,7 @@ namespace Server.Mobiles
}
}
- public virtual bool CanGiveMLQuest { get { return ( MLQuests.Count != 0 ); } }
+ public virtual bool CanGiveMLQuest => ( MLQuests.Count != 0 );
public virtual bool StaticMLQuester => true;
protected virtual List ConstructQuestList()
@@ -402,9 +396,9 @@ namespace Server.Mobiles
#region Bonding
public const bool BondingEnabled = true;
- public virtual bool IsBondable{ get{ return ( BondingEnabled && !Summoned ); } }
- public virtual TimeSpan BondingDelay{ get{ return TimeSpan.FromDays( 7.0 ); } }
- public virtual TimeSpan BondingAbandonDelay{ get{ return TimeSpan.FromDays( 1.0 ); } }
+ public virtual bool IsBondable => ( BondingEnabled && !Summoned );
+ public virtual TimeSpan BondingDelay => TimeSpan.FromDays( 7.0 );
+ public virtual TimeSpan BondingAbandonDelay => TimeSpan.FromDays( 1.0 );
public override bool CanRegenHits => !m_IsDeadPet && base.CanRegenHits;
public override bool CanRegenStam => !IsParagon && !m_IsDeadPet && base.CanRegenStam;
@@ -420,10 +414,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Spawner MySpawner
{
- get
- {
- return Spawner as Spawner;
- }
+ get => Spawner as Spawner;
set
{
}
@@ -444,28 +435,28 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public bool IsBonded
{
- get{ return m_IsBonded; }
+ get => m_IsBonded;
set{ m_IsBonded = value; InvalidateProperties(); }
}
public bool IsDeadPet
{
- get{ return m_IsDeadPet; }
- set{ m_IsDeadPet = value; }
+ get => m_IsDeadPet;
+ set => m_IsDeadPet = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime BondingBegin
{
- get{ return m_BondingBegin; }
- set{ m_BondingBegin = value; }
+ get => m_BondingBegin;
+ set => m_BondingBegin = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime OwnerAbandonTime
{
- get{ return m_OwnerAbandonTime; }
- set{ m_OwnerAbandonTime = value; }
+ get => m_OwnerAbandonTime;
+ set => m_OwnerAbandonTime = value;
}
#endregion
@@ -521,7 +512,7 @@ namespace Server.Mobiles
#endregion
- public virtual double WeaponAbilityChance{ get{ return 0.4; } }
+ public virtual double WeaponAbilityChance => 0.4;
public virtual WeaponAbility GetWeaponAbility()
{
@@ -537,47 +528,66 @@ namespace Server.Mobiles
public override int BaseEnergyResistance => m_EnergyResistance;
[CommandProperty( AccessLevel.GameMaster )]
- public int PhysicalResistanceSeed{ get{ return m_PhysicalResistance; } set{ m_PhysicalResistance = value; UpdateResistances(); } }
+ public int PhysicalResistanceSeed{ get => m_PhysicalResistance;
+ set{ m_PhysicalResistance = value; UpdateResistances(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int FireResistSeed{ get{ return m_FireResistance; } set{ m_FireResistance = value; UpdateResistances(); } }
+ public int FireResistSeed{ get => m_FireResistance;
+ set{ m_FireResistance = value; UpdateResistances(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int ColdResistSeed{ get{ return m_ColdResistance; } set{ m_ColdResistance = value; UpdateResistances(); } }
+ public int ColdResistSeed{ get => m_ColdResistance;
+ set{ m_ColdResistance = value; UpdateResistances(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int PoisonResistSeed{ get{ return m_PoisonResistance; } set{ m_PoisonResistance = value; UpdateResistances(); } }
+ public int PoisonResistSeed{ get => m_PoisonResistance;
+ set{ m_PoisonResistance = value; UpdateResistances(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int EnergyResistSeed{ get{ return m_EnergyResistance; } set{ m_EnergyResistance = value; UpdateResistances(); } }
+ public int EnergyResistSeed{ get => m_EnergyResistance;
+ set{ m_EnergyResistance = value; UpdateResistances(); } }
[CommandProperty( AccessLevel.GameMaster )]
- public int PhysicalDamage{ get{ return m_PhysicalDamage; } set{ m_PhysicalDamage = value; } }
+ public int PhysicalDamage{ get => m_PhysicalDamage;
+ set => m_PhysicalDamage = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int FireDamage{ get{ return m_FireDamage; } set{ m_FireDamage = value; } }
+ public int FireDamage{ get => m_FireDamage;
+ set => m_FireDamage = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int ColdDamage{ get{ return m_ColdDamage; } set{ m_ColdDamage = value; } }
+ public int ColdDamage{ get => m_ColdDamage;
+ set => m_ColdDamage = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int PoisonDamage{ get{ return m_PoisonDamage; } set{ m_PoisonDamage = value; } }
+ public int PoisonDamage{ get => m_PoisonDamage;
+ set => m_PoisonDamage = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int EnergyDamage{ get{ return m_EnergyDamage; } set{ m_EnergyDamage = value; } }
+ public int EnergyDamage{ get => m_EnergyDamage;
+ set => m_EnergyDamage = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int ChaosDamage{ get{ return m_ChaosDamage; } set{ m_ChaosDamage = value; } }
+ public int ChaosDamage{ get => m_ChaosDamage;
+ set => m_ChaosDamage = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int DirectDamage{ get{ return m_DirectDamage; } set{ m_DirectDamage = value; } }
+ public int DirectDamage{ get => m_DirectDamage;
+ set => m_DirectDamage = value;
+ }
#endregion
[CommandProperty( AccessLevel.GameMaster )]
public bool IsParagon
{
- get{ return m_Paragon; }
+ get => m_Paragon;
set
{
if ( m_Paragon == value )
@@ -595,88 +605,92 @@ namespace Server.Mobiles
public virtual bool HasManaOveride => false;
- public virtual FoodType FavoriteFood{ get{ return FoodType.Meat; } }
- public virtual PackInstinct PackInstinct{ get{ return PackInstinct.None; } }
+ public virtual FoodType FavoriteFood => FoodType.Meat;
+ public virtual PackInstinct PackInstinct => PackInstinct.None;
public List Owners => m_Owners;
- public virtual bool AllowMaleTamer{ get{ return true; } }
- public virtual bool AllowFemaleTamer{ get{ return true; } }
- public virtual bool SubdueBeforeTame{ get{ return false; } }
- public virtual bool StatLossAfterTame{ get{ return SubdueBeforeTame; } }
- public virtual bool ReduceSpeedWithDamage{ get{ return true; } }
- public virtual bool IsSubdued{ get{ return SubdueBeforeTame && ( Hits < ( HitsMax / 10 ) ); } }
+ public virtual bool AllowMaleTamer => true;
+ public virtual bool AllowFemaleTamer => true;
+ public virtual bool SubdueBeforeTame => false;
+ public virtual bool StatLossAfterTame => SubdueBeforeTame;
+ public virtual bool ReduceSpeedWithDamage => true;
+ public virtual bool IsSubdued => SubdueBeforeTame && ( Hits < ( HitsMax / 10 ) );
- public virtual bool Commandable{ get{ return true; } }
+ public virtual bool Commandable => true;
- public virtual Poison HitPoison{ get{ return null; } }
- public virtual double HitPoisonChance{ get{ return 0.5; } }
- public virtual Poison PoisonImmune{ get{ return null; } }
+ public virtual Poison HitPoison => null;
+ public virtual double HitPoisonChance => 0.5;
+ public virtual Poison PoisonImmune => null;
- public virtual bool BardImmune{ get{ return false; } }
- public virtual bool Unprovokable{ get{ return BardImmune || m_IsDeadPet; } }
- public virtual bool Uncalmable{ get{ return BardImmune || m_IsDeadPet; } }
- public virtual bool AreaPeaceImmune { get { return BardImmune || m_IsDeadPet; } }
+ public virtual bool BardImmune => false;
+ public virtual bool Unprovokable => BardImmune || m_IsDeadPet;
+ public virtual bool Uncalmable => BardImmune || m_IsDeadPet;
+ public virtual bool AreaPeaceImmune => BardImmune || m_IsDeadPet;
- public virtual bool BleedImmune{ get{ return false; } }
- public virtual double BonusPetDamageScalar{ get{ return 1.0; } }
+ public virtual bool BleedImmune => false;
+ public virtual double BonusPetDamageScalar => 1.0;
- public virtual bool DeathAdderCharmable{ get{ return false; } }
+ public virtual bool DeathAdderCharmable => false;
//TODO: Find the pub 31 tweaks to the DispelDifficulty and apply them of course.
- public virtual double DispelDifficulty{ get{ return 0.0; } } // at this skill level we dispel 50% chance
- public virtual double DispelFocus{ get{ return 20.0; } } // at difficulty - focus we have 0%, at difficulty + focus we have 100%
- public virtual bool DisplayWeight{ get{ return Backpack is StrongBackpack; } }
+ public virtual double DispelDifficulty // at this skill level we dispel 50% chance
+ => 0.0;
+
+ public virtual double DispelFocus // at difficulty - focus we have 0%, at difficulty + focus we have 100%
+ => 20.0;
+
+ public virtual bool DisplayWeight => Backpack is StrongBackpack;
#region Breath ability, like dragon fire breath
private long m_NextBreathTime;
// Must be overridden in subclass to enable
- public virtual bool HasBreath{ get{ return false; } }
+ public virtual bool HasBreath => false;
// Base damage given is: CurrentHitPoints * BreathDamageScalar
- public virtual double BreathDamageScalar{ get{ return (Core.AOS ? 0.16 : 0.05); } }
+ public virtual double BreathDamageScalar => (Core.AOS ? 0.16 : 0.05);
// Min/max seconds until next breath
- public virtual double BreathMinDelay{ get{ return 30.0; } }
- public virtual double BreathMaxDelay{ get{ return 45.0; } }
+ public virtual double BreathMinDelay => 30.0;
+ public virtual double BreathMaxDelay => 45.0;
// Creature stops moving for 1.0 seconds while breathing
- public virtual double BreathStallTime{ get{ return 1.0; } }
+ public virtual double BreathStallTime => 1.0;
// Effect is sent 1.3 seconds after BreathAngerSound and BreathAngerAnimation is played
- public virtual double BreathEffectDelay{ get{ return 1.3; } }
+ public virtual double BreathEffectDelay => 1.3;
// Damage is given 1.0 seconds after effect is sent
- public virtual double BreathDamageDelay{ get{ return 1.0; } }
+ public virtual double BreathDamageDelay => 1.0;
- public virtual int BreathRange{ get{ return RangePerception; } }
+ public virtual int BreathRange => RangePerception;
// Damage types
public virtual int BreathChaosDamage => 0;
- public virtual int BreathPhysicalDamage{ get{ return 0; } }
- public virtual int BreathFireDamage{ get{ return 100; } }
- public virtual int BreathColdDamage{ get{ return 0; } }
- public virtual int BreathPoisonDamage{ get{ return 0; } }
- public virtual int BreathEnergyDamage{ get{ return 0; } }
+ public virtual int BreathPhysicalDamage => 0;
+ public virtual int BreathFireDamage => 100;
+ public virtual int BreathColdDamage => 0;
+ public virtual int BreathPoisonDamage => 0;
+ public virtual int BreathEnergyDamage => 0;
// Is immune to breath damages
- public virtual bool BreathImmune{ get{ return false; } }
+ public virtual bool BreathImmune => false;
// Effect details and sound
- public virtual int BreathEffectItemID{ get{ return 0x36D4; } }
- public virtual int BreathEffectSpeed{ get{ return 5; } }
- public virtual int BreathEffectDuration{ get{ return 0; } }
- public virtual bool BreathEffectExplodes{ get{ return false; } }
- public virtual bool BreathEffectFixedDir{ get{ return false; } }
- public virtual int BreathEffectHue{ get{ return 0; } }
- public virtual int BreathEffectRenderMode{ get{ return 0; } }
+ public virtual int BreathEffectItemID => 0x36D4;
+ public virtual int BreathEffectSpeed => 5;
+ public virtual int BreathEffectDuration => 0;
+ public virtual bool BreathEffectExplodes => false;
+ public virtual bool BreathEffectFixedDir => false;
+ public virtual int BreathEffectHue => 0;
+ public virtual int BreathEffectRenderMode => 0;
- public virtual int BreathEffectSound{ get{ return 0x227; } }
+ public virtual int BreathEffectSound => 0x227;
// Anger sound/animations
- public virtual int BreathAngerSound{ get{ return GetAngerSound(); } }
- public virtual int BreathAngerAnimation{ get{ return 12; } }
+ public virtual int BreathAngerSound => GetAngerSound();
+ public virtual int BreathAngerAnimation => 12;
public virtual void BreathStart( Mobile target )
{
@@ -847,14 +861,14 @@ namespace Server.Mobiles
#endregion
#region Flee!!!
- public virtual bool CanFlee{ get{ return !m_Paragon; } }
+ public virtual bool CanFlee => !m_Paragon;
private DateTime m_EndFlee;
public DateTime EndFleeTime
{
- get{ return m_EndFlee; }
- set{ m_EndFlee = value; }
+ get => m_EndFlee;
+ set => m_EndFlee = value;
}
public virtual void StopFlee()
@@ -885,22 +899,16 @@ namespace Server.Mobiles
public virtual bool IsInvulnerable => false;
- public BaseAI AIObject{ get{ return m_AI; } }
+ public BaseAI AIObject => m_AI;
public const int MaxOwners = 5;
- public virtual OppositionGroup OppositionGroup
- {
- get{ return null; }
- }
+ public virtual OppositionGroup OppositionGroup => null;
#region Friends
public List Friends => m_Friends;
- public virtual bool AllowNewPetFriend
- {
- get{ return ( m_Friends == null || m_Friends.Count < 5 ); }
- }
+ public virtual bool AllowNewPetFriend => ( m_Friends == null || m_Friends.Count < 5 );
public virtual bool IsPetFriend( Mobile m )
{
@@ -1167,13 +1175,7 @@ namespace Server.Mobiles
}
}
- public virtual bool DeleteCorpseOnDeath
- {
- get
- {
- return !Core.AOS && m_bSummoned;
- }
- }
+ public virtual bool DeleteCorpseOnDeath => !Core.AOS && m_bSummoned;
public override void SetLocation( Point3D newLocation, bool isTeleport )
{
@@ -1223,81 +1225,43 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int Loyalty
{
- get
- {
- return m_Loyalty;
- }
- set
- {
- m_Loyalty = Math.Min( Math.Max( value, 0 ), MaxLoyalty );
- }
+ get => m_Loyalty;
+ set => m_Loyalty = Math.Min( Math.Max( value, 0 ), MaxLoyalty );
}
[CommandProperty( AccessLevel.GameMaster )]
public WayPoint CurrentWayPoint
{
- get
- {
- return m_CurrentWayPoint;
- }
- set
- {
- m_CurrentWayPoint = value;
- }
+ get => m_CurrentWayPoint;
+ set => m_CurrentWayPoint = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public IPoint2D TargetLocation
{
- get
- {
- return m_TargetLocation;
- }
- set
- {
- m_TargetLocation = value;
- }
+ get => m_TargetLocation;
+ set => m_TargetLocation = value;
}
- public virtual Mobile ConstantFocus{ get{ return null; } }
+ public virtual Mobile ConstantFocus => null;
- public virtual bool DisallowAllMoves
- {
- get
- {
- return false;
- }
- }
+ public virtual bool DisallowAllMoves => false;
- public virtual bool InitialInnocent
- {
- get
- {
- return false;
- }
- }
+ public virtual bool InitialInnocent => false;
- public virtual bool AlwaysMurderer
- {
- get
- {
- return false;
- }
- }
+ public virtual bool AlwaysMurderer => false;
- public virtual bool AlwaysAttackable
- {
- get
- {
- return false;
- }
+ public virtual bool AlwaysAttackable => false;
+
+ [CommandProperty( AccessLevel.GameMaster )]
+ public virtual int DamageMin{ get => m_DamageMin;
+ set => m_DamageMin = value;
}
[CommandProperty( AccessLevel.GameMaster )]
- public virtual int DamageMin{ get{ return m_DamageMin; } set{ m_DamageMin = value; } }
-
- [CommandProperty( AccessLevel.GameMaster )]
- public virtual int DamageMax{ get{ return m_DamageMax; } set{ m_DamageMax = value; } }
+ public virtual int DamageMax{ get => m_DamageMax;
+ set => m_DamageMax = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
public override int HitsMax
@@ -1322,8 +1286,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int HitsMaxSeed
{
- get{ return m_HitsMax; }
- set{ m_HitsMax = value; }
+ get => m_HitsMax;
+ set => m_HitsMax = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -1349,8 +1313,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int StamMaxSeed
{
- get{ return m_StamMax; }
- set{ m_StamMax = value; }
+ get => m_StamMax;
+ set => m_StamMax = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -1376,34 +1340,15 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int ManaMaxSeed
{
- get{ return m_ManaMax; }
- set{ m_ManaMax = value; }
+ get => m_ManaMax;
+ set => m_ManaMax = value;
}
- public virtual bool CanOpenDoors
- {
- get
- {
- return !this.Body.IsAnimal && !this.Body.IsSea;
- }
- }
+ public virtual bool CanOpenDoors => !this.Body.IsAnimal && !this.Body.IsSea;
- public virtual bool CanMoveOverObstacles
- {
- get
- {
- return Core.AOS || this.Body.IsMonster;
- }
- }
+ public virtual bool CanMoveOverObstacles => Core.AOS || this.Body.IsMonster;
- public virtual bool CanDestroyObstacles
- {
- get
- {
- // to enable breaking of furniture, 'return CanMoveOverObstacles;'
- return false;
- }
- }
+ public virtual bool CanDestroyObstacles => false;
public void Unpacify()
{
@@ -1413,7 +1358,9 @@ namespace Server.Mobiles
private HonorContext m_ReceivedHonorContext;
- public HonorContext ReceivedHonorContext{ get{ return m_ReceivedHonorContext; } set{ m_ReceivedHonorContext = value; } }
+ public HonorContext ReceivedHonorContext{ get => m_ReceivedHonorContext;
+ set => m_ReceivedHonorContext = value;
+ }
/*
@@ -1426,7 +1373,7 @@ namespace Server.Mobiles
*/
- public virtual bool CanBeDistracted { get { return !Core.ML ; } }
+ public virtual bool CanBeDistracted => !Core.ML;
public virtual void CheckDistracted( Mobile from )
{
@@ -2327,7 +2274,7 @@ namespace Server.Mobiles
return false;
}
- public virtual bool CanAngerOnTame{ get{ return false; } }
+ public virtual bool CanAngerOnTame => false;
#region OnAction[...]
@@ -2375,7 +2322,7 @@ namespace Server.Mobiles
return base.OnDragDrop( from, dropped );
}
- protected virtual BaseAI ForcedAI { get { return null; } }
+ protected virtual BaseAI ForcedAI => null;
public void ChangeAIType( AIType NewAI )
{
@@ -2430,10 +2377,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public AIType AI
{
- get
- {
- return m_CurrentAI;
- }
+ get => m_CurrentAI;
set
{
m_CurrentAI = value;
@@ -2450,23 +2394,14 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.Administrator )]
public bool Debug
{
- get
- {
- return m_DebugAI;
- }
- set
- {
- m_DebugAI = value;
- }
+ get => m_DebugAI;
+ set => m_DebugAI = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Team
{
- get
- {
- return m_Team;
- }
+ get => m_Team;
set
{
m_Team = value;
@@ -2482,92 +2417,50 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile FocusMob
{
- get
- {
- return m_FocusMob;
- }
- set
- {
- m_FocusMob = value;
- }
+ get => m_FocusMob;
+ set => m_FocusMob = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public FightMode FightMode
{
- get
- {
- return m_FightMode;
- }
- set
- {
- m_FightMode = value;
- }
+ get => m_FightMode;
+ set => m_FightMode = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int RangePerception
{
- get
- {
- return m_RangePerception;
- }
- set
- {
- m_RangePerception = value;
- }
+ get => m_RangePerception;
+ set => m_RangePerception = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int RangeFight
{
- get
- {
- return m_RangeFight;
- }
- set
- {
- m_RangeFight = value;
- }
+ get => m_RangeFight;
+ set => m_RangeFight = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int RangeHome
{
- get
- {
- return m_RangeHome;
- }
- set
- {
- m_RangeHome = value;
- }
+ get => m_RangeHome;
+ set => m_RangeHome = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public double ActiveSpeed
{
- get
- {
- return m_ActiveSpeed;
- }
- set
- {
- m_ActiveSpeed = value;
- }
+ get => m_ActiveSpeed;
+ set => m_ActiveSpeed = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public double PassiveSpeed
{
- get
- {
- return m_PassiveSpeed;
- }
- set
- {
- m_PassiveSpeed = value;
- }
+ get => m_PassiveSpeed;
+ set => m_PassiveSpeed = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -2594,36 +2487,21 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Point3D Home
{
- get
- {
- return m_Home;
- }
- set
- {
- m_Home = value;
- }
+ get => m_Home;
+ set => m_Home = value;
}
[CommandProperty(AccessLevel.GameMaster)]
public Map HomeMap
{
- get
- {
- return m_HomeMap;
- }
- set
- {
- m_HomeMap = value;
- }
+ get => m_HomeMap;
+ set => m_HomeMap = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Controlled
{
- get
- {
- return m_Controlled;
- }
+ get => m_Controlled;
set
{
if ( m_Controlled == value )
@@ -2694,10 +2572,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile ControlMaster
{
- get
- {
- return m_ControlMaster;
- }
+ get => m_ControlMaster;
set
{
if ( m_ControlMaster == value || this == value )
@@ -2716,10 +2591,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile SummonMaster
{
- get
- {
- return m_SummonMaster;
- }
+ get => m_SummonMaster;
set
{
if ( m_SummonMaster == value || this == value )
@@ -2736,36 +2608,21 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile ControlTarget
{
- get
- {
- return m_ControlTarget;
- }
- set
- {
- m_ControlTarget = value;
- }
+ get => m_ControlTarget;
+ set => m_ControlTarget = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Point3D ControlDest
{
- get
- {
- return m_ControlDest;
- }
- set
- {
- m_ControlDest = value;
- }
+ get => m_ControlDest;
+ set => m_ControlDest = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public OrderType ControlOrder
{
- get
- {
- return m_ControlOrder;
- }
+ get => m_ControlOrder;
set
{
m_ControlOrder = value;
@@ -2781,101 +2638,56 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public bool BardProvoked
{
- get
- {
- return m_bBardProvoked;
- }
- set
- {
- m_bBardProvoked = value;
- }
+ get => m_bBardProvoked;
+ set => m_bBardProvoked = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool BardPacified
{
- get
- {
- return m_bBardPacified;
- }
- set
- {
- m_bBardPacified = value;
- }
+ get => m_bBardPacified;
+ set => m_bBardPacified = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Mobile BardMaster
{
- get
- {
- return m_bBardMaster;
- }
- set
- {
- m_bBardMaster = value;
- }
+ get => m_bBardMaster;
+ set => m_bBardMaster = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Mobile BardTarget
{
- get
- {
- return m_bBardTarget;
- }
- set
- {
- m_bBardTarget = value;
- }
+ get => m_bBardTarget;
+ set => m_bBardTarget = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime BardEndTime
{
- get
- {
- return m_timeBardEnd;
- }
- set
- {
- m_timeBardEnd = value;
- }
+ get => m_timeBardEnd;
+ set => m_timeBardEnd = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public double MinTameSkill
{
- get
- {
- return m_MinTameSkill;
- }
- set
- {
- m_MinTameSkill = value;
- }
+ get => m_MinTameSkill;
+ set => m_MinTameSkill = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Tamable
{
- get
- {
- return m_bTamable && !m_Paragon;
- }
- set
- {
- m_bTamable = value;
- }
+ get => m_bTamable && !m_Paragon;
+ set => m_bTamable = value;
}
[CommandProperty( AccessLevel.Administrator )]
public bool Summoned
{
- get
- {
- return m_bSummoned;
- }
+ get => m_bSummoned;
set
{
if ( m_bSummoned == value )
@@ -2893,40 +2705,35 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.Administrator )]
public int ControlSlots
{
- get
- {
- return m_iControlSlots;
- }
- set
- {
- m_iControlSlots = value;
- }
+ get => m_iControlSlots;
+ set => m_iControlSlots = value;
}
- public virtual bool NoHouseRestrictions{ get{ return false; } }
- public virtual bool IsHouseSummonable{ get{ return false; } }
+ public virtual bool NoHouseRestrictions => false;
+ public virtual bool IsHouseSummonable => false;
#region Corpse Resources
- public virtual int Feathers{ get{ return 0; } }
- public virtual int Wool{ get{ return 0; } }
+ public virtual int Feathers => 0;
+ public virtual int Wool => 0;
- public virtual MeatType MeatType{ get{ return MeatType.Ribs; } }
- public virtual int Meat{ get{ return 0; } }
+ public virtual MeatType MeatType => MeatType.Ribs;
+ public virtual int Meat => 0;
- public virtual int Hides{ get{ return 0; } }
- public virtual HideType HideType{ get{ return HideType.Regular; } }
+ public virtual int Hides => 0;
+ public virtual HideType HideType => HideType.Regular;
+
+ public virtual int Scales => 0;
+ public virtual ScaleType ScaleType => ScaleType.Red;
- public virtual int Scales{ get{ return 0; } }
- public virtual ScaleType ScaleType{ get{ return ScaleType.Red; } }
#endregion
- public virtual bool AutoDispel{ get{ return false; } }
- public virtual double AutoDispelChance{ get { return ((Core.SE) ? .10 : 1.0); } }
+ public virtual bool AutoDispel => false;
+ public virtual double AutoDispelChance => ((Core.SE) ? .10 : 1.0);
- public virtual bool IsScaryToPets{ get{ return false; } }
- public virtual bool IsScaredOfScaryThings{ get{ return true; } }
+ public virtual bool IsScaryToPets => false;
+ public virtual bool IsScaredOfScaryThings => true;
- public virtual bool CanRummageCorpses{ get{ return false; } }
+ public virtual bool CanRummageCorpses => false;
public virtual void OnGotMeleeAttack( Mobile attacker )
{
@@ -2942,7 +2749,7 @@ namespace Server.Mobiles
m.Delete();
}
- public virtual bool DeleteOnRelease{ get{ return m_bSummoned; } }
+ public virtual bool DeleteOnRelease => m_bSummoned;
public virtual void OnGaveMeleeAttack( Mobile defender )
{
@@ -3099,7 +2906,7 @@ namespace Server.Mobiles
}
#region Teaching
- public virtual bool CanTeach{ get{ return false; } }
+ public virtual bool CanTeach => false;
public virtual bool CheckTeach( SkillName skill, Mobile from )
{
@@ -4463,8 +4270,8 @@ namespace Server.Mobiles
base.OnSingleClick( from );
}
- public virtual double TreasureMapChance{ get{ return TreasureMap.LootChance; } }
- public virtual int TreasureMapLevel{ get{ return -1; } }
+ public virtual double TreasureMapChance => TreasureMap.LootChance;
+ public virtual int TreasureMapLevel => -1;
public virtual bool IgnoreYoungProtection => false;
@@ -4535,8 +4342,8 @@ namespace Server.Mobiles
public bool NoKillAwards
{
- get{ return m_NoKillAwards; }
- set{ m_NoKillAwards = value; }
+ get => m_NoKillAwards;
+ set => m_NoKillAwards = value;
}
public int ComputeBonusDamage( List list, Mobile m )
@@ -4674,7 +4481,8 @@ namespace Server.Mobiles
}
#region Mondain's Legacy
- public virtual bool GivesMLMinorArtifact{ get{ return false; } }
+ public virtual bool GivesMLMinorArtifact => false;
+
#endregion
public virtual void OnKilledBy( Mobile mob )
@@ -4886,10 +4694,12 @@ namespace Server.Mobiles
private long m_NextReacquireTime;
- public long NextReacquireTime { get { return m_NextReacquireTime; } set { m_NextReacquireTime = value; } }
+ public long NextReacquireTime { get => m_NextReacquireTime;
+ set => m_NextReacquireTime = value;
+ }
- public virtual TimeSpan ReacquireDelay{ get{ return TimeSpan.FromSeconds( 10.0 ); } }
- public virtual bool ReacquireOnMovement{ get{ return false; } }
+ public virtual TimeSpan ReacquireDelay => TimeSpan.FromSeconds( 10.0 );
+ public virtual bool ReacquireOnMovement => false;
public virtual bool AcquireOnApproach => m_Paragon;
public virtual int AcquireOnApproachRange => 10;
@@ -5003,8 +4813,8 @@ namespace Server.Mobiles
public static bool Summoning
{
- get{ return m_Summoning; }
- set{ m_Summoning = value; }
+ get => m_Summoning;
+ set => m_Summoning = value;
}
public static bool Summon( BaseCreature creature, Mobile caster, Point3D p, int sound, TimeSpan duration )
@@ -5068,8 +4878,8 @@ namespace Server.Mobiles
private long m_NextRummageTime;
- public virtual bool CanBreath { get { return HasBreath && !Summoned; } }
- public virtual bool IsDispellable { get { return Summoned && !IsAnimatedDead; } }
+ public virtual bool CanBreath => HasBreath && !Summoned;
+ public virtual bool IsDispellable => Summoned && !IsAnimatedDead;
#region Healing
public virtual bool CanHeal => false;
@@ -5092,7 +4902,7 @@ namespace Server.Mobiles
private long m_NextHealOwnerTime = Core.TickCount;
private Timer m_HealTimer = null;
- public bool IsHealing { get { return ( m_HealTimer != null ); } }
+ public bool IsHealing => ( m_HealTimer != null );
public virtual void HealStart( Mobile patient )
{
@@ -5206,7 +5016,7 @@ namespace Server.Mobiles
private long m_NextAura;
public virtual bool HasAura => false;
- public virtual TimeSpan AuraInterval { get { return TimeSpan.FromSeconds( 5 ); } }
+ public virtual TimeSpan AuraInterval => TimeSpan.FromSeconds( 5 );
public virtual int AuraRange => 4;
public virtual int AuraBaseDamage => 5;
@@ -5537,7 +5347,8 @@ namespace Server.Mobiles
return base.CanBeDamaged();
}
- public virtual bool PlayerRangeSensitive{ get{ return (this.CurrentWayPoint == null); } } //If they are following a waypoint, they'll continue to follow it even if players aren't around
+ public virtual bool PlayerRangeSensitive //If they are following a waypoint, they'll continue to follow it even if players aren't around
+ => (this.CurrentWayPoint == null);
/* until we are sure about who should be getting deleted, move them instead */
/* On OSI, they despawn */
@@ -5551,13 +5362,7 @@ namespace Server.Mobiles
!Controlled && !Summoned && Spawner is Spawner spawner && spawner.Map == Map;
}
- public virtual bool ReturnsToHome
- {
- get
- {
- return ( m_SeeksHome && ( Home != Point3D.Zero ) && !m_ReturnQueued && !Controlled && !Summoned );
- }
- }
+ public virtual bool ReturnsToHome => ( m_SeeksHome && ( Home != Point3D.Zero ) && !m_ReturnQueued && !Controlled && !Summoned );
public override void OnSectorDeactivate()
{
@@ -5609,10 +5414,14 @@ namespace Server.Mobiles
private int m_RemoveStep;
[CommandProperty( AccessLevel.GameMaster )]
- public bool RemoveIfUntamed{ get{ return m_RemoveIfUntamed; } set{ m_RemoveIfUntamed = value; } }
+ public bool RemoveIfUntamed{ get => m_RemoveIfUntamed;
+ set => m_RemoveIfUntamed = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int RemoveStep { get { return m_RemoveStep; } set { m_RemoveStep = value; } }
+ public int RemoveStep { get => m_RemoveStep;
+ set => m_RemoveStep = value;
+ }
}
public class LoyaltyTimer : Timer
diff --git a/Scripts/Mobiles/Guards/ArcherGuard.cs b/Scripts/Mobiles/Guards/ArcherGuard.cs
index 59fdefe31..104c5bd50 100644
--- a/Scripts/Mobiles/Guards/ArcherGuard.cs
+++ b/Scripts/Mobiles/Guards/ArcherGuard.cs
@@ -90,10 +90,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public override Mobile Focus
{
- get
- {
- return m_Focus;
- }
+ get => m_Focus;
set
{
if ( Deleted )
diff --git a/Scripts/Mobiles/Guards/WarriorGuard.cs b/Scripts/Mobiles/Guards/WarriorGuard.cs
index ae382c600..5a3a5e4a6 100644
--- a/Scripts/Mobiles/Guards/WarriorGuard.cs
+++ b/Scripts/Mobiles/Guards/WarriorGuard.cs
@@ -105,10 +105,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public override Mobile Focus
{
- get
- {
- return m_Focus;
- }
+ get => m_Focus;
set
{
if ( Deleted )
diff --git a/Scripts/Mobiles/Healers/BaseHealer.cs b/Scripts/Mobiles/Healers/BaseHealer.cs
index 53c329dd9..7fb5a16f4 100644
--- a/Scripts/Mobiles/Healers/BaseHealer.cs
+++ b/Scripts/Mobiles/Healers/BaseHealer.cs
@@ -8,7 +8,7 @@ namespace Server.Mobiles
public abstract class BaseHealer : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override bool IsActiveVendor => false;
public override bool IsInvulnerable => false;
@@ -73,7 +73,7 @@ namespace Server.Mobiles
AddItem( new Robe( GetRobeColor() ) );
}
- public virtual bool HealsYoungPlayers{ get{ return true; } }
+ public virtual bool HealsYoungPlayers => true;
public virtual bool CheckResurrect( Mobile m )
{
diff --git a/Scripts/Mobiles/Healers/PricedHealer.cs b/Scripts/Mobiles/Healers/PricedHealer.cs
index 3f8a5d3cc..a006ff997 100644
--- a/Scripts/Mobiles/Healers/PricedHealer.cs
+++ b/Scripts/Mobiles/Healers/PricedHealer.cs
@@ -9,8 +9,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int Price
{
- get{ return m_Price; }
- set{ m_Price = value; }
+ get => m_Price;
+ set => m_Price = value;
}
[Constructible]
diff --git a/Scripts/Mobiles/Monsters/AOS/ShadowKnight.cs b/Scripts/Mobiles/Monsters/AOS/ShadowKnight.cs
index 308d05c42..5ba3bef3c 100644
--- a/Scripts/Mobiles/Monsters/AOS/ShadowKnight.cs
+++ b/Scripts/Mobiles/Monsters/AOS/ShadowKnight.cs
@@ -54,10 +54,7 @@ namespace Server.Mobiles
AddLoot( LootPack.UltraRich, 2 );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void OnDeath( Container c )
{
diff --git a/Scripts/Mobiles/Monsters/AOS/Treefellow.cs b/Scripts/Mobiles/Monsters/AOS/Treefellow.cs
index 933ca7775..20056d6ea 100644
--- a/Scripts/Mobiles/Monsters/AOS/Treefellow.cs
+++ b/Scripts/Mobiles/Monsters/AOS/Treefellow.cs
@@ -40,10 +40,7 @@ namespace Server.Mobiles
PackItem( new Log( Utility.RandomMinMax( 23, 34 ) ) );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override int GetIdleSound()
{
diff --git a/Scripts/Mobiles/Monsters/Ants/BlackSolenQueen.cs b/Scripts/Mobiles/Monsters/Ants/BlackSolenQueen.cs
index ef8867ba7..aa240125f 100644
--- a/Scripts/Mobiles/Monsters/Ants/BlackSolenQueen.cs
+++ b/Scripts/Mobiles/Monsters/Ants/BlackSolenQueen.cs
@@ -7,7 +7,7 @@ namespace Server.Mobiles
{
public override string CorpseName => "a solen queen corpse";
private bool m_BurstSac;
- public bool BurstSac{ get{ return m_BurstSac; } }
+ public bool BurstSac => m_BurstSac;
public override string DefaultName => "a black solen queen";
diff --git a/Scripts/Mobiles/Monsters/Ants/BlackSolenWarrior.cs b/Scripts/Mobiles/Monsters/Ants/BlackSolenWarrior.cs
index 838d187c1..6dba169a7 100644
--- a/Scripts/Mobiles/Monsters/Ants/BlackSolenWarrior.cs
+++ b/Scripts/Mobiles/Monsters/Ants/BlackSolenWarrior.cs
@@ -7,7 +7,7 @@ namespace Server.Mobiles
{
public override string CorpseName => "a solen warrior corpse";
private bool m_BurstSac;
- public bool BurstSac{ get{ return m_BurstSac; } }
+ public bool BurstSac => m_BurstSac;
public override string DefaultName => "a black solen warrior";
diff --git a/Scripts/Mobiles/Monsters/Ants/RedSolenQueen.cs b/Scripts/Mobiles/Monsters/Ants/RedSolenQueen.cs
index 2ca087c42..2e7ab3c59 100644
--- a/Scripts/Mobiles/Monsters/Ants/RedSolenQueen.cs
+++ b/Scripts/Mobiles/Monsters/Ants/RedSolenQueen.cs
@@ -7,7 +7,7 @@ namespace Server.Mobiles
{
public override string CorpseName => "a solen queen corpse";
private bool m_BurstSac;
- public bool BurstSac{ get{ return m_BurstSac; } }
+ public bool BurstSac => m_BurstSac;
public override string DefaultName => "a red solen queen";
diff --git a/Scripts/Mobiles/Monsters/Ants/RedSolenWarrior.cs b/Scripts/Mobiles/Monsters/Ants/RedSolenWarrior.cs
index 4168a0e53..78ca5f9e3 100644
--- a/Scripts/Mobiles/Monsters/Ants/RedSolenWarrior.cs
+++ b/Scripts/Mobiles/Monsters/Ants/RedSolenWarrior.cs
@@ -7,7 +7,7 @@ namespace Server.Mobiles
{
public override string CorpseName => "a solen warrior corpse";
private bool m_BurstSac;
- public bool BurstSac{ get{ return m_BurstSac; } }
+ public bool BurstSac => m_BurstSac;
public override string DefaultName => "a red solen warrior";
diff --git a/Scripts/Mobiles/Monsters/Arachnid/Magic/TerathanAvenger.cs b/Scripts/Mobiles/Monsters/Arachnid/Magic/TerathanAvenger.cs
index 01d203782..bb1887296 100644
--- a/Scripts/Mobiles/Monsters/Arachnid/Magic/TerathanAvenger.cs
+++ b/Scripts/Mobiles/Monsters/Arachnid/Magic/TerathanAvenger.cs
@@ -52,10 +52,7 @@ namespace Server.Mobiles
public override int TreasureMapLevel => 3;
public override int Meat => 2;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.TerathansAndOphidians; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.TerathansAndOphidians;
public TerathanAvenger( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Monsters/Arachnid/Magic/TerathanMatriarch.cs b/Scripts/Mobiles/Monsters/Arachnid/Magic/TerathanMatriarch.cs
index f4b1d6fc9..46e56d653 100644
--- a/Scripts/Mobiles/Monsters/Arachnid/Magic/TerathanMatriarch.cs
+++ b/Scripts/Mobiles/Monsters/Arachnid/Magic/TerathanMatriarch.cs
@@ -52,10 +52,7 @@ namespace Server.Mobiles
public override int TreasureMapLevel => 4;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.TerathansAndOphidians; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.TerathansAndOphidians;
public TerathanMatriarch( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Monsters/Arachnid/Melee/TerathanDrone.cs b/Scripts/Mobiles/Monsters/Arachnid/Melee/TerathanDrone.cs
index d5ce60354..5c9950091 100644
--- a/Scripts/Mobiles/Monsters/Arachnid/Melee/TerathanDrone.cs
+++ b/Scripts/Mobiles/Monsters/Arachnid/Melee/TerathanDrone.cs
@@ -51,10 +51,7 @@ namespace Server.Mobiles
public override int Meat => 4;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.TerathansAndOphidians; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.TerathansAndOphidians;
public TerathanDrone( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Monsters/Arachnid/Melee/TerathanWarrior.cs b/Scripts/Mobiles/Monsters/Arachnid/Melee/TerathanWarrior.cs
index 6d2125ccd..2f52527cb 100644
--- a/Scripts/Mobiles/Monsters/Arachnid/Melee/TerathanWarrior.cs
+++ b/Scripts/Mobiles/Monsters/Arachnid/Melee/TerathanWarrior.cs
@@ -50,10 +50,7 @@ namespace Server.Mobiles
public override int TreasureMapLevel => 1;
public override int Meat => 4;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.TerathansAndOphidians; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.TerathansAndOphidians;
public TerathanWarrior( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/AncientLich.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/AncientLich.cs
index f88ed4736..c2112002c 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/AncientLich.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/AncientLich.cs
@@ -46,10 +46,7 @@ namespace Server.Mobiles
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override int GetIdleSound()
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/Bogle.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/Bogle.cs
index e19c19cf1..a30bf46f4 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/Bogle.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/Bogle.cs
@@ -47,10 +47,7 @@ namespace Server.Mobiles
{
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/BoneMagi.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/BoneMagi.cs
index 4f18fc0ee..a7d685213 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/BoneMagi.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/BoneMagi.cs
@@ -57,10 +57,7 @@ namespace Server.Mobiles
public override bool BleedImmune => true;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override Poison PoisonImmune => Poison.Regular;
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/Lich.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/Lich.cs
index 5947fd9cc..6b518485b 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/Lich.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/Lich.cs
@@ -55,10 +55,7 @@ namespace Server.Mobiles
AddLoot( LootPack.MedScrolls, 2 );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override bool CanRummageCorpses => true;
public override bool BleedImmune => true;
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/LichLord.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/LichLord.cs
index 788a5baaa..3af8e5c69 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/LichLord.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/LichLord.cs
@@ -48,10 +48,7 @@ namespace Server.Mobiles
PackNecroReg( 12, 40 );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void GenerateLoot()
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/OrcishMage.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/OrcishMage.cs
index dd53fbe3e..8bacd0981 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/OrcishMage.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/OrcishMage.cs
@@ -60,10 +60,7 @@ namespace Server.Mobiles
public override int TreasureMapLevel => 1;
public override int Meat => 1;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.SavagesAndOrcs; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
public override bool IsEnemy( Mobile m )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/SavageShaman.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/SavageShaman.cs
index d2806b831..1aea739b7 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/SavageShaman.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/SavageShaman.cs
@@ -66,10 +66,7 @@ namespace Server.Mobiles
public override bool AlwaysMurderer => true;
public override bool ShowFameTitle => false;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.SavagesAndOrcs; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
public override bool IsEnemy( Mobile m )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/Shade.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/Shade.cs
index dacf4113a..c3d353e20 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/Shade.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/Shade.cs
@@ -48,10 +48,7 @@ namespace Server.Mobiles
public override bool BleedImmune => true;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override Poison PoisonImmune => Poison.Lethal;
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/SkeletalMage.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/SkeletalMage.cs
index fc601da54..906fcc82d 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/SkeletalMage.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/SkeletalMage.cs
@@ -55,10 +55,7 @@ namespace Server.Mobiles
public override bool BleedImmune => true;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override Poison PoisonImmune => Poison.Regular;
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/Spectre.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/Spectre.cs
index a282b7b77..fdd615f9b 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/Spectre.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/Spectre.cs
@@ -48,10 +48,7 @@ namespace Server.Mobiles
public override bool BleedImmune => true;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override Poison PoisonImmune => Poison.Lethal;
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Magic/Wraith.cs b/Scripts/Mobiles/Monsters/Humanoid/Magic/Wraith.cs
index e2da794b7..dcb0666ac 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Magic/Wraith.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Magic/Wraith.cs
@@ -48,10 +48,7 @@ namespace Server.Mobiles
public override bool BleedImmune => true;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override Poison PoisonImmune => Poison.Lethal;
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/BoneKnight.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/BoneKnight.cs
index fb4ee2e59..5a9b657b5 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/BoneKnight.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/BoneKnight.cs
@@ -66,10 +66,7 @@ namespace Server.Mobiles
{
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/Ghoul.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/Ghoul.cs
index 7cf0eeecd..88be9a236 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/Ghoul.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/Ghoul.cs
@@ -51,10 +51,7 @@ namespace Server.Mobiles
{
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/Mummy.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/Mummy.cs
index f437dc495..eeb644745 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/Mummy.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/Mummy.cs
@@ -60,10 +60,7 @@ namespace Server.Mobiles
{
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/Orc.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/Orc.cs
index a26e05378..273b563ff 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/Orc.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/Orc.cs
@@ -72,10 +72,7 @@ namespace Server.Mobiles
public override int TreasureMapLevel => 1;
public override int Meat => 1;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.SavagesAndOrcs; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
public override bool IsEnemy( Mobile m )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcBomber.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcBomber.cs
index b5c059595..20dc4d497 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcBomber.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcBomber.cs
@@ -62,10 +62,7 @@ namespace Server.Mobiles
public override bool CanRummageCorpses => true;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.SavagesAndOrcs; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
public override bool IsEnemy( Mobile m )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcBrute.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcBrute.cs
index c603d2599..9276edaf9 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcBrute.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcBrute.cs
@@ -61,10 +61,7 @@ namespace Server.Mobiles
public override Poison PoisonImmune => Poison.Lethal;
public override int Meat => 2;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.SavagesAndOrcs; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
public override bool IsEnemy( Mobile m )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcCaptain.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcCaptain.cs
index 00192959f..f5840bb9f 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcCaptain.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcCaptain.cs
@@ -73,10 +73,7 @@ namespace Server.Mobiles
public override bool CanRummageCorpses => true;
public override int Meat => 1;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.SavagesAndOrcs; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
public override bool IsEnemy( Mobile m )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcishLord.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcishLord.cs
index de80b1d0e..94633fcc0 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcishLord.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/OrcishLord.cs
@@ -69,10 +69,7 @@ namespace Server.Mobiles
public override int TreasureMapLevel => 1;
public override int Meat => 1;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.SavagesAndOrcs; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
public override bool IsEnemy( Mobile m )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/RottingCorpse.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/RottingCorpse.cs
index db2643bdb..2c4d43591 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/RottingCorpse.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/RottingCorpse.cs
@@ -56,10 +56,7 @@ namespace Server.Mobiles
{
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/Savage.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/Savage.cs
index 4493b2a03..d047f46a7 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/Savage.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/Savage.cs
@@ -60,10 +60,7 @@ namespace Server.Mobiles
public override bool AlwaysMurderer => true;
public override bool ShowFameTitle => false;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.SavagesAndOrcs; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
public override bool IsEnemy( Mobile m )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/SavageRider.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/SavageRider.cs
index 2d0fa11e7..90b52b66d 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/SavageRider.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/SavageRider.cs
@@ -57,10 +57,7 @@ namespace Server.Mobiles
public override bool AlwaysMurderer => true;
public override bool ShowFameTitle => false;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.SavagesAndOrcs; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.SavagesAndOrcs;
public override bool OnBeforeDeath()
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/SkeletalKnight.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/SkeletalKnight.cs
index 1e0c03064..ce24ddf3e 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/SkeletalKnight.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/SkeletalKnight.cs
@@ -65,10 +65,7 @@ namespace Server.Mobiles
{
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/Skeleton.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/Skeleton.cs
index 3a40792bd..7ef77b08d 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/Skeleton.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/Skeleton.cs
@@ -60,10 +60,7 @@ namespace Server.Mobiles
{
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Monsters/Humanoid/Melee/Zombie.cs b/Scripts/Mobiles/Monsters/Humanoid/Melee/Zombie.cs
index 41bb798af..d4ed53f71 100644
--- a/Scripts/Mobiles/Monsters/Humanoid/Melee/Zombie.cs
+++ b/Scripts/Mobiles/Monsters/Humanoid/Melee/Zombie.cs
@@ -63,10 +63,7 @@ namespace Server.Mobiles
{
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Monsters/LBR/Exodus/ExodusMinion.cs b/Scripts/Mobiles/Monsters/LBR/Exodus/ExodusMinion.cs
index 3c18bc840..4b725103f 100644
--- a/Scripts/Mobiles/Monsters/LBR/Exodus/ExodusMinion.cs
+++ b/Scripts/Mobiles/Monsters/LBR/Exodus/ExodusMinion.cs
@@ -6,8 +6,9 @@ namespace Server.Mobiles
{
public override string CorpseName => "a minion's corpse";
private bool m_FieldActive;
- public bool FieldActive{ get{ return m_FieldActive; } }
- public bool CanUseField{ get{ return Hits >= HitsMax * 9 / 10; } } // TODO: an OSI bug prevents to verify this
+ public bool FieldActive => m_FieldActive;
+ public bool CanUseField // TODO: an OSI bug prevents to verify this
+ => Hits >= HitsMax * 9 / 10;
public override bool IsScaredOfScaryThings => false;
public override bool IsScaryToPets => true;
diff --git a/Scripts/Mobiles/Monsters/LBR/Exodus/ExodusOverseer.cs b/Scripts/Mobiles/Monsters/LBR/Exodus/ExodusOverseer.cs
index d0698a23d..a125799fd 100644
--- a/Scripts/Mobiles/Monsters/LBR/Exodus/ExodusOverseer.cs
+++ b/Scripts/Mobiles/Monsters/LBR/Exodus/ExodusOverseer.cs
@@ -6,8 +6,9 @@ namespace Server.Mobiles
{
public override string CorpseName => "an overseer's corpse";
private bool m_FieldActive;
- public bool FieldActive{ get{ return m_FieldActive; } }
- public bool CanUseField{ get{ return Hits >= HitsMax * 9 / 10; } } // TODO: an OSI bug prevents to verify this
+ public bool FieldActive => m_FieldActive;
+ public bool CanUseField // TODO: an OSI bug prevents to verify this
+ => Hits >= HitsMax * 9 / 10;
public override bool IsScaredOfScaryThings => false;
public override bool IsScaryToPets => true;
diff --git a/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/MLDryad.cs b/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/MLDryad.cs
index 0458e4887..3a5575c02 100644
--- a/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/MLDryad.cs
+++ b/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/MLDryad.cs
@@ -8,10 +8,7 @@ namespace Server.Mobiles
public override string CorpseName => "a dryad's corpse";
public override bool InitialInnocent => true;
- public override OppositionGroup OppositionGroup
- {
- get { return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override string DefaultName => "a dryad";
diff --git a/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/Satyr.cs b/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/Satyr.cs
index 7857608e1..2912760ce 100644
--- a/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/Satyr.cs
+++ b/Scripts/Mobiles/Monsters/ML/Humanoid/Magic/Satyr.cs
@@ -42,10 +42,7 @@ namespace Server.Mobiles
PackArcanceScroll( 0.05 );
}
- public override OppositionGroup OppositionGroup
- {
- get { return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void GenerateLoot()
{
diff --git a/Scripts/Mobiles/Monsters/ML/Humanoid/Melee/FerelTreefellow.cs b/Scripts/Mobiles/Monsters/ML/Humanoid/Melee/FerelTreefellow.cs
index 80b4f0d9d..438ad1216 100644
--- a/Scripts/Mobiles/Monsters/ML/Humanoid/Melee/FerelTreefellow.cs
+++ b/Scripts/Mobiles/Monsters/ML/Humanoid/Melee/FerelTreefellow.cs
@@ -41,10 +41,7 @@ namespace Server.Mobiles
PackItem( new Log( Utility.RandomMinMax( 23, 34 ) ) );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override int GetIdleSound()
{
diff --git a/Scripts/Mobiles/Monsters/ML/Special/Ilhenir.cs b/Scripts/Mobiles/Monsters/ML/Special/Ilhenir.cs
index 489550d0b..b56acb94a 100644
--- a/Scripts/Mobiles/Monsters/ML/Special/Ilhenir.cs
+++ b/Scripts/Mobiles/Monsters/ML/Special/Ilhenir.cs
@@ -323,8 +323,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public bool Corrosive
{
- get { return m_Corrosive; }
- set { m_Corrosive = value; }
+ get => m_Corrosive;
+ set => m_Corrosive = value;
}
[Constructible]
diff --git a/Scripts/Mobiles/Monsters/ML/Special/Twaulo.cs b/Scripts/Mobiles/Monsters/ML/Special/Twaulo.cs
index 6123ff1ef..ffbf34d0e 100644
--- a/Scripts/Mobiles/Monsters/ML/Special/Twaulo.cs
+++ b/Scripts/Mobiles/Monsters/ML/Special/Twaulo.cs
@@ -67,10 +67,7 @@ namespace Server.Mobiles
AddLoot(LootPack.Gems);
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override bool Unprovokable => true;
public override Poison PoisonImmune => Poison.Regular;
diff --git a/Scripts/Mobiles/Monsters/ML/Twisted Weald/Changeling.cs b/Scripts/Mobiles/Monsters/ML/Twisted Weald/Changeling.cs
index 1c2bbda48..1a94a720c 100644
--- a/Scripts/Mobiles/Monsters/ML/Twisted Weald/Changeling.cs
+++ b/Scripts/Mobiles/Monsters/ML/Twisted Weald/Changeling.cs
@@ -74,7 +74,7 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile MorphedInto
{
- get { return m_MorphedInto; }
+ get => m_MorphedInto;
set
{
if ( value == this )
diff --git a/Scripts/Mobiles/Monsters/Misc/Magic/DarkWisp.cs b/Scripts/Mobiles/Monsters/Misc/Magic/DarkWisp.cs
index 53487ba69..3009cc719 100644
--- a/Scripts/Mobiles/Monsters/Misc/Magic/DarkWisp.cs
+++ b/Scripts/Mobiles/Monsters/Misc/Magic/DarkWisp.cs
@@ -58,10 +58,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Average );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public DarkWisp( Serial serial )
: base( serial )
diff --git a/Scripts/Mobiles/Monsters/Misc/Magic/EtherealWarrior.cs b/Scripts/Mobiles/Monsters/Misc/Magic/EtherealWarrior.cs
index 80b5ffaf5..025352cd0 100644
--- a/Scripts/Mobiles/Monsters/Misc/Magic/EtherealWarrior.cs
+++ b/Scripts/Mobiles/Monsters/Misc/Magic/EtherealWarrior.cs
@@ -77,10 +77,7 @@ namespace Server.Mobiles
}
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override int Feathers => 100;
diff --git a/Scripts/Mobiles/Monsters/Misc/Magic/Pixie.cs b/Scripts/Mobiles/Monsters/Misc/Magic/Pixie.cs
index 5d59cd929..d8cb179b7 100644
--- a/Scripts/Mobiles/Monsters/Misc/Magic/Pixie.cs
+++ b/Scripts/Mobiles/Monsters/Misc/Magic/Pixie.cs
@@ -67,10 +67,7 @@ namespace Server.Mobiles
{
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Monsters/Misc/Magic/ShadowWisp.cs b/Scripts/Mobiles/Monsters/Misc/Magic/ShadowWisp.cs
index a2ec0a1b6..dbcffa84d 100644
--- a/Scripts/Mobiles/Monsters/Misc/Magic/ShadowWisp.cs
+++ b/Scripts/Mobiles/Monsters/Misc/Magic/ShadowWisp.cs
@@ -60,10 +60,7 @@ namespace Server.Mobiles
{
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Monsters/Misc/Magic/Wisp.cs b/Scripts/Mobiles/Monsters/Misc/Magic/Wisp.cs
index ce2fff668..8f78a0138 100644
--- a/Scripts/Mobiles/Monsters/Misc/Magic/Wisp.cs
+++ b/Scripts/Mobiles/Monsters/Misc/Magic/Wisp.cs
@@ -63,10 +63,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Average );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public Wisp( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Monsters/Misc/Melee/Centaur.cs b/Scripts/Mobiles/Monsters/Misc/Melee/Centaur.cs
index 849a2b60b..e04e80979 100644
--- a/Scripts/Mobiles/Monsters/Misc/Melee/Centaur.cs
+++ b/Scripts/Mobiles/Monsters/Misc/Melee/Centaur.cs
@@ -49,10 +49,7 @@ namespace Server.Mobiles
AddLoot( LootPack.Gems );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override int Meat => 1;
public override int Hides => 8;
diff --git a/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeast.cs b/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeast.cs
index 8069be1c5..2a9ed2766 100644
--- a/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeast.cs
+++ b/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeast.cs
@@ -14,22 +14,19 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int TotalDevoured
{
- get { return m_DevourTotal; }
- set { m_DevourTotal = value; }
+ get => m_DevourTotal;
+ set => m_DevourTotal = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int DevourGoal
{
- get { return ( IsParagon ? m_DevourGoal + 25 : m_DevourGoal ); }
- set { m_DevourGoal = value; }
+ get => ( IsParagon ? m_DevourGoal + 25 : m_DevourGoal );
+ set => m_DevourGoal = value;
}
[CommandProperty( AccessLevel.GameMaster )]
- public bool HasMetalChest
- {
- get { return m_HasMetalChest; }
- }
+ public bool HasMetalChest => m_HasMetalChest;
public override string DefaultName => "a plague beast";
diff --git a/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeastLord.cs b/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeastLord.cs
index 493b1118f..94922d4af 100644
--- a/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeastLord.cs
+++ b/Scripts/Mobiles/Monsters/Misc/Melee/PlagueBeastLord.cs
@@ -14,8 +14,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile OpenedBy
{
- get { return m_OpenedBy; }
- set { m_OpenedBy = value; }
+ get => m_OpenedBy;
+ set => m_OpenedBy = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -296,15 +296,9 @@ namespace Server.Mobiles
private int m_Count;
private int m_Deadline;
- public int Count
- {
- get { return m_Count; }
- }
+ public int Count => m_Count;
- public int Deadline
- {
- get { return m_Deadline; }
- }
+ public int Deadline => m_Deadline;
public DecayTimer( PlagueBeastLord lord ) : this( lord, 0, 120 )
{
diff --git a/Scripts/Mobiles/Monsters/Misc/Melee/PlagueSpawn.cs b/Scripts/Mobiles/Monsters/Misc/Melee/PlagueSpawn.cs
index a26d0bb50..05955b337 100644
--- a/Scripts/Mobiles/Monsters/Misc/Melee/PlagueSpawn.cs
+++ b/Scripts/Mobiles/Monsters/Misc/Melee/PlagueSpawn.cs
@@ -13,15 +13,15 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Owner
{
- get{ return m_Owner; }
- set{ m_Owner = value; }
+ get => m_Owner;
+ set => m_Owner = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime ExpireTime
{
- get{ return m_ExpireTime; }
- set{ m_ExpireTime = value; }
+ get => m_ExpireTime;
+ set => m_ExpireTime = value;
}
[Constructible]
diff --git a/Scripts/Mobiles/Monsters/Ore Elementals/AgapiteElemental.cs b/Scripts/Mobiles/Monsters/Ore Elementals/AgapiteElemental.cs
index 1d12427d4..6859e0549 100644
--- a/Scripts/Mobiles/Monsters/Ore Elementals/AgapiteElemental.cs
+++ b/Scripts/Mobiles/Monsters/Ore Elementals/AgapiteElemental.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class AgapiteElemental : BaseCreature
{
public override string CorpseName => "an ore elemental corpse";
- public override string DefaultName{ get { return "an agapite elemental"; } }
+ public override string DefaultName => "an agapite elemental";
[Constructible]
public AgapiteElemental() : this( 2 )
diff --git a/Scripts/Mobiles/Monsters/Reptile/Magic/Leviathan.cs b/Scripts/Mobiles/Monsters/Reptile/Magic/Leviathan.cs
index cedb1cac7..56bacc26c 100644
--- a/Scripts/Mobiles/Monsters/Reptile/Magic/Leviathan.cs
+++ b/Scripts/Mobiles/Monsters/Reptile/Magic/Leviathan.cs
@@ -10,8 +10,8 @@ namespace Server.Mobiles
public Mobile Fisher
{
- get{ return m_Fisher; }
- set{ m_Fisher = value; }
+ get => m_Fisher;
+ set => m_Fisher = value;
}
public override string DefaultName => "a leviathan";
diff --git a/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianArchmage.cs b/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianArchmage.cs
index b1af1c739..f71a7bd01 100644
--- a/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianArchmage.cs
+++ b/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianArchmage.cs
@@ -57,10 +57,7 @@ namespace Server.Mobiles
public override int Meat => 1;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.TerathansAndOphidians; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.TerathansAndOphidians;
public OphidianArchmage( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianMage.cs b/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianMage.cs
index 3c89bba6b..4308137b5 100644
--- a/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianMage.cs
+++ b/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianMage.cs
@@ -58,10 +58,7 @@ namespace Server.Mobiles
public override int Meat => 1;
public override int TreasureMapLevel => 2;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.TerathansAndOphidians; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.TerathansAndOphidians;
public OphidianMage( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianMatriarch.cs b/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianMatriarch.cs
index ceaf61e62..0960f4c3a 100644
--- a/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianMatriarch.cs
+++ b/Scripts/Mobiles/Monsters/Reptile/Magic/OphidianMatriarch.cs
@@ -50,10 +50,7 @@ namespace Server.Mobiles
public override Poison PoisonImmune => Poison.Greater;
public override int TreasureMapLevel => 4;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.TerathansAndOphidians; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.TerathansAndOphidians;
public OphidianMatriarch( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Monsters/Reptile/Melee/OphidianKnight.cs b/Scripts/Mobiles/Monsters/Reptile/Melee/OphidianKnight.cs
index a11135377..c75b8e511 100644
--- a/Scripts/Mobiles/Monsters/Reptile/Melee/OphidianKnight.cs
+++ b/Scripts/Mobiles/Monsters/Reptile/Melee/OphidianKnight.cs
@@ -60,10 +60,7 @@ namespace Server.Mobiles
public override Poison HitPoison => Poison.Lethal;
public override int TreasureMapLevel => 3;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.TerathansAndOphidians; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.TerathansAndOphidians;
public OphidianKnight( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Monsters/Reptile/Melee/OphidianWarrior.cs b/Scripts/Mobiles/Monsters/Reptile/Melee/OphidianWarrior.cs
index d70127848..c395b2af6 100644
--- a/Scripts/Mobiles/Monsters/Reptile/Melee/OphidianWarrior.cs
+++ b/Scripts/Mobiles/Monsters/Reptile/Melee/OphidianWarrior.cs
@@ -53,10 +53,7 @@ namespace Server.Mobiles
public override int Meat => 1;
public override int TreasureMapLevel => 1;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.TerathansAndOphidians; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.TerathansAndOphidians;
public OphidianWarrior( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Monsters/SE/BakeKitsune.cs b/Scripts/Mobiles/Monsters/SE/BakeKitsune.cs
index bfff010b7..fa67bee05 100644
--- a/Scripts/Mobiles/Monsters/SE/BakeKitsune.cs
+++ b/Scripts/Mobiles/Monsters/SE/BakeKitsune.cs
@@ -7,7 +7,7 @@ namespace Server.Mobiles
public class BakeKitsune : BaseCreature
{
public override string CorpseName => "a bake kitsune corpse";
- public override string DefaultName{ get { return "a bake kitsune"; } }
+ public override string DefaultName => "a bake kitsune";
[Constructible]
public BakeKitsune() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
diff --git a/Scripts/Mobiles/Monsters/SE/FireBeetle.cs b/Scripts/Mobiles/Monsters/SE/FireBeetle.cs
index b6e412236..f97493b3a 100644
--- a/Scripts/Mobiles/Monsters/SE/FireBeetle.cs
+++ b/Scripts/Mobiles/Monsters/SE/FireBeetle.cs
@@ -8,7 +8,7 @@ namespace Server.Mobiles
public override string CorpseName => "a fire beetle corpse";
public override bool SubdueBeforeTame => true; // Must be beaten into submission
public override bool StatLossAfterTame => true;
- public virtual double BoostedSpeed{ get{ return 0.1; } }
+ public virtual double BoostedSpeed => 0.1;
public override bool ReduceSpeedWithDamage => false;
[Constructible]
diff --git a/Scripts/Mobiles/PlayerMobile.cs b/Scripts/Mobiles/PlayerMobile.cs
index da9a96731..aba67f3d1 100644
--- a/Scripts/Mobiles/PlayerMobile.cs
+++ b/Scripts/Mobiles/PlayerMobile.cs
@@ -163,10 +163,11 @@ namespace Server.Mobiles
{
}
- public DateTime TimeStamp { get{ return m_Stamp; } }
+ public DateTime TimeStamp => m_Stamp;
+
public int Count
{
- get { return m_Count; }
+ get => m_Count;
set { m_Count = value; m_Stamp = DateTime.UtcNow; }
}
}
@@ -203,28 +204,16 @@ namespace Server.Mobiles
public List RecentlyReported
{
- get
- {
- return m_RecentlyReported;
- }
- set
- {
- m_RecentlyReported = value;
- }
+ get => m_RecentlyReported;
+ set => m_RecentlyReported = value;
}
public List AutoStabled => m_AutoStabled;
public bool NinjaWepCooldown
{
- get
- {
- return m_NinjaWepCooldown;
- }
- set
- {
- m_NinjaWepCooldown = value;
- }
+ get => m_NinjaWepCooldown;
+ set => m_NinjaWepCooldown = value;
}
public List AllFollowers
@@ -246,50 +235,47 @@ namespace Server.Mobiles
else
return m_GuildRank;
}
- set{ m_GuildRank = value; }
+ set => m_GuildRank = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int GuildMessageHue
{
- get{ return m_GuildMessageHue; }
- set{ m_GuildMessageHue = value; }
+ get => m_GuildMessageHue;
+ set => m_GuildMessageHue = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int AllianceMessageHue
{
- get { return m_AllianceMessageHue; }
- set { m_AllianceMessageHue = value; }
+ get => m_AllianceMessageHue;
+ set => m_AllianceMessageHue = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Profession
{
- get{ return m_Profession; }
- set{ m_Profession = value; }
+ get => m_Profession;
+ set => m_Profession = value;
}
public int StepsTaken
{
- get{ return m_StepsTaken; }
- set{ m_StepsTaken = value; }
+ get => m_StepsTaken;
+ set => m_StepsTaken = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool IsStealthing // IsStealthing should be moved to Server.Mobiles
{
- get { return m_IsStealthing; }
- set { m_IsStealthing = value; }
+ get => m_IsStealthing;
+ set => m_IsStealthing = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool IgnoreMobiles // IgnoreMobiles should be moved to Server.Mobiles
{
- get
- {
- return m_IgnoreMobiles;
- }
+ get => m_IgnoreMobiles;
set
{
if ( m_IgnoreMobiles != value )
@@ -303,42 +289,39 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public NpcGuild NpcGuild
{
- get{ return m_NpcGuild; }
- set{ m_NpcGuild = value; }
+ get => m_NpcGuild;
+ set => m_NpcGuild = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime NpcGuildJoinTime
{
- get{ return m_NpcGuildJoinTime; }
- set{ m_NpcGuildJoinTime = value; }
+ get => m_NpcGuildJoinTime;
+ set => m_NpcGuildJoinTime = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime NextBODTurnInTime
{
- get{ return m_NextBODTurnInTime; }
- set{ m_NextBODTurnInTime = value; }
+ get => m_NextBODTurnInTime;
+ set => m_NextBODTurnInTime = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime LastOnline
{
- get{ return m_LastOnline; }
- set{ m_LastOnline = value; }
+ get => m_LastOnline;
+ set => m_LastOnline = value;
}
[CommandProperty( AccessLevel.GameMaster )]
- public long LastMoved
- {
- get{ return LastMoveTime; }
- }
+ public long LastMoved => LastMoveTime;
[CommandProperty( AccessLevel.GameMaster )]
public TimeSpan NpcGuildGameTime
{
- get{ return m_NpcGuildGameTime; }
- set{ m_NpcGuildGameTime = value; }
+ get => m_NpcGuildGameTime;
+ set => m_NpcGuildGameTime = value;
}
private int m_ToTItemsTurnedIn;
@@ -346,8 +329,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int ToTItemsTurnedIn
{
- get { return m_ToTItemsTurnedIn; }
- set { m_ToTItemsTurnedIn = value; }
+ get => m_ToTItemsTurnedIn;
+ set => m_ToTItemsTurnedIn = value;
}
private int m_ToTTotalMonsterFame;
@@ -355,21 +338,21 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public int ToTTotalMonsterFame
{
- get { return m_ToTTotalMonsterFame; }
- set { m_ToTTotalMonsterFame = value; }
+ get => m_ToTTotalMonsterFame;
+ set => m_ToTTotalMonsterFame = value;
}
public int ExecutesLightningStrike
{
- get { return m_ExecutesLightningStrike; }
- set { m_ExecutesLightningStrike = value; }
+ get => m_ExecutesLightningStrike;
+ set => m_ExecutesLightningStrike = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int ToothAche
{
- get { return CandyCane.GetToothAche( this ); }
- set { CandyCane.SetToothAche( this, value ); }
+ get => CandyCane.GetToothAche( this );
+ set => CandyCane.SetToothAche( this, value );
}
#endregion
@@ -377,109 +360,106 @@ namespace Server.Mobiles
#region PlayerFlags
public PlayerFlag Flags
{
- get{ return m_Flags; }
- set{ m_Flags = value; }
+ get => m_Flags;
+ set => m_Flags = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public bool PagingSquelched
{
- get{ return GetFlag( PlayerFlag.PagingSquelched ); }
- set{ SetFlag( PlayerFlag.PagingSquelched, value ); }
+ get => GetFlag( PlayerFlag.PagingSquelched );
+ set => SetFlag( PlayerFlag.PagingSquelched, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Glassblowing
{
- get{ return GetFlag( PlayerFlag.Glassblowing ); }
- set{ SetFlag( PlayerFlag.Glassblowing, value ); }
+ get => GetFlag( PlayerFlag.Glassblowing );
+ set => SetFlag( PlayerFlag.Glassblowing, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool Masonry
{
- get{ return GetFlag( PlayerFlag.Masonry ); }
- set{ SetFlag( PlayerFlag.Masonry, value ); }
+ get => GetFlag( PlayerFlag.Masonry );
+ set => SetFlag( PlayerFlag.Masonry, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool SandMining
{
- get{ return GetFlag( PlayerFlag.SandMining ); }
- set{ SetFlag( PlayerFlag.SandMining, value ); }
+ get => GetFlag( PlayerFlag.SandMining );
+ set => SetFlag( PlayerFlag.SandMining, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool StoneMining
{
- get{ return GetFlag( PlayerFlag.StoneMining ); }
- set{ SetFlag( PlayerFlag.StoneMining, value ); }
+ get => GetFlag( PlayerFlag.StoneMining );
+ set => SetFlag( PlayerFlag.StoneMining, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool ToggleMiningStone
{
- get{ return GetFlag( PlayerFlag.ToggleMiningStone ); }
- set{ SetFlag( PlayerFlag.ToggleMiningStone, value ); }
+ get => GetFlag( PlayerFlag.ToggleMiningStone );
+ set => SetFlag( PlayerFlag.ToggleMiningStone, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool KarmaLocked
{
- get{ return GetFlag( PlayerFlag.KarmaLocked ); }
- set{ SetFlag( PlayerFlag.KarmaLocked, value ); }
+ get => GetFlag( PlayerFlag.KarmaLocked );
+ set => SetFlag( PlayerFlag.KarmaLocked, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool AutoRenewInsurance
{
- get{ return GetFlag( PlayerFlag.AutoRenewInsurance ); }
- set{ SetFlag( PlayerFlag.AutoRenewInsurance, value ); }
+ get => GetFlag( PlayerFlag.AutoRenewInsurance );
+ set => SetFlag( PlayerFlag.AutoRenewInsurance, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool UseOwnFilter
{
- get{ return GetFlag( PlayerFlag.UseOwnFilter ); }
- set{ SetFlag( PlayerFlag.UseOwnFilter, value ); }
+ get => GetFlag( PlayerFlag.UseOwnFilter );
+ set => SetFlag( PlayerFlag.UseOwnFilter, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool PublicMyRunUO
{
- get{ return GetFlag( PlayerFlag.PublicMyRunUO ); }
+ get => GetFlag( PlayerFlag.PublicMyRunUO );
set{ SetFlag( PlayerFlag.PublicMyRunUO, value ); InvalidateMyRunUO(); }
}
[CommandProperty( AccessLevel.GameMaster )]
public bool AcceptGuildInvites
{
- get{ return GetFlag( PlayerFlag.AcceptGuildInvites ); }
- set{ SetFlag( PlayerFlag.AcceptGuildInvites, value ); }
+ get => GetFlag( PlayerFlag.AcceptGuildInvites );
+ set => SetFlag( PlayerFlag.AcceptGuildInvites, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool HasStatReward
{
- get{ return GetFlag( PlayerFlag.HasStatReward ); }
- set{ SetFlag( PlayerFlag.HasStatReward, value ); }
+ get => GetFlag( PlayerFlag.HasStatReward );
+ set => SetFlag( PlayerFlag.HasStatReward, value );
}
[CommandProperty( AccessLevel.GameMaster )]
public bool RefuseTrades
{
- get{ return GetFlag( PlayerFlag.RefuseTrades ); }
- set{ SetFlag( PlayerFlag.RefuseTrades, value ); }
+ get => GetFlag( PlayerFlag.RefuseTrades );
+ set => SetFlag( PlayerFlag.RefuseTrades, value );
}
#endregion
#region Auto Arrow Recovery
private Dictionary m_RecoverableAmmo = new Dictionary();
- public Dictionary RecoverableAmmo
- {
- get { return m_RecoverableAmmo; }
- }
+ public Dictionary RecoverableAmmo => m_RecoverableAmmo;
public void RecoverAmmo()
{
@@ -535,23 +515,20 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public DateTime AnkhNextUse
{
- get{ return m_AnkhNextUse; }
- set{ m_AnkhNextUse = value; }
+ get => m_AnkhNextUse;
+ set => m_AnkhNextUse = value;
}
[CommandProperty( AccessLevel.GameMaster )]
- public TimeSpan DisguiseTimeLeft
- {
- get{ return DisguiseTimers.TimeRemaining( this ); }
- }
+ public TimeSpan DisguiseTimeLeft => DisguiseTimers.TimeRemaining( this );
private DateTime m_PeacedUntil;
[CommandProperty( AccessLevel.GameMaster )]
public DateTime PeacedUntil
{
- get { return m_PeacedUntil; }
- set { m_PeacedUntil = value; }
+ get => m_PeacedUntil;
+ set => m_PeacedUntil = value;
}
#region Scroll of Alacrity
@@ -560,8 +537,8 @@ namespace Server.Mobiles
[CommandProperty(AccessLevel.GameMaster)]
public DateTime AcceleratedStart
{
- get { return m_AcceleratedStart; }
- set { m_AcceleratedStart = value; }
+ get => m_AcceleratedStart;
+ set => m_AcceleratedStart = value;
}
private SkillName m_AcceleratedSkill;
@@ -569,8 +546,8 @@ namespace Server.Mobiles
[CommandProperty(AccessLevel.GameMaster)]
public SkillName AcceleratedSkill
{
- get { return m_AcceleratedSkill; }
- set { m_AcceleratedSkill = value; }
+ get => m_AcceleratedSkill;
+ set => m_AcceleratedSkill = value;
}
#endregion
@@ -704,8 +681,8 @@ namespace Server.Mobiles
public DesignContext DesignContext
{
- get{ return m_DesignContext; }
- set{ m_DesignContext = value; }
+ get => m_DesignContext;
+ set => m_DesignContext = value;
}
public static void Initialize()
@@ -741,13 +718,7 @@ namespace Server.Mobiles
private MountBlock m_MountBlock;
- public BlockMountType MountBlockReason
- {
- get
- {
- return ( CheckBlock( m_MountBlock ) ) ? m_MountBlock.m_Type : BlockMountType.None;
- }
- }
+ public BlockMountType MountBlockReason => ( CheckBlock( m_MountBlock ) ) ? m_MountBlock.m_Type : BlockMountType.None;
private static bool CheckBlock( MountBlock block )
{
@@ -1411,16 +1382,11 @@ namespace Server.Mobiles
}
[CommandProperty( AccessLevel.GameMaster )]
- public override int StamMax
- {
- get{ return base.StamMax + AosAttributes.GetValue( this, AosAttribute.BonusStam ); }
- }
+ public override int StamMax => base.StamMax + AosAttributes.GetValue( this, AosAttribute.BonusStam );
[CommandProperty( AccessLevel.GameMaster )]
- public override int ManaMax
- {
- get{ return base.ManaMax + AosAttributes.GetValue( this, AosAttribute.BonusMana ) + ((Core.ML && Race == Race.Elf) ? 20 : 0); }
- }
+ public override int ManaMax => base.ManaMax + AosAttributes.GetValue( this, AosAttribute.BonusMana ) + ((Core.ML && Race == Race.Elf) ? 20 : 0);
+
#endregion
#region Stat Getters/Setters
@@ -1435,10 +1401,7 @@ namespace Server.Mobiles
return base.Str;
}
- set
- {
- base.Str = value;
- }
+ set => base.Str = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -1451,10 +1414,7 @@ namespace Server.Mobiles
return base.Int;
}
- set
- {
- base.Int = value;
- }
+ set => base.Int = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -1467,10 +1427,7 @@ namespace Server.Mobiles
return base.Dex;
}
- set
- {
- base.Dex = value;
- }
+ set => base.Dex = value;
}
#endregion
@@ -1542,7 +1499,7 @@ namespace Server.Mobiles
return DesignContext.Check( this );
}
- public SkillName[] AnimalFormRestrictedSkills{ get{ return m_AnimalFormRestrictedSkills; } }
+ public SkillName[] AnimalFormRestrictedSkills => m_AnimalFormRestrictedSkills;
private SkillName[] m_AnimalFormRestrictedSkills = new SkillName[]
{
@@ -2618,10 +2575,7 @@ namespace Server.Mobiles
private List- m_EquipSnapshot;
- public List
- EquipSnapshot
- {
- get { return m_EquipSnapshot; }
- }
+ public List
- EquipSnapshot => m_EquipSnapshot;
private bool FindItems_Callback(Item item)
{
@@ -2953,8 +2907,8 @@ namespace Server.Mobiles
public SkillName Learning
{
- get{ return m_Learning; }
- set{ m_Learning = value; }
+ get => m_Learning;
+ set => m_Learning = value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -2969,10 +2923,7 @@ namespace Server.Mobiles
return ts;
}
- set
- {
- m_SavagePaintExpiration = DateTime.UtcNow + value;
- }
+ set => m_SavagePaintExpiration = DateTime.UtcNow + value;
}
[CommandProperty( AccessLevel.GameMaster )]
@@ -3016,15 +2967,15 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public DateTime LastEscortTime
{
- get{ return m_LastEscortTime; }
- set{ m_LastEscortTime = value; }
+ get => m_LastEscortTime;
+ set => m_LastEscortTime = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public DateTime LastPetBallTime
{
- get{ return m_LastPetBallTime; }
- set{ m_LastPetBallTime = value; }
+ get => m_LastPetBallTime;
+ set => m_LastPetBallTime = value;
}
public PlayerMobile()
@@ -3221,15 +3172,9 @@ namespace Server.Mobiles
InvalidateMyRunUO();
}
- public List VisibilityList
- {
- get{ return m_VisList; }
- }
+ public List VisibilityList => m_VisList;
- public List PermaFlags
- {
- get{ return m_PermaFlags; }
- }
+ public List PermaFlags => m_PermaFlags;
public override int Luck => AosAttributes.GetValue( this, AosAttribute.Luck );
@@ -3292,10 +3237,7 @@ namespace Server.Mobiles
private Engines.BulkOrders.BOBFilter m_BOBFilter;
- public Engines.BulkOrders.BOBFilter BOBFilter
- {
- get{ return m_BOBFilter; }
- }
+ public Engines.BulkOrders.BOBFilter BOBFilter => m_BOBFilter;
public override void Deserialize( GenericReader reader )
{
@@ -3767,10 +3709,7 @@ namespace Server.Mobiles
}
[CommandProperty( AccessLevel.GameMaster )]
- public DateTime SessionStart
- {
- get{ return m_SessionStart; }
- }
+ public DateTime SessionStart => m_SessionStart;
[CommandProperty( AccessLevel.GameMaster )]
public TimeSpan GameTime
@@ -3962,17 +3901,14 @@ namespace Server.Mobiles
public bool BedrollLogout
{
- get{ return m_BedrollLogout; }
- set{ m_BedrollLogout = value; }
+ get => m_BedrollLogout;
+ set => m_BedrollLogout = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public override bool Paralyzed
{
- get
- {
- return base.Paralyzed;
- }
+ get => base.Paralyzed;
set
{
base.Paralyzed = value;
@@ -3990,8 +3926,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Ethics.Player EthicPlayer
{
- get { return m_EthicPlayer; }
- set { m_EthicPlayer = value; }
+ get => m_EthicPlayer;
+ set => m_EthicPlayer = value;
}
#endregion
@@ -4000,8 +3936,8 @@ namespace Server.Mobiles
public PlayerState FactionPlayerState
{
- get{ return m_FactionPlayerState; }
- set{ m_FactionPlayerState = value; }
+ get => m_FactionPlayerState;
+ set => m_FactionPlayerState = value;
}
#endregion
@@ -4009,14 +3945,11 @@ namespace Server.Mobiles
private Engines.ConPVP.DuelContext m_DuelContext;
private Engines.ConPVP.DuelPlayer m_DuelPlayer;
- public Engines.ConPVP.DuelContext DuelContext
- {
- get{ return m_DuelContext; }
- }
+ public Engines.ConPVP.DuelContext DuelContext => m_DuelContext;
public Engines.ConPVP.DuelPlayer DuelPlayer
{
- get{ return m_DuelPlayer; }
+ get => m_DuelPlayer;
set
{
bool wasInTourny = ( m_DuelContext != null && !m_DuelContext.Finished && m_DuelContext.m_Tournament != null );
@@ -4043,21 +3976,21 @@ namespace Server.Mobiles
public QuestSystem Quest
{
- get{ return m_Quest; }
- set{ m_Quest = value; }
+ get => m_Quest;
+ set => m_Quest = value;
}
public List DoneQuests
{
- get{ return m_DoneQuests; }
- set{ m_DoneQuests = value; }
+ get => m_DoneQuests;
+ set => m_DoneQuests = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public SolenFriendship SolenFriendship
{
- get{ return m_SolenFriendship; }
- set{ m_SolenFriendship = value; }
+ get => m_SolenFriendship;
+ set => m_SolenFriendship = value;
}
#endregion
@@ -4066,8 +3999,8 @@ namespace Server.Mobiles
public bool ChangedMyRunUO
{
- get{ return m_ChangedMyRunUO; }
- set{ m_ChangedMyRunUO = value; }
+ get => m_ChangedMyRunUO;
+ set => m_ChangedMyRunUO = value;
}
public void InvalidateMyRunUO()
@@ -4159,7 +4092,7 @@ namespace Server.Mobiles
private long m_NextMovementTime;
private bool m_HasMoved;
- public virtual bool UsesFastwalkPrevention{ get{ return ( AccessLevel < AccessLevel.Counselor ); } }
+ public virtual bool UsesFastwalkPrevention => ( AccessLevel < AccessLevel.Counselor );
public override int ComputeMovementSpeed( Direction dir, bool checkTurning )
{
@@ -4216,7 +4149,7 @@ namespace Server.Mobiles
public Type EnemyOfOneType
{
- get{ return m_EnemyOfOneType; }
+ get => m_EnemyOfOneType;
set
{
Type oldType = m_EnemyOfOneType;
@@ -4233,8 +4166,8 @@ namespace Server.Mobiles
public bool WaitingForEnemy
{
- get{ return m_WaitingForEnemy; }
- set{ m_WaitingForEnemy = value; }
+ get => m_WaitingForEnemy;
+ set => m_WaitingForEnemy = value;
}
private void DeltaEnemies( Type oldType, Type newType )
@@ -4325,32 +4258,50 @@ namespace Server.Mobiles
private DateTime m_LastSacrificeLoss;
private int m_AvailableResurrects;
- public DateTime LastSacrificeGain{ get{ return m_LastSacrificeGain; } set{ m_LastSacrificeGain = value; } }
- public DateTime LastSacrificeLoss{ get{ return m_LastSacrificeLoss; } set{ m_LastSacrificeLoss = value; } }
+ public DateTime LastSacrificeGain{ get => m_LastSacrificeGain;
+ set => m_LastSacrificeGain = value;
+ }
+ public DateTime LastSacrificeLoss{ get => m_LastSacrificeLoss;
+ set => m_LastSacrificeLoss = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int AvailableResurrects{ get{ return m_AvailableResurrects; } set{ m_AvailableResurrects = value; } }
+ public int AvailableResurrects{ get => m_AvailableResurrects;
+ set => m_AvailableResurrects = value;
+ }
private DateTime m_NextJustAward;
private DateTime m_LastJusticeLoss;
private List m_JusticeProtectors;
- public DateTime LastJusticeLoss{ get{ return m_LastJusticeLoss; } set{ m_LastJusticeLoss = value; } }
- public List JusticeProtectors { get { return m_JusticeProtectors; } set { m_JusticeProtectors = value; } }
+ public DateTime LastJusticeLoss{ get => m_LastJusticeLoss;
+ set => m_LastJusticeLoss = value;
+ }
+ public List JusticeProtectors { get => m_JusticeProtectors;
+ set => m_JusticeProtectors = value;
+ }
private DateTime m_LastCompassionLoss;
private DateTime m_NextCompassionDay;
private int m_CompassionGains;
- public DateTime LastCompassionLoss{ get{ return m_LastCompassionLoss; } set{ m_LastCompassionLoss = value; } }
+ public DateTime LastCompassionLoss{ get => m_LastCompassionLoss;
+ set => m_LastCompassionLoss = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public DateTime NextCompassionDay{ get{ return m_NextCompassionDay; } set{ m_NextCompassionDay = value; } }
+ public DateTime NextCompassionDay{ get => m_NextCompassionDay;
+ set => m_NextCompassionDay = value;
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int CompassionGains{ get{ return m_CompassionGains; } set{ m_CompassionGains = value; } }
+ public int CompassionGains{ get => m_CompassionGains;
+ set => m_CompassionGains = value;
+ }
private DateTime m_LastValorLoss;
- public DateTime LastValorLoss { get { return m_LastValorLoss; } set { m_LastValorLoss = value; } }
+ public DateTime LastValorLoss { get => m_LastValorLoss;
+ set => m_LastValorLoss = value;
+ }
private DateTime m_LastHonorLoss;
private DateTime m_LastHonorUse;
@@ -4359,18 +4310,28 @@ namespace Server.Mobiles
private HonorContext m_SentHonorContext;
public DateTime m_hontime;
- public DateTime LastHonorLoss{ get{ return m_LastHonorLoss; } set{ m_LastHonorLoss = value; } }
- public DateTime LastHonorUse{ get{ return m_LastHonorUse; } set{ m_LastHonorUse = value; } }
- public bool HonorActive{ get{ return m_HonorActive; } set{ m_HonorActive = value; } }
- public HonorContext ReceivedHonorContext{ get{ return m_ReceivedHonorContext; } set{ m_ReceivedHonorContext = value; } }
- public HonorContext SentHonorContext{ get{ return m_SentHonorContext; } set{ m_SentHonorContext = value; } }
+ public DateTime LastHonorLoss{ get => m_LastHonorLoss;
+ set => m_LastHonorLoss = value;
+ }
+ public DateTime LastHonorUse{ get => m_LastHonorUse;
+ set => m_LastHonorUse = value;
+ }
+ public bool HonorActive{ get => m_HonorActive;
+ set => m_HonorActive = value;
+ }
+ public HonorContext ReceivedHonorContext{ get => m_ReceivedHonorContext;
+ set => m_ReceivedHonorContext = value;
+ }
+ public HonorContext SentHonorContext{ get => m_SentHonorContext;
+ set => m_SentHonorContext = value;
+ }
#endregion
#region Young system
[CommandProperty( AccessLevel.GameMaster )]
public bool Young
{
- get{ return GetFlag( PlayerFlag.Young ); }
+ get => GetFlag( PlayerFlag.Young );
set{ SetFlag( PlayerFlag.Young, value ); InvalidateProperties(); }
}
@@ -4570,7 +4531,7 @@ namespace Server.Mobiles
#region Speech log
private SpeechLog m_SpeechLog;
- public SpeechLog SpeechLog{ get{ return m_SpeechLog; } }
+ public SpeechLog SpeechLog => m_SpeechLog;
public override void OnSpeech( SpeechEventArgs e )
{
@@ -4589,14 +4550,15 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public bool DisplayChampionTitle
{
- get { return GetFlag( PlayerFlag.DisplayChampionTitle ); }
- set { SetFlag( PlayerFlag.DisplayChampionTitle, value ); }
+ get => GetFlag( PlayerFlag.DisplayChampionTitle );
+ set => SetFlag( PlayerFlag.DisplayChampionTitle, value );
}
private ChampionTitleInfo m_ChampionTitles;
[CommandProperty( AccessLevel.GameMaster )]
- public ChampionTitleInfo ChampionTitles { get { return m_ChampionTitles; } set { } }
+ public ChampionTitleInfo ChampionTitles { get => m_ChampionTitles;
+ set { } }
private void ToggleChampionTitleDisplay()
{
@@ -4622,8 +4584,12 @@ namespace Server.Mobiles
private int m_Value;
private DateTime m_LastDecay;
- public int Value { get { return m_Value; } set { m_Value = value; } }
- public DateTime LastDecay { get { return m_LastDecay; } set { m_LastDecay = value; } }
+ public int Value { get => m_Value;
+ set => m_Value = value;
+ }
+ public DateTime LastDecay { get => m_LastDecay;
+ set => m_LastDecay = value;
+ }
public TitleInfo()
{
@@ -4753,31 +4719,49 @@ namespace Server.Mobiles
}
[CommandProperty(AccessLevel.GameMaster)]
- public int Pestilence { get { return GetValue(ChampionSpawnType.Pestilence); } set { SetValue(ChampionSpawnType.Pestilence, value); } }
+ public int Pestilence { get => GetValue(ChampionSpawnType.Pestilence);
+ set => SetValue(ChampionSpawnType.Pestilence, value);
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Abyss { get { return GetValue( ChampionSpawnType.Abyss ); } set { SetValue( ChampionSpawnType.Abyss, value ); } }
+ public int Abyss { get => GetValue( ChampionSpawnType.Abyss );
+ set => SetValue( ChampionSpawnType.Abyss, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Arachnid { get { return GetValue( ChampionSpawnType.Arachnid ); } set { SetValue( ChampionSpawnType.Arachnid, value ); } }
+ public int Arachnid { get => GetValue( ChampionSpawnType.Arachnid );
+ set => SetValue( ChampionSpawnType.Arachnid, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int ColdBlood { get { return GetValue( ChampionSpawnType.ColdBlood ); } set { SetValue( ChampionSpawnType.ColdBlood, value ); } }
+ public int ColdBlood { get => GetValue( ChampionSpawnType.ColdBlood );
+ set => SetValue( ChampionSpawnType.ColdBlood, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int ForestLord { get { return GetValue( ChampionSpawnType.ForestLord ); } set { SetValue( ChampionSpawnType.ForestLord, value ); } }
+ public int ForestLord { get => GetValue( ChampionSpawnType.ForestLord );
+ set => SetValue( ChampionSpawnType.ForestLord, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int SleepingDragon { get { return GetValue( ChampionSpawnType.SleepingDragon ); } set { SetValue( ChampionSpawnType.SleepingDragon, value ); } }
+ public int SleepingDragon { get => GetValue( ChampionSpawnType.SleepingDragon );
+ set => SetValue( ChampionSpawnType.SleepingDragon, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int UnholyTerror { get { return GetValue( ChampionSpawnType.UnholyTerror ); } set { SetValue( ChampionSpawnType.UnholyTerror, value ); } }
+ public int UnholyTerror { get => GetValue( ChampionSpawnType.UnholyTerror );
+ set => SetValue( ChampionSpawnType.UnholyTerror, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int VerminHorde { get { return GetValue( ChampionSpawnType.VerminHorde ); } set { SetValue( ChampionSpawnType.VerminHorde, value ); } }
+ public int VerminHorde { get => GetValue( ChampionSpawnType.VerminHorde );
+ set => SetValue( ChampionSpawnType.VerminHorde, value );
+ }
[CommandProperty( AccessLevel.GameMaster )]
- public int Harrower { get { return m_Harrower; } set { m_Harrower = value; } }
+ public int Harrower { get => m_Harrower;
+ set => m_Harrower = value;
+ }
public ChampionTitleInfo()
{
diff --git a/Scripts/Mobiles/Special/Barracoon.cs b/Scripts/Mobiles/Special/Barracoon.cs
index 54c5c515d..1e31cb40e 100644
--- a/Scripts/Mobiles/Special/Barracoon.cs
+++ b/Scripts/Mobiles/Special/Barracoon.cs
@@ -11,10 +11,11 @@ namespace Server.Mobiles
public override ChampionSkullType SkullType => ChampionSkullType.Greed;
public override Type[] UniqueList => new Type[] { typeof( FangOfRactus ) };
- public override Type[] SharedList{ get{ return new Type[] { typeof( EmbroideredOakLeafCloak ),
- typeof( DjinnisRing ),
- typeof( DetectiveBoots ),
- typeof( GuantletsOfAnger ) }; } }
+ public override Type[] SharedList => new Type[] { typeof( EmbroideredOakLeafCloak ),
+ typeof( DjinnisRing ),
+ typeof( DetectiveBoots ),
+ typeof( GuantletsOfAnger ) };
+
public override Type[] DecorativeList => new Type[] { typeof( SwampTile ), typeof( MonsterStatuette ) };
public override MonsterStatuetteType[] StatueTypes => new MonsterStatuetteType[] { MonsterStatuetteType.Slime };
diff --git a/Scripts/Mobiles/Special/BaseChampion.cs b/Scripts/Mobiles/Special/BaseChampion.cs
index 2df704f37..30ed8ab38 100644
--- a/Scripts/Mobiles/Special/BaseChampion.cs
+++ b/Scripts/Mobiles/Special/BaseChampion.cs
@@ -29,7 +29,7 @@ namespace Server.Mobiles
public abstract Type[] DecorativeList{ get; }
public abstract MonsterStatuetteType[] StatueTypes{ get; }
- public virtual bool NoGoodies{ get{ return false; } }
+ public virtual bool NoGoodies => false;
public override void Serialize( GenericWriter writer )
{
diff --git a/Scripts/Mobiles/Special/DarkGuardian.cs b/Scripts/Mobiles/Special/DarkGuardian.cs
index dbeddb31b..b1a43f544 100644
--- a/Scripts/Mobiles/Special/DarkGuardian.cs
+++ b/Scripts/Mobiles/Special/DarkGuardian.cs
@@ -55,10 +55,7 @@ namespace Server.Mobiles
AddLoot( LootPack.MedScrolls, 2 );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override int TreasureMapLevel => 2;
public override bool BleedImmune => true;
diff --git a/Scripts/Mobiles/Special/Harrower.cs b/Scripts/Mobiles/Special/Harrower.cs
index e3bc16b68..89ac2f24c 100644
--- a/Scripts/Mobiles/Special/Harrower.cs
+++ b/Scripts/Mobiles/Special/Harrower.cs
@@ -7,9 +7,9 @@ namespace Server.Mobiles
{
public class Harrower : BaseCreature
{
- public Type[] UniqueList{ get{ return new Type[] { typeof( AcidProofRobe ) }; } }
- public Type[] SharedList{ get{ return new Type[] { typeof( TheRobeOfBritanniaAri ) }; } }
- public Type[] DecorativeList{ get{ return new Type[] { typeof( EvilIdolSkull ), typeof( SkullPole ) }; } }
+ public Type[] UniqueList => new Type[] { typeof( AcidProofRobe ) };
+ public Type[] SharedList => new Type[] { typeof( TheRobeOfBritanniaAri ) };
+ public Type[] DecorativeList => new Type[] { typeof( EvilIdolSkull ), typeof( SkullPole ) };
private bool m_TrueForm;
private Item m_GateItem;
@@ -49,7 +49,7 @@ namespace Server.Mobiles
private static ArrayList m_Instances = new ArrayList();
- public static ArrayList Instances{ get{ return m_Instances; } }
+ public static ArrayList Instances => m_Instances;
public static Harrower Spawn( Point3D platLoc, Map platMap )
{
@@ -67,13 +67,7 @@ namespace Server.Mobiles
return harrower;
}
- public static bool CanSpawn
- {
- get
- {
- return ( m_Instances.Count == 0 );
- }
- }
+ public static bool CanSpawn => ( m_Instances.Count == 0 );
public override string DefaultName => "the harrower";
diff --git a/Scripts/Mobiles/Special/HarrowerTentacles.cs b/Scripts/Mobiles/Special/HarrowerTentacles.cs
index 6fdae0e24..f200f0cb6 100644
--- a/Scripts/Mobiles/Special/HarrowerTentacles.cs
+++ b/Scripts/Mobiles/Special/HarrowerTentacles.cs
@@ -13,14 +13,8 @@ namespace Server.Mobiles
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Harrower
{
- get
- {
- return m_Harrower;
- }
- set
- {
- m_Harrower = value;
- }
+ get => m_Harrower;
+ set => m_Harrower = value;
}
public override string DefaultName => "tentacles of the harrower";
diff --git a/Scripts/Mobiles/Special/LordOaks.cs b/Scripts/Mobiles/Special/LordOaks.cs
index 3ba4565e2..ad95a1e90 100644
--- a/Scripts/Mobiles/Special/LordOaks.cs
+++ b/Scripts/Mobiles/Special/LordOaks.cs
@@ -12,16 +12,17 @@ namespace Server.Mobiles
public override ChampionSkullType SkullType => ChampionSkullType.Enlightenment;
public override Type[] UniqueList => new Type[] { typeof( OrcChieftainHelm ) };
- public override Type[] SharedList{ get{ return new Type[] { typeof( RoyalGuardSurvivalKnife ),
- typeof( DjinnisRing ),
- typeof( LieutenantOfTheBritannianRoyalGuard ),
- typeof( SamaritanRobe ),
- typeof( DetectiveBoots ),
- typeof( TheMostKnowledgePerson ) }; } }
- public override Type[] DecorativeList{ get{ return new Type[] { typeof( WaterTile ),
- typeof( WindSpirit ),
- typeof( Pier ),
- typeof( DirtPatch )}; } }
+ public override Type[] SharedList => new Type[] { typeof( RoyalGuardSurvivalKnife ),
+ typeof( DjinnisRing ),
+ typeof( LieutenantOfTheBritannianRoyalGuard ),
+ typeof( SamaritanRobe ),
+ typeof( DetectiveBoots ),
+ typeof( TheMostKnowledgePerson ) };
+
+ public override Type[] DecorativeList => new Type[] { typeof( WaterTile ),
+ typeof( WindSpirit ),
+ typeof( Pier ),
+ typeof( DirtPatch )};
public override MonsterStatuetteType[] StatueTypes => new MonsterStatuetteType[] { };
@@ -73,10 +74,7 @@ namespace Server.Mobiles
public override bool BardImmune => !Core.SE;
public override bool Unprovokable => Core.SE;
public override bool Uncalmable => Core.SE;
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override Poison PoisonImmune => Poison.Deadly;
diff --git a/Scripts/Mobiles/Special/Neira.cs b/Scripts/Mobiles/Special/Neira.cs
index f6c90b911..808ae83c7 100644
--- a/Scripts/Mobiles/Special/Neira.cs
+++ b/Scripts/Mobiles/Special/Neira.cs
@@ -9,9 +9,10 @@ namespace Server.Mobiles
public override ChampionSkullType SkullType => ChampionSkullType.Death;
public override Type[] UniqueList => new Type[] { typeof( ShroudOfDeciet ) };
- public override Type[] SharedList{ get{ return new Type[] { typeof( ANecromancerShroud ),
+ public override Type[] SharedList => new Type[] { typeof( ANecromancerShroud ),
+
+ typeof( CaptainJohnsHat ) };
- typeof( CaptainJohnsHat ) }; } }
public override Type[] DecorativeList => new Type[] { typeof( WallBlood ), typeof( TatteredAncientMummyWrapping ) };
public override MonsterStatuetteType[] StatueTypes => new MonsterStatuetteType[] { };
@@ -127,7 +128,7 @@ namespace Server.Mobiles
public Mobile Rider
{
- get { return m_Item.Rider; }
+ get => m_Item.Rider;
set { }
}
@@ -159,10 +160,7 @@ namespace Server.Mobiles
m_Mount = new VirtualMount( this );
}
- public IMount Mount
- {
- get { return m_Mount; }
- }
+ public IMount Mount => m_Mount;
public VirtualMountItem( Serial serial )
: base( serial )
diff --git a/Scripts/Mobiles/Special/Rikktor.cs b/Scripts/Mobiles/Special/Rikktor.cs
index dc341173e..20cf9ff18 100644
--- a/Scripts/Mobiles/Special/Rikktor.cs
+++ b/Scripts/Mobiles/Special/Rikktor.cs
@@ -10,15 +10,16 @@ namespace Server.Mobiles
public override ChampionSkullType SkullType => ChampionSkullType.Power;
public override Type[] UniqueList => new Type[] { typeof( CrownOfTalKeesh ) };
- public override Type[] SharedList{ get{ return new Type[] { typeof( TheMostKnowledgePerson ),
- typeof( BraveKnightOfTheBritannia ),
- typeof( LieutenantOfTheBritannianRoyalGuard ) }; } }
- public override Type[] DecorativeList{ get{ return new Type[] { typeof( LavaTile ),
- typeof( MonsterStatuette ),
- typeof( MonsterStatuette ) }; } }
+ public override Type[] SharedList => new Type[] { typeof( TheMostKnowledgePerson ),
+ typeof( BraveKnightOfTheBritannia ),
+ typeof( LieutenantOfTheBritannianRoyalGuard ) };
- public override MonsterStatuetteType[] StatueTypes{ get{ return new MonsterStatuetteType[] { MonsterStatuetteType.OphidianArchMage,
- MonsterStatuetteType.OphidianWarrior }; } }
+ public override Type[] DecorativeList => new Type[] { typeof( LavaTile ),
+ typeof( MonsterStatuette ),
+ typeof( MonsterStatuette ) };
+
+ public override MonsterStatuetteType[] StatueTypes => new MonsterStatuetteType[] { MonsterStatuetteType.OphidianArchMage,
+ MonsterStatuetteType.OphidianWarrior };
public override string DefaultName => "Rikktor";
diff --git a/Scripts/Mobiles/Special/Serado.cs b/Scripts/Mobiles/Special/Serado.cs
index 380b30eef..f8069bcde 100644
--- a/Scripts/Mobiles/Special/Serado.cs
+++ b/Scripts/Mobiles/Special/Serado.cs
@@ -10,10 +10,11 @@ namespace Server.Mobiles
public override ChampionSkullType SkullType => ChampionSkullType.Power;
public override Type[] UniqueList => new Type[] { typeof( Pacify ) };
- public override Type[] SharedList{ get{ return new Type[] { typeof( BraveKnightOfTheBritannia ),
- typeof( DetectiveBoots ),
- typeof( EmbroideredOakLeafCloak ),
- typeof( LieutenantOfTheBritannianRoyalGuard ) }; } }
+ public override Type[] SharedList => new Type[] { typeof( BraveKnightOfTheBritannia ),
+ typeof( DetectiveBoots ),
+ typeof( EmbroideredOakLeafCloak ),
+ typeof( LieutenantOfTheBritannianRoyalGuard ) };
+
public override Type[] DecorativeList => new Type[] { typeof( Futon ), typeof( SwampTile ) };
public override MonsterStatuetteType[] StatueTypes => new MonsterStatuetteType[] { };
@@ -71,7 +72,7 @@ namespace Server.Mobiles
public override Poison HitPoison => Poison.Lethal;
public override Poison PoisonImmune => Poison.Lethal;
- public override double HitPoisonChance{ get{ return 0.8; } }
+ public override double HitPoisonChance => 0.8;
public override int Feathers => 30;
diff --git a/Scripts/Mobiles/Special/Silvani.cs b/Scripts/Mobiles/Special/Silvani.cs
index 89a9ea3e8..75b858fee 100644
--- a/Scripts/Mobiles/Special/Silvani.cs
+++ b/Scripts/Mobiles/Special/Silvani.cs
@@ -45,10 +45,7 @@ namespace Server.Mobiles
AddLoot( LootPack.UltraRich, 2 );
}
- public override OppositionGroup OppositionGroup
- {
- get{ return OppositionGroup.FeyAndUndead; }
- }
+ public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override bool CanFly => true;
public override bool Unprovokable => true;
diff --git a/Scripts/Mobiles/Townfolk/Banker.cs b/Scripts/Mobiles/Townfolk/Banker.cs
index 9b35fa9c4..afa5bde86 100644
--- a/Scripts/Mobiles/Townfolk/Banker.cs
+++ b/Scripts/Mobiles/Townfolk/Banker.cs
@@ -12,7 +12,7 @@ namespace Server.Mobiles
public class Banker : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override NpcGuild NpcGuild => NpcGuild.MerchantsGuild;
diff --git a/Scripts/Mobiles/Townfolk/BaseEscortable.cs b/Scripts/Mobiles/Townfolk/BaseEscortable.cs
index 5628187df..688f5fee2 100644
--- a/Scripts/Mobiles/Townfolk/BaseEscortable.cs
+++ b/Scripts/Mobiles/Townfolk/BaseEscortable.cs
@@ -97,10 +97,7 @@ namespace Server.Mobiles
private bool m_DeleteCorpse = false;
- public bool IsBeingDeleted
- {
- get { return ( m_DeleteTimer != null ); }
- }
+ public bool IsBeingDeleted => ( m_DeleteTimer != null );
public override bool Commandable => false; // Our master cannot boss us around!
public override bool DeleteCorpseOnDeath => m_DeleteCorpse;
@@ -108,7 +105,7 @@ namespace Server.Mobiles
[CommandProperty(AccessLevel.GameMaster)]
public string Destination
{
- get { return m_Destination == null ? null : m_Destination.Name; }
+ get => m_Destination == null ? null : m_Destination.Name;
set { m_DestinationString = value; m_Destination = EDI.Find(value); }
}
@@ -236,10 +233,7 @@ namespace Server.Mobiles
private static Hashtable m_EscortTable = new Hashtable();
- public static Hashtable EscortTable
- {
- get { return m_EscortTable; }
- }
+ public static Hashtable EscortTable => m_EscortTable;
public virtual bool AcceptEscorter(Mobile m)
{
@@ -661,15 +655,9 @@ namespace Server.Mobiles
private Region m_Region;
//private Rectangle2D[] m_Bounds;
- public string Name
- {
- get { return m_Name; }
- }
+ public string Name => m_Name;
- public Region Region
- {
- get { return m_Region; }
- }
+ public Region Region => m_Region;
/*public Rectangle2D[] Bounds
{
diff --git a/Scripts/Mobiles/Townfolk/TownCrier.cs b/Scripts/Mobiles/Townfolk/TownCrier.cs
index 11a3bb5f7..13f2f3f5e 100644
--- a/Scripts/Mobiles/Townfolk/TownCrier.cs
+++ b/Scripts/Mobiles/Townfolk/TownCrier.cs
@@ -44,7 +44,7 @@ namespace Server.Mobiles
}
}
- public bool IsEmpty{ get{ return ( m_Entries == null || m_Entries.Count == 0 ); } }
+ public bool IsEmpty => ( m_Entries == null || m_Entries.Count == 0 );
public GlobalTownCrierEntryList()
{
@@ -52,10 +52,7 @@ namespace Server.Mobiles
private List m_Entries;
- public List Entries
- {
- get{ return m_Entries; }
- }
+ public List Entries => m_Entries;
public TownCrierEntry GetRandomEntry()
{
@@ -113,9 +110,9 @@ namespace Server.Mobiles
private string[] m_Lines;
private DateTime m_ExpireTime;
- public string[] Lines{ get{ return m_Lines; } }
- public DateTime ExpireTime{ get{ return m_ExpireTime; } }
- public bool Expired{ get{ return ( DateTime.UtcNow >= m_ExpireTime ); } }
+ public string[] Lines => m_Lines;
+ public DateTime ExpireTime => m_ExpireTime;
+ public bool Expired => ( DateTime.UtcNow >= m_ExpireTime );
public TownCrierEntry( string[] lines, TimeSpan duration )
{
@@ -325,10 +322,7 @@ namespace Server.Mobiles
private Timer m_NewsTimer;
private Timer m_AutoShoutTimer;
- public List Entries
- {
- get{ return m_Entries; }
- }
+ public List Entries => m_Entries;
public TownCrierEntry GetRandomEntry()
{
@@ -472,10 +466,7 @@ namespace Server.Mobiles
private static List m_Instances = new List();
- public static List Instances
- {
- get{ return m_Instances; }
- }
+ public static List Instances => m_Instances;
[Constructible]
public TownCrier()
diff --git a/Scripts/Mobiles/Vendors/AnimalBuy.cs b/Scripts/Mobiles/Vendors/AnimalBuy.cs
index 6f895d828..b2c57235d 100644
--- a/Scripts/Mobiles/Vendors/AnimalBuy.cs
+++ b/Scripts/Mobiles/Vendors/AnimalBuy.cs
@@ -15,12 +15,6 @@ namespace Server.Mobiles
m_ControlSlots = controlSlots;
}
- public override int ControlSlots
- {
- get
- {
- return m_ControlSlots;
- }
- }
+ public override int ControlSlots => m_ControlSlots;
}
}
\ No newline at end of file
diff --git a/Scripts/Mobiles/Vendors/BaseVendor.cs b/Scripts/Mobiles/Vendors/BaseVendor.cs
index 23d1ade38..fec9d97e8 100644
--- a/Scripts/Mobiles/Vendors/BaseVendor.cs
+++ b/Scripts/Mobiles/Vendors/BaseVendor.cs
@@ -48,7 +48,9 @@ namespace Server.Mobiles
public override bool IsInvulnerable => true;
- public virtual DateTime NextTrickOrTreat { get { return m_NextTrickOrTreat; } set { m_NextTrickOrTreat = value; } }
+ public virtual DateTime NextTrickOrTreat { get => m_NextTrickOrTreat;
+ set => m_NextTrickOrTreat = value;
+ }
public override bool ShowFameTitle => false;
@@ -186,23 +188,11 @@ namespace Server.Mobiles
public DateTime LastRestock
{
- get
- {
- return m_LastRestock;
- }
- set
- {
- m_LastRestock = value;
- }
+ get => m_LastRestock;
+ set => m_LastRestock = value;
}
- public virtual TimeSpan RestockDelay
- {
- get
- {
- return TimeSpan.FromHours( 1 );
- }
- }
+ public virtual TimeSpan RestockDelay => TimeSpan.FromHours( 1 );
public Container BuyPack
{
@@ -220,7 +210,7 @@ namespace Server.Mobiles
public abstract void InitSBInfo();
- public virtual bool IsTokunoVendor { get { return ( Map == Map.Tokuno ); } }
+ public virtual bool IsTokunoVendor => ( Map == Map.Tokuno );
protected void LoadSBInfo()
{
@@ -292,10 +282,7 @@ namespace Server.Mobiles
return Utility.RandomNeutralHue();
}
- public virtual VendorShoeType ShoeType
- {
- get { return VendorShoeType.Shoes; }
- }
+ public virtual VendorShoeType ShoeType => VendorShoeType.Shoes;
public virtual void CheckMorph()
{
diff --git a/Scripts/Mobiles/Vendors/GenericBuy.cs b/Scripts/Mobiles/Vendors/GenericBuy.cs
index d49d334aa..dcacec965 100644
--- a/Scripts/Mobiles/Vendors/GenericBuy.cs
+++ b/Scripts/Mobiles/Vendors/GenericBuy.cs
@@ -110,9 +110,10 @@ namespace Server.Mobiles
private object[] m_Args;
private IEntity m_DisplayEntity;
- public virtual int ControlSlots{ get{ return 0; } }
+ public virtual int ControlSlots => 0;
- public virtual bool CanCacheDisplay{ get{ return false; } } //return ( m_Args == null || m_Args.Length == 0 ); }
+ public virtual bool CanCacheDisplay //return ( m_Args == null || m_Args.Length == 0 ); }
+ => false;
private bool IsDeleted( IEntity obj )
{
@@ -148,24 +149,24 @@ namespace Server.Mobiles
public Type Type
{
- get{ return m_Type; }
- set{ m_Type = value; }
+ get => m_Type;
+ set => m_Type = value;
}
public string Name
{
- get{ return m_Name; }
- set{ m_Name = value; }
+ get => m_Name;
+ set => m_Name = value;
}
- public int DefaultPrice{ get{ return m_PriceScalar; } }
+ public int DefaultPrice => m_PriceScalar;
private int m_PriceScalar;
public int PriceScalar
{
- get{ return m_PriceScalar; }
- set{ m_PriceScalar = value; }
+ get => m_PriceScalar;
+ set => m_PriceScalar = value;
}
public int Price
@@ -193,37 +194,37 @@ namespace Server.Mobiles
return m_Price;
}
- set{ m_Price = value; }
+ set => m_Price = value;
}
public int ItemID
{
- get{ return m_ItemID; }
- set{ m_ItemID = value; }
+ get => m_ItemID;
+ set => m_ItemID = value;
}
public int Hue
{
- get{ return m_Hue; }
- set{ m_Hue = value; }
+ get => m_Hue;
+ set => m_Hue = value;
}
public int Amount
{
- get{ return m_Amount; }
+ get => m_Amount;
set{ if ( value < 0 ) value = 0; m_Amount = value; }
}
public int MaxAmount
{
- get{ return m_MaxAmount; }
- set{ m_MaxAmount = value; }
+ get => m_MaxAmount;
+ set => m_MaxAmount = value;
}
public object[] Args
{
- get{ return m_Args; }
- set{ m_Args = value; }
+ get => m_Args;
+ set => m_Args = value;
}
public GenericBuyInfo( Type type, int price, int amount, int itemID, int hue ) : this( null, type, price, amount, itemID, hue, null )
diff --git a/Scripts/Mobiles/Vendors/NPC/Alchemist.cs b/Scripts/Mobiles/Vendors/NPC/Alchemist.cs
index 6c5f1c6ca..39509201e 100644
--- a/Scripts/Mobiles/Vendors/NPC/Alchemist.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Alchemist.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Alchemist : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override NpcGuild NpcGuild => NpcGuild.MagesGuild;
@@ -21,10 +21,7 @@ namespace Server.Mobiles
m_SBInfos.Add( new SBAlchemist() );
}
- public override VendorShoeType ShoeType
- {
- get{ return Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals; }
- }
+ public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals;
public override void InitOutfit()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/AnimalTrainer.cs b/Scripts/Mobiles/Vendors/NPC/AnimalTrainer.cs
index b686a53e2..e7816680c 100644
--- a/Scripts/Mobiles/Vendors/NPC/AnimalTrainer.cs
+++ b/Scripts/Mobiles/Vendors/NPC/AnimalTrainer.cs
@@ -11,7 +11,7 @@ namespace Server.Mobiles
public class AnimalTrainer : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public AnimalTrainer() : base( "the animal trainer" )
@@ -26,10 +26,7 @@ namespace Server.Mobiles
m_SBInfos.Add( new SBAnimalTrainer() );
}
- public override VendorShoeType ShoeType
- {
- get{ return Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots; }
- }
+ public override VendorShoeType ShoeType => Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots;
public override int GetShoeHue()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Architect.cs b/Scripts/Mobiles/Vendors/NPC/Architect.cs
index 1bd353cd3..985da8934 100644
--- a/Scripts/Mobiles/Vendors/NPC/Architect.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Architect.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Architect : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override NpcGuild NpcGuild => NpcGuild.TinkersGuild;
diff --git a/Scripts/Mobiles/Vendors/NPC/Armorer.cs b/Scripts/Mobiles/Vendors/NPC/Armorer.cs
index fa0055270..4772ab7ad 100644
--- a/Scripts/Mobiles/Vendors/NPC/Armorer.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Armorer.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Armorer : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public Armorer() : base( "the armorer" )
@@ -60,10 +60,7 @@ namespace Server.Mobiles
}
}
- public override VendorShoeType ShoeType
- {
- get{ return VendorShoeType.Boots; }
- }
+ public override VendorShoeType ShoeType => VendorShoeType.Boots;
public override void InitOutfit()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Baker.cs b/Scripts/Mobiles/Vendors/NPC/Baker.cs
index a3da58664..48766c918 100644
--- a/Scripts/Mobiles/Vendors/NPC/Baker.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Baker.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Baker : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public Baker() : base( "the baker" )
diff --git a/Scripts/Mobiles/Vendors/NPC/Bard.cs b/Scripts/Mobiles/Vendors/NPC/Bard.cs
index 3818f6f1e..627d6d870 100644
--- a/Scripts/Mobiles/Vendors/NPC/Bard.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Bard.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Bard : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override NpcGuild NpcGuild => NpcGuild.BardsGuild;
diff --git a/Scripts/Mobiles/Vendors/NPC/Barkeeper.cs b/Scripts/Mobiles/Vendors/NPC/Barkeeper.cs
index cfdced256..bbe7944dd 100644
--- a/Scripts/Mobiles/Vendors/NPC/Barkeeper.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Barkeeper.cs
@@ -6,7 +6,7 @@ namespace Server.Mobiles
public class Barkeeper : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override void InitSBInfo()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Beekeeper.cs b/Scripts/Mobiles/Vendors/NPC/Beekeeper.cs
index f94478fbc..82fb67c77 100644
--- a/Scripts/Mobiles/Vendors/NPC/Beekeeper.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Beekeeper.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Beekeeper : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public Beekeeper() : base( "the beekeeper" )
diff --git a/Scripts/Mobiles/Vendors/NPC/Blacksmith.cs b/Scripts/Mobiles/Vendors/NPC/Blacksmith.cs
index df7c5f32e..854da9d0a 100644
--- a/Scripts/Mobiles/Vendors/NPC/Blacksmith.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Blacksmith.cs
@@ -7,7 +7,7 @@ namespace Server.Mobiles
public class Blacksmith : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override NpcGuild NpcGuild => NpcGuild.BlacksmithsGuild;
@@ -52,10 +52,7 @@ namespace Server.Mobiles
}
}
- public override VendorShoeType ShoeType
- {
- get{ return VendorShoeType.None; }
- }
+ public override VendorShoeType ShoeType => VendorShoeType.None;
public override void InitOutfit()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Bowyer.cs b/Scripts/Mobiles/Vendors/NPC/Bowyer.cs
index 5ad3a256d..9dcf7f11f 100644
--- a/Scripts/Mobiles/Vendors/NPC/Bowyer.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Bowyer.cs
@@ -6,7 +6,7 @@ namespace Server.Mobiles
public class Bowyer : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public Bowyer() : base( "the bowyer" )
@@ -15,10 +15,7 @@ namespace Server.Mobiles
SetSkill( SkillName.Archery, 80.0, 100.0 );
}
- public override VendorShoeType ShoeType
- {
- get{ return Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots; }
- }
+ public override VendorShoeType ShoeType => Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots;
public override int GetShoeHue()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Butcher.cs b/Scripts/Mobiles/Vendors/NPC/Butcher.cs
index 628b4eb68..ffb64676f 100644
--- a/Scripts/Mobiles/Vendors/NPC/Butcher.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Butcher.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Butcher : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public Butcher() : base( "the butcher" )
diff --git a/Scripts/Mobiles/Vendors/NPC/Carpenter.cs b/Scripts/Mobiles/Vendors/NPC/Carpenter.cs
index fb553ea82..bea241485 100644
--- a/Scripts/Mobiles/Vendors/NPC/Carpenter.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Carpenter.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Carpenter : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override NpcGuild NpcGuild => NpcGuild.TinkersGuild;
diff --git a/Scripts/Mobiles/Vendors/NPC/Cobbler.cs b/Scripts/Mobiles/Vendors/NPC/Cobbler.cs
index 21e475192..3c47375a9 100644
--- a/Scripts/Mobiles/Vendors/NPC/Cobbler.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Cobbler.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Cobbler : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public Cobbler() : base( "the cobbler" )
@@ -18,10 +18,7 @@ namespace Server.Mobiles
m_SBInfos.Add( new SBCobbler() );
}
- public override VendorShoeType ShoeType
- {
- get{ return Utility.RandomBool() ? VendorShoeType.Sandals : VendorShoeType.Shoes; }
- }
+ public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Sandals : VendorShoeType.Shoes;
public Cobbler( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Cook.cs b/Scripts/Mobiles/Vendors/NPC/Cook.cs
index e1b2de14c..6673461e2 100644
--- a/Scripts/Mobiles/Vendors/NPC/Cook.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Cook.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Cook : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public Cook() : base( "the cook" )
@@ -22,10 +22,7 @@ namespace Server.Mobiles
m_SBInfos.Add( new SBSECook() );
}
- public override VendorShoeType ShoeType
- {
- get{ return Utility.RandomBool() ? VendorShoeType.Sandals : VendorShoeType.Shoes; }
- }
+ public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Sandals : VendorShoeType.Shoes;
public override void InitOutfit()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/CustomHairstylist.cs b/Scripts/Mobiles/Vendors/NPC/CustomHairstylist.cs
index f35d3ac4f..c2f553fe1 100644
--- a/Scripts/Mobiles/Vendors/NPC/CustomHairstylist.cs
+++ b/Scripts/Mobiles/Vendors/NPC/CustomHairstylist.cs
@@ -8,7 +8,7 @@ namespace Server.Mobiles
public class CustomHairstylist : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override bool ClickTitle => false;
@@ -59,10 +59,7 @@ namespace Server.Mobiles
return Utility.RandomBrightHue();
}
- public override VendorShoeType ShoeType
- {
- get{ return Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals; }
- }
+ public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals;
public override void InitOutfit()
{
@@ -103,12 +100,12 @@ namespace Server.Mobiles
private Type m_GumpType;
private object[] m_GumpArgs;
- public int Title{ get{ return m_Title; } }
- public string TitleString{ get{ return m_TitleString; } }
- public int Price{ get{ return m_Price; } }
- public bool FacialHair{ get{ return m_FacialHair; } }
- public Type GumpType{ get{ return m_GumpType; } }
- public object[] GumpArgs{ get{ return m_GumpArgs; } }
+ public int Title => m_Title;
+ public string TitleString => m_TitleString;
+ public int Price => m_Price;
+ public bool FacialHair => m_FacialHair;
+ public Type GumpType => m_GumpType;
+ public object[] GumpArgs => m_GumpArgs;
public HairstylistBuyInfo( int title, int price, bool facialHair, Type gumpType, object[] args )
{
@@ -236,8 +233,8 @@ namespace Server.Mobiles
private string m_Name;
private int[] m_Hues;
- public string Name{ get{ return m_Name; } }
- public int[] Hues{ get{ return m_Hues; } }
+ public string Name => m_Name;
+ public int[] Hues => m_Hues;
public ChangeHairHueEntry( string name, int[] hues )
{
@@ -396,10 +393,10 @@ namespace Server.Mobiles
private int m_GumpID;
private int m_X, m_Y;
- public int ItemID{ get{ return m_ItemID; } }
- public int GumpID{ get{ return m_GumpID; } }
- public int X{ get{ return m_X; } }
- public int Y{ get{ return m_Y; } }
+ public int ItemID => m_ItemID;
+ public int GumpID => m_GumpID;
+ public int X => m_X;
+ public int Y => m_Y;
public ChangeHairstyleEntry( int gumpID, int x, int y, int itemID )
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Farmer.cs b/Scripts/Mobiles/Vendors/NPC/Farmer.cs
index 75517a6bc..0e8d049f9 100644
--- a/Scripts/Mobiles/Vendors/NPC/Farmer.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Farmer.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Farmer : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public Farmer() : base( "the farmer" )
@@ -20,10 +20,7 @@ namespace Server.Mobiles
m_SBInfos.Add( new SBFarmer() );
}
- public override VendorShoeType ShoeType
- {
- get{ return VendorShoeType.ThighBoots; }
- }
+ public override VendorShoeType ShoeType => VendorShoeType.ThighBoots;
public override int GetShoeHue()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Fisherman.cs b/Scripts/Mobiles/Vendors/NPC/Fisherman.cs
index 97a998d02..3ba180801 100644
--- a/Scripts/Mobiles/Vendors/NPC/Fisherman.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Fisherman.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Fisherman : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override NpcGuild NpcGuild => NpcGuild.FishermensGuild;
diff --git a/Scripts/Mobiles/Vendors/NPC/Furtrader.cs b/Scripts/Mobiles/Vendors/NPC/Furtrader.cs
index ef1538690..067c74322 100644
--- a/Scripts/Mobiles/Vendors/NPC/Furtrader.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Furtrader.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Furtrader : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public Furtrader() : base( "the furtrader" )
diff --git a/Scripts/Mobiles/Vendors/NPC/Glassblower.cs b/Scripts/Mobiles/Vendors/NPC/Glassblower.cs
index 956ff8e0e..ed3a0bcfc 100644
--- a/Scripts/Mobiles/Vendors/NPC/Glassblower.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Glassblower.cs
@@ -6,7 +6,7 @@ namespace Server.Mobiles
public class Glassblower : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override NpcGuild NpcGuild => NpcGuild.MagesGuild;
diff --git a/Scripts/Mobiles/Vendors/NPC/GolemCrafter.cs b/Scripts/Mobiles/Vendors/NPC/GolemCrafter.cs
index 81f2471c6..0026c6ddc 100644
--- a/Scripts/Mobiles/Vendors/NPC/GolemCrafter.cs
+++ b/Scripts/Mobiles/Vendors/NPC/GolemCrafter.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class GolemCrafter : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public GolemCrafter() : base( "the golem crafter" )
diff --git a/Scripts/Mobiles/Vendors/NPC/Guildmasters/BaseGuildmaster.cs b/Scripts/Mobiles/Vendors/NPC/Guildmasters/BaseGuildmaster.cs
index f4b9c5655..06373e5a5 100644
--- a/Scripts/Mobiles/Vendors/NPC/Guildmasters/BaseGuildmaster.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Guildmasters/BaseGuildmaster.cs
@@ -8,18 +8,18 @@ namespace Server.Mobiles
public abstract class BaseGuildmaster : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override bool IsActiveVendor => false;
public override bool ClickTitle => false;
- public virtual int JoinCost{ get{ return 500; } }
+ public virtual int JoinCost => 500;
- public virtual TimeSpan JoinAge{ get{ return TimeSpan.FromDays( 0.0 ); } }
- public virtual TimeSpan JoinGameAge{ get{ return TimeSpan.FromDays( 2.0 ); } }
- public virtual TimeSpan QuitAge{ get{ return TimeSpan.FromDays( 7.0 ); } }
- public virtual TimeSpan QuitGameAge{ get{ return TimeSpan.FromDays( 4.0 ); } }
+ public virtual TimeSpan JoinAge => TimeSpan.FromDays( 0.0 );
+ public virtual TimeSpan JoinGameAge => TimeSpan.FromDays( 2.0 );
+ public virtual TimeSpan QuitAge => TimeSpan.FromDays( 7.0 );
+ public virtual TimeSpan QuitGameAge => TimeSpan.FromDays( 4.0 );
public override void InitSBInfo()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Guildmasters/BlacksmithGuildmaster.cs b/Scripts/Mobiles/Vendors/NPC/Guildmasters/BlacksmithGuildmaster.cs
index ef2989ad0..9cfbec0c3 100644
--- a/Scripts/Mobiles/Vendors/NPC/Guildmasters/BlacksmithGuildmaster.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Guildmasters/BlacksmithGuildmaster.cs
@@ -21,10 +21,7 @@ namespace Server.Mobiles
SBInfos.Add( new SBBlacksmith() );
}
- public override VendorShoeType ShoeType
- {
- get{ return VendorShoeType.ThighBoots; }
- }
+ public override VendorShoeType ShoeType => VendorShoeType.ThighBoots;
public override void InitOutfit()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Guildmasters/HealerGuildmaster.cs b/Scripts/Mobiles/Vendors/NPC/Guildmasters/HealerGuildmaster.cs
index a760e917d..366f43f40 100644
--- a/Scripts/Mobiles/Vendors/NPC/Guildmasters/HealerGuildmaster.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Guildmasters/HealerGuildmaster.cs
@@ -14,10 +14,7 @@ namespace Server.Mobiles
SetSkill( SkillName.SpiritSpeak, 65.0, 88.0 );
}
- public override VendorShoeType ShoeType
- {
- get{ return VendorShoeType.Sandals; }
- }
+ public override VendorShoeType ShoeType => VendorShoeType.Sandals;
public override void InitOutfit()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Guildmasters/MageGuildmaster.cs b/Scripts/Mobiles/Vendors/NPC/Guildmasters/MageGuildmaster.cs
index ffaf52bba..6cc308320 100644
--- a/Scripts/Mobiles/Vendors/NPC/Guildmasters/MageGuildmaster.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Guildmasters/MageGuildmaster.cs
@@ -16,10 +16,7 @@ namespace Server.Mobiles
SetSkill( SkillName.Macing, 36.0, 68.0 );
}
- public override VendorShoeType ShoeType
- {
- get{ return Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals; }
- }
+ public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals;
public override void InitOutfit()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/GypsyAnimalTrainer.cs b/Scripts/Mobiles/Vendors/NPC/GypsyAnimalTrainer.cs
index a1b0db061..a456135b1 100644
--- a/Scripts/Mobiles/Vendors/NPC/GypsyAnimalTrainer.cs
+++ b/Scripts/Mobiles/Vendors/NPC/GypsyAnimalTrainer.cs
@@ -11,10 +11,7 @@ namespace Server.Mobiles
Title = "the gypsy animal herder";
}
- public override VendorShoeType ShoeType
- {
- get{ return Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots; }
- }
+ public override VendorShoeType ShoeType => Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots;
public override int GetShoeHue()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/GypsyMaiden.cs b/Scripts/Mobiles/Vendors/NPC/GypsyMaiden.cs
index c680c9ca9..5efb26b11 100644
--- a/Scripts/Mobiles/Vendors/NPC/GypsyMaiden.cs
+++ b/Scripts/Mobiles/Vendors/NPC/GypsyMaiden.cs
@@ -6,7 +6,7 @@ namespace Server.Mobiles
public class GypsyMaiden : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public GypsyMaiden() : base( "the gypsy maiden" )
diff --git a/Scripts/Mobiles/Vendors/NPC/HairStylist.cs b/Scripts/Mobiles/Vendors/NPC/HairStylist.cs
index a180e71a5..a09ede1ac 100644
--- a/Scripts/Mobiles/Vendors/NPC/HairStylist.cs
+++ b/Scripts/Mobiles/Vendors/NPC/HairStylist.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class HairStylist : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public HairStylist() : base( "the hair stylist" )
diff --git a/Scripts/Mobiles/Vendors/NPC/Herbalist.cs b/Scripts/Mobiles/Vendors/NPC/Herbalist.cs
index 5e9e3b71d..211423e75 100644
--- a/Scripts/Mobiles/Vendors/NPC/Herbalist.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Herbalist.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Herbalist : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
public override NpcGuild NpcGuild => NpcGuild.MagesGuild;
@@ -22,10 +22,7 @@ namespace Server.Mobiles
m_SBInfos.Add( new SBHerbalist() );
}
- public override VendorShoeType ShoeType
- {
- get{ return Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals; }
- }
+ public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Shoes : VendorShoeType.Sandals;
public Herbalist( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Vendors/NPC/HolyMage.cs b/Scripts/Mobiles/Vendors/NPC/HolyMage.cs
index 7fb87f821..831a21f7b 100644
--- a/Scripts/Mobiles/Vendors/NPC/HolyMage.cs
+++ b/Scripts/Mobiles/Vendors/NPC/HolyMage.cs
@@ -6,7 +6,7 @@ namespace Server.Mobiles
public class HolyMage : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public HolyMage() : base( "the Holy Mage" )
diff --git a/Scripts/Mobiles/Vendors/NPC/InnKeeper.cs b/Scripts/Mobiles/Vendors/NPC/InnKeeper.cs
index ecf1f3529..0918970cb 100644
--- a/Scripts/Mobiles/Vendors/NPC/InnKeeper.cs
+++ b/Scripts/Mobiles/Vendors/NPC/InnKeeper.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class InnKeeper : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public InnKeeper() : base( "the innkeeper" )
@@ -20,10 +20,7 @@ namespace Server.Mobiles
m_SBInfos.Add( new SBSEFood() );
}
- public override VendorShoeType ShoeType
- {
- get{ return Utility.RandomBool() ? VendorShoeType.Sandals : VendorShoeType.Shoes; }
- }
+ public override VendorShoeType ShoeType => Utility.RandomBool() ? VendorShoeType.Sandals : VendorShoeType.Shoes;
public InnKeeper( Serial serial ) : base( serial )
{
diff --git a/Scripts/Mobiles/Vendors/NPC/IronWorker.cs b/Scripts/Mobiles/Vendors/NPC/IronWorker.cs
index 60eaad638..bd1bc6850 100644
--- a/Scripts/Mobiles/Vendors/NPC/IronWorker.cs
+++ b/Scripts/Mobiles/Vendors/NPC/IronWorker.cs
@@ -6,7 +6,7 @@ namespace Server.Mobiles
public class IronWorker : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public IronWorker() : base( "the iron worker" )
@@ -40,10 +40,7 @@ namespace Server.Mobiles
m_SBInfos.Add( new SBLeatherArmor() );
}
- public override VendorShoeType ShoeType
- {
- get{ return VendorShoeType.None; }
- }
+ public override VendorShoeType ShoeType => VendorShoeType.None;
public override void InitOutfit()
{
diff --git a/Scripts/Mobiles/Vendors/NPC/Jeweler.cs b/Scripts/Mobiles/Vendors/NPC/Jeweler.cs
index 3989a7051..766ffcf79 100644
--- a/Scripts/Mobiles/Vendors/NPC/Jeweler.cs
+++ b/Scripts/Mobiles/Vendors/NPC/Jeweler.cs
@@ -5,7 +5,7 @@ namespace Server.Mobiles
public class Jeweler : BaseVendor
{
private List m_SBInfos = new List();
- protected override List SBInfos{ get { return m_SBInfos; } }
+ protected override List SBInfos => m_SBInfos;
[Constructible]
public Jeweler() : base( "the jeweler" )
diff --git a/Scripts/Mobiles/Vendors/NPC/KeeperOfChivalry.cs b/Scripts/Mobiles/Vendors/NPC/KeeperOfChivalry.cs
index d2e3c4729..4b3feee63 100644
--- a/Scripts/Mobiles/Vendors/NPC/KeeperOfChivalry.cs
+++ b/Scripts/Mobiles/Vendors/NPC/KeeperOfChivalry.cs
@@ -6,7 +6,7 @@ namespace Server.Mobiles
public class KeeperOfChivalry : BaseVendor
{
private List