Skip to content

Commit 11c24e0

Browse files
Fixed snafu with assigning hours to priorities
1 parent 8c9b047 commit 11c24e0

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

About/About.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Finally, there will never be an ‘autolabor’ mode where a mod sets priorities
2727

2828
<size=24>Contributors</size>
2929
Bronytamin Russian translation
30+
Eric Swanson
3031

3132
tag:Fluffylicious
3233

Assemblies/Fluffy_Tabs.dll

-3.5 KB
Binary file not shown.

Source/Fluffy_Tabs/Work/PawnPrioritiesTracker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void AssignFavourite( WorkFavourite favourite )
6363
for ( int hour = 0; hour < GenDate.HoursPerDay; hour++ )
6464
foreach ( var workgiver in DefDatabase<WorkGiverDef>.AllDefsListForReading )
6565
if ( !pawn.story.WorkTypeIsDisabled( workgiver.workType ) )
66-
SetPriority( workgiver, hour, favourite.workgiverPriorities.priorities[hour][workgiver] );
66+
SetPriority( workgiver, favourite.workgiverPriorities.priorities[hour][workgiver], hour );
6767
currentFavourite = favourite;
6868
}
6969

Source/SteamConfig.vdf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ With great power comes great responsibility. The default priorities of tasks wit
2828
Finally, there will never be an ‘autolabor’ mode where a mod sets priorities for you. Due to the way the AI is handled (e.g. pawns actively look for work, instead of there being a ‘bulletin board’ of jobs that need doing), it’s not feasible to get the complete list of work that needs doing that would be needed to make this a reality, without extreme overhead and loads of special excpetion coding.
2929
3030
[h1]Contributors[/h1]
31-
Bronytamin Russian translation
31+
Bronytamin Russian translation Eric Swanson
3232
3333
[h1]Think you found a bug?[/h1]
3434
Please read [url=http://steamcommunity.com/sharedfiles/filedetails/?id=725234314]this guide[/url] before creating a bug report, and then create a bug report [url=https://github.com/FluffierThanThou/WorkTab/issues]here[/url]
@@ -40,13 +40,14 @@ All current and past versions of this mod can be downloaded from [url=https://gi
4040
This mod is licensed under the Creative Commons [url=http://creativecommons.org/licenses/by-nc-sa/4.0/]by-nc-sa 4.0 Int[/url] license.
4141
4242
[h1]Version[/h1]
43-
This is version v0.16.1.5
43+
This is version v0.16.1.6
4444
4545
"
4646
"changenote" "Add shift-click to select only single hour in scheduler.
4747
Mark time dependent tooltip cache dirty on applying favourites
4848
Fix translation key for partially scheduled worktypes
49-
Check if pawn Map field is initialized before using it to determine local time"
49+
Check if pawn Map field is initialized before using it to determine local time
50+
Show the end hour in time-dependent tooltip (#27)"
5051
"publishedfileid" "725219116"
5152
}
5253

0 commit comments

Comments
 (0)