Skip to content

Commit 6b760fa

Browse files
Merge pull request #627 from TheTrackerCouncil/tracker-sass-updates
Add sass when tracking things that are likely misheard
2 parents 8485a2c + 0d7d82c commit 6b760fa

File tree

16 files changed

+245
-123
lines changed

16 files changed

+245
-123
lines changed

src/TrackerCouncil.Smz3.Abstractions/ITrackerBossService.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ public interface ITrackerBossService
1717
/// <param name="admittedGuilt">
1818
/// <see langword="true"/> if the command implies the boss was killed;
1919
/// <see langword="false"/> if the boss was simply "tracked".
20+
/// <param name="force">If the boss should be forced to be tracked while auto tracking</param>
2021
/// </param>
21-
public void MarkBossAsDefeated(IHasBoss region, float? confidence = null, bool autoTracked = false, bool admittedGuilt = false);
22+
public void MarkBossAsDefeated(IHasBoss region, float? confidence = null, bool autoTracked = false, bool admittedGuilt = false, bool force = false);
2223

2324
/// <summary>
2425
/// Marks a boss as defeated.
@@ -30,23 +31,26 @@ public interface ITrackerBossService
3031
/// </param>
3132
/// <param name="confidence">The speech recognition confidence.</param>
3233
/// <param name="autoTracked">If this was tracked by the auto tracker</param>
34+
/// <param name="force">If the boss should be forced to be tracked while auto tracking</param>
3335
public void MarkBossAsDefeated(Boss boss, bool admittedGuilt = true, float? confidence = null,
34-
bool autoTracked = false);
36+
bool autoTracked = false, bool force = false);
3537

3638
/// <summary>
3739
/// Un-marks a boss as defeated.
3840
/// </summary>
3941
/// <param name="boss">The boss that should be 'revived'.</param>
4042
/// <param name="confidence">The speech recognition confidence.</param>
41-
public void MarkBossAsNotDefeated(Boss boss, float? confidence = null);
43+
/// <param name="force">If the boss should be forced to be untracked while auto tracking</param>
44+
public void MarkBossAsNotDefeated(Boss boss, float? confidence = null, bool force = false);
4245

4346
/// <summary>
4447
/// Un-marks a dungeon as cleared and, if possible, untracks the boss
4548
/// reward.
4649
/// </summary>
4750
/// <param name="region">The dungeon that should be un-cleared.</param>
4851
/// <param name="confidence">The speech recognition confidence.</param>
49-
public void MarkBossAsNotDefeated(IHasBoss region, float? confidence = null);
52+
/// <param name="force">If the boss should be forced to be untracked while auto tracking</param>
53+
public void MarkBossAsNotDefeated(IHasBoss region, float? confidence = null, bool force = false);
5054

5155
public void UpdateAccessibility(Progression? actualProgression = null, Progression? withKeysProgression = null);
5256

src/TrackerCouncil.Smz3.Abstractions/ITrackerItemService.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ public interface ITrackerItemService
2424
/// <param name="location">The location an item was tracked from</param>
2525
/// <param name="giftedItem">If the item was gifted to the player by tracker or another player</param>
2626
/// <param name="silent">If tracker should not say anything</param>
27+
/// <param name="force">If the item should be forced to be tracked while auto tracking</param>
2728
/// <returns>
2829
/// <see langword="true"/> if the item was actually tracked; <see
2930
/// langword="false"/> if the item could not be tracked, e.g. when
3031
/// tracking Bow twice.
3132
/// </returns>
3233
bool TrackItem(Item item, string? trackedAs = null, float? confidence = null, bool tryClear = true,
33-
bool autoTracked = false, Location? location = null, bool giftedItem = false, bool silent = false);
34+
bool autoTracked = false, Location? location = null, bool giftedItem = false, bool silent = false, bool force = false);
3435

3536
/// <summary>
3637
/// Tracks the specifies item and clears it from the specified dungeon.
@@ -41,7 +42,8 @@ bool TrackItem(Item item, string? trackedAs = null, float? confidence = null, bo
4142
/// </param>
4243
/// <param name="hasTreasure">The dungeon the item was tracked in.</param>
4344
/// <param name="confidence">The speech recognition confidence.</param>
44-
void TrackItemFrom(Item item, IHasTreasure hasTreasure, string? trackedAs = null, float? confidence = null);
45+
/// <param name="force">If the item should be forced to be tracked while auto tracking</param>
46+
void TrackItemFrom(Item item, IHasTreasure hasTreasure, string? trackedAs = null, float? confidence = null, bool force = false);
4547

4648
/// <summary>
4749
/// Tracks the specified item and clears it from the specified room.
@@ -52,7 +54,8 @@ bool TrackItem(Item item, string? trackedAs = null, float? confidence = null, bo
5254
/// </param>
5355
/// <param name="area">The area the item was found in.</param>
5456
/// <param name="confidence">The speech recognition confidence.</param>
55-
void TrackItemFrom(Item item, IHasLocations area, string? trackedAs = null, float? confidence = null);
57+
/// <param name="force">If the item should be forced to be tracked while auto tracking</param>
58+
void TrackItemFrom(Item item, IHasLocations area, string? trackedAs = null, float? confidence = null, bool force = false);
5659

5760
/// <summary>
5861
/// Sets the item count for the specified item.
@@ -62,7 +65,8 @@ bool TrackItem(Item item, string? trackedAs = null, float? confidence = null, bo
6265
/// The amount of the item that is in the player's inventory now.
6366
/// </param>
6467
/// <param name="confidence">The speech recognition confidence.</param>
65-
void TrackItemAmount(Item item, int count, float confidence);
68+
/// <param name="force">If the item should be forced to be tracked while auto tracking</param>
69+
void TrackItemAmount(Item item, int count, float confidence, bool force = false);
6670

6771
/// <summary>
6872
/// Tracks multiple items at the same time
@@ -77,5 +81,6 @@ bool TrackItem(Item item, string? trackedAs = null, float? confidence = null, bo
7781
/// </summary>
7882
/// <param name="item">The item to untrack.</param>
7983
/// <param name="confidence">The speech recognition confidence.</param>
80-
void UntrackItem(Item item, float? confidence = null);
84+
/// <param name="force">If the item should be forced to be untracked while auto tracking</param>
85+
void UntrackItem(Item item, float? confidence = null, bool force = false);
8186
}

0 commit comments

Comments
 (0)