mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 13:39:16 +01:00
Adds a new redgate map: The Casino Canal (#18587)
* starts da map * starting to shape up I think? * moar edits * we got lots more stuff now * we got dorms now :) * moar doarm and PRIVATE GAME ROOMS WOAG * adds chip machine * tidy dis up * oops * pretties up private game rooms a bit * ok now the chip dispenser works * Adds resleeving stuff * Adds pixel-displaced children of punlic paintings * mmmmmm maint stuff * adds VIP rooms and more maint stuff * that's a lotta shit made woooo * its almost... done... (the main building is anyway) * Let's get this bih to actually load * And let's get some proper areas separating indoor and outdoor * Makes casino hall turfs actually render as intended * WE HAVE AREAS NOW * don't need this big ol file any more * MOSTLY finishes the mai nbuilding * finally finishes the main building (for now) * does some exterior stuff but now it's crashing WHY * oops * adds subvariant of floodlight that starts turned on * adds areas for well, secret areas * TOO MUCH new shit * Does a silly thing to make properly underwater cave turfs * adds "open" underwater turfs that are functionally transparent divable turfs * more funny secrets * Makes open water turfs show a darker view underneath for visual clarity * okay I think it might be done now * makes indoor water effect look a bit nicer * I ALMOST FORGOT * engoodens code surrounding multiple auto-resleevers existing * FUCK * DOUBLE FUCK * Lets things with GLASSPASS move through TGMC widnows * actually it makes more sense for the TF gun to be here * Makes 🏴☠️ secret a bit nicer --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -68,19 +68,31 @@
|
||||
if(!isobserver(src)) //Make sure they're an observer!
|
||||
return
|
||||
|
||||
var/list/ar = list()
|
||||
for(var/obj/machinery/transhuman/autoresleever/A in world)
|
||||
// Set up an assorted list of auto-resleevers using their area name as the key, (as there should only ever be one per area)
|
||||
var/list/autoresleevers = list()
|
||||
for(var/obj/machinery/transhuman/autoresleever/A in GLOB.active_autoresleevers)
|
||||
if(A.spawntype)
|
||||
continue
|
||||
else
|
||||
ar |= A
|
||||
var/area/resleever_area = get_area(A)
|
||||
autoresleevers[resleever_area.name] = A
|
||||
|
||||
var/obj/machinery/transhuman/autoresleever/thisone = pick(ar)
|
||||
var/obj/machinery/transhuman/autoresleever/chosen_resleever = null
|
||||
if(length(autoresleevers) > 1)
|
||||
// Prompt user to choose which one they wanna go to
|
||||
var/choice = tgui_input_list(src, "There are multiple auto-resleevers available! Choose one.", "Choose Auto-Resleever", autoresleevers)
|
||||
if(!choice)
|
||||
// well okay then :L
|
||||
return
|
||||
chosen_resleever = autoresleevers[choice]
|
||||
else
|
||||
// If there's less than one, just choose whatever one is available (if any)
|
||||
chosen_resleever = autoresleevers[pick(autoresleevers)]
|
||||
|
||||
if(!thisone)
|
||||
if(!chosen_resleever)
|
||||
to_chat(src, span_warning("There appears to be no auto-resleevers available."))
|
||||
return
|
||||
var/L = get_turf(thisone)
|
||||
var/L = get_turf(chosen_resleever)
|
||||
if(!L)
|
||||
to_chat(src, span_warning("There appears to be something wrong with this auto-resleever, try again."))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user