예제 #1
0
 public static void RemoveStatModifiers(Entity entity, StatModifierList modifierList)
 {
     for (int index = 0; index < modifierList.Count; ++index)
     {
         RemoveStatModifier(entity, modifierList.Get(index));
     }
 }
예제 #2
0
    public static void ApplyStatModifiers(Entity entity, StatModifierList modifierList)
    {
        for (int index = 0; index < modifierList.Count; ++index)
        {
            ApplyStatModifier(entity, modifierList.Get(index));
        }

        entity.OnUpdateStats();
    }
예제 #3
0
    public static bool CanApplyStatModifiers(Entity entity, StatModifierList modifierList)
    {
        for (int index = 0; index < modifierList.Count; ++index)
        {
            if (CanApplyStatModifier(entity, modifierList.Get(index)))
            {
                return(true);
            }
        }

        return(false);
    }