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

Function InitDrunk

Source/towners.cpp:308–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void InitDrunk()
309{
310 int i;
311
312 InitTownerInfo(numtowners, 96, 1, TOWN_DRUNK, 71, 84, 4, 10);
313 InitQstSnds(numtowners);
314 towner[numtowners]._tNData = LoadFileInMem("Towners\\Drunk\\TwnDrunk.CEL", NULL);
315 for (i = 0; i < 8; i++) {
316 towner[numtowners]._tNAnim[i] = towner[numtowners]._tNData;
317 }
318 towner[numtowners]._tNFrames = 18;
319 NewTownerAnim(numtowners, towner[numtowners]._tNAnim[DIR_S], towner[numtowners]._tNFrames, 3);
320 strcpy(towner[numtowners]._tName, "Farnham the Drunk");
321 numtowners++;
322}
323
324void InitCows()
325{

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