mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-15 21:24:18 +01:00
dasd
This commit is contained in:
parent
e27a194cc6
commit
145b64bb7a
17 changed files with 258 additions and 674 deletions
|
|
@ -1,4 +1,6 @@
|
|||
using Penumbra.GameData.Enums;
|
||||
using Dalamud.Utility;
|
||||
using Glamourer.Util;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.GameData.Structs;
|
||||
|
||||
namespace Glamourer.Designs;
|
||||
|
|
@ -18,6 +20,8 @@ public readonly struct Item
|
|||
public StainId Stain
|
||||
=> Model.Stain;
|
||||
|
||||
public Item WithStain(StainId id)
|
||||
=> new(Name, ItemId, Model with { Stain = id });
|
||||
|
||||
public Item(string name, uint itemId, CharacterArmor armor)
|
||||
{
|
||||
|
|
@ -27,6 +31,14 @@ public readonly struct Item
|
|||
Model.Variant = armor.Variant;
|
||||
Model.Stain = armor.Stain;
|
||||
}
|
||||
|
||||
public Item(Lumina.Excel.GeneratedSheets.Item item)
|
||||
{
|
||||
Name = string.Intern(item.Name.ToDalamudString().TextValue);
|
||||
ItemId = item.RowId;
|
||||
Model.Set = (SetId)item.ModelMain;
|
||||
Model.Variant = (byte)(item.ModelMain >> 16);
|
||||
}
|
||||
}
|
||||
|
||||
public readonly struct Weapon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue