コード例 #1
0
    // Token: 0x0600038A RID: 906 RVA: 0x0001E958 File Offset: 0x0001CB58
    public StatusEffect AddStatusEffect(StatusEffect statusEffect, bool resetTime = false)
    {
        StatusEffect statusEffect2 = this.GetStatusEffect(statusEffect.name);

        if (statusEffect2)
        {
            if (resetTime)
            {
                statusEffect2.ResetTime();
            }
            return(null);
        }
        if (!statusEffect.CanAdd(this.m_character))
        {
            return(null);
        }
        StatusEffect statusEffect3 = statusEffect.Clone();

        this.m_statusEffects.Add(statusEffect3);
        statusEffect3.Setup(this.m_character);
        if (this.m_character.IsPlayer())
        {
            Gogan.LogEvent("Game", "StatusEffect", statusEffect.name, 0L);
        }
        return(statusEffect3);
    }