XCOM 2
134 个评价
Its Just A Scratch
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
42.572 KB
2016 年 2 月 13 日 上午 4:36
2016 年 2 月 16 日 上午 2:36
2 项改动说明 ( 查看 )

订阅以下载
Its Just A Scratch

描述
Prevents Infirmary time unless your soldier's health falls below their Base Health.

Examples:
Soldier has 10 health and 100 total health.
If at any point during the mission, your health drops below 10 health, you will get infirmary time = to that lowest health,
If your health never drops below 10 health, then no infirmary time.
Also, the time in the infirmary should be based on your remaining health vs your base health.
The base game considers remaining health vs total health

That's how it should work. If you're seeing something different please let me know so I can look into it.

I'm looking into hooking flash to indicate base health vs max health with the health pips, but it's buried in native code so .... IDK yet.



Classes overrode:
+ModClassOverrides=(BaseGameClass="XGStrategy", ModClass="JASStrategy")
++ModClassOverrides=(BaseGameClass="XComGameStateContext_StrategyGameRule", ModClass="JustAScratchStateContext_ScratchGameRule")

Strategy game rule because that's when the game puts soldiers in the infirmary after a mission.
XGStrategy because it calls a the static function of strategy game rule that I had to override. And it calls it by hard coded class name. Basically inside gamestate_unit, the game resets health to make sure you get infirmary time if you took any damage. Unfortunately you can't touch gamestates so I can't mess with that. So I just put the health back the way it was right before the infirmary check.

Also, standard boiler plate, it's a first release and not well tested. Back up saves, it could break everything.

Fixed bug that full healed crit wounded soldiers.
Added safeguard to never set health to 0. It shouldn't happen, but never too safe.
热门讨论 查看全部(1)
0
2016 年 7 月 9 日 下午 8:25
Mod Takeover/Update
Kemwer
57 条留言
Element UK 2017 年 8 月 31 日 上午 9:25 
Please make a version of this for WotC, It's badly needed for those of us who hate the fatigue and injury system
Element UK 2017 年 8 月 31 日 上午 9:24 
Emporor, you must have a mod causing conflicts then coz its fine for others and should have no affect on sparks
Plays Terrible Games 2017 年 7 月 6 日 下午 12:11 
WARNING, DO NOT USE THIS MOD IT WILL TOTALLY BREAK YOUR SPARKS ABILITY TO REPAIR. GET AN UPDATED ALTERNATE FROM THE COMMENTS BELOW.

Please keep this message or one like it on the top page of the comments.
Dragon32 2017 年 1 月 24 日 上午 1:07 
@Kaerius:
Use robjumper's update version, which he's linked below. Not sure if that works with LW 2 but it's a definite improvement over this original. You can remove it from a save game without crashing. That's a big one.
Kaerius 2017 年 1 月 23 日 下午 4:58 
This mod causes the infiltration bug in LW2(there may be others that do too, and this one does).
robojumper 2016 年 7 月 5 日 上午 2:29 
I copied his code and made it compatible with shen's last gift.
http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=717919318
Idejder 2016 年 7 月 4 日 上午 9:23 
Maybe if the mod owner comes back we can use this again. Or if someone adopts it please post!
Nitewolf 2016 年 7 月 4 日 上午 6:41 
And sadly I think this is another great mod that was abandoned by its author. Maybe someone can adopt it?
Death 2016 年 7 月 4 日 上午 2:17 
Can confirm, this mod prevents SPARK units from repairing while stationed in engineering.
Sakarbik 2016 年 7 月 2 日 上午 6:02 
I think this mod conflicts with the new SPARK unit. I have this installed and, when i send my SPARK to repair, it doesn't get repaired at all, even if i have it for weeks. It's very annoying, could you confirm it or get it to work properly?