Skip to content

Remove hard-coding referring to PsiOperative class in XComGameState_Unit and Allow other classes to be treated as Psionic #88

@kyuubicle

Description

@kyuubicle

There are several mods on the workshop that recreate the Psi-Operative as a new class in order to allow them to rank up like normal units. However, the Chosen (and likely other things) react to specifically the PsiOperative class. One mod (which seems to have been removed by the author) fixed this by overriding several functions in XCOMGameState_Unit

Several functions in XComGameState_Unit function refer to PsiOperative class specifically in order to do things such as the Hair-Coloring and Random Perk Allocation (RankUpSoldier), and Preventing the soldier from ever gaining AP or ranking up normally (HasAvailablePerksToAssign).

Another function, IsPsionic(), checks for this class as well. As does IsPsiOperative()

Ideally, a fix would allow a unit to be treated as a Psionic-Class (PsiOperative) in all respects and allowing the PsiOperative or other such class to gain AP and rank up normally.
IE: Separating being Psionic/PsiOperative from ranking up normally, gaining AP normally, and assigning Perks normally.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions