mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Portable turret overhaul (#11874)
* Portable turret overhaul * caps * visible_message * revision 1 * thought I did this * Temperature gun turrets work fully now * revision 2 * Magic number removal * energy weapon power usage isn't helpful for this * more defines
This commit is contained in:
@@ -3308,11 +3308,10 @@
|
||||
return
|
||||
var/obj/item/weapon/gun/energy/gun = new choice()
|
||||
var/obj/machinery/porta_turret/Turret = new(get_turf(usr))
|
||||
Turret.installation = choice
|
||||
Turret.gun_charge = gun.power_supply.charge
|
||||
Turret.installed = gun
|
||||
gun.forceMove(Turret)
|
||||
Turret.update_gun()
|
||||
qdel(gun)
|
||||
var/emag = input("Emag the turret?") in list("Yes", "No")
|
||||
var/emag = input("Emag the turret?") in list("No", "Yes")
|
||||
if(emag=="Yes")
|
||||
Turret.emag(usr)
|
||||
if("hardcore_mode")
|
||||
|
||||
Reference in New Issue
Block a user