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

Function S_StartBBoy

Source/stores.cpp:1112–1137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1110}
1111
1112void S_StartBBoy()
1113{
1114 int iclr;
1115
1116 stextsize = 1;
1117 stextscrl = FALSE;
1118 sprintf(tempstr, "I have this item for sale : Your gold : %i", plr[myplr]._pGold);
1119 AddSText(0, 1, 1, tempstr, COL_GOLD, 0);
1120 AddSLine(3);
1121 AddSLine(21);
1122 iclr = COL_WHITE;
1123
1124 if (boyitem._iMagical != ITEM_QUALITY_NORMAL)
1125 iclr = COL_BLUE;
1126 if (!boyitem._iStatFlag)
1127 iclr = COL_RED;
1128 if (boyitem._iMagical != ITEM_QUALITY_NORMAL)
1129 AddSText(20, 10, 0, boyitem._iIName, iclr, 1);
1130 else
1131 AddSText(20, 10, 0, boyitem._iName, iclr, 1);
1132
1133 AddSTextVal(10, boyitem._iIvalue + (boyitem._iIvalue >> 1));
1134 PrintStoreItem(&boyitem, 11, iclr);
1135 AddSText(0, 22, 1, "Leave", COL_WHITE, 1);
1136 OffsetSTextY(22, 6);
1137}
1138
1139void S_StartHealer()
1140{

Callers 1

StartStoreFunction · 0.85

Calls 5

AddSTextFunction · 0.85
AddSLineFunction · 0.85
AddSTextValFunction · 0.85
PrintStoreItemFunction · 0.85
OffsetSTextYFunction · 0.85

Tested by

no test coverage detected