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

Function InitMonsterTRN

Source/monster.cpp:100–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98};
99
100void InitMonsterTRN(int monst, BOOL special)
101{
102 BYTE *f;
103 int i, n, j;
104
105 f = Monsters[monst].trans_file;
106 for (i = 0; i < 256; i++) {
107 if (*f == 255) {
108 *f = 0;
109 }
110 f++;
111 }
112
113 n = special ? 6 : 5;
114 for (i = 0; i < n; i++) {
115 if (i != 1 || Monsters[monst].mtype < MT_COUNSLR || Monsters[monst].mtype > MT_ADVOCATE) {
116 for (j = 0; j < 8; j++) {
117 Cl2ApplyTrans(
118 Monsters[monst].Anims[i].Data[j],
119 Monsters[monst].trans_file,
120 Monsters[monst].Anims[i].Frames);
121 }
122 }
123 }
124}
125
126void InitLevelMonsters()
127{

Callers 1

InitMonsterGFXFunction · 0.85

Calls 1

Cl2ApplyTransFunction · 0.85

Tested by

no test coverage detected