Code cleanup (#188)

This commit is contained in:
Kamron Batman 2020-08-01 08:40:06 -07:00 • committed by GitHub
parent df53c16620
commit 010fd9402a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
185 changed files with 1052 additions and 1271 deletions

View file

@ -633,7 +633,7 @@ namespace Server.Items
fish = new StrippedFlakeFish();
break;
}
case 5:
default: // 5
{
message = 1074365; // A new creature has hatched overnight in the tank.
fish = new StrippedSosarianSwill();

View file

@ -1,3 +1,5 @@
using System;
namespace Server.Items
{
public enum WaterState
@ -27,16 +29,7 @@ namespace Server.Items
public int State
{
get => m_State;
set
{
m_State = value;
if (m_State < 0)
m_State = 0;
if (m_State > 4)
m_State = 4;
}
set => m_State = Math.Clamp(value, 0, 4);
}
[CommandProperty(AccessLevel.GameMaster)]
@ -70,4 +63,4 @@ namespace Server.Items
Added = reader.ReadInt();
}
}
}
}