mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
New ghost verb: Become Space Hobo (#29808)
* Basis of this job * The hideout * More stuff * Walling * Start landmarks and APC * .dme check * Generation code * Adding to init * Tweak for later * This is needed to compile * Moving this here to see what it does * Oh I got the filename wrong * Saving it like this, maybe now it'll work * Maybe this will help * Oh right. Testing for box anyways * And everywhere else too * Shack tweaks * Reformatting this * Oh it's like this * Starting tweaks * And more * Midround stuff * Locking it from observers, ideally * Removing more unused things * More species * Typo * Config stuff * Safe tweak * Gives own ID type * Tajaran outfit * Redoing shack generation Co-authored-by: kanef <kanef9x@protonmail.com>
This commit is contained in:
@@ -95,6 +95,13 @@
|
||||
|
||||
message_admins("<span class='info'>Loaded [result] out of [surprise_number] mining surprises.</span>")
|
||||
|
||||
/proc/generate_hoboshack()
|
||||
var/list/list_of_shacks = get_map_element_objects(/datum/map_element/hoboshack)
|
||||
|
||||
var/result = populate_area_with_vaults(/area/mine/unexplored, list_of_shacks, 1, filter_function=/proc/asteroid_can_be_placed)
|
||||
|
||||
message_admins("<span class='info'>Loaded space hobo shack [result ? "" : "un"]successfully.</span>")
|
||||
|
||||
/proc/asteroid_can_be_placed(var/datum/map_element/E, var/turf/start_turf)
|
||||
var/list/dimensions = E.get_dimensions()
|
||||
var/result = check_complex_placement(start_turf,dimensions[1], dimensions[2])
|
||||
|
||||
Reference in New Issue
Block a user