MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / promoteRank

Method promoteRank

src/Savegame/Soldier.cpp:295–303  ·  view source on GitHub ↗

* Increase the soldier's military rank. */

Source from the content-addressed store, hash-verified

293 * Increase the soldier's military rank.
294 */
295void Soldier::promoteRank()
296{
297 _rank = (SoldierRank)((int)_rank + 1);
298 if (_rank > RANK_SQUADDIE)
299 {
300 // only promotions above SQUADDIE are worth to be mentioned
301 _recentlyPromoted = true;
302 }
303}
304
305/**
306 * Returns the soldier's amount of missions.

Callers 3

handlePromotionsMethod · 0.80
postMissionProceduresMethod · 0.80
initSaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected