MCPcopy Create free account
hub / github.com/EasyRPG/Player / LoseGold

Method LoseGold

src/game_party.cpp:175–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void Game_Party::LoseGold(int n) {
176 data.gold = data.gold - n;
177 data.gold = std::min<int32_t>(std::max<int32_t>(data.gold, 0), 999999);
178}
179
180void Game_Party::AddItem(int item_id, int amount) {
181 if (item_id < 1 || item_id > (int) lcf::Data::items.size()) {

Callers 1

UpdateNumberInputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected