Skip to content

Commit fb24279

Browse files
author
Nicolas
committed
fix: only show if pawn is tendable
1 parent a21d239 commit fb24279

File tree

5 files changed

+27
-16
lines changed

5 files changed

+27
-16
lines changed

1.1/Assemblies/Stabilize.dll

0 Bytes
Binary file not shown.

1.1/Defs/JobsDef/Jobs_StabilizeHere.xml

+1-16
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,5 @@
77
<reportString>stabilizing TargetA.</reportString>
88
<casualInterruptible>false</casualInterruptible>
99
</JobDef>
10-
<!--
11-
<WorkGiverDef>
12-
<defName>DoctorStabilizeHere</defName>
13-
<label>stabilize patients right where they are</label>
14-
<giverClass>WorkGiver_StabilizeHere</giverClass>
15-
<workType>Doctor</workType>
16-
<emergency>true</emergency>
17-
<verb>stabilizing</verb>
18-
<gerund>stabilizing</gerund>
19-
<requiredCapacities>
20-
<li>Manipulation</li>
21-
</requiredCapacities>
22-
<priorityInType>110</priorityInType>
23-
<prioritizeSustains>true</prioritizeSustains>
24-
</WorkGiverDef>
25-
-->
10+
2611
</Defs>

About/About.xml

+14
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,18 @@
1111
Lets you tend to downed pawns right where they are instead of taking them to beds.
1212
A true lifesaver :)
1313
</description>
14+
<modDependencies>
15+
<li>
16+
<packageId>brrainz.harmony</packageId>
17+
<displayName>Harmony</displayName>
18+
<steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl>
19+
<downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl>
20+
</li>
21+
<li>
22+
<packageId>UnlimitedHugs.HugsLib</packageId>
23+
<displayName>HugsLib</displayName>
24+
<downloadUrl>https://github.com/UnlimitedHugs/RimworldHugsLib/releases/latest</downloadUrl>
25+
<steamWorkshopUrl>steam://url/CommunityFilePage/818773962</steamWorkshopUrl>
26+
</li>
27+
</modDependencies>
1428
</ModMetaData>

Source/Stabilize/Base.cs

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public static void AddHumanlikeOrdersPostfix(Vector3 clickPos, Pawn pawn, List<F
3333

3434
Pawn target = (Pawn) localTargetInfo.Thing;
3535

36+
if(!target.health.HasHediffsNeedingTend()) {
37+
continue;
38+
}
39+
3640
if(!pawn.CanReserveAndReach(target, PathEndMode.OnCell, Danger.Deadly, 1, -1, null, true)) {
3741
// TODO: Add grayed out message
3842
continue;

_PublisherPlus.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Configuration>
3+
<Title>Stabilize Here</Title>
4+
<Excluded>
5+
<exclude>A:\Steam\steamapps\common\RimWorld\Mods\Stabilize\.git</exclude>
6+
<exclude>A:\Steam\steamapps\common\RimWorld\Mods\Stabilize\Source</exclude>
7+
</Excluded>
8+
</Configuration>

0 commit comments

Comments
 (0)