[LH 1.8] [DLC05] [Gremlin] Misandry

[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

2,878 views 2 replies
Reply #1 Top

It is, there is code that returns the gender without needing to have a unitstat set. I used some massive values on the checks to prove that it was working correctly.

Reply #2 Top

Quoting Derek, reply 1
It is, there is code that returns the gender without needing to have a unitstat set. I used some massive values on the checks to prove that it was working correctly.
End of Derek's quote

 

Good to know about the Gender code.

 

That being said, unless Male Sovereigns (and possibly other champions) are supposed to be immune to Misandry, this isn't working properly. Even if Male Sovereigns are supposed to be immune to Misandry, then DLC05 Male Sovereigns aren't (At least General Tarth wasn't...) while Core Male Sovereigns are.

 

FAILURE

Verga (Core Male Sov) vs Dhana (Misandry 100%)


SUCCESS

General Tarth (D5 Male Sov) vs Dhana (Misandry 100%)


SUCCESS

MODIFIED Verga (Core Male Sov) vs Dhana (Misandry 100%)


In order for Verga to become vulnerable to Misandry I had to remove this (Which isn't found anywhere in the DLC05_Units):

<CreatureType>Champion</CreatureType>

 

_________________________

LH Mods by Primal

XtraDeconstruct

XtraDeconstruct Canons