Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding the Soldier Class a unit is promoted to #205

Open
robojumper opened this issue Mar 17, 2017 · 0 comments
Open

Allow overriding the Soldier Class a unit is promoted to #205

robojumper opened this issue Mar 17, 2017 · 0 comments

Comments

@robojumper
Copy link
Member

XComGameState_Unit.RankUpSoldier should contain a hook to allow mods to override the soldier class instead of having the class be determined by a variety of sources (XComHQ, ResistanceHQ etc.).

This could allow things such as a proper implementation of training roulette by just creating new soldier classes on the fly, provided a) the Unit state itself and b) the NewGameState is passed into the hook.
The return value should be able to indicate that the unit shouldn't be promoted in case someone wants to use this for Commander's Choice.

It should be a X2DLCInfo hook because rank ups can happen in a start state, which does not play well with event listeners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant