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

Function S_BoyEnter

Source/stores.cpp:2270–2292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2268}
2269
2270void S_BoyEnter()
2271{
2272 if (boyitem._itype != ITYPE_NONE && stextsel == 18) {
2273 if (plr[myplr]._pGold < 50) {
2274 stextshold = STORE_BOY;
2275 stextlhold = 18;
2276 stextvhold = stextsval;
2277 StartStore(STORE_NOMONEY);
2278 } else {
2279 TakePlrsMoney(50);
2280 StartStore(STORE_BBOY);
2281 }
2282 } else if (stextsel == 8 && boyitem._itype != ITYPE_NONE || stextsel == 12 && boyitem._itype == ITYPE_NONE) {
2283 talker = 8;
2284 stextshold = STORE_BOY;
2285 stextlhold = stextsel;
2286 gossipstart = QUEST_WIRT2;
2287 gossipend = QUEST_WIRT12;
2288 StartStore(STORE_GOSSIP);
2289 } else {
2290 stextflag = STORE_NONE;
2291 }
2292}
2293
2294void BoyBuyItem()
2295{

Callers 1

STextEnterFunction · 0.85

Calls 2

StartStoreFunction · 0.85
TakePlrsMoneyFunction · 0.85

Tested by

no test coverage detected