mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-19 22:17:44 +01:00
We have config at home.
This commit is contained in:
parent
d10cb3137f
commit
80ab57e96d
13 changed files with 487 additions and 62 deletions
|
|
@ -19,7 +19,7 @@ public class Design : ISavable
|
|||
|
||||
internal Design(ItemManager items)
|
||||
{
|
||||
SetDefaultEquipment(items);
|
||||
DesignData.SetDefaultEquipment(items);
|
||||
}
|
||||
|
||||
// Metadata
|
||||
|
|
@ -35,20 +35,6 @@ public class Design : ISavable
|
|||
|
||||
internal DesignData DesignData;
|
||||
|
||||
public void SetDefaultEquipment(ItemManager items)
|
||||
{
|
||||
foreach (var slot in EquipSlotExtensions.EqdpSlots)
|
||||
{
|
||||
DesignData.SetItem(slot, ItemManager.NothingItem(slot));
|
||||
DesignData.SetStain(slot, 0);
|
||||
}
|
||||
|
||||
DesignData.SetItem(EquipSlot.MainHand, items.DefaultSword);
|
||||
DesignData.SetStain(EquipSlot.MainHand, 0);
|
||||
DesignData.SetItem(EquipSlot.OffHand, ItemManager.NothingItem(FullEquipType.Shield));
|
||||
DesignData.SetStain(EquipSlot.OffHand, 0);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Application Data
|
||||
|
|
@ -272,7 +258,7 @@ public class Design : ISavable
|
|||
{
|
||||
if (equip == null)
|
||||
{
|
||||
design.SetDefaultEquipment(items);
|
||||
design.DesignData.SetDefaultEquipment(items);
|
||||
Glamourer.Chat.NotificationMessage("The loaded design does not contain any equipment data, reset to default.", "Warning",
|
||||
NotificationType.Warning);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue