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

Method isPromoted

src/Savegame/Soldier.cpp:396–401  ·  view source on GitHub ↗

* Returns the unit's promotion status and resets it. * @return True if recently promoted, False otherwise. */

Source from the content-addressed store, hash-verified

394 * @return True if recently promoted, False otherwise.
395 */
396bool Soldier::isPromoted()
397{
398 bool promoted = _recentlyPromoted;
399 _recentlyPromoted = false;
400 return promoted;
401}
402
403/**
404 * Returns the unit's current armor.

Callers 1

PromotionsStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected