Make capturing grant player experience
This commit is contained in:
@@ -77,6 +77,13 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
capturable.EndCapture();
|
||||
|
||||
if (self.Owner.Stances[oldOwner].HasStance(capturesInfo.PlayerExperienceStances))
|
||||
{
|
||||
var exp = self.Owner.PlayerActor.TraitOrDefault<PlayerExperience>();
|
||||
if (exp != null)
|
||||
exp.GiveExperience(capturesInfo.PlayerExperience);
|
||||
}
|
||||
|
||||
if (capturesInfo != null && capturesInfo.ConsumeActor)
|
||||
self.Dispose();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user