[DLC05] Misandry:
<GameModifier>
<ModType>Unit</ModType>
<Attribute>AdjustUnitStat</Attribute>
<StrVal>UnitStat_ChanceToCrit</StrVal>
<StrVal2>UnitStat_IsMale</StrVal2>
<Value>20</Value>
<BonusValue>0.5</BonusValue>
<Provides>+20 to Critical Hit chance vs Male opponents</Provides>
<vsHigher>1</vsHigher>
</GameModifier>
[LH 1.6] CoreUnitStats
<UnitStatType InternalName="UnitStat_IsMale">
<DisplayName>Is Male</DisplayName>
<Description>Is this unit male.</Description>
<Icon>Stat_SpawnRating_Icon.png</Icon>
<Hidden>1</Hidden>
<DefaultValue>0.0</DefaultValue>
</UnitStatType>
I suppose for Misandry to work properly, that UnitStat_IsMale "1" actually needs to be given to all the Male units? At the moment no units have said UnitStat. Now I suppose it's possible that this thing is hardcoded but...
So I made some tests with Dhana and an Enzo knife. I also modified the core value for Misandry to 95 meaning, according to said example above, that Dhana should have +95 to Critical Hit Chance vs Male opponents.
Dhana Critical Chance = 1
Militia/Spearmen Critical Chance = 0 (Gender = Male, but no UnitStat)
Irane Critical Chance = 11 (1 Base + 10 Assassin, Gender = Female, but no UnitStat)
Relias Critical Chance = 1 (Gender = Male, but no UnitStat)
Malkin Critical Chance = 1 (Gender = Male, UnitStat_IsMale = 1, ADDED the UnitStat myself)
Results:



As can be seen, I was only getting Criticals (3 out of 3) against Militia/Spearmen which have, themselves, Critical Chance = 0 (Male, No UnitStat). I wasn't getting (0 out of 14) them against Irane (Female, No UnitStat), Relias (Male, No UnitStat), or Markin (Male, UnitStat_IsMale=1).
Is this working properly?
_________________________
LH Mods by Primal
XtraDeconstruct
XtraDeconstruct Canons