Some shuttes rework. Allow many shuttles of one template to work at the same time. (#53993)

* add replace button to shuttle panel

load button now only load new shuttle

* shuttle teplate loads as shuttle

* new shuttle console connects to shuttle

* new navigation computer connect to shurrle

* docking_port id now unique

add count to id if id already in work

* many docks from one base tenplate

* up

* fix unregister

* up

* up

* up

* block multiple shuttle loading

* return preview button

* up  id generation
This commit is contained in:
Dennok
2020-10-06 00:20:15 +03:00
committed by GitHub
parent fac68576a4
commit 516a3e5bdc
9 changed files with 162 additions and 48 deletions
@@ -21,6 +21,13 @@
images += preview
if(alert(src,"Confirm location.","Template Confirm","Yes","No") == "Yes")
if(template.load(T, centered = TRUE))
var/affected = template.get_affected_turfs(T, centered=TRUE)
for(var/AT in affected)
for(var/obj/docking_port/mobile/P in AT)
if(istype(P, /obj/docking_port/mobile))
template.post_load(P)
break
message_admins("<span class='adminnotice'>[key_name_admin(src)] has placed a map template ([template.name]) at [ADMIN_COORDJMP(T)]</span>")
else
to_chat(src, "Failed to place map", confidential = TRUE)