Skip to content

Commit

Permalink
Merge pull request #73366 from RenechCDDA/debug_plus
Browse files Browse the repository at this point in the history
More debug power
  • Loading branch information
Maleclypse authored Apr 30, 2024
2 parents 9ece9f2 + b918a32 commit 1102908
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/json/items/armor/storage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2948,7 +2948,7 @@
],
"warmth": 0,
"material_thickness": 0,
"flags": [ "BELTED", "WATER_FRIENDLY", "TARDIS", "OVERSIZE" ],
"flags": [ "BELTED", "WATER_FRIENDLY", "TARDIS", "OVERSIZE", "WATCH", "THERMOMETER" ],
"armor": [ { "encumbrance": [ 0, 0 ], "covers": [ "torso" ], "specifically_covers": [ "torso_hanging_back" ] } ]
},
{
Expand Down
11 changes: 11 additions & 0 deletions data/json/mutations/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -9121,6 +9121,17 @@
"debug": true,
"active": true
},
{
"type": "mutation",
"id": "DEBUG_STAMINA",
"name": { "str": "Debug Stamina" },
"points": 99,
"valid": false,
"description": "Your energy to squash bugs is endless!",
"enchantments": [ { "values": [ { "value": "STAMINA_REGEN_MOD", "add": 9 } ] } ],
"debug": true,
"active": true
},
{
"type": "mutation",
"id": "DEBUG_PREVENT_DEATH",
Expand Down
7 changes: 5 additions & 2 deletions src/debug_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,13 @@ static const trait_id trait_DEBUG_BIONICS( "DEBUG_BIONICS" );
static const trait_id trait_DEBUG_CLAIRVOYANCE( "DEBUG_CLAIRVOYANCE" );
static const trait_id trait_DEBUG_CLOAK( "DEBUG_CLOAK" );
static const trait_id trait_DEBUG_HS( "DEBUG_HS" );
static const trait_id trait_DEBUG_LIGHT( "DEBUG_LIGHT" );
static const trait_id trait_DEBUG_LS( "DEBUG_LS" );
static const trait_id trait_DEBUG_MANA( "DEBUG_MANA" );
static const trait_id trait_DEBUG_MIND_CONTROL( "DEBUG_MIND_CONTROL" );
static const trait_id trait_DEBUG_NODMG( "DEBUG_NODMG" );
static const trait_id trait_DEBUG_NOTEMP( "DEBUG_NOTEMP" );
static const trait_id trait_DEBUG_STAMINA( "DEBUG_STAMINA" );
static const trait_id trait_DEBUG_SPEED( "DEBUG_SPEED" );
static const trait_id trait_NONE( "NONE" );

Expand Down Expand Up @@ -2895,8 +2898,8 @@ void debug()

// Used for quick setup, constructed outside the switches to reduce duplicate code
std::vector<trait_id> setup_traits{trait_DEBUG_BIONICS, trait_DEBUG_CLAIRVOYANCE, trait_DEBUG_CLOAK,
trait_DEBUG_HS, trait_DEBUG_LS, trait_DEBUG_MANA, trait_DEBUG_NODMG,
trait_DEBUG_NOTEMP, trait_DEBUG_SPEED};
trait_DEBUG_HS, trait_DEBUG_LIGHT, trait_DEBUG_LS, trait_DEBUG_MANA, trait_DEBUG_MIND_CONTROL,
trait_DEBUG_NODMG, trait_DEBUG_NOTEMP, trait_DEBUG_STAMINA, trait_DEBUG_SPEED};

avatar &player_character = get_avatar();
map &here = get_map();
Expand Down

0 comments on commit 1102908

Please sign in to comment.