mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix ninja weapons.
This commit is contained in:
parent
4f63e32df3
commit
0999ab804a
2 changed files with 6 additions and 7 deletions
|
|
@ -341,8 +341,8 @@ public static class FullEquipTypeExtensions
|
||||||
WeaponCategory.BotanistOff => FullEquipType.GardenScythe,
|
WeaponCategory.BotanistOff => FullEquipType.GardenScythe,
|
||||||
WeaponCategory.FisherMain => FullEquipType.FishingRod,
|
WeaponCategory.FisherMain => FullEquipType.FishingRod,
|
||||||
WeaponCategory.FisherOff => FullEquipType.Gig,
|
WeaponCategory.FisherOff => FullEquipType.Gig,
|
||||||
WeaponCategory.Rogue when mainhand => FullEquipType.DaggersOff,
|
WeaponCategory.Rogue when mainhand => FullEquipType.Daggers,
|
||||||
WeaponCategory.Rogue => FullEquipType.Daggers,
|
WeaponCategory.Rogue => FullEquipType.DaggersOff,
|
||||||
WeaponCategory.DarkKnight => FullEquipType.Broadsword,
|
WeaponCategory.DarkKnight => FullEquipType.Broadsword,
|
||||||
WeaponCategory.Machinist when mainhand => FullEquipType.Gun,
|
WeaponCategory.Machinist when mainhand => FullEquipType.Gun,
|
||||||
WeaponCategory.Machinist => FullEquipType.GunOff,
|
WeaponCategory.Machinist => FullEquipType.GunOff,
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ public readonly struct EquipItem
|
||||||
public EquipItem(string name, uint id, ushort iconId, SetId modelId, WeaponType weaponType, byte variant, FullEquipType type,
|
public EquipItem(string name, uint id, ushort iconId, SetId modelId, WeaponType weaponType, byte variant, FullEquipType type,
|
||||||
EquipSlot slot)
|
EquipSlot slot)
|
||||||
{
|
{
|
||||||
Name = name;
|
Name = string.Intern(name);
|
||||||
Id = id;
|
Id = id;
|
||||||
IconId = iconId;
|
IconId = iconId;
|
||||||
ModelId = modelId;
|
ModelId = modelId;
|
||||||
|
|
@ -48,12 +48,11 @@ public readonly struct EquipItem
|
||||||
Slot = slot;
|
Slot = slot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static EquipItem FromArmor(Item item)
|
public static EquipItem FromArmor(Item item)
|
||||||
{
|
{
|
||||||
var type = item.ToEquipType();
|
var type = item.ToEquipType();
|
||||||
var slot = type.ToSlot();
|
var slot = type.ToSlot();
|
||||||
var name = string.Intern(item.Name.ToDalamudString().TextValue);
|
var name = item.Name.ToDalamudString().TextValue;
|
||||||
var id = item.RowId;
|
var id = item.RowId;
|
||||||
var icon = item.Icon;
|
var icon = item.Icon;
|
||||||
var model = (SetId)item.ModelMain;
|
var model = (SetId)item.ModelMain;
|
||||||
|
|
@ -65,7 +64,7 @@ public readonly struct EquipItem
|
||||||
public static EquipItem FromMainhand(Item item)
|
public static EquipItem FromMainhand(Item item)
|
||||||
{
|
{
|
||||||
var type = item.ToEquipType();
|
var type = item.ToEquipType();
|
||||||
var name = string.Intern(item.Name.ToDalamudString().TextValue);
|
var name = item.Name.ToDalamudString().TextValue;
|
||||||
var id = item.RowId;
|
var id = item.RowId;
|
||||||
var icon = item.Icon;
|
var icon = item.Icon;
|
||||||
var model = (SetId)item.ModelMain;
|
var model = (SetId)item.ModelMain;
|
||||||
|
|
@ -77,7 +76,7 @@ public readonly struct EquipItem
|
||||||
public static EquipItem FromOffhand(Item item)
|
public static EquipItem FromOffhand(Item item)
|
||||||
{
|
{
|
||||||
var type = item.ToEquipType().Offhand();
|
var type = item.ToEquipType().Offhand();
|
||||||
var name = string.Intern(item.Name.ToDalamudString().TextValue + type.OffhandTypeSuffix());
|
var name = item.Name.ToDalamudString().TextValue + type.OffhandTypeSuffix();
|
||||||
var id = item.RowId;
|
var id = item.RowId;
|
||||||
var icon = item.Icon;
|
var icon = item.Icon;
|
||||||
var model = (SetId)item.ModelSub;
|
var model = (SetId)item.ModelSub;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue