Пример #1
0
    /// <summary>
    /// Adds the specified status effect to this pawn
    /// </summary>
    /// <param name="status">Status effect to add</param>
    /// <param name="duration">The duration of the status effect, -1 if time is not the condition on which it is removed</param>
    public void AddStatusEffect(string status, int duration = -1)
    {
        statusList.Add(status, duration);

        if (tempStats != null && Registry.StatusEffectRegistry[status].freezeOnAffliction)
        {
            tempStats.moved = true;
        }
    }