9 public bool IsValidTarget()
11 return this.target !=
null && this.target.ExistsOnMap && this.target.isDeconstructing;
15 public override IEnumerable<
AIAct.Status> Run()
17 if (this.target !=
null)
19 this.target.SetDeconstruct(
true);
23 this.target =
EClass._map.props.deconstructing.RandomItem<
Card>();
25 if (!this.IsValidTarget())
27 yield
return this.Cancel();
29 yield
return base.DoGoto(this.target,
null);
31 progress_Custom.canProgress = (() => this.IsValidTarget());
32 progress_Custom.onProgressBegin = delegate()
37 this.owner.PlaySound(this.target.material.GetSoundImpact(
null), 1f,
true);
38 this.target.renderer.PlayAnime(AnimeID.Shiver,
default(Vector3),
false);
40 progress_Custom.onProgressComplete = delegate()
42 this.target.Deconstruct();
45 yield
return base.Do(seq,
null);