mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-17 04:57:43 +01:00
.
This commit is contained in:
parent
63e82d19dc
commit
e57538561f
34 changed files with 2428 additions and 720 deletions
|
|
@ -205,7 +205,7 @@ public class Design : ISavable
|
|||
|
||||
#region Serialization
|
||||
|
||||
public JObject JsonSerialize()
|
||||
private JObject JsonSerialize()
|
||||
{
|
||||
var ret = new JObject
|
||||
{
|
||||
|
|
@ -223,7 +223,7 @@ public class Design : ISavable
|
|||
return ret;
|
||||
}
|
||||
|
||||
public JObject SerializeEquipment()
|
||||
private JObject SerializeEquipment()
|
||||
{
|
||||
static JObject Serialize(uint itemId, StainId stain, bool apply, bool applyStain)
|
||||
=> new()
|
||||
|
|
@ -250,7 +250,7 @@ public class Design : ISavable
|
|||
return ret;
|
||||
}
|
||||
|
||||
public JObject SerializeCustomize()
|
||||
private JObject SerializeCustomize()
|
||||
{
|
||||
var ret = new JObject()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -192,12 +192,12 @@ public class DesignManager
|
|||
Glamourer.Log.Error("Somehow race or body type was changed in a design. This should not happen.");
|
||||
return;
|
||||
case CustomizeIndex.Clan:
|
||||
if (!_customizations.ChangeClan(ref design.DesignData.Customize, (SubRace)value.Value))
|
||||
if (_customizations.ChangeClan(ref design.DesignData.Customize, (SubRace)value.Value) == 0)
|
||||
return;
|
||||
|
||||
break;
|
||||
case CustomizeIndex.Gender:
|
||||
if (!_customizations.ChangeGender(ref design.DesignData.Customize, (Gender)(value.Value + 1)))
|
||||
if (_customizations.ChangeGender(ref design.DesignData.Customize, (Gender)(value.Value + 1)) == 0)
|
||||
return;
|
||||
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue