Lines Matching refs:captures
49 Captures captures; in TryStartEnter()
50 if (!manager.StartCapture(self, enterActor, enterCaptureManager, out captures)) in TryStartEnter()
53 if (!captures.Info.ConsumedByCapture) in TryStartEnter()
56 DoCapture(self, captures); in TryStartEnter()
75 …var captures = manager.ValidCapturesWithLowestSabotageThreshold(self, enterActor, enterCaptureMana… in OnEnterComplete()
76 if (captures == null) in OnEnterComplete()
79 DoCapture(self, captures); in OnEnterComplete()
82 void DoCapture(Actor self, Captures captures) in DoCapture() argument
92 if (captures.Info.SabotageThreshold > 0 && !enterActor.Owner.NonCombatant) in DoCapture()
97 if (100 * (long)health.HP > captures.Info.SabotageThreshold * (long)health.MaxHP) in DoCapture()
99 var damage = (int)((long)health.MaxHP * captures.Info.SabotageHPRemoval / 100); in DoCapture()
100 enterActor.InflictDamage(self, new Damage(damage, captures.Info.SabotageDamageTypes)); in DoCapture()
102 if (captures.Info.ConsumedByCapture) in DoCapture()
113 t.OnCapture(enterActor, self, oldOwner, self.Owner, captures.Info.CaptureTypes); in DoCapture()
115 if (self.Owner.Stances[oldOwner].HasStance(captures.Info.PlayerExperienceStances)) in DoCapture()
119 exp.GiveExperience(captures.Info.PlayerExperience); in DoCapture()
122 if (captures.Info.ConsumedByCapture) in DoCapture()