comparison mm7_2.cpp @ 694:52329962fcdb

monster table init rework started
author Gloval
date Sun, 17 Mar 2013 12:47:19 +0400
parents e0a1fccc89b1
children b097497f07e2
comparison
equal deleted inserted replaced
693:e0a1fccc89b1 694:52329962fcdb
5253 sprintf(Str, "Can't create random monster: '%s'! See MapStats.txt and Monsters.txt!", pTexture); 5253 sprintf(Str, "Can't create random monster: '%s'! See MapStats.txt and Monsters.txt!", pTexture);
5254 MessageBoxA(nullptr, Str, nullptr, 0); 5254 MessageBoxA(nullptr, Str, nullptr, 0);
5255 ExitProcess(0); 5255 ExitProcess(0);
5256 } 5256 }
5257 v27 = &pMonsterList->pMonsters[(signed __int16)v26]; 5257 v27 = &pMonsterList->pMonsters[(signed __int16)v26];
5258 v28 = pMonsterStats->_4563FF(pTexture); 5258 v28 = pMonsterStats->FindMonsterByName(pTexture);
5259 if ( !v28 ) 5259 if ( !v28 )
5260 v28 = 1; 5260 v28 = 1;
5261 Src = &pMonsterStats->pInfos[v28]; 5261 Src = &pMonsterStats->pInfos[v28];
5262 strcpy(pMonster->pActorName, Src->pName); 5262 strcpy(pMonster->pActorName, Src->pName);
5263 pMonster->sCurrentHP = Src->uHP; 5263 pMonster->sCurrentHP = Src->uHP;