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

Function StartStore

Source/stores.cpp:1406–1505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1404}
1405
1406void StartStore(char s)
1407{
1408 char t;
1409 int i;
1410
1411 for (t = s;; t = STORE_SMITH) {
1412 sbookflag = FALSE;
1413 invflag = FALSE;
1414 chrflag = FALSE;
1415 questlog = FALSE;
1416 dropGoldFlag = FALSE;
1417 ClearSText(0, 24);
1418 ReleaseStoreBtn();
1419 switch (t) {
1420 case STORE_SMITH:
1421 S_StartSmith();
1422 break;
1423 case STORE_SBUY:
1424 if (storenumh > 0)
1425 S_StartSBuy();
1426 break;
1427 case STORE_SSELL:
1428 S_StartSSell();
1429 break;
1430 case STORE_SREPAIR:
1431 S_StartSRepair();
1432 break;
1433 case STORE_WITCH:
1434 S_StartWitch();
1435 break;
1436 case STORE_WBUY:
1437 if (storenumh > 0)
1438 S_StartWBuy();
1439 break;
1440 case STORE_WSELL:
1441 S_StartWSell();
1442 break;
1443 case STORE_WRECHARGE:
1444 S_StartWRecharge();
1445 break;
1446 case STORE_NOMONEY:
1447 S_StartNoMoney();
1448 break;
1449 case STORE_NOROOM:
1450 S_StartNoRoom();
1451 break;
1452 case STORE_CONFIRM:
1453 S_StartConfirm();
1454 break;
1455 case STORE_BOY:
1456 S_StartBoy();
1457 break;
1458 case STORE_BBOY:
1459 S_StartBBoy();
1460 break;
1461 case STORE_HEALER:
1462 S_StartHealer();
1463 break;

Callers 15

S_StartSPBuyFunction · 0.85
S_StartNoMoneyFunction · 0.85
S_StartNoRoomFunction · 0.85
S_StartConfirmFunction · 0.85
S_StartIdShowFunction · 0.85
STextESCFunction · 0.85
S_SmithEnterFunction · 0.85
S_SBuyEnterFunction · 0.85
S_SPBuyEnterFunction · 0.85
S_SSellEnterFunction · 0.85
S_SRepairEnterFunction · 0.85
S_WitchEnterFunction · 0.85

Calls 15

ClearSTextFunction · 0.85
ReleaseStoreBtnFunction · 0.85
S_StartSmithFunction · 0.85
S_StartSBuyFunction · 0.85
S_StartSSellFunction · 0.85
S_StartSRepairFunction · 0.85
S_StartWitchFunction · 0.85
S_StartWBuyFunction · 0.85
S_StartWSellFunction · 0.85
S_StartWRechargeFunction · 0.85
S_StartNoMoneyFunction · 0.85
S_StartNoRoomFunction · 0.85

Tested by

no test coverage detected