mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
Fugitive Hunters can spawn early if emergency shuttle is called (#81612)
## About The Pull Request In the event of a shuttle call, fugitive hunters will spawn early. (Hunters will still spawn 10 minutes after the fugitives if the shuttle is idle) ## Why It's Good For The Game Hunters are currently able to spawn way too late to ever have a chance to interact with the fugitives, this is lame for both parties involved. ## Changelog 🆑 PapaMichael balance: Fugitive hunters will spawn early if the emergency shuttle is called. /🆑
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
HUNTER_PACK_BOUNTY,
|
||||
HUNTER_PACK_PSYKER,
|
||||
)
|
||||
addtimer(CALLBACK(src, PROC_REF(spawn_hunters), hunter_backstory), 10 MINUTES)
|
||||
addtimer(CALLBACK(src, PROC_REF(check_spawn_hunters), hunter_backstory, 10 MINUTES), 1 MINUTES)
|
||||
role_name = "fugitive hunter"
|
||||
return SUCCESSFUL_SPAWN
|
||||
|
||||
@@ -103,7 +103,13 @@
|
||||
S.put_in_hands(A)
|
||||
new /obj/item/autosurgeon(landing_turf)
|
||||
|
||||
//security team gets called in after 10 minutes of prep to find the refugees
|
||||
/datum/round_event/ghost_role/fugitives/proc/check_spawn_hunters(backstory, remaining_time)
|
||||
//if the emergency shuttle has been called, spawn hunters now to give them a chance
|
||||
if(remaining_time == 0 || SSshuttle.emergency.mode != EMERGENCY_IDLE_OR_RECALLED)
|
||||
spawn_hunters(backstory)
|
||||
return
|
||||
addtimer(CALLBACK(src, PROC_REF(check_spawn_hunters), backstory, remaining_time - 1 MINUTES), 1 MINUTES)
|
||||
|
||||
/datum/round_event/ghost_role/fugitives/proc/spawn_hunters(backstory)
|
||||
var/list/candidates = SSpolling.poll_ghost_candidates("Do you wish to be considered for a group of [backstory]?", check_jobban = ROLE_FUGITIVE_HUNTER, pic_source = /obj/machinery/sleeper, role_name_text = backstory)
|
||||
shuffle_inplace(candidates)
|
||||
|
||||
Reference in New Issue
Block a user