Skip to content

Commit

Permalink
repairs for test purposes.
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericist committed Dec 4, 2023
1 parent 7a9efcb commit 27c72b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion data/core/game_balance.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
{
"type": "EXTERNAL_OPTION",
"name": "SPAWN_CITY_HORDE_THRESHOLD",
"info": "Minimum city size to guarantee extra zombies are spawned in cities. 0 means all cities spawn extra zombies. Negative values disable extra city zombies.",
"info": "Minimum city size to guarantee extra zombies are spawned in cities. 0 means all cities spawn extra zombies. Negative values disable extra city zombies.",
"stype": "int",
"value": 4
},
Expand Down
10 changes: 5 additions & 5 deletions src/overmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6631,9 +6631,9 @@ void overmap::place_mongroups()
// get all four quadrants for better distribution.
std::vector<tripoint_abs_sm> local_sm_list;
local_sm_list.push_back( this_sm );
local_sm_list.push_back( this_sm + point( 0, 1 ) );
local_sm_list.push_back( this_sm + point( 1, 0 ) );
local_sm_list.push_back( this_sm + point( 1, 1 ) );
local_sm_list.push_back( this_sm + point_east );
local_sm_list.push_back( this_sm + point_south );
local_sm_list.push_back( this_sm + point_south_east );

// shuffle, then prune submaps based on distance from city center
// this should let us concentrate hordes closer to the center.
Expand All @@ -6654,12 +6654,12 @@ void overmap::place_mongroups()
// somehow the city has no roads. this shouldn't happen.
add_msg_debug( debugmode::DF_OVERMAP,
"tried to add zombie hordes to city %s centered at omt %s, but there were no roads!",
elem.name, city_center.to_string() );
elem.name, city_center.to_string_writable() );
continue;
}

add_msg_debug( debugmode::DF_OVERMAP, "adding %i zombies in hordes to city %s centered at omt %s.",
desired_zombies, elem.name, city_center.to_string() );
desired_zombies, elem.name, city_center.to_string_writable() );

// if there aren't enough roads, we'll just reuse them, re-shuffled.
while( desired_zombies > 0 ) {
Expand Down
2 changes: 1 addition & 1 deletion src/overmap_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ static const oter_str_id oter_unexplored( "unexplored" );

static const oter_type_str_id oter_type_forest_trail( "forest_trail" );

static const trait_id trait_DEBUG_NIGHTVISION( "DEBUG_NIGHTVISION" );
static const trait_id trait_DEBUG_CLAIRVOYANCE( "DEBUG_CLAIRVOYANCE" );
static const trait_id trait_DEBUG_NIGHTVISION( "DEBUG_NIGHTVISION" );

#if defined(__ANDROID__)
#include <SDL_keyboard.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@

static const oter_type_str_id oter_type_forest_trail( "forest_trail" );

static const trait_id trait_DEBUG_NIGHTVISION( "DEBUG_NIGHTVISION" );
static const trait_id trait_DEBUG_CLAIRVOYANCE( "DEBUG_CLAIRVOYANCE" );
static const trait_id trait_DEBUG_NIGHTVISION( "DEBUG_NIGHTVISION" );

//***********************************
//Globals *
Expand Down

0 comments on commit 27c72b7

Please sign in to comment.