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

Function S_StartHBuy

Source/stores.cpp:1180–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178}
1179
1180void S_StartHBuy()
1181{
1182 int i;
1183
1184 stextsize = 1;
1185 stextscrl = TRUE;
1186 stextsval = 0;
1187 sprintf(tempstr, "I have these items for sale : Your gold : %i", plr[myplr]._pGold);
1188 AddSText(0, 1, 1, tempstr, COL_GOLD, 0);
1189 AddSLine(3);
1190 AddSLine(21);
1191 S_ScrollHBuy(stextsval);
1192 AddSText(0, 22, 1, "Back", COL_WHITE, 0);
1193 OffsetSTextY(22, 6);
1194
1195 storenumh = 0;
1196 for (i = 0; healitem[i]._itype != ITYPE_NONE; i++) {
1197 storenumh++;
1198 }
1199 stextsmax = storenumh - 4;
1200 if (stextsmax < 0)
1201 stextsmax = 0;
1202}
1203
1204void S_StartStory()
1205{

Callers 1

StartStoreFunction · 0.85

Calls 4

AddSTextFunction · 0.85
AddSLineFunction · 0.85
S_ScrollHBuyFunction · 0.85
OffsetSTextYFunction · 0.85

Tested by

no test coverage detected