Files
vgstation13/code/modules/RCD/engie.dm
ComicIronic b2b5c81633 Moved research names over to defines. (#11424)
* Moved research names over to defines.

Also fixed 4 (four) instances of the incorrect research name being used.

* Changed research names to avoid collisions.
2016-08-14 17:47:22 -05:00

50 lines
1.6 KiB
Plaintext

/obj/item/device/rcd/matter/engineering
schematics = list(
/datum/rcd_schematic/decon,
/datum/rcd_schematic/con_floors,
/datum/rcd_schematic/con_walls,
/datum/rcd_schematic/con_airlock
)
var/disabled = 0
/obj/item/device/rcd/matter/engineering/afterattack(var/atom/A, var/mob/user)
if(disabled)
return
return ..()
/obj/item/device/rcd/matter/engineering/suicide_act(var/mob/user)
visible_message("<span class='danger'>[user] is using the deconstruct function on \the [src] on \himself! It looks like \he's trying to commit suicide!</span>")
return (user.death(1))
/obj/item/device/rcd/matter/engineering/pre_loaded/New() //Comes with max energy
..()
matter = max_matter
/obj/item/device/rcd/borg/engineering
schematics = list(
/datum/rcd_schematic/decon,
/datum/rcd_schematic/con_floors,
/datum/rcd_schematic/con_walls,
/datum/rcd_schematic/con_airlock/no_access
)
/obj/item/weapon/rcd_ammo
name = "compressed matter cartridge"
desc = "Highly compressed matter in a cartridge form, used in various fabricators."
icon = 'icons/obj/ammo.dmi'
icon_state = "rcd"
item_state = "rcdammo"
opacity = 0
density = 0
anchored = 0.0
origin_tech = Tc_MATERIALS + "=2"
w_class = W_CLASS_SMALL
starting_materials = list(MAT_IRON = 30000, MAT_GLASS = 15000)
w_type = RECYK_ELECTRONIC
/obj/item/weapon/rcd_ammo/attackby(var/obj/O, mob/user)
if(is_type_in_list(O, list(/obj/item/device/rcd/matter/engineering, /obj/item/device/rcd/matter/rsf)) || (istype(O, /obj/item/device/material_synth) && !istype(O, /obj/item/device/material_synth/robot)))
return O.attackby(src, user)