bool MarketAgent::BuyFrom(MarketAgent *other, Equip::Type t, bool verbose) { if (other->CanSell(t, verbose) && CanBuy(t, verbose) && Pay(other, GetPrice(t), verbose)) { other->Sold(t); Bought(t); return true; } else return false; }
bool CUIBagWnd::CanBuy(LPCSTR item) { return CanBuy (GetItemBySectoin(item)); }