public b a(b A_0, int A_1) { ag.a a = new ag.a(A_0); MySpell spell = PluginCore.cq.e.a("Major Blood Thirst"); MySpell spell2 = PluginCore.cq.e.a("Minor Blood Thirst"); bool flag = false; bool flag2 = false; for (int i = 0; i < PluginCore.cq.aw.get_WorldFilter().get_Item(A_1).get_SpellCount(); i++) { if (PluginCore.cq.aw.get_WorldFilter().get_Item(A_1).Spell(i) == spell.Id) { flag = true; } if (PluginCore.cq.aw.get_WorldFilter().get_Item(A_1).Spell(i) == spell2.Id) { flag2 = true; } } if (flag && flag2) { flag2 = false; } if (flag) { a.b += 4.0; } if (flag2) { a.b += 2.0; } return(new b(a)); }
public double a(ag.a A_0, int A_1, int A_2) { double num = 0.0; for (int i = 0; i <= A_1; i++) { ag.b b2; ag.a a = A_0; for (int j = 0; j < i; j++) { a.a *= 0.8; } for (int k = 0; k < (A_1 - i); k++) { a.b++; } ag.b b = new ag.b(a); if (A_2 == 0) { b2 = this.a(b); } else { b2 = this.a(b, A_2); } double num5 = (b2.b + b2.a) / 2.0; if (num5 > num) { num = num5; } } return(num); }
public float a(int A_0) { CoreManager aw = PluginCore.cq.aw; if (!aw.get_WorldFilter().get_Item(A_0).get_HasIdData()) { return(-1f); } if (aw.get_WorldFilter().get_Item(A_0).get_ObjectClass() != 1) { return(-1f); } int num = aw.get_WorldFilter().get_Item(A_0).Values(160, 0); CharFilterSkillType type = (CharFilterSkillType)aw.get_WorldFilter().get_Item(A_0).Values(0xd000020); ag.a a = new ag.a(aw.get_WorldFilter().get_Item(A_0).Values(0xa00000b, 1.0), aw.get_WorldFilter().get_Item(A_0).Values(0xd000022, 1)); new b(a); int num2 = 10 - aw.get_WorldFilter().get_Item(A_0).Values(0xab, 0); if (num2 == 10) { num2 = 9; } double num3 = this.a(new ag.a(this.a(type, num)), 9, 0); return((float)Math.Round((double)((this.a(a, num2, A_0) / num3) * 100.0), 2)); }
public b(ag.a A_0) { this.b = A_0.b; this.a = this.b * (1.0 - A_0.a); }