| 396 | } |
| 397 | |
| 398 | int Game_Actor::GetItemCount(int item_id) { |
| 399 | int number = 0; |
| 400 | |
| 401 | // quirk: 0 is "no item in slot" |
| 402 | // This can be used to count how many slots are empty |
| 403 | if (item_id >= 0) { |
| 404 | for (int16_t i : GetWholeEquipment()) { |
| 405 | if (item_id == i) { |
| 406 | ++number; |
| 407 | } |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | return number; |
| 412 | } |
| 413 | |
| 414 | void Game_Actor::FullHeal() { |
| 415 | RemoveAllStates(); |
no outgoing calls
no test coverage detected