-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Lumina.Excel.GeneratedSheets; | ||
using XIVCalc.Interfaces; | ||
|
||
namespace XIVCalc.Lumina; | ||
|
||
public class LuminaJobModifiers(ClassJob source) : IJobModifiers | ||
{ | ||
public Job Job => (Job)source.RowId; | ||
public int ModifierHitPoints => source.ModifierHitPoints; | ||
public int ModifierManaPoints => source.ModifierManaPoints; | ||
public int ModifierStrength => source.ModifierStrength; | ||
public int ModifierVitality => source.ModifierVitality; | ||
public int ModifierDexterity => source.ModifierDexterity; | ||
public int ModifierIntelligence => source.ModifierIntelligence; | ||
public int ModifierMind => source.ModifierMind; | ||
public int ModifierPiety => source.ModifierMind; | ||
public bool IsTank => Job.IsTank(); | ||
public StatType PrimaryStat => (StatType)source.PrimaryStat; | ||
public bool IsCaster => Job.IsCaster(); | ||
|
||
public static implicit operator LuminaJobModifiers(ClassJob job) => new(job); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Lumina.Excel" Version="7.0.0"> | ||
<PrivateAssets>contentfiles;analyzers;build;runtime</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="XIVCalc" Version="0.3.0-alpha2" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters