Exemplo n.º 1
0
        public void get_Agregar_Hechizo_Stats(byte _nivel, HechizoStats stats)
        {
            if (statsHechizos.ContainsKey(_nivel))
            {
                statsHechizos.Remove(_nivel);
            }

            statsHechizos.Add(_nivel, stats);
        }
Exemplo n.º 2
0
        public static IEnumerable <Celda> Get_Lista_Celdas_Rango_Hechizo(Celda celda, HechizoStats spellLevel, Mapa mapa, int rango_adicional = 0)
        {
            int rango_maximo = spellLevel.alcanze_maximo + (spellLevel.es_alcanze_modificable ? rango_adicional : 0);

            if (spellLevel.es_lanzado_linea)
            {
                return(Shaper.Cruz(celda.x, celda.y, spellLevel.alcanze_minimo, rango_maximo, mapa));
            }
            else
            {
                return(Shaper.Anillo(celda.x, celda.y, spellLevel.alcanze_minimo, rango_maximo, mapa));
            }
        }