Esempio n. 1
0
    void getRelevantEffectsBattle(List <EventStatus> statuses, TargetableElement thing, string callbackType)
    {
        //Active moves in battle in contact with thing? (includes pseudoweathers)

        /*
         * foreach (ActiveMove activeMove in activeMoves)
         * {
         *  Globals.EffectData moveData = activeMove.GetInfoEffect();
         *  if (moveData != null && moveData.eventMethods.HasCallback(callbackType))
         *  {
         *      statuses.Add(new EventStatus(status: moveData, callback: callbackType, statusData: activeMove.elementEffectData, thing: this));
         *      //resolvepriority
         *  }
         * }
         */

        /*
         * HERE add foething is Attrezo, or others?
         */

        //Active weather
        if (activeWeather != null)
        {
            EffectData weatherData = activeWeather.GetInfoEffect();
            if (weatherData != null && weatherData.eventMethods.HasCallback(callbackType))
            {
                statuses.Add(new EventStatus(status: weatherData, callback: callbackType, statusData: activeWeather.elementEffectData, thing: activeWeather.targetScript, priority: weatherData.GetValueFromOrderOrPriorityVariable(callbackType + "Priority")));
                //resolvepriority
            }
        }

        //Active terrain
        if (activeTerrain != null)
        {
            EffectData terrainData = activeTerrain.GetInfoEffect();
            if (terrainData != null && terrainData.eventMethods.HasCallback(callbackType))
            {
                statuses.Add(new EventStatus(status: terrainData, callback: callbackType, statusData: activeTerrain.elementEffectData, thing: activeTerrain.targetScript, priority: terrainData.GetValueFromOrderOrPriorityVariable(callbackType + "Priority")));
                //resolvepriority
            }
        }

        //Formats

        /*
         * if(somewhatformat != null && somewhatformat.eventMethods.HasCallback(callbackType))
         * {
         *  //push callbackType
         *  //resolvepriority
         * }
         */

        //Extra events (dont know what was that
    }