Skip to content

Commit

Permalink
cleans up the probability calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
zimon9 committed Sep 26, 2024
1 parent f4c5e37 commit 8b0ca4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/objects/items/grenades/grenade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

/obj/item/grenade/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK)
var/obj/projectile/P = hitby
if(damage && attack_type == PROJECTILE_ATTACK && P.damage_type != STAMINA && prob(1) && prob(50))
if(damage && attack_type == PROJECTILE_ATTACK && P.damage_type != STAMINA && prob(0.5))
owner.visible_message("<span class='danger'>[attack_text] hits [owner]'s [src], setting it off! What a shot!</span>")
var/turf/T = get_turf(src)
log_game("A projectile ([hitby]) detonated a grenade held by [key_name(owner)] at [COORD(T)]")
Expand Down

0 comments on commit 8b0ca4d

Please sign in to comment.