fix(cleanup): Cleans up attribute syntax (#734)
This commit is contained in:
parent
996fdeb011
commit
db59bf6dd0
12 changed files with 38 additions and 27 deletions
|
|
@ -15,7 +15,9 @@
|
|||
|
||||
namespace Server
|
||||
{
|
||||
[NoSort, Parsable, PropertyObject]
|
||||
[NoSort]
|
||||
[Parsable]
|
||||
[PropertyObject]
|
||||
public struct Rectangle2D
|
||||
{
|
||||
private Point2D m_Start;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@
|
|||
|
||||
namespace Server
|
||||
{
|
||||
[NoSort, PropertyObject]
|
||||
[NoSort]
|
||||
[PropertyObject]
|
||||
public struct Rectangle3D
|
||||
{
|
||||
private Point3D m_Start;
|
||||
|
|
|
|||
|
|
@ -486,7 +486,8 @@ namespace Server
|
|||
[CommandProperty(AccessLevel.Counselor, AccessLevel.GameMaster)]
|
||||
public int PileWeight => (int)Math.Ceiling(Weight * Amount);
|
||||
|
||||
[Hue, CommandProperty(AccessLevel.GameMaster)]
|
||||
[Hue]
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public virtual int Hue
|
||||
{
|
||||
get => m_Hue;
|
||||
|
|
|
|||
|
|
@ -1281,7 +1281,8 @@ namespace Server
|
|||
|
||||
public virtual int Luck => 0;
|
||||
|
||||
[Hue, CommandProperty(AccessLevel.GameMaster)]
|
||||
[Hue]
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public int HueMod
|
||||
{
|
||||
get => m_HueMod;
|
||||
|
|
@ -1296,7 +1297,8 @@ namespace Server
|
|||
}
|
||||
}
|
||||
|
||||
[Hue, CommandProperty(AccessLevel.GameMaster)]
|
||||
[Hue]
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public virtual int Hue
|
||||
{
|
||||
get => m_HueMod != -1 ? m_HueMod : m_Hue;
|
||||
|
|
@ -1700,18 +1702,11 @@ namespace Server
|
|||
}
|
||||
}
|
||||
|
||||
[Body, CommandProperty(AccessLevel.GameMaster)]
|
||||
[Body]
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public Body Body
|
||||
{
|
||||
get
|
||||
{
|
||||
if (IsBodyMod)
|
||||
{
|
||||
return m_BodyMod;
|
||||
}
|
||||
|
||||
return m_Body;
|
||||
}
|
||||
get => IsBodyMod ? m_BodyMod : m_Body;
|
||||
set
|
||||
{
|
||||
if (m_Body != value && !IsBodyMod)
|
||||
|
|
@ -1726,7 +1721,8 @@ namespace Server
|
|||
}
|
||||
}
|
||||
|
||||
[Body, CommandProperty(AccessLevel.GameMaster)]
|
||||
[Body]
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public int BodyValue
|
||||
{
|
||||
get => Body.BodyID;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue