| 2210 | } |
| 2211 | |
| 2212 | void S_WSellEnter() |
| 2213 | { |
| 2214 | int idx; |
| 2215 | |
| 2216 | if (stextsel == 22) { |
| 2217 | StartStore(STORE_WITCH); |
| 2218 | stextsel = 16; |
| 2219 | } else { |
| 2220 | stextlhold = stextsel; |
| 2221 | idx = stextsval + ((stextsel - stextup) >> 2); |
| 2222 | stextshold = STORE_WSELL; |
| 2223 | stextvhold = stextsval; |
| 2224 | plr[myplr].HoldItem = storehold[idx]; |
| 2225 | if (StoreGoldFit(idx)) |
| 2226 | StartStore(STORE_CONFIRM); |
| 2227 | else |
| 2228 | StartStore(STORE_NOROOM); |
| 2229 | } |
| 2230 | } |
| 2231 | |
| 2232 | void WitchRechargeItem() |
| 2233 | { |
no test coverage detected