-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Kihron/v1.1.3
V1.1.3
- Loading branch information
Showing
107 changed files
with
2,166 additions
and
88 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,5 @@ enum StatusType { | |
case goldBlocks | ||
case snifferEggs | ||
case majorBiomes | ||
case heavyCore | ||
} |
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
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
20 changes: 20 additions & 0 deletions
20
SwiftAA/Models/Constants/Indicators/Statistic/HeavilyCore.swift
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,20 @@ | ||
// | ||
// HeavilyCore.swift | ||
// SwiftAA | ||
// | ||
// Created by Andrew on 12/29/24. | ||
// | ||
|
||
class HeavilyCore: StatisticIndicator { | ||
var id: String = "minecraft:heavy_core" | ||
var key: String = L10n.Statistic.heavyCore | ||
var name: String = "Heavy Core" | ||
var icon: String = "heavy_core_stat" | ||
var completed: Bool = false | ||
|
||
static let shared = HeavilyCore() | ||
|
||
func update(progress: ProgressManager) { | ||
completed = progress.timesPickedUp(id) >= 1 | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
SwiftAA/Models/Constants/Indicators/Status/HeavyCore.swift
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,26 @@ | ||
// | ||
// HeavyCore.swift | ||
// SwiftAA | ||
// | ||
// Created by Andrew on 12/29/24. | ||
// | ||
|
||
class HeavyCore: TransferableIndicator, StatusIndicator { | ||
var type: StatusType = .heavyCore | ||
var id: String = "minecraft:heavy_core" | ||
var key: String = L10n.Statistic.Trident.obtain | ||
var name: String = "Obtain\nHeavy Core" | ||
var icon: String = "heavy_core" | ||
var frameStyle: String = "statistic" | ||
var completed: Bool = false | ||
var tooltip: String = "" | ||
|
||
private let overkill = "minecraft:adventure/overoverkill" | ||
|
||
func update(progress: ProgressManager) { | ||
let overkillCompleted = progress.advancementCompleted(overkill) | ||
|
||
completed = overkillCompleted || progress.timesPickedUp(id) > 0 | ||
key = completed ? L10n.Statistic.HeavyCore.obtained : L10n.Statistic.HeavyCore.obtain | ||
} | ||
} |
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
Oops, something went wrong.