XCOM 2
587 ratings
Flawless
   
Award
Favorite
Favorited
Unfavorite
Tags:  gameplay
File Size
Posted
Updated
360.031 KB
Jul 22, 2016 @ 2:38pm
Sep 16, 2016 @ 4:41am
5 Change Notes ( view )

Subscribe to download
Flawless

Description
WOTC Version can be found at:
http://steamcommunity.com/sharedfiles/filedetails/?id=1127174933


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\729580495\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\729580495\Localization\Flawless.int.
They are specified in an array called
RewardVerbiage[x].

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.


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.



Compatibility
No Class Overrides


UPDATES

7/29/2016:
Configurable loot tables.
Item rewards ( PCS, Grenades, etc. )
Configurable reward messages.
Achievement System

9/16/2016:
Additional reward messages.
New rookie reward on terror missions.


Popular Discussions View All (7)
6
Aug 27, 2017 @ 11:42am
Bug report
JiMMy
5
Jun 23, 2018 @ 8:44pm
Long War 2 value suggestions
The Gunslinger
2
Apr 22, 2018 @ 1:02pm
Flawless Rating affected by mind-controlled enemies, Haven Siege,
Zergged.XH
154 Comments
Deaxsa Nov 16, 2020 @ 11:45am 
I've run into an issue with my base game where I won't get PCS from hacking. So I've decided to use this mod as a Band-aid. In particular, I've replaced all item lists with PCS of the appropriate level. I am, however, trying to find the best way to do this. If I replace all the Resource loot with common pcs, the items with rare pcs, and the rare items with epic PCS, then edit the item/rare item chances to be 35% and 20%, will I get

A) PCS 45% of the time, PCS+ 35% of the time, and PCS++ 20% of the time? (Or is the 20% out of the 35%?)
B) A Functional mod?

I'm going to attempt this, wish me luck.
krj12 (Ken)  [author] May 1, 2020 @ 7:10pm 
it's a known issue about the elerium cores, something they broke with their last patch. You can just take it out of the rewards table.
Vythica Novern May 1, 2020 @ 7:24am 
2 years later but just trying this out, on the first mission i got an elerium core on a flawless reward but it didnt actually go into my inventory. Is that what is meant by "there must be at least one item in the list"? (aka i have to actually have an elerium core first to get another bonus one)
Otherwise this mod might need to be updated
La Criatura Espada Apr 22, 2018 @ 1:01pm 
So, for taking no damage, I got questions.
Can shields (Orange HP bar that isn't a trooper's health) take the damage for someone and still get the Flawless bonus?
Do hacked enemies (Turrets and MECs) when under your control, if they take damage, does that affect getting the flawless bonus?
Grimaldus Apr 1, 2018 @ 11:42am 
love the event messages, but it unbalances the game completely on Veteran. Maybe do something like 75% less res on veteran, 50% on commander, 25% less on Legend. I modified mine, but i was speaking in general. Thanks!
krj12 (Ken)  [author] Mar 11, 2018 @ 6:53am 
Yeah, I had one user mention that earlier. A lot of effort to prevent one message from appearing, really not worth it at this point. You could always remove it from the localization file if you wish.
Captain Obvious Mar 11, 2018 @ 1:28am 
Something I've noticed is the mod can sometimes give a bonus reward message that doesn't make sense based on your current game progress. For example, I got a reward message saying that a MEC with Julian's voice came up to me and apologized for what he did. The thing is, he hasn't done anything yet on this playthrough. I don't know how easy it would be, but some kind of system to prevent certain messages from appearing until the relevant mission has been completed could be a good idea.
TheRealGeordieLad Feb 19, 2018 @ 4:43am 
Doesnt seem to work with me, might try having a mod clear out for the next game I start
krj12 (Ken)  [author] Feb 1, 2018 @ 2:30pm 
no, it should work with either an existing or new game - just need to have a flawless rating.
TheRealGeordieLad Feb 1, 2018 @ 7:09am 
Any idea why this wouldnt be working? Do i need to go "activate" it in an ini or something? Does it only work with a fresh game and not with a already started one?