Cheats: Enable setting magic bulldozer, tunnels and jet crashes in multiplayer

This commit is contained in:
Jonathan G Rennison
2020-04-14 20:11:38 +01:00
parent bdf3af72ec
commit 86b6e9727f
7 changed files with 92 additions and 27 deletions

View File

@@ -37,6 +37,20 @@ struct Cheats {
Cheat edit_max_hl; ///< edit the maximum heightlevel; this is a cheat because of the fact that it needs to reset NewGRF game state and doing so as a simple configuration breaks the expectation of many
};
/** Available cheats. */
enum CheatNumbers {
CHT_MONEY, ///< Change amount of money.
CHT_CHANGE_COMPANY, ///< Switch company.
CHT_EXTRA_DYNAMITE, ///< Dynamite anything.
CHT_CROSSINGTUNNELS, ///< Allow tunnels to cross each other.
CHT_NO_JETCRASH, ///< Disable jet-airplane crashes.
CHT_SETUP_PROD, ///< Allow manually editing of industry production.
CHT_EDIT_MAX_HL, ///< Edit maximum allowed heightlevel
CHT_CHANGE_DATE, ///< Do time traveling.
CHT_NUM_CHEATS, ///< Number of cheats.
};
extern Cheats _cheats;
#endif /* CHEAT_TYPE_H */