XCOM 2
53 ratings
[WOTC] Reward Soldier Classes
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
790.084 KB
2 May, 2024 @ 10:59pm
12 Apr @ 11:33pm
6 Change Notes ( view )

Subscribe to download
[WOTC] Reward Soldier Classes

In 2 collections by lordabizi
LordAbizi's War Of The Glass
34 items
War Of The Glass Collection
450 items
Description
Reward Soldier Classes

Abstract
This mod allows the player to turn certain classes into reward-only classes.



Overview
The goal of this mod, is to create a framework to allow the player to designate some classes as "reward-only" classes. Such classes will then no longer be available as random promotions, and the only way to obtain them is by mission rewards, scanning sites, or being availabl at the black market. This allows the player to diversify the class roster while retaining the unique character of certain classes.

The way this mod works is by an Event Listener for the "Reward Soldier Generated" event. Upon intercepting the event, the mod rolls a class from the deck defined within the configs, and changes the created soldier's classs into the new class.

The class selection is done by emulating a deck: each reward class has a number of decks in a card, and each class rerolling uses one card in the deck. Once the deck is empty, the entire deck is reshuffled.

On its own this mod does nothing.



Configuration
XComRewardClasses - The only config file this mod has. The main tool is the RewardClasses array in which the player defines the new classes to be used as rewards. See the example provided within for reference.
DontChangeThoseClasses gives you a list of classes that should not be rerolled. By default this includes the rookie class (for rookie reward scanning sites). This can also be used if the player wants to preserve some of the "normal" classes to funciton as reward classes.
FirstTimeOnly - controls whether or not this class should be repeatedly shuffled back to the deck, or only added when the first is built for the first time (for "special" classes that you should only have one of).
BannedCharacterTemplates is a list of character templates for which the mod will refuse to reroll a class. Should include custom character templates. If using for exmaple playable aliens, it's probably wise to add them (otherwise it could be that Mutons would lose their class).



Compatibility
Compatibility with modded character templates like Playable Aliens is on the user's responsibility, as explained above.
To make this mod compatible, with, e.g., TeslaRage's "Resuce Resistance Leader" mod, add the classes eligible for the chain to the DontChangeThoseClasses array.
The mod should work on existing campaign, but will not change retroactively any existing rewards (for example if the Black Market currently has a soldier reward, its class will not be changed. Next month it should).


Required Mods
No.


Known Issues
  • This mod should prevent the reward classes from showing up on promotions, but it might fail to do so because reasons. The player can use Disable Any Class Redux to prevent those classes from being eligible. It will not hurt the function of this mod.
This mod has several console commands to monitor its behavior:
RewardClassDecks_Print - Prints the current status of the reward deck.
RewardClassDecks_Rebuild - Rebuilds the current status of the deck. Necessary if config changes are made during the campaign.
RewardClassDecks_ModifyCardCounts - Allows manual modification to the deck.


Acknowledgements
The author is extremely grateful to Zelfana and Iridar for useful discussions related to this work.
The author is also grateful to DiesIrae for useful discussions and beta testing this mod.
As usual, the author is grateful to the members of the MEME Discord server for useful discussions and continued emotional support.
Hamas is ISIS.
28 Comments
Canthyse 10 Jun @ 6:33am 
never though of adding them in this mod, I'll try that, thanks
lordabizi  [author] 9 Jun @ 10:04pm 
ahhh the playable aliens stuff... well they all have different character template, no? or unique classes? Then you can add those cahracter templates or classes to the configs of this mod. (I even have a comment about this in the mod description here!)
Canthyse 9 Jun @ 7:29am 
I mean the follow up mission that you have to rescue the class soldier. But if theres no way to separate the templates, then sadly it is what it is.
I play with Playable Aliens for LWOTC, but theres no compatibility like the "Rescue Chain Mod" to exclude the classes I dont want in the rescue mission. I tried this with the Supersoldiers Mod, and they have the priority first, and after i got all of them, the Alien class rewards appears.
lordabizi  [author] 8 Jun @ 10:34pm 
since when can you get soldier rewards from covert actions?
But no, unfortunately anything that uses the same Reward Template is affected. I can't really track in the mod what generated the reward.
Canthyse 8 Jun @ 12:27pm 
its there a way for the soldiers to not be on CA Reward missions? Asking because I only want them to be either on market or POI only.
Dragonlord 1 Jan @ 4:08am 
Supersoldiers about to make a comeback baby... Time to make a NOT-so supersoldiers redux with them being unique. Thanks you @lordabizi
lordabizi  [author] 7 Jul, 2024 @ 9:35pm 
faction soldiers might be ok-ish, sparks will probably be less ok-ish, but might still work without the computer bursting into flames. Remember: for best results it's better to avoid doing silly things.
Haite 7 Jul, 2024 @ 11:18am 
Has anyone tried faction heroes or sparks?
Kawapatch 19 May, 2024 @ 5:41am 
Cheers for clearing those up lordabizi! :8bitheart:
lordabizi  [author] 18 May, 2024 @ 2:15am 
1) yes, if you only list a single class, then it would replace all reward soldiers to this class.
2) the way DontChangeThisClass works is that I check which class the reward was meant to be. If it's on the DontChangeThisClass list, I skip further logic.