engine/calculators/source/BuySellCalculator.cpp
// Items sell for a third of their value.

Items sell for a third of their value.
Items sell for a third of their value .
int BuySellCalculator::get_sale_price(ItemPtr item)
{
  int sale_price = 0;
  if (item != nullptr)
  {
    sale_price = item->get_total_value() / SALE_DIVISOR;
  }
  return sale_price;
}
int BuySellCalculator :: get_sale_price ( ItemPtr item ) { int sale_price = 0 ; if ( item != nullptr ) { sale_price = item -> get_total_value ( ) / SALE_DIVISOR ; } return sale_price ; }
Items sell for a third of their value.
Items sell for a third of their value .