Skip to content

Commit 92ddc89

Browse files
[adds]
- one-way synch of worksettings from worktype mode to workgiver mode
1 parent 9d81a85 commit 92ddc89

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Assemblies/Fluffy_Tabs.dll

0 Bytes
Binary file not shown.

Source/Fluffy_Tabs/Work/PawnWorktypePrioritiesTracker.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ public void SetPriority( WorkTypeDef worktype, int priority, int hour )
181181

182182
// clear current favourite
183183
currentFavourite = null;
184+
185+
// NOTE: This is extremely ugly - at this point there is really very little reason for pawns to have two priority trackers.
186+
// TODO: Wrap worktypeTracker into workgiverTracker
187+
// synchronize changes in worktype view to workgiver view.
188+
foreach ( var workgiver in worktype.workGiversByPriority )
189+
pawn.workgiverPriorities().SetPriority( workgiver, priority, hour );
184190
}
185191

186192
public void SetPriority( WorkTypeDef worktype, int priority )

0 commit comments

Comments
 (0)