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

Function S_SSellEnter

Source/stores.cpp:2060–2079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2058}
2059
2060void S_SSellEnter()
2061{
2062 int idx;
2063
2064 if (stextsel == 22) {
2065 StartStore(STORE_SMITH);
2066 stextsel = 16;
2067 } else {
2068 stextlhold = stextsel;
2069 idx = stextsval + ((stextsel - stextup) >> 2);
2070 stextshold = STORE_SSELL;
2071 stextvhold = stextsval;
2072 plr[myplr].HoldItem = storehold[idx];
2073
2074 if (StoreGoldFit(idx))
2075 StartStore(STORE_CONFIRM);
2076 else
2077 StartStore(STORE_NOROOM);
2078 }
2079}
2080
2081void SmithRepairItem()
2082{

Callers 1

STextEnterFunction · 0.85

Calls 2

StartStoreFunction · 0.85
StoreGoldFitFunction · 0.85

Tested by

no test coverage detected