Exemple #1
0
    private cd.a a(cd.c A_0)
    {
        cd.a a = new cd.a {
            a = 0,
            b = 0,
            c = 0,
            d = 0
        };
        for (int i = 0; i < A_0.h.Count; i++)
        {
            try
            {
                int key = A_0.h[i];
                if (this.g.ContainsKey(key))
                {
                    switch (this.g[key].d.get_Id())
                    {
                    case 1:
                    {
                        a.a = A_0.h[i];
                        continue;
                    }

                    case 2:
                    {
                        a.b = A_0.h[i];
                        continue;
                    }

                    case 3:
                    {
                        a.c = A_0.h[i];
                        continue;
                    }

                    case 4:
                    {
                        a.d = A_0.h[i];
                        continue;
                    }
                    }
                }
            }
            catch (Exception)
            {
            }
        }
        return(a);
    }
Exemple #2
0
 private int b(cd.c A_0)
 {
     if (A_0.b.Contains(" Arc "))
     {
         return(A_0.d + 0x186a0);
     }
     if (this.k.IsMatch(A_0.b))
     {
         return(A_0.d + 0x186a0);
     }
     if (A_0.b.Contains(" Hecatomb "))
     {
         return(A_0.d + 0x186a0);
     }
     return(A_0.d);
 }
 internal MySpell(cd.c A_0, ev A_1)
 {
     this.c = A_1;
     this.a = A_0;
     this.b = true;
 }
Exemple #4
0
 public cd(FileService A_0, ev A_1)
 {
     this.h = A_0;
     this.i = A_1;
     for (int i = 0; i < A_0.get_ComponentTable().get_Length(); i++)
     {
         cd.d      d;
         Component component = A_0.get_ComponentTable().get_Item(i);
         d = new cd.d {
             a = component.get_Id(),
             d = component.get_Type(),
             b = component.get_Word(),
             c = d.b.ToLowerInvariant(),
             e = component.get_Name()
         };
         this.g[d.a] = d;
     }
     for (int j = 0; j < A_0.get_SpellTable().get_Length(); j++)
     {
         Spell spell = A_0.get_SpellTable().get_Item(j);
         cd.c  c     = new cd.c {
             a = new MySpell.SchoolRetInfo(),
             h = new MyList <int>(9),
             b = spell.get_Name(),
             c = spell.get_Id(),
             d = spell.get_Family(),
             f = spell.get_Difficulty(),
             g = spell.get_Duration()
         };
         StringBuilder builder = new StringBuilder();
         for (int k = 0; k < spell.get_ComponentIDs().get_Length(); k++)
         {
             c.h.Add(spell.get_ComponentIDs().get_Item(k));
             if (this.g.ContainsKey(spell.get_ComponentIDs().get_Item(k)))
             {
                 try
                 {
                     builder.Append(this.g[spell.get_ComponentIDs().get_Item(k)].c);
                 }
                 catch (Exception)
                 {
                 }
             }
         }
         if (spell.get_School() == null)
         {
             c.a.Id   = 5;
             c.a.Name = "Void Magic";
         }
         else
         {
             c.a.Id   = spell.get_School().get_Id();
             c.a.Name = spell.get_School().get_Name();
         }
         if (c.b == "Curse of Raven Fury")
         {
             c.i = "tugakquati";
         }
         else
         {
             c.i = builder.ToString();
         }
         c.j = this.a(c);
         c.l = spell.get_IsUntargetted();
         c.k = spell.get_IsFellowship();
         c.m = spell.get_IsOffensive();
         c.e = this.b(c);
         if (!this.f.ContainsKey(c.e))
         {
             this.f.Add(c.e, new MyList <cd.c>(10));
         }
         this.f[c.e].Add(c);
         try
         {
             this.a.Add(c);
         }
         catch (Exception)
         {
         }
         try
         {
             if (!this.c.ContainsKey(c.c))
             {
                 this.c.Add(c.c, c);
             }
         }
         catch (Exception)
         {
         }
         try
         {
             if (!this.b.ContainsKey(c.b))
             {
                 this.b.Add(c.b, c);
             }
         }
         catch (Exception)
         {
         }
         try
         {
             if (!this.d.ContainsKey(c.i))
             {
                 this.d.Add(c.i, c);
             }
         }
         catch (Exception)
         {
         }
         try
         {
             if (!this.e.ContainsKey(c.j))
             {
                 this.e.Add(c.j, c);
             }
         }
         catch (Exception)
         {
         }
         spell = null;
     }
 }