public void Run(GClass222 e) { ConnectionManager value = ConnectionManager.Instance.Value; bool isControlDisabled = value.Game.Hero.Pet.IsControlDisabled; value.Game.Hero.Pet.IsControlDisabled = e.DwtpGiCyHZ; if (!e.DwtpGiCyHZ) { GClass102.< > c__DisplayClass0_0 CS$ < > 8__locals1 = new GClass102.< > c__DisplayClass0_0(); if (isControlDisabled) { value.Game.Hero.Pet.method_22(); } HeroPet.PetModeData petModeData; if (!value.Game.Hero.Pet.Modes.TryGetValue(PetMode.Kamikaze, out petModeData)) { return; } CS$ < > 8__locals1.int_0 = petModeData.Data.int_1 * 50 + 350; CS$ < > 8__locals1.vector2_0 = value.Game.Hero.Pet.Position; int num = value.Game.Map.Ships.Count(new Func <KeyValuePair <int, Ship>, bool>(CS$ < > 8__locals1.method_0)); string text = string.Format("Kamikaze hit {0} enemies", num); if (value.ProxySocket != null) { value.ProxySocket.SendMessage(new GClass273(GClass90.Log(text))); } LogManager.GetLogger("Base-Game-Pet").Info(text); } }
private void method_13(GClass269 gclass269_0) { string[] array; if (GClass90.smethod_1(gclass269_0.string_0, out array, new string[] { "n", "INV" })) { int num = int.Parse(array[0]); Ship ship = this.Game.Map.method_4(num); if (array[1] == "1" && ship != null && num != this.Game.Hero.Id) { this.bool_1 = false; this.method_0().method_9(GClass90.smethod_2(num, false)); this.method_0().method_9(GClass90.Log("Unmasked: " + ship.Name)); return; } } else if (GClass90.smethod_1(gclass269_0.string_0, out array, new string[] { "i" })) { this.bool_1 = false; } }