mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Atomized APC Construction Update (#28817)
* initial commit * Update apc_construction.dm * Apply suggestions from code review Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> * Split * Update apc.dm * Update apc.dm * Update apc.dm * Update apc.dm * Update apc.dm * Apply suggestions from code review Co-authored-by: warriorstar-orion <orion@snowfrost.garden> Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> * Defines * Now with 100 percent more tests * this was not supposed to be here Whoops! * Update test_apc_construction.dm * Update test_apc_construction.dm * Update test_apc_construction.dm * Update test_apc_construction.dm * Update test_apc_construction.dm * Update test_apc_construction.dm * Update test_apc_construction.dm * Update test_apc_construction.dm * Update test_apc_construction.dm * Update test_apc_construction.dm * Update test_apc_construction.dm * Update test_apc_construction.dm * Update apc.dm * Update test_apc_construction.dm --------- Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
This commit is contained in:
co-authored by
1080pCat
warriorstar-orion
parent
4d848c7c2d
commit
476c526c69
@@ -15,13 +15,16 @@
|
||||
if(A.get_apc())
|
||||
to_chat(user, "<span class='warning'>This area already has an APC!</span>")
|
||||
return //only one APC per area
|
||||
|
||||
if(!A.requires_power)
|
||||
to_chat(user, "<span class='warning'>You cannot place [src] in this area!</span>")
|
||||
return //can't place apcs in areas with no power requirement
|
||||
|
||||
for(var/obj/machinery/power/terminal/E in T)
|
||||
if(E.master)
|
||||
to_chat(user, "<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(T)
|
||||
C.amount = 10
|
||||
|
||||
Reference in New Issue
Block a user