MCPcopy Create free account
hub / github.com/diasurgical/devilution / S_WSellEnter

Function S_WSellEnter

Source/stores.cpp:2212–2230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2210}
2211
2212void 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
2232void WitchRechargeItem()
2233{

Callers 1

STextEnterFunction · 0.85

Calls 2

StartStoreFunction · 0.85
StoreGoldFitFunction · 0.85

Tested by

no test coverage detected