mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Very late arrivals can arrive with toast (#75061)
## About The Pull Request https://user-images.githubusercontent.com/5479091/235362295-89b9e21b-abe0-4fb6-b404-a7e02b04dfe6.mp4 Late joiners who arrive after the emergency shuttle has already passed no return have a 20% chance of having toast (If the mask slot isn't already full (I think this is just detectives)) ## Why It's Good For The Game It's a funny anime reference. ## Changelog 🆑 add: Crewmembers arriving very late will not always have time to finish their breakfast. /🆑
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#define VERY_LATE_ARRIVAL_TOAST_PROB 20
|
||||
|
||||
SUBSYSTEM_DEF(job)
|
||||
name = "Jobs"
|
||||
init_order = INIT_ORDER_JOBS
|
||||
@@ -551,6 +553,8 @@ SUBSYSTEM_DEF(job)
|
||||
var/mob/living/carbon/human/wageslave = equipping
|
||||
wageslave.add_mob_memory(/datum/memory/key/account, remembered_id = wageslave.account_id)
|
||||
|
||||
if(EMERGENCY_PAST_POINT_OF_NO_RETURN && prob(VERY_LATE_ARRIVAL_TOAST_PROB))
|
||||
equipping.equip_to_slot_or_del(new /obj/item/food/griddle_toast(equipping), ITEM_SLOT_MASK)
|
||||
|
||||
job.after_spawn(equipping, player_client)
|
||||
|
||||
@@ -1091,3 +1095,5 @@ SUBSYSTEM_DEF(job)
|
||||
return JOB_UNAVAILABLE_GENERIC
|
||||
|
||||
return JOB_AVAILABLE
|
||||
|
||||
#undef VERY_LATE_ARRIVAL_TOAST_PROB
|
||||
|
||||
Reference in New Issue
Block a user