MCPcopy Create free account
hub / github.com/crossuo/crossuo / GetGraphicForAnimation

Method GetGraphicForAnimation

src/GameObjects/GameCharacter.cpp:1284–1311  ·  view source on GitHub ↗

0x03CA dead shroud

Source from the content-addressed store, hash-verified

1282
1283// 0x03CA dead shroud
1284uint16_t CGameCharacter::GetGraphicForAnimation()
1285{
1286 uint16_t graphic = Graphic;
1287 switch (graphic)
1288 {
1289 case 0x0192: // male ghost
1290 case 0x0193: // female ghost
1291 {
1292 graphic -= 2;
1293 break;
1294 }
1295 case 0x02B6: // dead gargoyle
1296 {
1297 graphic = 0x029B;
1298 break;
1299 }
1300 case 0x02B7: // dead gargoyle
1301 {
1302 graphic = 0x029A;
1303 break;
1304 }
1305 default:
1306 break;
1307 }
1308
1309 assert(graphic < MAX_ANIMATIONS_DATA_INDEX_COUNT);
1310 return graphic;
1311}
1312
1313void CGameCharacter::UpdateAnimationInfo_ProcessSteps(uint8_t &dir, bool canChange)
1314{

Callers 1

UpdateTextCoordinatesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected