mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-01 04:52:16 +00:00
* Base work for the unathi robot subspecies. * Adds metabolism species, kidney vars, and the robot unathi organs. * Moves some action buttons to organs, pretty much a bay port right now. Todo: the unathi and alien stuff should also go here. * First autakh implant power. * Fixes the organs action button this time. * Finishes more implants, and interactions with flashs and vaurca. * Prepare for great changes. * Drops the real bomb, boss. * He who fights with monsters. * Far more work into augments and limb removing powers. * Limb verbs should be good now. * A LOT of work into the assited organ, allowing it to bleed and etc, as well adding a new chem that will stop bleeding in their case. * Probably the last work on implants. * Some extra touches. * Some tweaks to the species. * More fixes and adds kyre's sprites. * More runtime fixes. * Fixes the species name too. * Fixes travis. * Updates this file too to work with the new tools procs. * Adds changelog * Fixed changelog. * Unathi hair and lore description. * Some tweaks to this too. * Locks away them for now, they will be released after we got all the events and etc done. * Changes this chemical. * Fixes an airlock runtime. * Adds the non scan flag to the autakh, mostly due to some bizzare interactions with changelings and cloning. * Organs removal changes; can't take out the organ if it is too damage. * Restricts them back again. * Robotic organs now have the proper icons and names. * Adds sprites for their organs and some extra tweaks. * Fixes this missing icon. * emp should also now hurt assited organs. * Tweaks more organ related things. * Fixes the head not being properly set as well. * Fixes their flags. * fixes the flag for real this time. * Poze's review. * Changes the au'takh organ buttons to don't be animated. * Helps with adminbus or something. * Fowl's requested changes. * Fixes a typo. * Robotic limb's brute and burn mods are now controlled by the limb model. * Fowl's changes once more. * Stops some spam. * More grammar. * No eal. * Skull's review.
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
// APC HULL
|
|
|
|
/obj/item/frame/apc
|
|
name = "\improper APC frame"
|
|
desc = "Used for repairing or building APCs"
|
|
icon = 'icons/obj/apc_repair.dmi'
|
|
icon_state = "apc_frame"
|
|
flags = CONDUCT
|
|
|
|
/obj/item/frame/apc/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
..()
|
|
if (W.iswrench())
|
|
new /obj/item/stack/material/steel( get_turf(src.loc), 2 )
|
|
qdel(src)
|
|
|
|
/obj/item/frame/apc/try_build(turf/on_wall)
|
|
if (get_dist(on_wall,usr)>1)
|
|
return
|
|
var/ndir = get_dir(usr,on_wall)
|
|
if (!(ndir in cardinal))
|
|
return
|
|
var/turf/loc = get_turf(usr)
|
|
var/area/A = loc.loc
|
|
if (!istype(loc, /turf/simulated/floor))
|
|
usr << "<span class='warning'>APC cannot be placed on this spot.</span>"
|
|
return
|
|
if (A.requires_power == 0 || istype(A, /area/space) || istype(A, /area/mine/unexplored))
|
|
usr << "<span class='warning'>APC cannot be placed in this area.</span>"
|
|
return
|
|
if (A.get_apc())
|
|
usr << "<span class='warning'>This area already has an APC.</span>"
|
|
return //only one APC per area
|
|
for(var/obj/machinery/power/terminal/T in loc)
|
|
if (T.master)
|
|
usr << "<span class='warning'>There is another network terminal here.</span>"
|
|
return
|
|
else
|
|
var/obj/item/stack/cable_coil/C = new /obj/item/stack/cable_coil(loc)
|
|
C.amount = 10
|
|
usr << "You cut the cables and disassemble the unused power terminal."
|
|
qdel(T)
|
|
new /obj/machinery/power/apc(loc, ndir, 1)
|
|
qdel(src)
|