Skip to content

Commit 657a167

Browse files
Merge pull request #681 from TheTrackerCouncil/ap-fixes
Additional AP fixes
2 parents f0fc329 + df005e3 commit 657a167

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/TrackerCouncil.Smz3.Data/Configuration/ConfigTypes/ItemData.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ public bool TryGetTrackingResponse(int trackingState, [NotNullWhen(true)] out Sc
284284
/// </remarks>
285285
public bool IsJunk(Config? config)
286286
{
287+
if (InternalItemType == ItemType.OtherGameProgressionItem)
288+
return false;
289+
287290
if (config?.ZeldaKeysanity == true && InternalItemType.IsInAnyCategory(new[] { ItemCategory.SmallKey, ItemCategory.BigKey, ItemCategory.Map }))
288291
return false;
289292

src/TrackerCouncil.Smz3.Data/Services/GenerationSettingsWindowService.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,13 @@ public void UpdateSummaryText()
501501
sb.AppendLine($" - Player Name: {details.Players.First(x => x.IsLocalPlayer).PlayerName}");
502502
sb.AppendLine($" - Player Count: {playerCount}");
503503

504-
sb.AppendLine($" - GT Crystal Count: {details.GanonsTowerCrystalCount}");
505-
sb.AppendLine($" - Ganon Crystal Count: {details.GanonCrystalCount}");
506-
sb.AppendLine($" - Tourian Boss Count: {details.TourianBossCount}");
504+
if (details.RomGenerator == RomGenerator.Mainline)
505+
{
506+
sb.AppendLine($" - GT Crystal Count: {details.GanonsTowerCrystalCount}");
507+
sb.AppendLine($" - Ganon Crystal Count: {details.GanonCrystalCount}");
508+
sb.AppendLine($" - Tourian Boss Count: {details.TourianBossCount}");
509+
sb.AppendLine($" - Open Pyramid: {details.OpenPyarmid}");
510+
}
507511

508512
sb.AppendLine($" - IsMultiworld: {ynResponses[details.IsMultiworld]}");
509513
sb.AppendLine($" - IsHardLogic: {ynResponses[details.IsHardLogic]}");

src/TrackerCouncil.Smz3.Data/WorldData/Regions/IHasTreasure.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public int RemainingTreasure
5454
public int GetTreasureCount()
5555
{
5656
var region = (Region)this;
57-
return region.Locations.Count(x => x.Item.Type != ItemType.Nothing && (!x.Item.IsDungeonItem || region.World.Config.ZeldaKeysanity) && x.Type != LocationType.NotInDungeon);
57+
return region.Locations.Count(x => x.Item.Type != ItemType.Nothing && (!x.Item.IsDungeonItem || region.World.Config.ZeldaKeysanity || !x.Item.IsLocalPlayerItem) && x.Type != LocationType.NotInDungeon);
5858
}
5959

6060
public void ApplyState(TrackerState? state)

0 commit comments

Comments
 (0)