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

Function PrepDoEnding

Source/monster.cpp:2567–2593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2565}
2566
2567void PrepDoEnding()
2568{
2569 int newKillLevel, i;
2570 DWORD *killLevel;
2571
2572 gbSoundOn = sgbSaveSoundOn;
2573 gbRunGame = FALSE;
2574 deathflag = FALSE;
2575 cineflag = TRUE;
2576
2577 killLevel = &plr[myplr].pDiabloKillLevel;
2578 newKillLevel = gnDifficulty + 1;
2579 if (*killLevel > newKillLevel)
2580 newKillLevel = *killLevel;
2581 plr[myplr].pDiabloKillLevel = newKillLevel;
2582
2583 for (i = 0; i < MAX_PLRS; i++) {
2584 plr[i]._pmode = PM_QUIT;
2585 plr[i]._pInvincible = TRUE;
2586 if (gbMaxPlayers > 1) {
2587 if (plr[i]._pHitPoints >> 6 == 0)
2588 plr[i]._pHitPoints = 64;
2589 if (plr[i]._pMana >> 6 == 0)
2590 plr[i]._pMana = 64;
2591 }
2592 }
2593}
2594
2595BOOL M_DoDeath(int i)
2596{

Callers 2

ShowProgressFunction · 0.85
M_DoDeathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected