Пример #1
0
        public static v a(aj.c A_0)
        {
            v v = new v(PluginCore.cq.l.c["MyMonsters"]);

            v[0]    = k.a(A_0.t);
            v[1]    = k.a(A_0.a);
            v[2]    = k.a((int)A_0.b);
            v[3]    = k.a(A_0.e);
            v[4]    = k.a(A_0.f);
            v[5]    = k.a(A_0.g);
            v[6]    = k.a(A_0.h);
            v[7]    = k.a(A_0.j);
            v[8]    = k.a(!A_0.s);
            v[9]    = k.a(A_0.i);
            v[10]   = k.a(A_0.k);
            v[11]   = k.a(A_0.l);
            v[12]   = k.a(A_0.m);
            v[13]   = k.a(A_0.n);
            v[14]   = k.a(A_0.o);
            v[15]   = k.a(A_0.p);
            v[0x10] = k.a(A_0.q);
            v[0x11] = k.a(A_0.r);
            v[0x12] = k.a((int)A_0.c);
            v[0x13] = k.a((int)A_0.d);
            return(v);
        }
Пример #2
0
    public bool b(int A_0, c A_1)
    {
        ev cq = PluginCore.cq;

        if (!cq.n.f.ContainsKey(A_0))
        {
            return(false);
        }
        if (!dh.a(A_0))
        {
            return(false);
        }
        cf local1 = cq.n.f[A_0];

        aj.c c = cq.d.a(PluginCore.cq.p.d(A_0));
        MyQuad <int, eDamageElement, ePrismaticDamageBehavior, int> quad = null;

        if (c.g)
        {
            quad = A_1.a();
        }
        TimeSpan span = TimeSpan.FromSeconds((double)er.i("DebuffPrecastSeconds"));

        if (((((!c.h || (cq.i.a(A_0, this.a("Magic Yield Other I")) > span)) && (!c.m || (cq.i.a(A_0, this.a("Weakening Curse I")) > span))) && ((!c.f || (cq.i.a(A_0, this.a("Imperil Other I")) > span)) && (!c.j || (cq.i.a(A_0, this.a("Gravity Well")) > span)))) && (((!c.k || (cq.i.a(A_0, this.a("Broadside of a Barn")) > span)) && (!c.l || (cq.i.a(A_0, this.a("Fester Other I")) > span))) && ((!c.n || (cq.i.a(A_0, this.a("Festering Curse I")) > span)) && (!c.o || (cq.i.a(A_0, this.a("Corruption I")) > TimeSpan.Zero))))) && (((!c.p || (cq.i.a(A_0, this.a("Destructive Curse I")) > TimeSpan.Zero)) && (!c.q || (cq.i.a(A_0, this.a("Corrosion I")) > TimeSpan.Zero))) && ((!c.g || (cq.i.a(A_0, this.a(cq.h.a(quad.b, eCombatSpellType.Vuln))) > span)) && ((c.c == eDamageElement.None) || (cq.i.a(A_0, this.a(cq.h.a(c.c, eCombatSpellType.Vuln))) > span)))))
        {
            return(false);
        }
        return(true);
    }
Пример #3
0
 public aj.c a(cv A_0)
 {
     aj.a key = new aj.a(A_0);
     if (this.b && this.a.ContainsKey(key))
     {
         return(this.a[key]);
     }
     aj.c c = this.a(key, A_0);
     this.a[key] = c;
     return(c);
 }
Пример #4
0
    public bool a(int A_0, bool A_1)
    {
        ev cq = PluginCore.cq;

        if (!cq.n.f.ContainsKey(A_0))
        {
            return(false);
        }
        if (!dh.a(A_0))
        {
            return(false);
        }
        aj.c c = cq.d.a(PluginCore.cq.p.d(A_0));
        if (!A_1 && ((c.s && !c.i) && !c.r))
        {
            return(false);
        }
        return(true);
    }
Пример #5
0
    public void a(string A_0, aj.c A_1)
    {
        this.c();
        A_1.t = A_0;
        v v = PluginCore.cq.l.c["MyMonsters"].a(0, k.a(A_0));

        if (v == null)
        {
            PluginCore.cq.l.c["MyMonsters"].c(aj.c.a(A_1));
        }
        else
        {
            v v2 = aj.c.a(A_1);
            for (int i = 0; i < v.Count; i++)
            {
                v[i] = v2[i];
            }
        }
    }
Пример #6
0
    public void q()
    {
        string str = "uTank2 SCF 1.06";
        int    num = 0;

        foreach (string str2 in Directory.GetFiles(PluginCore.ci, "*.uts"))
        {
            try
            {
                string[] strArray2 = str2.Split(new char[] { '\\' });
                string   str3      = strArray2[strArray2.Length - 1];
                string   str4      = str3.Split(new char[] { '.' })[0];
                this.c.d(this.e);
                this.a();
                StreamReader reader = new StreamReader(str2);
                if (reader.ReadLine() == str)
                {
                    er.a("EnableLooting", k.a(Convert.ToBoolean(reader.ReadLine())));
                    er.a("EnableNav", k.a(Convert.ToBoolean(reader.ReadLine())));
                    er.a("NavCloseStopRange", k.a(Convert.ToDouble(reader.ReadLine())));
                    er.a("NavFarStopRange", k.a(Convert.ToDouble(reader.ReadLine())));
                    er.a("SpellDiffExcessThreshold-Hunt", k.a(Convert.ToInt32(reader.ReadLine())));
                    er.a("SpellDiffExcessThreshold-Buff", k.a(Convert.ToInt32(reader.ReadLine())));
                    er.a("ArrowheadFletchDiffExcessThreshold", k.a(Convert.ToInt32(reader.ReadLine())));
                    er.a("Recharge-Norm-HitP", k.a((int)Convert.ToSingle(reader.ReadLine())));
                    er.a("Recharge-Norm-Stam", k.a((int)Convert.ToSingle(reader.ReadLine())));
                    er.a("Recharge-Norm-Mana", k.a((int)Convert.ToSingle(reader.ReadLine())));
                    er.a("Recharge-NoTarg-HitP", k.a((int)Convert.ToSingle(reader.ReadLine())));
                    er.a("Recharge-NoTarg-Stam", k.a((int)Convert.ToSingle(reader.ReadLine())));
                    er.a("Recharge-NoTarg-Mana", k.a((int)Convert.ToSingle(reader.ReadLine())));
                    er.a("Recharge-Helper-HitP", k.a((int)Convert.ToSingle(reader.ReadLine())));
                    er.a("Recharge-Helper-Stam", k.a((int)Convert.ToSingle(reader.ReadLine())));
                    er.a("Recharge-Helper-Mana", k.a((int)Convert.ToSingle(reader.ReadLine())));
                    er.a("DoHelp", k.a(Convert.ToBoolean(reader.ReadLine())));
                    er.a("AttackDistance", k.a(Convert.ToDouble(reader.ReadLine())));
                    er.a("ApproachDistance", k.a(Convert.ToDouble(reader.ReadLine())));
                    er.a("RingDistance", k.a(Convert.ToDouble(reader.ReadLine())));
                    er.a("HelperDistanceHitP", k.a(Convert.ToDouble(reader.ReadLine())));
                    er.a("HelperDistanceStam", k.a(er.h("HelperDistanceHitP")));
                    er.a("HelperDistanceMana", k.a(er.h("HelperDistanceHitP")));
                    er.a("MinimumRingTargets", k.a(Convert.ToInt32(reader.ReadLine())));
                    er.a("CastDispelSelf", k.a(Convert.ToBoolean(reader.ReadLine())));
                    er.a("UseDispelItems", k.a(Convert.ToBoolean(reader.ReadLine())));
                    this.g.Clear();
                    int num2 = Convert.ToInt32(reader.ReadLine());
                    for (int i = 0; i < num2; i++)
                    {
                        string key  = reader.ReadLine();
                        int    num4 = Convert.ToInt32(reader.ReadLine());
                        this.g.Add(key, PluginCore.cq.e.b(num4));
                    }
                    this.h.Clear();
                    int num5 = Convert.ToInt32(reader.ReadLine());
                    for (int j = 0; j < num5; j++)
                    {
                        string str7 = reader.ReadLine();
                        int    num7 = Convert.ToInt32(reader.ReadLine());
                        this.h.Add(str7, (fz)num7);
                    }
                    PluginCore.cq.d.h();
                    int  num8 = Convert.ToInt32(reader.ReadLine());
                    aj.c c    = new aj.c();
                    c.a(reader);
                    PluginCore.cq.d.a(c);
                    for (int k = 0; k < num8; k++)
                    {
                        string str8 = reader.ReadLine();
                        aj.c   c2   = new aj.c();
                        c2.a(reader);
                        PluginCore.cq.d.a(str8, c2);
                    }
                    reader.Close();
                    this.b();
                    this.c.c(Path.Combine(PluginCore.ci, str4 + ".usd"));
                    new FileInfo(str2).MoveTo(str2 + ".bak");
                    num++;
                }
            }
            catch (Exception exception)
            {
                ad.a(exception);
            }
        }
        if (num > 0)
        {
            PluginCore.e("Converted " + num.ToString() + " old 0.2.0.x profiles.");
        }
    }
Пример #7
0
 public void a(aj.c A_0)
 {
     this.a("<DEFAULT>", A_0);
 }