fix(cleanup): Cleans up attribute syntax (#734)

This commit is contained in:
Kamron Batman 2021-08-26 18:30:16 -07:00 committed by GitHub
parent 996fdeb011
commit db59bf6dd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 38 additions and 27 deletions

View file

@ -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;