Makes away ships no longer shuttle subtypes (#14224)

This commit is contained in:
Doxxmedearly
2022-06-10 12:51:30 +02:00
committed by GitHub
parent dc5fe28f7b
commit 11359f0a37
18 changed files with 1798 additions and 1925 deletions
+1 -3
View File
@@ -128,7 +128,5 @@ somewhere on that shuttle. Subtypes of these can be then used to perform ship ov
. = ..()
if(current_map.use_overmap && !linked)
var/my_sector = map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
if(istype(my_sector, /obj/effect/overmap/visitable/ship))
attempt_hook_up(my_sector)
if(istype(linked, /obj/effect/overmap/visitable/ship))
connected = linked
@@ -50,11 +50,10 @@
if(href_list["pick"])
var/list/possible_d = shuttle.get_possible_destinations()
var/D
if(possible_d.len)
if(length(possible_d))
D = input("Choose shuttle destination", "Shuttle Destination") as null|anything in possible_d
else
to_chat(usr,"<span class='warning'>No valid landing sites in range.</span>")
possible_d = shuttle.get_possible_destinations()
if(CanInteract(usr, physical_state) && (D in possible_d))
shuttle.set_destination(possible_d[D])
return TOPIC_REFRESH