feat: improved compatibility with mutators that use basic perks to get information
for example, FriendlyHUD - it displays perk icons correctly now.
This commit is contained in:
parent
d542507036
commit
25b1183585
@ -129,6 +129,7 @@ function ApplyPerk(Ext_PerkBase P)
|
|||||||
{
|
{
|
||||||
PRIOwner.ECurrentPerk = P.Class;
|
PRIOwner.ECurrentPerk = P.Class;
|
||||||
PRIOwner.FCurrentPerk = P;
|
PRIOwner.FCurrentPerk = P;
|
||||||
|
PRIOwner.CurrentPerkClass = P.BasePerk;
|
||||||
P.UpdatePRILevel();
|
P.UpdatePRILevel();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,6 +191,7 @@ simulated function InitPerks()
|
|||||||
if (CurrentPerk!=None)
|
if (CurrentPerk!=None)
|
||||||
{
|
{
|
||||||
PRIOwner.ECurrentPerk = CurrentPerk.Class;
|
PRIOwner.ECurrentPerk = CurrentPerk.Class;
|
||||||
|
PRIOwner.CurrentPerkClass = CurrentPerk.BasePerk;
|
||||||
CurrentPerk.UpdatePRILevel();
|
CurrentPerk.UpdatePRILevel();
|
||||||
}
|
}
|
||||||
PRIOwner.RepKills = TotalKills;
|
PRIOwner.RepKills = TotalKills;
|
||||||
|
Loading…
Reference in New Issue
Block a user