mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Calls Allocate on the spawn humans unit test humans [MDB IGNORE] (#25128)
* Calls Allocate on the spawn humans unit test humans (#79827) ## About The Pull Request I have found a unit test that spawn instances of `/mob/living/carbon/human/consistent`, without using `allocate`, so they won't get into the list of things to be deleted when CI finishes running. This PR ensures that they won't stick around after the unit test has finished. I kept them picking a random tile from the unit test room, instead of going with `allocate`'s default of the test area's bottom left corner. Could have maybe swapped it to pick_n_take so there is no chance of them piling up, but that is not relevant to the CI issue. ## Why It's Good For The Game Maybe this will stop the random CI failures where `/mob/living/carbon/human/consistent` fails to be deleted. ## Changelog Nothing player facing * Calls Allocate on the spawn humans unit test humans --------- Co-authored-by: Profakos <profakos@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
var/locs = block(run_loc_floor_bottom_left, run_loc_floor_top_right)
|
||||
|
||||
for(var/I in 1 to 5)
|
||||
new /mob/living/carbon/human/consistent(pick(locs))
|
||||
allocate(/mob/living/carbon/human/consistent, pick(locs))
|
||||
|
||||
sleep(5 SECONDS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user