From d15e0a56c9e62cc066200bc8713e994b8c63cb1f Mon Sep 17 00:00:00 2001 From: Brett Olsen Date: Mon, 1 Nov 2021 19:13:56 -0700 Subject: [PATCH 1/2] Fix probability bug in military spawn --- src/map_extras.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map_extras.cpp b/src/map_extras.cpp index 20ff89b79a530..2964fd29f9f9c 100644 --- a/src/map_extras.cpp +++ b/src/map_extras.cpp @@ -523,9 +523,9 @@ static bool mx_military( map &m, const tripoint & ) // 75% assault rifles, 10% LMGs, 5% shotguns, 5% sniper rifles if( one_in( 20 ) ) { group = item_group_id( "military_standard_sniper_rifles" ); - } else if( one_in( 20 ) ) { + } else if( one_in( 19 ) ) { group = item_group_id( "military_standard_shotguns" ); - } else if( one_in( 10 ) ) { + } else if( one_in( 9 ) ) { group = item_group_id( "military_standard_lmgs" ); } else { group = item_group_id( "military_standard_assault_rifles" ); From c81d3088cfb421c35521c3fa9026bdde991024fc Mon Sep 17 00:00:00 2001 From: Brett Olsen Date: Mon, 1 Nov 2021 19:21:30 -0700 Subject: [PATCH 2/2] Update comment --- src/map_extras.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map_extras.cpp b/src/map_extras.cpp index 2964fd29f9f9c..b37e11f1769a2 100644 --- a/src/map_extras.cpp +++ b/src/map_extras.cpp @@ -520,7 +520,7 @@ static bool mx_military( map &m, const tripoint & ) // 10% chance of zombie carrying weapon so 90% chance of it being on the ground if( !one_in( 10 ) ) { item_group_id group; - // 75% assault rifles, 10% LMGs, 5% shotguns, 5% sniper rifles + // 80% assault rifles, 10% LMGs, 5% shotguns, 5% sniper rifles if( one_in( 20 ) ) { group = item_group_id( "military_standard_sniper_rifles" ); } else if( one_in( 19 ) ) {