From ed3d6dc4632c1f78ce6624bc10d7b3ccb49cac8a Mon Sep 17 00:00:00 2001 From: ZhilkinSerg Date: Sat, 1 Feb 2020 02:20:19 +0300 Subject: [PATCH] Fix default chance for ammo effects to 100 (#37602) --- src/ammo_effect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ammo_effect.cpp b/src/ammo_effect.cpp index 6d57871495f85..730971c9dac74 100644 --- a/src/ammo_effect.cpp +++ b/src/ammo_effect.cpp @@ -67,7 +67,7 @@ void ammo_effect::load( const JsonObject &jo, const std::string & ) optional( joa, was_loaded, "intensity_max", aoe_intensity_max, 0 ); optional( joa, was_loaded, "radius", aoe_radius, 1 ); optional( joa, was_loaded, "radius_z", aoe_radius_z, 0 ); - optional( joa, was_loaded, "chance", aoe_chance, 1 ); + optional( joa, was_loaded, "chance", aoe_chance, 100 ); optional( joa, was_loaded, "size", aoe_size, 0 ); optional( joa, was_loaded, "check_passable", aoe_check_passable, false ); optional( joa, was_loaded, "check_sees", aoe_check_sees, false ); @@ -78,7 +78,7 @@ void ammo_effect::load( const JsonObject &jo, const std::string & ) optional( joa, was_loaded, "field_type", trail_field_type_name, "fd_null" ); optional( joa, was_loaded, "intensity_min", trail_intensity_min, 0 ); optional( joa, was_loaded, "intensity_max", trail_intensity_max, 0 ); - optional( joa, was_loaded, "chance", trail_chance, 1 ); + optional( joa, was_loaded, "chance", trail_chance, 100 ); } if( jo.has_member( "explosion" ) ) { JsonObject joe = jo.get_object( "explosion" );