Clean up god mode
This commit is contained in:
parent
e1db9ba77b
commit
4c6a5bab56
7 changed files with 56 additions and 59 deletions
|
|
@ -18,6 +18,7 @@
|
|||
namespace devilution {
|
||||
|
||||
std::optional<CelSprite> pSquareCel;
|
||||
bool DebugGodMode = false;
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
@ -137,8 +138,8 @@ std::string DebugCmdResetLevel(const std::string_view parameter)
|
|||
|
||||
std::string DebugCmdGodMode(const std::string_view parameter)
|
||||
{
|
||||
debug_mode_key_inverted_v = !debug_mode_key_inverted_v;
|
||||
if (debug_mode_key_inverted_v)
|
||||
DebugGodMode = !DebugGodMode;
|
||||
if (DebugGodMode)
|
||||
return "A god descended.";
|
||||
return "You are mortal, beware of the darkness.";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue