Code cleanup (#188)
This commit is contained in:
parent
df53c16620
commit
010fd9402a
185 changed files with 1052 additions and 1271 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue