compareTo(oldItem, seller = null, buyer = null, short= false)
{
let compareString = "";
// "this." is the *new* item, "item." is the *old* item that "this." will replace
compareString = this.mergeString(compareString, this.statDiff("attack", "Accuracy", this, oldItem));
compareString = this.mergeString(compareString, this.statDiff("critBonus", "Crit Bonus", this, oldItem));
compareString = this.mergeString(compareString, this.statDiff("defense", "Defense", this, oldItem));
compareString = this.mergeString(compareString, this.statDiff("evasion", "Evasion", this, oldItem));
compareString = this.mergeString(compareString, this.statDiff("fortification", "Bonus HP", this, oldItem));
compareString = this.mergeString(compareString, this.statDiff("sexiness", "Sexiness", this, oldItem));
compareString = this.mergeString(compareString, this.statDiff("resolve", "Resolve", this, oldItem));
if(this.hasFlag(GLOBAL.ITEM_FLAG_SHIP_EQUIPMENT) && (this.type == GLOBAL.GADGET || this.type == GLOBAL.RANGED_WEAPON))
{ // This bit seems to indicate 'Energy Use' is meant for ship parts.
compareString = this.mergeString(compareString, this.statDiff("shieldDefense", "Energy Use", this, oldItem,false,true));
}
else
{
compareString = this.mergeString(compareString, this.statDiff("shieldDefense", "Shield Defense", this, oldItem));
}
compareString = this.mergeString(compareString, this.statDiff("shields", "Shield Points", this, oldItem));