Skip to content

Commit

Permalink
feat: add tracking for new cards
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoraes74 committed May 14, 2024
1 parent 02f0af8 commit 082bae5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions HSTracker/Logging/CardIds/Warlock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ extension CardIds.Collectible {
static let Smokestack = "WW_378"
static let MoargDrillfist = "WW_442"
static let VoidcallerInvalid = "CORE_FP1_022"
static let MassProduction = "MIS_707"
}
}

Expand Down
1 change: 1 addition & 0 deletions HSTracker/Logging/CardIds/Warrior.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ extension CardIds.Collectible {
static let BoombossThogrun = "WW_372"
static let BlastCharge = "WW_380"
static let ReinforcedPlating = "WW_334"
static let SafetyExpert = "MIS_711"
}
}

Expand Down
4 changes: 4 additions & 0 deletions HSTracker/Logging/Parsers/PowerGameStateParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,10 @@ class PowerGameStateParser: LogEventParser {
addKnownCardId(eventHandler: eventHandler, cardId: CardIds.NonCollectible.Neutral.MiracleSalesman_SnakeOilToken, count: 2)
case CardIds.Collectible.Warlock.DisposalAssistant:
addKnownCardId(eventHandler: eventHandler, cardId: CardIds.NonCollectible.Neutral.TramMechanic_BarrelOfSludgeToken, count: 1, location: .bottom)
case CardIds.Collectible.Warlock.MassProduction:
addKnownCardId(eventHandler: eventHandler, cardId: CardIds.Collectible.Warlock.MassProduction, count: 2)
case CardIds.Collectible.Warrior.SafetyExpert:
addKnownCardId(eventHandler: eventHandler, cardId: CardIds.NonCollectible.Neutral.SeaforiumBomber_BombToken, count: 3)
default:
if let card = Cards.any(byId: actionStartingCardId) {
if (player != nil && player![.current_player] == 1
Expand Down
2 changes: 1 addition & 1 deletion HSTracker/cards-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
198711
198933

0 comments on commit 082bae5

Please sign in to comment.