public int CompareTo(TriadGameModifier otherMod) { if (otherMod != null) { string locStrA = GetLocalizedName(); string locStrB = otherMod.GetLocalizedName(); return(locStrA.CompareTo(locStrB)); } return(0); }
public override string GetLocalizedName() { return(base.GetLocalizedName() + (RuleInst != null ? (" (" + RuleInst.GetLocalizedName() + ")") : "")); }