Skip to content

Instantly share code, notes, and snippets.

@Kryzarel
Created December 5, 2017 20:08
Show Gist options
  • Save Kryzarel/0df0862f425ef455421772e239f2ae8d to your computer and use it in GitHub Desktop.
Save Kryzarel/0df0862f425ef455421772e239f2ae8d to your computer and use it in GitHub Desktop.
Changed all private variables, properties and methods to protected. Changed all methods methods to virtual. Showing only lines that were changed.
protected bool isDirty = true;
protected float lastBaseValue;
protected float _value;
public virtual float Value {}
protected readonly List<StatModifier> statModifiers;
public virtual void AddModifier(StatModifier mod);
public virtual bool RemoveModifier(StatModifier mod);
public virtual bool RemoveAllModifiersFromSource(object source);
protected virtual int CompareModifierOrder(StatModifier a, StatModifier b);
protected virtual float CalculateFinalValue();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment