Skip to content

Commit cb3f884

Browse files
half-circle icon now indicates if any workgiver has a different scheduling from the whole worktype
1 parent 73c9431 commit cb3f884

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Assemblies/WorkTab.dll

6 KB
Binary file not shown.

Readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@ All original content (e.g. text, imagery, sounds) in this mod is licensed under
4040

4141
Parts of the code in this mod, and some content may be licensed by their original authors. If this is the case, the original author & license will either be given in the source code, or be in a LICENSE file next to the content. Please do not decompile my mods, but use the original source code available on [GitHub](https://github.com/FluffierThanThou/WorkTab/), so license information in the source code is preserved.
4242

43+
# Are you enjoying my mods?
44+
Show your appreciation by buying me a coffee (or contribute towards a nice single malt).
45+
46+
[![Buy Me a Coffee](http://i.imgur.com/EjWiUwx.gif)](https://ko-fi.com/fluffymods)
47+
4348
# Version
4449
This is version v0.17.1.2

Source/Core/PawnPriorityTracker.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ public void Recache(WorkTypeDef worktype, bool bubble = true)
104104
_everScheduledWorkType[worktype] = workgivers.Any(wg => _everScheduledWorkGiver[wg]);
105105
_timeScheduledWorkType[worktype] = workgivers.Any(wg => _timeScheduledWorkGiver[wg]);
106106
_timeScheduledWorkTypeTip[worktype] = WorkUtilities.TimeScheduledTip(pawn, priorities, worktype.gerundLabel);
107-
_partScheduledWorkType[worktype] = _everScheduledWorkType[worktype] && workgivers.Any(wg => pawn.GetPriorities(wg).All(p => p == 0));
107+
108+
// is any workgiver different from the whole at any time during the day?
109+
_partScheduledWorkType[worktype] = TimeUtilities.WholeDay
110+
.Any(hour => worktype.WorkGivers().Any(wg => pawn.GetPriority(worktype, hour) != pawn.GetPriority(wg, hour)));
108111
}
109112

110113
public WorkPriorityTracker this[ WorkGiverDef workgiver ]

0 commit comments

Comments
 (0)