| 3218 | } |
| 3219 | |
| 3220 | void 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 | |
| 3246 | void PlayerEntity::addPiety(int n) |
| 3247 | { |
nothing calls this directly
no test coverage detected