In Progress Perk "Leader of the Masses" has unrelated description and effect.

Users who are viewing this thread

Version number
1.2.6
Branch
Beta
Modded/unmodded
No, I didn't use any mods.

世界知名伟人

Sergeant at Arms
The description in 1.2.6 says "+5% experience from battles shared with the troops in your party", that is not true.

C#:
public override int GenerateSharedXp(CharacterObject troop, int xp, MobileParty mobileParty)
{
    float num = (float)xp * DefaultPerks.Leadership.LeaderOfMasses.SecondaryBonus;
    if (troop.IsHero && !mobileParty.HasPerk(DefaultPerks.Leadership.LeaderOfMasses, true))
    {
        return 0;
    }
    if (troop.IsRanged && troop.IsRegular && mobileParty.HasPerk(DefaultPerks.Leadership.MakeADifference, true))
    {
        num += num * DefaultPerks.Leadership.MakeADifference.SecondaryBonus;
    }
    if (troop.IsMounted && troop.IsRegular && mobileParty.HasPerk(DefaultPerks.Leadership.LeadByExample, true))
    {
        num += num * DefaultPerks.Leadership.LeadByExample.SecondaryBonus;
    }
    return (int)num;
}

We can see from the code above. It doesn't check if the party leader has the perk. It will always generate 5% shared xp no matter if you have this perk or not.
We can see another effect not mentioned in the 1.2.6 description. Heroes won't generate any shared xp if the party leader doesn't have the perk. However, this effect was mentioned in old versions.
The description of this perk in 1.0.1 says "Heroes generate shared experience."
It still holds true in 1.2.6 while it doesn't mention it at all.
 
Last edited:
The issue you have reported has been forwarded to our QA team for further investigation. We might need additional information regarding this issue, such as screenshots or videos, save files or dump reports. Thanks for reporting and sorry for any inconvenience!
 
Back
Top Bottom