RimWorld

RimWorld

457 ratings
ApplyPressure
4
2
3
3
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
9.196 MB
20 Jul, 2024 @ 11:00pm
11 Jul @ 7:34am
11 Change Notes ( view )

Subscribe to download
ApplyPressure

Description
Add a feature that allows pawns to hold on to their wound to reduce bleeding instead of crawling.


Applying Pressure
You can toggle the behavior of your pawn when downed. Instead of crawling all the way back to base and potentially opening doors for the enemy, they can either stay where they are and apply pressure to their wound.


When can a pawn apply pressure
Whenever a pawn can crawl.
Note that apply pressure will stop whenever a pawn is not in a crawling state (can walk again, being tended, etc)
*Only player-controlled pawns will do this. Technically is because of performance. Lore-wise, enemies know what will happens if they get captured so would rather bleed to death than stop crawling to escape

How much bleeding is stop
bleed rate reduced = (Most severe bleeding' BleedRate) * stopBleedFactor * max( (pawn Manipulation) , manipulationCap)
stopBleedFactor and manipulationCap are configurable.

Technical
The difference between "Apply Pressure Now" and "Apply Pressure when safe" is happening before or after
the Vanilla <li Class="JobGiver_FleeDanger" /> in the Downed ThinkTreeDef.
<!--============= Downed ============--> <ThinkTreeDef> <defName>Downed</defName> <thinkRoot Class="ThinkNode_ConditionalDowned"> <subNodes> <li Class="ThinkNode_ConditionalCanCrawl"> <subNodes> <!-- Interrupts the crawling pawn every few seconds --> <li Class="ThinkNode_CrawlInterrupt"> <subNodes> <li Class="JobGiver_FleeDanger" /> <li Class="ThinkNode_ConditionalPlayerControlledColonist"> <subNodes> <li Class="JobGiver_PatientGoToBed" /> </subNodes> </li> </subNodes> </li> </subNodes> </li> <!-- Do a queued job if possible --> <li Class="ThinkNode_QueuedJob"> <inBedOnly>true</inBedOnly> </li> <li Class="JobGiver_IdleForever"/> </subNodes> </thinkRoot> </ThinkTreeDef>


Source and bug report on Github[github.com]
99 Comments
战地记者 射命丸  [author] 15 Aug @ 5:14am 
@ED-9527 不会
9527 14 Aug @ 2:08pm 
对盟友的小人有效吗?
indef 19 Jul @ 12:33pm 
@shadow,
I was just here looking, because I've been getting red errors when pawns are downed.

I am going to guess they are not compatible at this time.
Shadow 12 Jul @ 6:47am 
Good job making this mod, it's great. I wonder if this mod works with the TendYourself mod, if a downed pawn would both apply pressure to their wound, and tend themself.
Yitan 11 Jul @ 1:51pm 
Hi! I didn't know about this mod, it looks pretty good! However, from what I see in the calculation in the description, wouldn't it be better for the cap to be in (medicine + manipulation) /2?
战地记者 射命丸  [author] 11 Jul @ 7:19am 
Updated to 1.6. Let me know if there is any bug.
SghHanzMullerSW 10 Jul @ 7:29am 
okey :-)
战地记者 射命丸  [author] 7 Jul @ 6:52am 
@SghHanzMullerSW When it is officially out.
SghHanzMullerSW 3 Jul @ 6:47am 
1,6 ?
战地记者 射命丸  [author] 10 Jun @ 6:45am 
@Alien Beast Thank for the report. This dose sounds like a edge case I never think of. I will look into it when I have time.