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

Method setDifficulty

src/Savegame/SavedGame.cpp:582–585  ·  view source on GitHub ↗

* Changes the game's difficulty to a new level. * @param difficulty New difficulty. */

Source from the content-addressed store, hash-verified

580 * @param difficulty New difficulty.
581 */
582void SavedGame::setDifficulty(GameDifficulty difficulty)
583{
584 _difficulty = difficulty;
585}
586
587/**
588 * Returns if the game is set to ironman mode.

Callers 2

btnOkClickMethod · 0.80
btnOkClickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected