File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 136
136
// / Minimal character age for this job
137
137
var /required_character_age
138
138
139
+ // / For jobs like AI or Prisoner. If you do not want for role to be spawn in common cryo
140
+ var /do_not_spawn_in_common_cryo = FALSE // ARK ADDITION
141
+
139
142
140
143
/ datum / job/ New()
141
144
. = .. ()
Original file line number Diff line number Diff line change 21
21
random_spawns_possible = FALSE
22
22
job_flags = JOB_NEW_PLAYER_JOINABLE | JOB_EQUIP_RANK | JOB_BOLD_SELECT_TEXT | JOB_CANNOT_OPEN_SLOTS
23
23
config_tag = " AI"
24
+ do_not_spawn_in_common_cryo = TRUE
24
25
25
26
26
27
/ datum / job/ ai/ after_spawn( mob / living/ spawned, client / player_client)
Original file line number Diff line number Diff line change 216
216
transfer_character ()
217
217
218
218
SSjob. equip_rank(character, job, character. client)
219
- // job.after_latejoin_spawn(character) ARK STATION REMOVED
220
- var /atom /spawn_point = pick (GLOB . valid_for_spawn_cryopods) // ARK STATION ADDITION
221
- spawn_point. join_player_here(character) // ARK STATION EDIT
219
+ // ARK STATION CHANGE START
220
+ if (job. do_not_spawn_in_common_cryo) // Check if we want to spawn it in station common cryo
221
+ job. after_latejoin_spawn(character) // If no - proceed job custom spawn parameters
222
+ if (! job. do_not_spawn_in_common_cryo) // If it's casual worker, spawn him in cryo
223
+ var /atom /spawn_point = pick (GLOB . valid_for_spawn_cryopods)
224
+ spawn_point. join_player_here(character)
225
+ // ARK STATION CHANGE END
222
226
223
227
#define IS_NOT_CAPTAIN 0
224
228
#define IS_ACTING_CAPTAIN 1
You can’t perform that action at this time.
0 commit comments