XCOM: Chimera Squad

XCOM: Chimera Squad

235 个评价
Captures are Okay
4
   
奖励
收藏
已收藏
取消收藏
标签: Balance, Bugfix
文件大小
发表于
更新日期
647.649 KB
2020 年 5 月 14 日 上午 4:05
2020 年 5 月 15 日 上午 2:41
9 项改动说明 ( 查看 )

订阅以下载
Captures are Okay

描述
# CapturesAreOkay README

This is the README for the XCOM: Chimera Squad mod, 'Captures are Okay.'

The game has a bug where kills are rewarded XP but captures aren't. What kind of message is that sending? This mod is to fix that bug.

## Features

The trivial way for Firaxis to fix this bug is to add a variable like XComGameState_Unit.CapturedUnitsLastMission, then update it each time a unit goes unconscious. Then modify X2ExperienceConfig.AwardMissionXP().

As mods can't modify XComGameState_Unit directly, I'm using a workaround. I override AwardMissionXP(), and I get the captures count via XComGameState_Unit.WetWorkKills. How/why? It's an unused variable. I reset the variable after the event 'OnUnitBeginPlay.'

The variable is set after the event 'TacticalGameEnd.'
I'm assuming the captor is the same as unconsciousUnit.LastDamagedByUnitID. So far, that seems to work.

Note: I wanted to set WetWorkKills after the event 'UnitUnconscious.' But changes to WetWorkKills wouldn't persist. I don't know enough about GameStates, etc. to know how to fix that.
On the bright side, if you install the mod and load a game mid-mission, it should run fine!

Note: OnPreMission() and OnPostMission() hooks don't work in Chimera Squad.

> Tip: The mod logs XP gains in the Balance log. There is also a mod in the Steam Workshop to show XP in the Armory. You can combine these to make sure the mod is working. If you find a bug, please include such logs/Armory pics. You can post to reddit (e.g., xcom2mods) or email me at geoffhom@gmail.com.

> Tip: There's a bug in XComGameState_Unit.OnUnitUnconscious(). What it refers to as the 'Captor' is actually the unit that was knocked unconscious. So don't trust CapturedUnitsLastTurn and CapturedUnits.

> Tip: Kill/Capture XP is rounded. So 2 kills/captures = 0.5, rounded to 1 XP. 5 kills/captures = 1.25, rounded to 1 XP.

> Tip: Mod code is at https://github.com/geoffhom/captures-are-okay.

## Requirements

The mod overrides X2ExperienceConfig.AwardMissionXP().

It also writes to XComGameState_Unit.WetWorkKills, as I think this is unused in Chimera Squad.

This mod listens to the events 'OnUnitBeginPlay' and 'TacticalGameEnd.'
31 条留言
SSOutPhase 2023 年 11 月 16 日 下午 6:34 
@Haru Same here. Just finished campaign and majority of my squad was maxed out with over 400 captures. I played vanilla so I think the game was balanced pretty well.
Haru 2023 年 4 月 1 日 上午 8:52 
I just finished a normal campaign and thought to browse through the mods when stumbling over this.

I am not quite sure if this is still up to date. I finished my Campaign modless with almost 600 captures and 130 kills, the kills mostly being androids which can't be captured.

I had no problem with getting EXP. 7/8 of my Squad members reached max level with the 8th coming one level short.

Didn't feel as if I wouldn't get xp from captures.
zin 2023 年 4 月 1 日 上午 3:58 
Can anyone even confirm if this is a bug? I want to use this mod if this is a bug, but I don’t want to use the mod if this is intended behaviour.

It may be intended. Considering tranq rounds exist, it may just be another reason to decide between knocking someone unconscious and killing them.
Cloud 2022 年 10 月 16 日 下午 5:20 
Anyone know if this works with roster size workaround?
Uuugggg 2022 年 5 月 25 日 上午 8:14 
But there's zero reason to think you don't get XP for captures. You already have to manage
the capture - going into melee, doing small small amounts of damage. That's enough choice/cost that the XP thing is a ridiculous oversight.
LordDay 2022 年 5 月 8 日 上午 3:29 
@TGWeaver I think this is a purposeful choice so that you have tomake the decision between XP and capture bonuses.
Agrippa HX 2021 年 8 月 10 日 下午 6:51 
@TGWeaver — Wasn't there just the one bug fix patch since release?
TGWeaver 2021 年 8 月 10 日 上午 6:40 
That they never patched this (and at this point, probably never will) is such a sad state of affairs. They can't patch a year-long bug this big and easy to fix, but they can add their own launcher that breaks everything.
abred_vs_annwn 2021 年 3 月 17 日 下午 2:44 
still not patched?
Macabre 2020 年 12 月 2 日 下午 8:52 
Can anyone confirm is this bug still persists? or has it been patched..?