public void LeapAttack(LocalTargetInfo target) { if (target != null && target.Cell != default(IntVec3)) { if (this.Pawn != null && this.Pawn.Position.IsValid && this.Pawn.Spawned && this.Pawn.Map != null && !this.Pawn.Downed && !this.Pawn.Dead && !target.Thing.DestroyedOrNull()) { this.Pawn.jobs.StopAll(false); FlyingObject_Leap flyingObject_Leap = (FlyingObject_Leap)GenSpawn.Spawn(LeaperDef, this.Pawn.Position, this.Pawn.Map, WipeMode.Vanish); flyingObject_Leap.Launch(this.Pawn, target.Cell, this.Pawn); } } }
// Token: 0x0600061D RID: 1565 RVA: 0x00058610 File Offset: 0x00056810 public void LeapAttack(LocalTargetInfo target) { bool flag = target != null && target.Cell != default(IntVec3); bool flag2 = flag; if (flag2) { bool flag3 = this.Pawn != null && this.Pawn.Position.IsValid && this.Pawn.Spawned && this.Pawn.Map != null && !this.Pawn.Downed && !this.Pawn.Dead && !target.Thing.DestroyedOrNull(); if (flag3) { this.Pawn.jobs.StopAll(false); FlyingObject_Leap flyingObject_Leap = (FlyingObject_Leap)GenSpawn.Spawn(ThingDef.Named("FlyingObject_Leap"), this.Pawn.Position, this.Pawn.Map, WipeMode.Vanish); flyingObject_Leap.Launch(this.Pawn, target.Cell, this.Pawn); } } }