protected override bool e() { switch (this.f) { case c2.a.a: if (this.e == PluginCore.ch) { if (!PluginCore.cq.n.n.b(ActionLockType.ItemUse)) { int num = this.g(); if (num == 0) { PluginCore.e("Warning: cannot find portal object " + this.a + "! Continuing route at next point."); return(false); } this.d = PluginCore.cq.p.d(PluginCore.cq.p.f()).b(PluginCore.cq.ax.get_Actions()); PluginCore.cq.n.n.a(ActionLockType.ItemUse, TimeSpan.FromSeconds(3.0)); PluginCore.cq.ax.get_Actions().UseItem(num, 0); } return(true); } this.f = c2.a.b; return(true); case c2.a.b: if (PluginCore.ch < (this.e + 2L)) { return(true); } if (PluginCore.cq.p.d(PluginCore.cq.p.f()).b(PluginCore.cq.ax.get_Actions()).a(this.d, true) <= 0.0625) { PluginCore.e("Warning: use portal route came out of portal space too close to the origin point. Trying again..."); this.f = c2.a.a; this.e = PluginCore.ch; return(true); } return(false); } return(false); }
protected override void f() { this.f = c2.a.a; this.e = PluginCore.ch; }