fix(core): Removes implicit cast between Serial and uint (#728)

* Fixes spellbooks using serial ctor
* Fixes misc items where someone thought they had an amount and it didn't
* Fixes all `Food` types.
This commit is contained in:
Kamron Batman 2021-08-25 00:27:19 -07:00 • committed by GitHub
parent 17521c9cd7
commit 0dc4acc164
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 319 additions and 248 deletions

View file

@ -35,11 +35,11 @@ namespace Server.Tests.Network
[Fact]
public void TestChangeCharacter()
{
var firstMobile = new Mobile(0x1);
var firstMobile = new Mobile((Serial)0x1);
firstMobile.DefaultMobileInit();
firstMobile.RawName = "Test Mobile";
var secondMobile = new Mobile(0x2);
var secondMobile = new Mobile((Serial)0x2);
secondMobile.DefaultMobileInit();
secondMobile.RawName = null;
@ -98,7 +98,7 @@ namespace Server.Tests.Network
[Theory, InlineData(ProtocolChanges.Version70610), InlineData(ProtocolChanges.Version6000)]
public void TestSupportedFeatures(ProtocolChanges protocolChanges)
{
var firstMobile = new Mobile(0x1);
var firstMobile = new Mobile((Serial)0x1);
firstMobile.DefaultMobileInit();
firstMobile.Name = "Test Mobile";
@ -123,7 +123,7 @@ namespace Server.Tests.Network
[Fact]
public void TestLoginConfirm()
{
var m = new Mobile(0x1);
var m = new Mobile((Serial)0x1);
m.DefaultMobileInit();
m.Body = 0x100;
m.X = 100;
@ -156,7 +156,7 @@ namespace Server.Tests.Network
[Fact]
public void TestCharacterListUpdate()
{
var firstMobile = new Mobile(0x1);
var firstMobile = new Mobile((Serial)0x1);
firstMobile.DefaultMobileInit();
firstMobile.RawName = "Test Mobile";
@ -179,7 +179,7 @@ namespace Server.Tests.Network
[Fact]
public void TestCharacterList70130()
{
var firstMobile = new Mobile(0x1);
var firstMobile = new Mobile((Serial)0x1);
firstMobile.DefaultMobileInit();
firstMobile.Name = "Test Mobile";
@ -211,7 +211,7 @@ namespace Server.Tests.Network
[Fact]
public void TestCharacterListOld()
{
var firstMobile = new Mobile(0x1);
var firstMobile = new Mobile((Serial)0x1);
firstMobile.DefaultMobileInit();
firstMobile.Name = "Test Mobile";