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

Function InitBarOwner

Source/towners.cpp:194–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void InitBarOwner()
195{
196 int i;
197
198 bannerflag = FALSE; // unused
199 InitTownerInfo(numtowners, 96, 1, TOWN_TAVERN, 55, 62, 3, 10);
200 InitQstSnds(numtowners);
201 towner[numtowners]._tNData = LoadFileInMem("Towners\\TwnF\\TwnFN.CEL", NULL);
202 for (i = 0; i < 8; i++) {
203 towner[numtowners]._tNAnim[i] = towner[numtowners]._tNData;
204 }
205 towner[numtowners]._tNFrames = 16;
206 NewTownerAnim(numtowners, towner[numtowners]._tNAnim[DIR_SW], towner[numtowners]._tNFrames, 3);
207 strcpy(towner[numtowners]._tName, "Ogden the Tavern owner");
208 numtowners++;
209}
210
211void InitTownDead()
212{

Callers 1

InitTownersFunction · 0.85

Calls 4

InitTownerInfoFunction · 0.85
InitQstSndsFunction · 0.85
LoadFileInMemFunction · 0.85
NewTownerAnimFunction · 0.85

Tested by

no test coverage detected