{"size": 260, "ext": "js", "max_stars_repo_path": "src/StandardItem.js", "max_stars_repo_name": "MalinnaLeach/GildedRose", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/StandardItem.js", "max_issues_repo_name": "MalinnaLeach/GildedRose", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/StandardItem.js", "max_forks_repo_name": "MalinnaLeach/GildedRose", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.6363636364, "max_line_length": 52, "alphanum_fraction": 0.6692307692}

function StandardItem(name, sell_in, quality) {
  Item.call(this, name, sell_in, quality)
}

StandardItem.prototype.update_quality = function() {
  this.sell_in -= 1;
  this.quality -= this.sell_in > 0 ? 1 : 2;
  if (this.quality < 0) { this.quality = 0 };
}
