世界知名伟人
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.
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.
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: