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

Function S_WRechargeEnter

Source/stores.cpp:2250–2268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2248}
2249
2250void S_WRechargeEnter()
2251{
2252 int idx;
2253
2254 if (stextsel == 22) {
2255 StartStore(STORE_WITCH);
2256 stextsel = 18;
2257 } else {
2258 stextshold = STORE_WRECHARGE;
2259 stextlhold = stextsel;
2260 stextvhold = stextsval;
2261 idx = stextsval + ((stextsel - stextup) >> 2);
2262 plr[myplr].HoldItem = storehold[idx];
2263 if (plr[myplr]._pGold < storehold[idx]._iIvalue)
2264 StartStore(STORE_NOMONEY);
2265 else
2266 StartStore(STORE_CONFIRM);
2267 }
2268}
2269
2270void S_BoyEnter()
2271{

Callers 1

STextEnterFunction · 0.85

Calls 1

StartStoreFunction · 0.85

Tested by

no test coverage detected