MCPcopy Create free account
hub / github.com/Cirrus-Minor/witchblast / triggerDivinityAfter

Method triggerDivinityAfter

src/PlayerEntity.cpp:3220–3244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3218}
3219
3220void PlayerEntity::triggerDivinityAfter()
3221{
3222 if (divinity.divinity > -1 && divinity.interventions < divinity.level - 1)
3223 {
3224 switch (divinity.divinity)
3225 {
3226 case DivinityHealer:
3227 {
3228 SoundManager::getInstance().playSound(SOUND_OM);
3229 incrementDivInterventions();
3230 divineHeal(hpMax);
3231 break;
3232 }
3233 //case DivinityFighter:
3234 default:
3235 {
3236 SoundManager::getInstance().playSound(SOUND_OM);
3237 incrementDivInterventions();
3238 divineHeal(hpMax / 2);
3239 break;
3240 }
3241 }
3242 game().testAndAddMessageToQueue((EnumMessages)(MsgInfoDivIntervention));
3243 }
3244}
3245
3246void PlayerEntity::addPiety(int n)
3247{

Callers

nothing calls this directly

Calls 2

playSoundMethod · 0.80

Tested by

no test coverage detected