Warzone2100 / warzone2100

Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+
https://wz2100.net
GNU General Public License v2.0
3.15k stars 522 forks source link

Make the difficulty level moddable #1198

Open highlander1599 opened 3 years ago

highlander1599 commented 3 years ago

The difficulty level is hardcoded in src/difficulty.cpp

void    setDifficultyLevel(DIFFICULTY_LEVEL lev)
{
    switch (lev)
    {
    case    DL_EASY:
        setDamageModifiers(120, 100);
        break;
    case    DL_NORMAL:
        setDamageModifiers(100, 100);
        break;
    case    DL_HARD:
    case    DL_INSANE:
        setDamageModifiers(80, 100);
        break;
    }
    presDifLevel = lev;
}

Some players want to have it easier, some more difficult. Make it moddable so that every player can set the difficulty at his own wish.

Chewbakka-Wakka commented 4 months ago

Since this was opened, if talking of the cam mode then we now have SuperEasy + Insane added where you can also switch in-game as you play via debug/cheat menus. Or set in the main menu prior to starting a game.

For MP vs bots, other changes have and will be made to better this situation.