mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user