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

Function S_ConfirmEnter

Source/stores.cpp:2407–2447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2405}
2406
2407void S_ConfirmEnter()
2408{
2409 if (stextsel == 18) {
2410 switch (stextshold) {
2411 case STORE_SBUY:
2412 SmithBuyItem();
2413 break;
2414 case STORE_SSELL:
2415 case STORE_WSELL:
2416 StoreSellItem();
2417 break;
2418 case STORE_SREPAIR:
2419 SmithRepairItem();
2420 break;
2421 case STORE_WBUY:
2422 WitchBuyItem();
2423 break;
2424 case STORE_WRECHARGE:
2425 WitchRechargeItem();
2426 break;
2427 case STORE_BBOY:
2428 BoyBuyItem();
2429 break;
2430 case STORE_HBUY:
2431 HealerBuyItem();
2432 break;
2433 case STORE_SIDENTIFY:
2434 StoryIdItem();
2435 StartStore(STORE_IDSHOW);
2436 return;
2437 case STORE_SPBUY:
2438 SmithBuyPItem();
2439 break;
2440 }
2441 StartStore(stextshold);
2442 } else {
2443 StartStore(stextshold);
2444 stextsel = stextlhold;
2445 stextsval = stextvhold;
2446 }
2447}
2448
2449void S_HealerEnter()
2450{

Callers 1

STextEnterFunction · 0.85

Calls 10

SmithBuyItemFunction · 0.85
StoreSellItemFunction · 0.85
SmithRepairItemFunction · 0.85
WitchBuyItemFunction · 0.85
WitchRechargeItemFunction · 0.85
BoyBuyItemFunction · 0.85
HealerBuyItemFunction · 0.85
StoryIdItemFunction · 0.85
StartStoreFunction · 0.85
SmithBuyPItemFunction · 0.85

Tested by

no test coverage detected