Skip to content

Instantly share code, notes, and snippets.

@Kryzarel
Created December 3, 2017 20:41
Show Gist options
  • Save Kryzarel/b7d97986e0c812235d03f147e831aace to your computer and use it in GitHub Desktop.
Save Kryzarel/b7d97986e0c812235d03f147e831aace to your computer and use it in GitHub Desktop.
public bool RemoveAllModifiersFromSource(object source)
{
bool didRemove = false;
for (int i = statModifiers.Count - 1; i >= 0; i--)
{
if (statModifiers[i].Source == source)
{
isDirty = true;
didRemove = true;
statModifiers.RemoveAt(i);
}
}
return didRemove;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment