|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
Implementation of ItemMarketEntryMoney. More...
#include <QDebug>#include "./itemmarketentrymoney.h"#include <pse-db/gamecornerdb.h>#include <pse-savefile/expanded/player/playerbasics.h>Go to the source code of this file.
Implementation of ItemMarketEntryMoney.
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.