mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-10 01:22:41 +00:00
Metal and related materials now noticeable more user-friendly. Added new canister color: yellow "CAUTION". Used for newly created from metal canisters. Can be relabeled once. Some typos were fixed. dsay verb now uses fakekey in stealth mode. AI cannot remove the cell from the charger. Added alientalk chat prefix: ":a" by Barhandar. Also added keyboard layout independent russian prefixes. Binary translator done by more convenient may by Barhandar. Is possible now to wash bloody hands in sink. Probably fixed bug causes gibbed revheads be not counted as dead. Some other fixes. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@752 316c924e-a436-60f5-8080-3fe189b3f50e
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
// APC HULL
|
|
|
|
/obj/item/apc_frame/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if (istype(W, /obj/item/weapon/wrench))
|
|
new /obj/item/stack/sheet/metal( src.loc, 2 )
|
|
del(src)
|
|
|
|
/obj/item/apc_frame/proc/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_loc(usr)
|
|
var/area/A = loc.loc
|
|
if (!istype(loc, /turf/simulated/floor))
|
|
usr << "\red APC cannot be placed on this spot."
|
|
return
|
|
for(var/area/RA in A.related)
|
|
for(var/obj/machinery/power/apc/FINDME in RA)
|
|
usr << "\red This area already has APC."
|
|
return //only one APC per area
|
|
if (A.requires_power == 0)
|
|
usr << "\red APC cannot be placed in this area."
|
|
return
|
|
for(var/obj/machinery/power/terminal/T in loc)
|
|
if (T.master)
|
|
usr << "\red There is another network terminal here."
|
|
return
|
|
else
|
|
var/obj/item/weapon/cable_coil/C = new /obj/item/weapon/cable_coil(loc)
|
|
C.amount = 10
|
|
usr << "You cut cables and disassemble the unused power terminal."
|
|
del(T)
|
|
new /obj/machinery/power/apc(loc, ndir, 1)
|
|
del(src)
|