| 951 | } |
| 952 | |
| 953 | void StartGoldDrop() |
| 954 | { |
| 955 | CloseGoldWithdraw(); |
| 956 | |
| 957 | const int8_t invIndex = pcursinvitem; |
| 958 | |
| 959 | const Player &myPlayer = *MyPlayer; |
| 960 | |
| 961 | const int max = (invIndex <= INVITEM_INV_LAST) |
| 962 | ? myPlayer.InvList[invIndex - INVITEM_INV_FIRST]._ivalue |
| 963 | : myPlayer.SpdList[invIndex - INVITEM_BELT_FIRST]._ivalue; |
| 964 | |
| 965 | if (talkflag) |
| 966 | control_reset_talk(); |
| 967 | |
| 968 | const Point start = GetPanelPosition(UiPanels::Inventory, { 67, 128 }); |
| 969 | SDL_Rect rect = MakeSdlRect(start.x, start.y, 180, 20); |
| 970 | SDL_SetTextInputRect(&rect); |
| 971 | |
| 972 | OpenGoldDrop(invIndex, max); |
| 973 | } |
| 974 | |
| 975 | int CreateGoldItemInInventorySlot(Player &player, int slotIndex, int value) |
| 976 | { |
no test coverage detected