Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
worm-girl committed Nov 29, 2023
1 parent 8091c93 commit 22c3968
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ static const efftype_id effect_alarm_clock( "alarm_clock" );
static const efftype_id effect_bandaged( "bandaged" );
static const efftype_id effect_beartrap( "beartrap" );
static const efftype_id effect_bite( "bite" );
static const efftype_id effect_slippery_terrain( "slippery_terrain" );
static const efftype_id effect_bleed( "bleed" );
static const efftype_id effect_blind( "blind" );
static const efftype_id effect_blood_spiders( "blood_spiders" );
Expand Down Expand Up @@ -267,6 +266,7 @@ static const efftype_id effect_ridden( "ridden" );
static const efftype_id effect_riding( "riding" );
static const efftype_id effect_sleep( "sleep" );
static const efftype_id effect_slept_through_alarm( "slept_through_alarm" );
static const efftype_id effect_slippery_terrain( "slippery_terrain" );
static const efftype_id effect_stumbled_into_invisible( "stumbled_into_invisible" );
static const efftype_id effect_stunned( "stunned" );
static const efftype_id effect_tapeworm( "tapeworm" );
Expand Down Expand Up @@ -10783,7 +10783,7 @@ void Character::process_effects()
if( has_trait( trait_INFRESIST ) ) {
checked_health += 50;
}
float pinkeye_chance = ( 4 + 6 / 25 * checked_health );
float pinkeye_chance = 4 + 6 / 25 * checked_health;

Check failure on line 10786 in src/character.cpp

View workflow job for this annotation

GitHub Actions / build (src)

result of integer division used in a floating point context; possible loss of precision [bugprone-integer-division,-warnings-as-errors]
if( one_in( pinkeye_chance ) ) {
if( one_in( 2 ) ) {
add_effect( effect_pre_conjunctivitis_bacterial, 70_hours );
Expand Down
2 changes: 1 addition & 1 deletion src/iuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ static const efftype_id effect_bouldering( "bouldering" );
static const efftype_id effect_brainworms( "brainworms" );
static const efftype_id effect_cig( "cig" );
static const efftype_id effect_contacts( "contacts" );
static const efftype_id effect_corroding( "corroding" );
static const efftype_id effect_conjunctivitis_bacterial( "conjunctivitis_bacterial" );
static const efftype_id effect_conjunctivitis_viral( "conjunctivitis_viral" );
static const efftype_id effect_corroding( "corroding" );
static const efftype_id effect_critter_well_fed( "critter_well_fed" );
static const efftype_id effect_crushed( "crushed" );
static const efftype_id effect_datura( "datura" );
Expand Down

0 comments on commit 22c3968

Please sign in to comment.