mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-20 06:47:46 +01:00
Some further small Glamourer changes, increment versioning of gamedata stuff.
This commit is contained in:
parent
0fb9e77c3c
commit
62f71df28c
10 changed files with 39 additions and 11 deletions
|
|
@ -11,7 +11,7 @@ namespace Penumbra.GameData.Data;
|
|||
public sealed class HumanModelList : DataSharer
|
||||
{
|
||||
public const string Tag = "HumanModels";
|
||||
public const int CurrentVersion = 1;
|
||||
public const int CurrentVersion = 2;
|
||||
|
||||
private readonly BitArray _humanModels;
|
||||
|
||||
|
|
|
|||
|
|
@ -26,12 +26,12 @@ public sealed class ItemData : DataSharer, IReadOnlyDictionary<FullEquipType, IR
|
|||
foreach (var item in itemSheet.Where(i => i.Name.RawData.Length > 1))
|
||||
{
|
||||
var type = item.ToEquipType();
|
||||
if (type.IsWeapon())
|
||||
if (type.IsWeapon() || type.IsTool())
|
||||
{
|
||||
if (item.ModelMain != 0)
|
||||
tmp[(int)type].Add(EquipItem.FromMainhand(item));
|
||||
if (item.ModelSub != 0)
|
||||
tmp[(int)type.Offhand()].Add(EquipItem.FromOffhand(item));
|
||||
tmp[(int)type.ValidOffhand()].Add(EquipItem.FromOffhand(item));
|
||||
}
|
||||
else if (type != FullEquipType.Unknown)
|
||||
{
|
||||
|
|
@ -76,7 +76,7 @@ public sealed class ItemData : DataSharer, IReadOnlyDictionary<FullEquipType, IR
|
|||
}
|
||||
|
||||
public ItemData(DalamudPluginInterface pluginInterface, DataManager dataManager, ClientLanguage language)
|
||||
: base(pluginInterface, language, 1)
|
||||
: base(pluginInterface, language, 2)
|
||||
{
|
||||
_byType = TryCatchData("ItemList", () => CreateItems(dataManager, language));
|
||||
_mainItems = TryCatchData("ItemDictMain", () => CreateMainItems(_byType));
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace Penumbra.GameData.Data;
|
|||
|
||||
internal sealed class ObjectIdentification : DataSharer, IObjectIdentifier
|
||||
{
|
||||
public const int IdentificationVersion = 1;
|
||||
public const int IdentificationVersion = 2;
|
||||
|
||||
public IGamePathParser GamePathParser { get; } = new GamePathParser();
|
||||
public readonly IReadOnlyList<IReadOnlyList<uint>> BnpcNames;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public sealed class RestrictedGear : DataSharer
|
|||
public readonly IReadOnlyDictionary<uint, uint> FemaleToMale;
|
||||
|
||||
public RestrictedGear(DalamudPluginInterface pi, ClientLanguage language, DataManager gameData)
|
||||
: base(pi, language, 1)
|
||||
: base(pi, language, 2)
|
||||
{
|
||||
_items = gameData.GetExcelSheet<Item>()!;
|
||||
_categories = gameData.GetExcelSheet<EquipRaceCategory>()!;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ public sealed class StainData : DataSharer, IReadOnlyDictionary<StainId, Stain>
|
|||
public readonly IReadOnlyDictionary<byte, (string Name, uint Dye, bool Gloss)> Data;
|
||||
|
||||
public StainData(DalamudPluginInterface pluginInterface, DataManager dataManager, ClientLanguage language)
|
||||
: base(pluginInterface, language, 1)
|
||||
: base(pluginInterface, language, 2)
|
||||
{
|
||||
Data = TryCatchData("Stains", () => CreateStainData(dataManager));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue