Skip to content

Commit

Permalink
Fix default chance for ammo effects to 100 (#37602)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg authored Jan 31, 2020
1 parent f290077 commit ed3d6dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ammo_effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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" );
Expand Down

0 comments on commit ed3d6dc

Please sign in to comment.