XCOM 2
870 ratings
WOTC Flawless
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
8.363 MB
Sep 3, 2017 @ 7:27am
Feb 24, 2019 @ 7:57am
5 Change Notes ( view )

Subscribe to download
WOTC Flawless

Description
Original version can be found at:
http://steamcommunity.com/sharedfiles/filedetails/?id=729580495


Currently, if you complete a mission with no fatalities and no damage received, you receive
a Flawless rating ( i.e., a pat on the back for a job well done).

This mod gives the player an additional reward, above and beyond the usual reward for the
mission in the form of Resources, Common Items, and Rare Items.

This mod has also integrated the Achievement System mod logic, and supports a number
of achievements related to completing a mission with a flawless rating.

An additional reward system has been added for terror missions. You now have a chance
to receive a new Rookie recruit as a reward for job well done on terror missions.

CONFIGURABLE LOOT TABLES

You can change the values in
Steam\SteamApps\workshop\content\268500\1127174933\Config\XcomFlawless.ini.

ResourceLootTable - specifies a list of resources you can receive.

Each entry is of the form:
TemplateName,Min Reward Amount,Max Reward Amount

There must be at least one item in the list. No spaces allowed.
The sequence numbers must be continuous from 0 to the max index.


ItemLootTable - specifies a list of common items you can receive.

Each entry is of the form:
TemplateName

There must be at least one item in the list.
The sequence numbers must be continuous from 0 to the max index.


RareItemLootTable - specifies a list of rare items you can receive.

Each entry is of the form:
TemplateName

There must be at least one item in the list.
The sequence numbers must be continuous from 0 to the max index.

ChanceForItemLoot- specifies the percentage chance
of getting an item reward. Default 20.

ChanceForRareItemLoot- specifies the percentage chance
of getting a rare item reward. Default 5.


Adding an Item to the Loot Table

Most template names can be found in
Steam\SteamApps\common\XCOM 2\Development\SrcOrig\XComGame\Classes
in files beginning with "X2ItemDefault". I make no guarantees
that all templates will work, so modify at your own risk.
Templates from other mods will *probably* work, but again
try at your own risk.

NOTE: Do not completely remove any of the loot tables or ...
"Bad Things May Happen" (tm). The code will not correctly handle
missing lists, it needs at least 1 item present.

To completely turn off item rewards, you will need to set both
ChanceForItemLoot and ChanceForRareItemLoot to zero.


ACHIEVEMENTS
This mod has been changed to support Achievements. To enable
achievements, you will need to download the "Mod Achievement System" at:
http://steamcommunity.com/sharedfiles/filedetails/?id=729577219

This other mod is not required to run Flawless - just to enable
the achievement portion.

NOTE: I have not been able to get the Achievements to work
correctly with an existing campaign. You may need to start a new
campaign. Any issues with achievements will need to be directed
to the author of the Mod Achievement System.


TERROR MISSION REWARDS

This mod now gives a random Rookie as a reward for doing well on a terror mission.
You start out with a 20 percent chance of getting this reward if you save the minimum 6 people.
Every person beyond that adds to your percent chance, all the way up to 100% if you save everyone.
An associated achievement has also been added for when you recieve a Rookie reward.

Configuration:
GiveTerrorRewardFlag: Turns this reward on/off. Default value Y.
BaseTerrorRewardChance - the base percent chance of getting this reward when you save the
minimal 6 people. Default value = 20.

REWARD MESSAGES

A sequence of reward messages can be found in
Steam\SteamApps\workshop\content\268500\1127174933\Localization\WotcFlawless.int.
They are specified in an array called
RewardVerbiage[x].

Each message has a prefix of the form [IMAGENAME] to specify which image will appear with the message,
see the comments in the WotcFlawless.int localization file for details.

If you get bored with the existing messages, and feel creative, you
can add to the list or change existing messages.
Just be sure the sequence numbers are unbroken
from 0 to the max sequence number.

ABILITY POINT REWARD

Set this value to N to turn off the ability point reward.
GiveAbilityPointRewardFlag=Y

Set this value to specify the range of ability points that can be awarded. ( in this case between 2 to 4 points can be awarded )
AbilityPointReward=2,4



IMPORTANT:
Be sure to make a backup of your config file after you make changes.
I anticipate having to make additional changes to either loot
table entries or logic, and republishing will overwrite any changes
you've made.

Credits
Images for the reward messages provided by neIVIesis. Much thanks for his idea on implementing this change
and working on the images.


Compatibility
No Class Overrides


Updates

9/13/2017 Added additional ability point reward. Additional reward text.
7/13/2018 Changed code to allow compatibity with mods which override UIMissionSummary.
2/24/2019 Changed code to allow a unique image to appear for each reward message. Changed the Julian reward message to only appear after the tower mission.





Popular Discussions View All (3)
1
Jun 1, 2019 @ 8:49am
korean translation
............
0
Dec 29, 2019 @ 8:21pm
Nerfed Flawless Rewards
[DBH]*Whismerhill*{SSgt}
0
Jan 30, 2018 @ 4:37pm
Localization
Erazil
< >
168 Comments
Drakten May 4 @ 12:52pm 
Thank you for the answers!
krj12  [author] May 4 @ 4:31am 
only on completion of a flawless mission.
Drakten May 3 @ 7:05pm 
Ok thanks. And the AP are only dependent on executing missions right? There's no AP distributed monthly, when the Supply Drop happens?
krj12  [author] May 3 @ 6:57pm 
it goes to the pool
Drakten May 3 @ 6:11pm 
Quick question @krj12 : are ability points sent to the X-Com pool or to a random soldier? I just had my X-Com pool jump to 52 points after a few Flawless missions. I don't have any other mods affecting Ability Points (I think)
krj12  [author] Apr 14 @ 7:39pm 
I've seen this in my own game runs a few times. I think something occurred in the last patch that affected the way asynchronous events occur in the game ( like this mod giving rewards while the game is giving out the standard rewards). I think the two threads are interfering with eachother. Not sure exactly how to fix it, so I'd just take it out of the loot table to avoid the issue.
Endless Boogie Apr 14 @ 3:54pm 
Thanks @Dragon32 I just had a flawless mission with cores as a reward and this time I have them in my inventory. Apparently, but am not totally sure, the problem occurs only after a supply raid, especially if no cores were won from Advent crates (so that's only in the missions when u have to mark crates). I will edit my message when I have more information on that subject. I'll try to pay attention to what happens to the cores.
Dragon32 Apr 14 @ 3:23pm 
@Endless Boogie
IIRC, there were a number of comments earlier in this thread about Elerium Cores not dropping as part of the mission rewards. COuld be worth checking back to see if anyone posted a solution.

In my personal copy I've nerfed the rewards, including removing the chance of receiving Cores so I don't know.
Endless Boogie Apr 14 @ 2:03pm 
Hello, I have been using this cool mod for a while now and I don't remember having any issues. But during my 2 latest campaigns the elerium cores that I won were not taken into account in my inventory. It just happened again today after a supply raid. I didnt get any cores from the raid itself (I didn't mark enough crates) but the mission was flawless, the reward was 2 cores. I checked the proving ground and unfortunately I still have zero cores.
rempsv Apr 1 @ 12:22pm 
I am playing it now on beta2 devbuild 14 and it works flawless. I do recommend lowering rewards, you get mats to fast with this one.