Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
Updated for Endwalker.
Browse files Browse the repository at this point in the history
  • Loading branch information
PunishedPineapple committed Dec 11, 2021
1 parent 32af198 commit 4a56cb8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion WaymarkPresetPlugin/WaymarkPresetPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework>
<Platforms>AnyCPU</Platforms>
<Version>1.3.1.0</Version>
<Version>1.3.1.1</Version>
<Authors>PunishedPineapple</Authors>
<Product />
<Copyright>Copyright © PunishedPineapple 2020-2021</Copyright>
Expand Down
6 changes: 3 additions & 3 deletions WaymarkPresetPlugin/WaymarkPresetPlugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Punchline": "Improved Waymark Management",
"Description": "Allows you to save, edit, place, import, export, and preview an unlimited number of waymark presets.",
"InternalName": "WaymarkPresetPlugin",
"AssemblyVersion": "1.3.1.0",
"AssemblyVersion": "1.3.1.1",
"RepoUrl": "https://github.com/PunishedPineapple/WaymarkPresetPlugin",
"IconUrl": "https://github.com/PunishedPineapple/WaymarkPresetPlugin/raw/master/docs/Images/icon.png",
"ImageUrls": [
Expand All @@ -14,6 +14,6 @@
],
"ApplicableVersion": "any",
"Tags": [ "Waymark", "Marker", "Preset", "Tool" ],
"DalamudApiLevel": 4,
"Changelog": "1.3.1.0: Added preset placement by name to the text commands."
"DalamudApiLevel": 5,
"Changelog": "1.3.1.1: Updated for Endwalker."
}
14 changes: 7 additions & 7 deletions WaymarkPresetPlugin/ZoneInfoHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,29 @@ public static void Init( DataManager dataManager )
// ID of the maps for these zones too. The best solution (for the time being) seems to be to store a pseudo map name string (the base of the map names for that zone) that can be cross-referenced later.
foreach( TerritoryType zone in territorySheet.ToList() )
{
if( !mZoneInfoDict.ContainsKey( zone.Unknown10 ) && (
if( !mZoneInfoDict.ContainsKey( (UInt16)zone.ContentFinderCondition.Row ) && (
zone.ExclusiveType == 2 ||
mBodgeIncludeContentFinderConditionIDs.Contains( zone.Unknown10 )
mBodgeIncludeContentFinderConditionIDs.Contains( (UInt16)zone.ContentFinderCondition.Row )
) )
{
ContentFinderCondition contentRow = contentFinderSheet.GetRow( zone.Unknown10 );
ContentFinderCondition contentRow = contentFinderSheet.GetRow( (UInt16)zone.ContentFinderCondition.Row );
if( contentRow != null && (
( contentRow.ContentLinkType > 0 && contentRow.ContentLinkType < 3 ) ||
mBodgeIncludeContentFinderConditionIDs.Contains( zone.Unknown10 )
mBodgeIncludeContentFinderConditionIDs.Contains( (UInt16)zone.ContentFinderCondition.Row )
) )
{
if( !mZoneInfoDict.ContainsKey( zone.Unknown10 ) )
if( !mZoneInfoDict.ContainsKey( (UInt16)zone.ContentFinderCondition.Row ) )
{
string dutyName = contentRow.Name.ToString().Trim();
if( dutyName.Length > 0 )
{
dutyName = dutyName.First().ToString().ToUpper() + dutyName.Substring( 1 );
}
mZoneInfoDict.Add( zone.Unknown10, new ZoneInfo( dutyName, zone.PlaceName.Value.Name, zone.RowId, zone.Map.Value.Id.ToString().Split( '/' )[0], zone.Unknown10, contentRow.Content ) );
mZoneInfoDict.Add( (UInt16)zone.ContentFinderCondition.Row, new ZoneInfo( dutyName, zone.PlaceName.Value.Name, zone.RowId, zone.Map.Value.Id.ToString().Split( '/' )[0], (UInt16)zone.ContentFinderCondition.Row, contentRow.Content ) );
}
if( !mTerritoryTypeIDToContentFinderIDDict.ContainsKey( zone.RowId ) )
{
mTerritoryTypeIDToContentFinderIDDict.Add( zone.RowId, zone.Unknown10 );
mTerritoryTypeIDToContentFinderIDDict.Add( zone.RowId, (UInt16)zone.ContentFinderCondition.Row );
}
}
}
Expand Down

0 comments on commit 4a56cb8

Please sign in to comment.