边缘世界 RimWorld

边缘世界 RimWorld

466 个评价
按压止血
4
2
3
3
2
   
奖励
收藏
已收藏
取消收藏
Mod, 1.5, 1.6
文件大小
发表于
更新日期
9.196 MB
2024 年 7 月 20 日 下午 11:00
7 月 11 日 上午 7:34
11 项改动说明 ( 查看 )

订阅以下载
按压止血

描述
添加一个让小人选择倒地后不爬行而是原地止血的按钮


按压止血
你可以选择小人倒地后(如果有操作能力)的行为. 与其一路爬回基地再顺便帮敌人开个门,他们可以原地给自己的伤口加压止血.


什么时候可以按压止血
条件等同于爬行.
注意:止血在小人不能爬行后会立刻终止(恢复能走动、被治疗、等等)
*出于性能考虑,只有玩家小人能进行这个操作。 你可以理解为你殖民地的囚犯待遇已经声名远扬,敌人宁愿流血致死也不愿意被俘虏

止血效果
止血量 = (最严重hediff的 BleedRate) * stopBleedFactor * max( (操作能力) , manipulationCap)
stopBleedFactor 和 manipulationCap 可以在设置里调整.

技术细节
"立刻按压" 和 "安全后按压" 的区别是发生在原版 Downed ThinkTreeDef的
<li Class="JobGiver_FleeDanger" /> 工作的前后 .
<!--============= 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>


源码和bug报告请到 Github[github.com]
99 条留言
战地记者 射命丸  [作者] 8 月 15 日 上午 5:14 
@ED-9527 不会
9527 8 月 14 日 下午 2:08 
对盟友的小人有效吗?
indef 7 月 19 日 下午 12:33 
@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 7 月 12 日 上午 6:47 
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 7 月 11 日 下午 1:51 
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?
战地记者 射命丸  [作者] 7 月 11 日 上午 7:19 
Updated to 1.6. Let me know if there is any bug.
SghHanzMullerSW 7 月 10 日 上午 7:29 
okey :-)
战地记者 射命丸  [作者] 7 月 7 日 上午 6:52 
@SghHanzMullerSW When it is officially out.
SghHanzMullerSW 7 月 3 日 上午 6:47 
1,6 ?
战地记者 射命丸  [作者] 6 月 10 日 上午 6:45 
@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.