Also fixed condition thing where having second pistol would lower chance of main one going off
This commit is contained in:
Chinsky
2015-03-30 22:08:08 +03:00
parent 1a93042226
commit 1e6e7b0146

View File

@@ -218,12 +218,12 @@
W = l_hand
chance = hand ? 40 : 20
if (istype(r_hand,/obj/item/weapon/gun))
else if (istype(r_hand,/obj/item/weapon/gun))
W = r_hand
chance = !hand ? 40 : 20
if (prob(chance))
visible_message("<spawn class=danger>[src]'s [W] goes off during struggle!")
visible_message("<spawn class=danger>[src]'s [W.name] goes off during struggle!")
var/list/turfs = list()
for(var/turf/T in view())
turfs += T