mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
Refactors the latejoin list
This commit is contained in:
@@ -14,9 +14,7 @@
|
||||
|
||||
/datum/round_event/ghost_role/devil/spawn_role()
|
||||
//selecting a spawn_loc
|
||||
var/list/spawn_locs = GLOB.latejoin
|
||||
var/spawn_loc = pick(spawn_locs)
|
||||
if(!spawn_loc)
|
||||
if(!SSjob.latejoin_trackers.len)
|
||||
return MAP_ERROR
|
||||
|
||||
//selecting a candidate player
|
||||
@@ -45,6 +43,8 @@
|
||||
|
||||
/proc/create_event_devil(spawn_loc)
|
||||
var/mob/living/carbon/human/new_devil = new(spawn_loc)
|
||||
if(!spawn_loc)
|
||||
SSjob.SendToLateJoin(new_devil)
|
||||
var/datum/preferences/A = new() //Randomize appearance for the devil.
|
||||
A.copy_to(new_devil)
|
||||
new_devil.dna.update_dna_identity()
|
||||
|
||||
10
code/modules/events/devil.dm.rej
Normal file
10
code/modules/events/devil.dm.rej
Normal file
@@ -0,0 +1,10 @@
|
||||
diff a/code/modules/events/devil.dm b/code/modules/events/devil.dm (rejected hunks)
|
||||
@@ -30,7 +28,7 @@
|
||||
var/datum/mind/Mind = create_devil_mind(key)
|
||||
Mind.active = 1
|
||||
|
||||
- var/mob/living/carbon/human/devil = create_event_devil(spawn_loc)
|
||||
+ var/mob/living/carbon/human/devil = create_event_devil()
|
||||
Mind.transfer_to(devil)
|
||||
SSticker.mode.finalize_devil(Mind, FALSE)
|
||||
SSticker.mode.add_devil_objectives(src, 2)
|
||||
Reference in New Issue
Block a user