Skip to content

Commit

Permalink
[adds]
Browse files Browse the repository at this point in the history
 - one-way synch of worksettings from worktype mode to workgiver mode
  • Loading branch information
FluffierThanThou committed May 21, 2016
1 parent 9d81a85 commit 92ddc89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified Assemblies/Fluffy_Tabs.dll
Binary file not shown.
6 changes: 6 additions & 0 deletions Source/Fluffy_Tabs/Work/PawnWorktypePrioritiesTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ public void SetPriority( WorkTypeDef worktype, int priority, int hour )

// clear current favourite
currentFavourite = null;

// NOTE: This is extremely ugly - at this point there is really very little reason for pawns to have two priority trackers.
// TODO: Wrap worktypeTracker into workgiverTracker
// synchronize changes in worktype view to workgiver view.
foreach ( var workgiver in worktype.workGiversByPriority )
pawn.workgiverPriorities().SetPriority( workgiver, priority, hour );
}

public void SetPriority( WorkTypeDef worktype, int priority )
Expand Down

0 comments on commit 92ddc89

Please sign in to comment.