Skip to content

Instantly share code, notes, and snippets.

@Kryzarel
Created December 3, 2017 21:23
Show Gist options
  • Save Kryzarel/ecad66bb7517f436824114aa5e956ea8 to your computer and use it in GitHub Desktop.
Save Kryzarel/ecad66bb7517f436824114aa5e956ea8 to your computer and use it in GitHub Desktop.
Updated to set isDirty only when Remove returns true
public bool RemoveModifier(StatModifier mod)
{
if (statModifiers.Remove(mod))
{
isDirty = true;
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment