public override bool StacksWith(SpecialUpgrade other)
 {
     return(other != null && other.GetType() == GetType());
 }
示例#2
0
 /// <summary>
 /// If more than one upgrade stacks the final result can give dimnishing returns.
 /// </summary>
 /// <param name="other">Other special upgrade to compare with.</param>
 /// <returns>True if it stacks.</returns>
 public abstract bool StacksWith(SpecialUpgrade other);