Fixing beam rifles lacking pin and pacifism checks. (#12349)

This commit is contained in:
Ghom
2020-05-24 22:29:45 +02:00
committed by GitHub
parent 07df0102f8
commit a41a06bc4b
2 changed files with 6 additions and 7 deletions

View File

@@ -76,17 +76,16 @@
var/datum/action/item_action/toggle_scope_zoom/azoom
var/dualwield_spread_mult = 1 //dualwield spread multiplier
/// Just 'slightly' snowflakey way to modify projectile damage for projectiles fired from this gun.
var/projectile_damage_multiplier = 1
/obj/item/gun/Initialize()
. = ..()
if(pin)
if(no_pin_required)
pin = null
else
pin = new pin(src)
if(no_pin_required)
pin = null
else if(pin)
pin = new pin(src)
if(gun_light)
alight = new (src)
if(zoomable)

View File

@@ -295,7 +295,7 @@
if(istype(object, /obj/screen) && !istype(object, /obj/screen/click_catcher))
return
process_aim()
if(fire_check())
if(fire_check() && can_trigger_gun(M))
sync_ammo()
do_fire(M.client.mouseObject, M, FALSE, M.client.mouseParams, M.zone_selected)
stop_aiming()