Skip to content

Commit

Permalink
Updates for Dalamud API 11 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zumurrud authored Nov 27, 2024
1 parent 33f4c4b commit ad985cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions AutoMountBgm/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

using FFXIVClientStructs.FFXIV.Client.Game.Character;

using Lumina.Excel.GeneratedSheets;
using Lumina.Excel.Sheets;

using Character = FFXIVClientStructs.FFXIV.Client.Game.Character.Character;

Expand Down Expand Up @@ -69,14 +69,14 @@ public Plugin() {
private static void parallelInit() {
Log.Info("Caching BGM track names...");
foreach (BGM bgm in GameData.GetExcelSheet<BGM>()!) {
bgmNames[(ushort)bgm.RowId] = bgm.File.RawString.Replace("music/", "").Replace("ffxiv/", "");
bgmNames[(ushort)bgm.RowId] = bgm.File.ExtractText().Replace("music/", "").Replace("ffxiv/", "");
}
Log.Info("Caching mount data...");
foreach (Mount mount in GameData.GetExcelSheet<Mount>()!) {
string name = mount.Singular;
string name = mount.Singular.ExtractText();
ushort id = (ushort)mount.RowId;
if (!string.IsNullOrWhiteSpace(name))
mountData[id] = new MountData(id, name, (ushort)mount.RideBGM.Row);
mountData[id] = new MountData(id, name, (ushort)mount.RideBGM.RowId);
}
Log.Info("Alphabetising mount list...");
alphabetisedMountData = mountData
Expand Down
6 changes: 3 additions & 3 deletions AutoMountBgm/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"net8.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
"requested": "[2.1.13, )",
"resolved": "2.1.13",
"contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ=="
"requested": "[11.0.0, )",
"resolved": "11.0.0",
"contentHash": "bjT7XUlhIJSmsE/O76b7weUX+evvGQctbQB8aKXt94o+oPWxHpCepxAGMs7Thow3AzCyqWs7cOpp9/2wcgRRQA=="
}
}
}
Expand Down

0 comments on commit ad985cd

Please sign in to comment.