Fixes #6504

Fixes #6508

Modular guns can now be used for turret construction

bugfixes were seperated from: #6505
This commit is contained in:
Mykhailo Bykhovtsev
2019-07-05 09:17:54 +03:00
committed by Erki
parent 706164bd60
commit df4ccdd7b4
4 changed files with 50 additions and 8 deletions
@@ -9,7 +9,7 @@
force = 10
origin_tech = list(TECH_COMBAT = 3, TECH_MAGNET = 2)
matter = list(DEFAULT_WALL_MATERIAL = 2000)
can_turret = 0
can_turret = TRUE
zoomdevicename = null
max_shots = 0
burst_delay = 0
@@ -152,6 +152,8 @@
return null
if(!power_supply.checked_use(charge_cost))
return null
if(!capacitor)
return null
if (self_recharge)
addtimer(CALLBACK(src, .proc/try_recharge), recharge_time * 2 SECONDS, TIMER_UNIQUE)
var/obj/item/projectile/beam/A = new projectile_type(src)