mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 23:52:12 +00:00
Port of the merchant mechanics from baystation12. All of the trader, prices and most essential system are done, as well the job datum and the like. Mapping the shuttle, the base and a new dock will be done in a later pr. Also adds phazon construction and several other items used in this pr. The chance of the merchant slow being open at round start can be changed via the config, it is 20% by default.
58 lines
1.3 KiB
Plaintext
58 lines
1.3 KiB
Plaintext
var/list/spawntypes = list()
|
|
|
|
/proc/populate_spawn_points()
|
|
spawntypes = list()
|
|
for(var/type in typesof(/datum/spawnpoint)-/datum/spawnpoint)
|
|
var/datum/spawnpoint/S = new type()
|
|
spawntypes[S.display_name] = S
|
|
|
|
/datum/spawnpoint
|
|
var/msg //Message to display on the arrivals computer.
|
|
var/list/turfs //List of turfs to spawn on.
|
|
var/display_name //Name used in preference setup.
|
|
var/list/restrict_job = null
|
|
var/list/disallow_job = null
|
|
|
|
proc/check_job_spawning(job)
|
|
if(restrict_job && !(job in restrict_job))
|
|
return 0
|
|
|
|
if(disallow_job && (job in disallow_job))
|
|
return 0
|
|
|
|
return 1
|
|
|
|
/datum/spawnpoint/arrivals
|
|
display_name = "Arrivals Shuttle"
|
|
msg = "is inbound from the NTCC Odin"
|
|
disallow_job = list("Merchant")
|
|
|
|
|
|
/datum/spawnpoint/arrivals/New()
|
|
..()
|
|
turfs = latejoin
|
|
|
|
/datum/spawnpoint/cryo
|
|
display_name = "Cryogenic Storage"
|
|
msg = "has completed cryogenic revival"
|
|
disallow_job = list("Cyborg", "Merchant")
|
|
|
|
/datum/spawnpoint/cryo/New()
|
|
..()
|
|
turfs = latejoin_cryo
|
|
|
|
/datum/spawnpoint/cyborg
|
|
display_name = "Cyborg Storage"
|
|
msg = "has been activated from storage"
|
|
restrict_job = list("Cyborg", "Merchant")
|
|
|
|
/datum/spawnpoint/cyborg/New()
|
|
..()
|
|
turfs = latejoin_cyborg
|
|
|
|
/datum/spawnpoint/merchant
|
|
display_name = "Merchant Station"
|
|
restrict_job = list("Merchant")
|
|
|
|
/datum/spawnpoint/merchant/New()
|
|
turfs = latejoin_merchant |