public bool b(cv A_0) { if (A_0 == null) { throw new ArgumentException("wo"); } if (A_0.c() != ObjectClass.TradeNote) { int num = A_0.a(dt.g, 0) / A_0.a(dt.ct, 1); int num2 = A_0.a(dt.dd, 0); if (num > this.f) { return(false); } if ((num2 & this.d) == 0) { return(false); } } return(true); }
private void a(cv A_0) { if (A_0.k == this.d) { A_0.a(PluginCore.cq.ax.get_Actions()); if (A_0.l) { this.d = 0; PluginCore.cq.n.n.a(ActionLockType.ItemUse); PluginCore.cq.n.n.a(ActionLockType.DoorOpening); } } }
public static int c(cv A_0) { if (A_0 == null) { return(0); } int num = A_0.a(dt.b8, 0); if (num == 0) { return(0); } num |= 0x8000; return((short)num); }
public static int a(eGameSkillID A_0, bool A_1) { if (!Enum.IsDefined(typeof(eGameSkillID), (int)A_0)) { return(0); } int num = a((int)A_0, A_1); switch (A_0) { case eGameSkillID.CreatureEnchantment: case eGameSkillID.ItemEnchantment: case eGameSkillID.LifeMagic: case eGameSkillID.WarMagic: case eGameSkillID.VoidMagic: { cv cv = PluginCore.cq.p.d(PluginCore.cg); if ((cv != null) && (cv.a(dt.cb, 0) > 0)) { num += 10; } return(num); } case eGameSkillID.Leadership: case eGameSkillID.Loyalty: case eGameSkillID.Fletching: case eGameSkillID.Alchemy: case eGameSkillID.Cooking: case eGameSkillID.Salvaging: case ((eGameSkillID)0x2a): return(num); case eGameSkillID.TwoHandedCombat: case eGameSkillID.HeavyWeapons: case eGameSkillID.LightWeapons: case eGameSkillID.FinesseWeapons: { cv cv2 = PluginCore.cq.p.d(PluginCore.cg); if ((cv2 != null) && (cv2.a(dt.ca, 0) > 0)) { num += 10; } return(num); } } return(num); }
private void a(int A_0, bool A_1) { WorldObject obj2 = PluginCore.cq.aw.get_WorldFilter().get_Item(A_0); cv cv = PluginCore.cq.p.d(A_0); if ((A_1 && dh.b(A_0)) && (obj2.get_HasIdData() && (cv != null))) { ObjectClass class2 = cv.c(); if (class2 != ObjectClass.Monster) { if (class2 != ObjectClass.HealingKit) { return; } } else { if (!this.b(obj2.get_Name())) { int num = obj2.Values(2, -1); int num2 = cv.a(dt.dz, -1); v v = new v(this.c["SpeciesMembers"]); v[0] = k.a(obj2.get_Name()); v[1] = k.a(num); v[2] = k.a(num2); this.c["SpeciesMembers"].c(v); try { this.c.c(Path.Combine(PluginCore.ci, "gameinfodb.ugd")); } catch { } if (this.c["SpeciesDamages"].a(0, k.a(num)) == null) { a5.a(eChatType.Warnings, "Warning: added monster \"" + obj2.get_Name() + "\" to DB but species \"" + ((FileService)PluginCore.cq.aw.get_FileService()).get_SpeciesTable().GetById(num).get_Name() + "\" has no auto damage definition."); } PluginCore.cq.d.c(); if (this.a == null) { return; } this.a(); } return; } if (this.a(obj2.get_Name()) == null) { dp dp = new dp { a = obj2.get_Name(), b = obj2.Values(100, 1.0), c = obj2.Values(90, 0) }; switch (obj2.Values(0x59, 0)) { case 2: dp.d = eRechargeVital_Single.Health; break; case 4: dp.d = eRechargeVital_Single.Stamina; break; case 6: dp.d = eRechargeVital_Single.Mana; break; default: dp.d = eRechargeVital_Single.Health; break; } this.a(dp); if (this.a != null) { this.a(); } } } }
public a(cv A_0) { this.a = A_0.g(); this.b = A_0.a(dt.cn, 0); }
private static object f(cv A_0) { return(A_0.a(dt.cn, 0)); }