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

Function S_SRepairEnter

Source/stores.cpp:2105–2123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2103}
2104
2105void S_SRepairEnter()
2106{
2107 int idx;
2108
2109 if (stextsel == 22) {
2110 StartStore(STORE_SMITH);
2111 stextsel = 18;
2112 } else {
2113 stextshold = STORE_SREPAIR;
2114 stextlhold = stextsel;
2115 stextvhold = stextsval;
2116 idx = stextsval + ((stextsel - stextup) >> 2);
2117 plr[myplr].HoldItem = storehold[idx];
2118 if (plr[myplr]._pGold < storehold[idx]._iIvalue)
2119 StartStore(STORE_NOMONEY);
2120 else
2121 StartStore(STORE_CONFIRM);
2122 }
2123}
2124
2125void S_WitchEnter()
2126{

Callers 1

STextEnterFunction · 0.85

Calls 1

StartStoreFunction · 0.85

Tested by

no test coverage detected