Exemple #1
0
    public virtual StatusEffect Create(Entity target)
    {
        StatusEffect statusEffect = EntitySystemLoader.Instance.Create <StatusEffect>(statusEffectId);

        statusEffect.AddStatusComponentsFromTemplate(this);
        if (duration != null)
        {
            statusEffect.duration = duration;
        }
        if (tags != null)
        {
            for (int i = 0; i < tags.Length; i++)
            {
                statusEffect.tags.Add(new Tag(tags[i]));
            }
        }
        return(statusEffect);
    }