Recoil mode check

Actually it just occurred to me that if you do have recoil_mode = 0 on any gun, it would go through with displaying the message that you dropped it anyway, even though you wouldn't because of the math.
This commit is contained in:
Razgriz
2020-08-10 19:18:49 -07:00
committed by GitHub
parent 6f1e27474a
commit afe34a1aff

View File

@@ -440,13 +440,14 @@
if(recoil_mode && iscarbon(user))
var/mob/living/carbon/nerd = user
var/mysize = nerd.size_multiplier
if(mysize <= 0.5)
nerd.Weaken(1*recoil_mode)
if(!istype(src,/obj/item/weapon/gun/energy))
nerd.adjustBruteLoss((5-mysize*4)*recoil_mode)
to_chat(nerd, "<span class='danger'>You're so tiny that you drop the gun and hurt yourself from the recoil!</span>")
else
to_chat(nerd, "<span class='danger'>You're so tiny that the pull of the trigger causes you to drop the gun!</span>")
if(recoil_mode < 0)
if(mysize <= 0.5)
nerd.Weaken(1*recoil_mode)
if(!istype(src,/obj/item/weapon/gun/energy))
nerd.adjustBruteLoss((5-mysize*4)*recoil_mode)
to_chat(nerd, "<span class='danger'>You're so tiny that you drop the gun and hurt yourself from the recoil!</span>")
else
to_chat(nerd, "<span class='danger'>You're so tiny that the pull of the trigger causes you to drop the gun!</span>")
//YAWNEDIT: Knockdown code end