Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
itemmarketentrymoney.cpp File Reference

Implementation of ItemMarketEntryMoney. More...

Include dependency graph for itemmarketentrymoney.cpp:

Go to the source code of this file.

Detailed Description

Implementation of ItemMarketEntryMoney.

See itemmarketentrymoney.h.

Rate semantics (the fix): the traded unit is ONE COIN, and onCart is the number of coins. A coin costs GameCornerDB::getBuyPrice() money to BUY (~20 = ¥20/coin, straight from the game data) and returns getSellPrice() money when SOLD (the project's half-back policy). So buying N coins costs 20·N money; selling N coins returns 10·N money. (The earlier code multiplied coins by the rate, which inverted it – 20 coins per ¥1.)

Definition in file itemmarketentrymoney.cpp.