This commit is contained in:
Cadyn Bombaci
2021-09-26 10:37:24 -07:00
parent 1fa43a5406
commit b55c94da13

View File

@@ -931,7 +931,7 @@
var/damage_factor = (1 - unhappy_factor) //Unhappy factor is 0 at max unhappiness. Damage_factor is 1 at max unhappiness.
var/prob_to_drop = (33 + damage_factor*66) //100% if just above 50%, 33% if just below 125%
var/damage_taken = 5 + 10 * factor //15 damage if just above 50%, 5 if just below 125%
var/message_on_fire = "<span class='notice'>As you pull the trigger, you feel the gun painfully slam into your shoulder, leaving a painful bruise!"
var/message_on_fire = "<span class='notice'>As you pull the trigger, you feel the gun painfully slam into your shoulder, leaving a painful bruise!</span>"
var/in_left_hand = TRUE
if(user.r_hand == src)
in_left_hand = FALSE
@@ -939,7 +939,7 @@
user.apply_damage(damage_taken,BRUTE,damaged_body_part) //Bruise
user.apply_damage(damage_taken * 3,HALLOSS) //Ouchie juice
if(prob(prob_to_drop))
message_on_fire += " The force causes you to stumble backwards, dropping the gun and falling to the ground."
message_on_fire += "<span class='notice'> The force causes you to stumble backwards, dropping the gun and falling to the ground.</span>"
user.drop_item()
user.apply_effect(25,WEAKEN)