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

Function InitSmith

Source/towners.cpp:178–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void InitSmith()
179{
180 int i;
181
182 InitTownerInfo(numtowners, 96, 1, TOWN_SMITH, 62, 63, 0, 10);
183 InitQstSnds(numtowners);
184 towner[numtowners]._tNData = LoadFileInMem("Towners\\Smith\\SmithN.CEL", NULL);
185 for (i = 0; i < 8; i++) {
186 towner[numtowners]._tNAnim[i] = towner[numtowners]._tNData;
187 }
188 towner[numtowners]._tNFrames = 16;
189 NewTownerAnim(numtowners, towner[numtowners]._tNAnim[DIR_SW], towner[numtowners]._tNFrames, 3);
190 strcpy(towner[numtowners]._tName, "Griswold the Blacksmith");
191 numtowners++;
192}
193
194void InitBarOwner()
195{

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