From 455b11de9c57dc2bb5910017593c71ab4cd09087 Mon Sep 17 00:00:00 2001
From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com>
Date: Fri, 11 Aug 2023 00:09:56 -0700
Subject: [PATCH] fix: Updates schema generator to 2.6.4 (#1452)
---
.config/dotnet-tools.json | 2 +-
Projects/Server/Mobiles/Mods/MobileMod.cs | 6 ++----
Projects/Server/Server.csproj | 2 +-
.../UOContent/Items/Skill Items/Magical/Runebook.cs | 12 +++++++-----
Projects/UOContent/UOContent.csproj | 2 +-
5 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
index 3aec5f0cc6..f65370008f 100644
--- a/.config/dotnet-tools.json
+++ b/.config/dotnet-tools.json
@@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"modernuoschemagenerator": {
- "version": "2.6.1",
+ "version": "2.6.4",
"commands": [
"ModernUOSchemaGenerator"
]
diff --git a/Projects/Server/Mobiles/Mods/MobileMod.cs b/Projects/Server/Mobiles/Mods/MobileMod.cs
index 8394e8dee7..c5abec9267 100644
--- a/Projects/Server/Mobiles/Mods/MobileMod.cs
+++ b/Projects/Server/Mobiles/Mods/MobileMod.cs
@@ -26,11 +26,9 @@ public partial class MobileMod
[SerializableField(0)]
private string _name;
- public MobileMod(Mobile owner) => Owner = owner;
-
- public MobileMod(Mobile owner, string name)
+ public MobileMod(Mobile owner, string name = null)
{
Owner = owner;
- Name = name;
+ _name = name;
}
}
diff --git a/Projects/Server/Server.csproj b/Projects/Server/Server.csproj
index 5983ad7a19..8e89619b73 100755
--- a/Projects/Server/Server.csproj
+++ b/Projects/Server/Server.csproj
@@ -38,7 +38,7 @@
-
+
diff --git a/Projects/UOContent/Items/Skill Items/Magical/Runebook.cs b/Projects/UOContent/Items/Skill Items/Magical/Runebook.cs
index 856aa774c7..2fb09549c2 100644
--- a/Projects/UOContent/Items/Skill Items/Magical/Runebook.cs
+++ b/Projects/UOContent/Items/Skill Items/Magical/Runebook.cs
@@ -403,11 +403,13 @@ public partial class RunebookEntry
[SerializableFieldSaveFlag(3)]
public bool ShouldSerializeDesc() => _house?.Deleted != false;
- public RunebookEntry(Runebook runebook) : this(runebook, new Point3D(), null, null)
- {
- }
-
- public RunebookEntry(Runebook runebook, Point3D loc, Map map, string description, BaseHouse house = null)
+ public RunebookEntry(
+ Runebook runebook,
+ Point3D loc = new(),
+ Map map = null,
+ string description = null,
+ BaseHouse house = null
+ )
{
_runebook = runebook;
_house = house;
diff --git a/Projects/UOContent/UOContent.csproj b/Projects/UOContent/UOContent.csproj
index 5854f9e761..dd16d48b38 100755
--- a/Projects/UOContent/UOContent.csproj
+++ b/Projects/UOContent/UOContent.csproj
@@ -39,7 +39,7 @@
-
+