Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 • committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -17,13 +17,13 @@ namespace Server.Items
}
[CommandProperty(AccessLevel.GameMaster)]
public Mobile Poisoner{ get; set; }
public Mobile Poisoner { get; set; }
[CommandProperty(AccessLevel.GameMaster)]
public Poison Poison{ get; set; }
public Poison Poison { get; set; }
[CommandProperty(AccessLevel.GameMaster)]
public int FillFactor{ get; set; }
public int FillFactor { get; set; }
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
@ -121,35 +121,35 @@ namespace Server.Items
switch (version)
{
case 1:
{
Poison = reader.ReadInt() switch
{
0 => null,
1 => Poison.Lesser,
2 => Poison.Regular,
3 => Poison.Greater,
4 => Poison.Deadly,
_ => Poison
};
Poison = reader.ReadInt() switch
{
0 => null,
1 => Poison.Lesser,
2 => Poison.Regular,
3 => Poison.Greater,
4 => Poison.Deadly,
_ => Poison
};
break;
}
break;
}
case 2:
{
Poison = Poison.Deserialize(reader);
break;
}
{
Poison = Poison.Deserialize(reader);
break;
}
case 3:
{
Poison = Poison.Deserialize(reader);
FillFactor = reader.ReadInt();
break;
}
{
Poison = Poison.Deserialize(reader);
FillFactor = reader.ReadInt();
break;
}
case 4:
{
Poisoner = reader.ReadMobile();
goto case 3;
}
{
Poisoner = reader.ReadMobile();
goto case 3;
}
}
}
}
@ -370,7 +370,6 @@ namespace Server.Items
}
}
public class FriedEggs : Food
{
[Constructible]