This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make No hostile as a dictionary about the territory.
- Loading branch information
1 parent
81147c1
commit 5d28272
Showing
7 changed files
with
113 additions
and
39 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
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
14 changes: 7 additions & 7 deletions
14
RotationSolver/ActionSequencer/BaseStatus.cs → RotationSolver/TextureItems/StatusTexture.cs
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
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,24 @@ | ||
using Lumina.Excel.GeneratedSheets; | ||
|
||
namespace RotationSolver.TextureItems; | ||
|
||
internal class TerritoryTypeTexture : ITexture | ||
{ | ||
readonly TerritoryType _territory; | ||
public uint IconID => _territory?.ContentFinderCondition?.Value?.ContentType?.Value?.Icon ?? 0; | ||
public uint ID => _territory?.RowId ?? 0; | ||
public string Name => $"{_territory.PlaceName?.Value?.Name} ({_territory.RowId})"; | ||
|
||
public string Description => string.Empty; | ||
public bool IsEnabled { get; set; } = true; | ||
|
||
public TerritoryTypeTexture(uint id) | ||
: this(Service.GetSheet<TerritoryType>().GetRow(id)) | ||
{ | ||
} | ||
|
||
public TerritoryTypeTexture(TerritoryType status) | ||
{ | ||
_territory = status; | ||
} | ||
} |
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
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
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