Initial commit of new map system for Virgo

This commit is contained in:
Arokha Sieyes
2017-03-02 23:28:30 -05:00
parent 8749e2bc02
commit a3e5e7327f
16 changed files with 17212 additions and 17106 deletions

View File

@@ -294,7 +294,7 @@ var/global/datum/shuttle_controller/shuttle_controller
"Fore Port Solars" = locate(/area/skipjack_station/northwest_solars),
"Aft Starboard Solars" = locate(/area/skipjack_station/southeast_solars),
"Aft Port Solars" = locate(/area/skipjack_station/southwest_solars), // Vorestation edit
"[station_short] Arrivals Dock" = locate(/area/skipjack_station/southwest_solars),
"Station Arrivals Dock" = locate(/area/skipjack_station/southwest_solars),
"Mining Station" = locate(/area/skipjack_station/mining)
)

View File

@@ -76,7 +76,7 @@ var/global/list/engineering_networks = list(
network = list(NETWORK_MINE)
/obj/machinery/camera/network/northern_star
network = list(NETWORK_EXODUS)
network = list(NETWORK_NORTHERN_STAR)
/obj/machinery/camera/network/prison
network = list(NETWORK_PRISON)

View File

@@ -14,7 +14,7 @@
var/turf/T = get_turf(C)
if(!T)
continue
if(!(T.z in config.station_levels))
if(!(T.z in using_map.station_levels))
continue
place_ian(T)

View File

@@ -1,5 +0,0 @@
// Override Lobby Image
/obj/effect/lobby_image
icon = 'icons/misc/title_vr.dmi'
lobby_images = list("title")

View File

@@ -13,7 +13,7 @@
/obj/item/weapon/implant/backup/get_data()
var/dat = {"
<b>Implant Specifications:</b><BR>
<b>Name:</b> [company_name] Employee Backup Implant<BR>
<b>Name:</b> [using_map.company_name] Employee Backup Implant<BR>
<b>Life:</b> ~8 hours.<BR>
<b>Important Notes:</b> Implant is life-limited due to KHI licensing restrictions. Dissolves into harmless biomaterial after around ~8 hours, the typical work shift.<BR>
<HR>

View File

@@ -109,7 +109,7 @@
data["tempMsg"] = "Telepad undergoing physical maintenance operations."
data["sectorOptions"] = list()
for(var/z in config.player_levels)
for(var/z in using_map.player_levels)
data["sectorOptions"] += z
if(last_tele_data)
@@ -294,7 +294,7 @@
telefail()
temp_msg = "ERROR!<BR>No distance selected!"
return
if(!(z_co in config.player_levels))
if(!(z_co in using_map.player_levels))
telefail()
temp_msg = "ERROR! Sector is outside known time and space!"
return
@@ -335,7 +335,7 @@
if(href_list["setz"])
var/new_z = text2num(href_list["setz"])
if(new_z in config.player_levels)
if(new_z in using_map.player_levels)
z_co = new_z
if(href_list["ejectGPS"])

File diff suppressed because it is too large Load Diff

17
maps/virgo/virgo.dm Normal file
View File

@@ -0,0 +1,17 @@
#if !defined(USING_MAP_DATUM)
#include "virgo-1.dmm"
#include "virgo-2.dmm"
#include "virgo-3.dmm"
#include "virgo-4.dmm"
#include "virgo-5.dmm"
#include "virgo-6.dmm"
#include "virgo-7.dmm"
#define USING_MAP_DATUM /datum/map/virgo
#elif !defined(MAP_OVERRIDE)
#warn A map has already been included, ignoring Virgo
#endif

View File

@@ -0,0 +1,96 @@
#define Z_LEVEL_MAIN_VIRGO 1
#define Z_LEVEL_CENTCOM_VIRGO 2
#define Z_LEVEL_TELECOMMS_VIRGO 3
#define Z_LEVEL_ABANDONED_ASTEROID_VIRGO 4
#define Z_LEVEL_MINING_VIRGO 5
#define Z_LEVEL_EMPTY_VIRGO 6
#define Z_LEVEL_ABELT_VIRGO 7
/datum/map/virgo
name = "Virgo"
full_name = "NSS Adephagia"
path = "virgo"
lobby_icon = 'icons/misc/title_vr.dmi'
lobby_screens = list("title")
station_levels = list(
Z_LEVEL_MAIN_VIRGO,
Z_LEVEL_MINING_VIRGO
)
admin_levels = list(Z_LEVEL_CENTCOM_VIRGO)
contact_levels = list(
Z_LEVEL_MAIN_VIRGO,
Z_LEVEL_CENTCOM_VIRGO,
Z_LEVEL_MINING_VIRGO
)
player_levels = list(
Z_LEVEL_MAIN_VIRGO,
Z_LEVEL_TELECOMMS_VIRGO,
Z_LEVEL_ABANDONED_ASTEROID_VIRGO,
Z_LEVEL_MINING_VIRGO,
Z_LEVEL_EMPTY_VIRGO
)
sealed_levels = list(Z_LEVEL_ABELT_VIRGO)
empty_levels = list()
accessible_z_levels = list("1" = 5, "3" = 10, "4" = 15, "5" = 10, "6" = 60) // The defines can't be used here sadly.
base_turf_by_z = list(
"1" = /turf/simulated/mineral/floor,
"4" = /turf/simulated/mineral/floor,
"5" = /turf/simulated/mineral/floor
)
station_name = "NSS Adephagia"
station_short = "VORE"
dock_name = "Virgo-Erigone Central Command"
boss_name = "Central Command"
boss_short = "CentCom"
company_name = "NanoTrasen"
company_short = "NT"
starsys_name = "Virgo-Erigone"
shuttle_docked_message = "The scheduled shuttle to the %dock_name% has docked with the station at docks one and two. It will depart in approximately %ETD%."
shuttle_leaving_dock = "The Crew Transfer Shuttle has left the station. Estimate %ETA% until the shuttle docks at %dock_name%."
shuttle_called_message = "A crew transfer to %Dock_name% has been scheduled. The shuttle has been called. Those leaving should procede to docks one and two in approximately %ETA%"
shuttle_recall_message = "The scheduled crew transfer has been cancelled."
emergency_shuttle_docked_message = "The Emergency Shuttle has docked with the station at docks one and two. You have approximately %ETD% to board the Emergency Shuttle."
emergency_shuttle_leaving_dock = "The Emergency Shuttle has left the station. Estimate %ETA% until the shuttle docks at %dock_name%."
emergency_shuttle_called_message = "An emergency evacuation shuttle has been called. It will arrive at docks one and two in approximately %ETA%"
emergency_shuttle_recall_message = "The emergency shuttle has been recalled."
station_networks = list(
NETWORK_CARGO,
NETWORK_CIVILIAN,
NETWORK_COMMAND,
NETWORK_ENGINE,
NETWORK_ENGINEERING,
NETWORK_ENGINEERING_OUTPOST,
NETWORK_DEFAULT,
NETWORK_MEDICAL,
NETWORK_MINE,
NETWORK_NORTHERN_STAR,
NETWORK_RESEARCH,
NETWORK_RESEARCH_OUTPOST,
NETWORK_ROBOTS,
NETWORK_PRISON,
NETWORK_SECURITY,
NETWORK_INTERROGATION
)
allowed_spawns = list("Arrivals Shuttle","Gateway","Cryogenic Storage","Cyborg Storage","Elevator")
/datum/map/virgo/perform_map_generation()
new /datum/random_map/automata/cave_system(null, 1, 1, Z_LEVEL_MAIN_VIRGO, world.maxx, world.maxy) // Create the mining Z-level.
new /datum/random_map/noise/ore(null, 1, 1, Z_LEVEL_MAIN_VIRGO, 64, 64) // Create the mining ore distribution map.
new /datum/random_map/automata/cave_system(null, 1, 1, Z_LEVEL_ABANDONED_ASTEROID_VIRGO, world.maxx, world.maxy) // Create the mining Z-level.
new /datum/random_map/noise/ore(null, 1, 1, Z_LEVEL_ABANDONED_ASTEROID_VIRGO, 64, 64) // Create the mining ore distribution map.
new /datum/random_map/automata/cave_system(null, 1, 1, Z_LEVEL_MINING_VIRGO, world.maxx, world.maxy) // Create the mining Z-level.
new /datum/random_map/noise/ore(null, 1, 1, Z_LEVEL_MINING_VIRGO, 64, 64) // Create the mining ore distribution map.
return 1

View File

@@ -1838,7 +1838,6 @@
#include "code\modules\mob\living\simple_animal\hostile\vore\wolf.dm"
#include "code\modules\mob\living\voice\voice.dm"
#include "code\modules\mob\new_player\login.dm"
#include "code\modules\mob\new_player\login_vr.dm"
#include "code\modules\mob\new_player\logout.dm"
#include "code\modules\mob\new_player\new_player.dm"
#include "code\modules\mob\new_player\new_player_vr.dm"
@@ -2377,7 +2376,7 @@
#include "code\ZAS\Zone.dm"
#include "interface\interface.dm"
#include "interface\skin.dmf"
#include "maps\northern_star\northern_star.dm"
#include "maps\northern_star\northern_star_defines.dm"
#include "maps\virgo\virgo.dm"
#include "maps\virgo\virgo_defines.dm"
#include "maps\~map_system\maps.dm"
// END_INCLUDE