public void get_Combate_Info_Stats(TcpClient cliente, string paquete) { string[] separador = paquete.Substring(4).Split('|'); Map mapa = cliente.account.game.map; for (int i = 0; i < separador.Length; ++i) { string[] _loc6_ = separador[i].Split(';'); int id = int.Parse(_loc6_[0]); Luchadores luchador = cliente.account.game.fight.get_Luchador_Por_Id(id); if (_loc6_.Length != 0) { bool esta_vivo = _loc6_[1].Equals("0"); if (esta_vivo) { int vida_actual = int.Parse(_loc6_[2]); byte pa = byte.Parse(_loc6_[3]); byte pm = byte.Parse(_loc6_[4]); short celda = short.Parse(_loc6_[5]); int vida_maxima = int.Parse(_loc6_[7]); if (celda > 0)//son espectadores { byte equipo = Convert.ToByte(id > 0 ? 1 : 0); luchador?.get_Actualizar_Luchador(id, esta_vivo, vida_actual, pa, pm, mapa.GetCellFromId(celda), vida_maxima, equipo); } } else { luchador?.get_Actualizar_Luchador(id, esta_vivo, 0, 0, 0, null, 0, 0); } } } }
public void get_Combate_Info_Stats(ClienteTcp cliente, string paquete) { string[] array = paquete.Substring(4).Split(new char[] { '|' }); Mapa mapa = cliente.cuenta.juego.mapa; for (int i = 0; i < array.Length; i++) { string[] array2 = array[i].Split(new char[] { ';' }); int num = int.Parse(array2[0]); Luchadores luchadores = cliente.cuenta.juego.pelea.get_Luchador_Por_Id(num); bool flag = array2.Length != 0; if (flag) { bool flag2 = array2[1].Equals("0"); bool flag3 = flag2; if (flag3) { int vida_actual = int.Parse(array2[2]); byte pa = byte.Parse(array2[3]); byte pm = byte.Parse(array2[4]); short num2 = short.Parse(array2[5]); int vida_maxima = int.Parse(array2[7]); bool flag4 = num2 > 0; if (flag4) { byte equipo = Convert.ToByte((num > 0) ? 1 : 0); if (luchadores != null) { luchadores.get_Actualizar_Luchador(num, flag2, vida_actual, pa, pm, mapa.get_Celda_Id(num2), vida_maxima, equipo); } } } else if (luchadores != null) { luchadores.get_Actualizar_Luchador(num, flag2, 0, 0, 0, null, 0, 0); } } } }
public void get_Agregar_Luchador(Luchadores luchador) { if (luchador.id == cuenta.juego.personaje.id) jugador_luchador = new LuchadorPersonaje(cuenta.juego.personaje.nombre_personaje, cuenta.juego.personaje.nivel, luchador); else if (!luchadores.TryAdd(luchador.id, luchador)) luchador.get_Actualizar_Luchador(luchador.id, luchador.esta_vivo, luchador.vida_actual, luchador.pa, luchador.pm, luchador.celda_id, luchador.vida_maxima, luchador.equipo, luchador.id_invocador); get_Ordenar_Luchadores(); }
public void get_Agregar_Luchador(Luchadores luchador) { if (luchador.id == cuenta.game.character.id) { jugador_luchador = new LuchadorPersonaje(cuenta.game.character.nombre, cuenta.game.character.nivel, luchador); } else if (!luchadores.TryAdd(luchador.id, luchador)) { luchador.get_Actualizar_Luchador(luchador.id, luchador.esta_vivo, luchador.vida_actual, luchador.pa, luchador.pm, luchador.celda, luchador.vida_maxima, luchador.equipo, luchador.id_invocador); } get_Ordenar_Luchadores(); }
// Token: 0x060001C1 RID: 449 RVA: 0x00007F14 File Offset: 0x00006314 public void get_Agregar_Luchador(Luchadores luchador) { bool flag = luchador.id == this.cuenta.juego.personaje.id; if (flag) { this.jugador_luchador = new LuchadorPersonaje(this.cuenta.juego.personaje.nombre, this.cuenta.juego.personaje.nivel, luchador); } else { bool flag2 = !this.luchadores.TryAdd(luchador.id, luchador); if (flag2) { luchador.get_Actualizar_Luchador(luchador.id, luchador.esta_vivo, luchador.vida_actual, luchador.pa, luchador.pm, luchador.celda, luchador.vida_maxima, luchador.equipo, luchador.id_invocador); } } this.get_Ordenar_Luchadores(); }