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

Function InitBoy

Source/towners.cpp:259–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void InitBoy()
260{
261 int i;
262
263 boyloadflag = TRUE;
264 InitTownerInfo(numtowners, 96, 1, TOWN_PEGBOY, 11, 53, -1, 10);
265 InitQstSnds(numtowners);
266 towner[numtowners]._tNData = LoadFileInMem("Towners\\TownBoy\\PegKid1.CEL", NULL);
267 for (i = 0; i < 8; i++) {
268 towner[numtowners]._tNAnim[i] = towner[numtowners]._tNData;
269 }
270 towner[numtowners]._tNFrames = 20;
271 NewTownerAnim(numtowners, towner[numtowners]._tNAnim[DIR_S], towner[numtowners]._tNFrames, 6);
272 strcpy(towner[numtowners]._tName, "Wirt the Peg-legged boy");
273 numtowners++;
274}
275
276void InitHealer()
277{

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