master v0.2
Liza 2024-03-29 15:14:25 +01:00
parent dedfd5412c
commit a1574a8f27
Signed by: liza
GPG Key ID: 7199F8D727D55F67
7 changed files with 1036 additions and 11 deletions

View File

@ -0,0 +1,4 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=Bozja/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Gearsets/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Gearsetter/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

1017
Gearsetter/.editorconfig Normal file

File diff suppressed because it is too large Load Diff

View File

@ -109,7 +109,7 @@ internal sealed class CachedItem : IEquatable<CachedItem>
Crit = 27,
DirectHit = 22,
Determination = 44,
SpellSpeed = 24,
SpellSpeed = 46,
Craftsmanship = 70,
Control = 71,

View File

@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework>
<Version>0.1</Version>
<LangVersion>11.0</LangVersion>
<TargetFramework>net8.0-windows</TargetFramework>
<Version>0.2</Version>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>

View File

@ -16,10 +16,10 @@ using Lumina.Excel.GeneratedSheets;
namespace Gearsetter;
[SuppressMessage("ReSharper", "UnusedType.Global")]
public class GearsetterPlugin : IDalamudPlugin
public sealed class GearsetterPlugin : IDalamudPlugin
{
private static readonly InventoryType[] DefaultInventoryTypes =
{
[
InventoryType.Inventory1,
InventoryType.Inventory2,
InventoryType.Inventory3,
@ -35,8 +35,8 @@ public class GearsetterPlugin : IDalamudPlugin
InventoryType.ArmoryNeck,
InventoryType.ArmoryWrist,
InventoryType.ArmoryRings,
InventoryType.EquippedItems,
};
InventoryType.EquippedItems
];
private readonly DalamudPluginInterface _pluginInterface;
private readonly ICommandManager _commandManager;
@ -53,6 +53,8 @@ public class GearsetterPlugin : IDalamudPlugin
public GearsetterPlugin(DalamudPluginInterface pluginInterface, ICommandManager commandManager, IChatGui chatGui,
IDataManager dataManager, IPluginLog pluginLog, IClientState clientState)
{
ArgumentNullException.ThrowIfNull(dataManager);
_pluginInterface = pluginInterface;
_commandManager = commandManager;
_chatGui = chatGui;
@ -167,7 +169,9 @@ public class GearsetterPlugin : IDalamudPlugin
private unsafe bool HandleGearset(RaptureGearsetModule.GearsetEntry* gearset, List<CachedItem> inventoryItems)
{
string name = GetGearsetName(gearset);
if (name.Contains('_') || name.Contains("Eureka") || name.Contains("Bozja"))
if (name.Contains('_', StringComparison.Ordinal) ||
name.Contains("Eureka", StringComparison.OrdinalIgnoreCase) ||
name.Contains("Bozja", StringComparison.OrdinalIgnoreCase))
return false;
List<List<SeString>> upgrades = new()

View File

@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net7.0-windows7.0": {
"net8.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
"requested": "[2.1.12, )",

View File

@ -1,6 +1,6 @@
{
"sdk": {
"version": "7.0.0",
"version": "8.0.0",
"rollForward": "latestMinor",
"allowPrerelease": false
}