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

Function InitTownDead

Source/towners.cpp:211–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void InitTownDead()
212{
213 int i;
214
215 InitTownerInfo(numtowners, 96, 1, TOWN_DEADGUY, 24, 32, -1, 10);
216 InitQstSnds(numtowners);
217 towner[numtowners]._tNData = LoadFileInMem("Towners\\Butch\\Deadguy.CEL", NULL);
218 for (i = 0; i < 8; i++) {
219 towner[numtowners]._tNAnim[i] = towner[numtowners]._tNData;
220 }
221 towner[numtowners]._tNFrames = 8;
222 NewTownerAnim(numtowners, towner[numtowners]._tNAnim[DIR_N], towner[numtowners]._tNFrames, 6);
223 strcpy(towner[numtowners]._tName, "Wounded Townsman");
224 numtowners++;
225}
226
227void InitWitch()
228{

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