Prommy Lunchboxes Keep Mice

Forces a mouse to spawn with you **inside** the lunchbox a Prommy spawns with. Fix ported from https://github.com/VOREStation/VOREStation/pull/5093
This commit is contained in:
TheFurryFeline
2019-04-18 20:56:54 -04:00
committed by GitHub
parent 58f8a29790
commit 1a339cdcde
@@ -113,10 +113,19 @@ var/datum/species/shapeshifter/promethean/prometheans
prometheans = src
/datum/species/shapeshifter/promethean/equip_survival_gear(var/mob/living/carbon/human/H)
var/boxtype = pick(typesof(/obj/item/weapon/storage/toolbox/lunchbox))
//TFF 18/4/19: Add a proper list of randomly chosen lunchboxes
var/boxtype = pick(list(/obj/item/weapon/storage/toolbox/lunchbox,
/obj/item/weapon/storage/toolbox/lunchbox/heart,
/obj/item/weapon/storage/toolbox/lunchbox/cat,
/obj/item/weapon/storage/toolbox/lunchbox/nt,
/obj/item/weapon/storage/toolbox/lunchbox/mars,
/obj/item/weapon/storage/toolbox/lunchbox/cti,
/obj/item/weapon/storage/toolbox/lunchbox/nymph,
/obj/item/weapon/storage/toolbox/lunchbox/syndicate)) //Only pick the empty types
var/obj/item/weapon/storage/toolbox/lunchbox/L = new boxtype(get_turf(H))
var/mob/living/simple_animal/mouse/mouse = new (L)
var/obj/item/weapon/holder/holder = new (L)
holder.held_mob = mouse //TFF 18/4/19: Make Prommies hold a mouse on spawning.
mouse.forceMove(holder)
holder.sync(mouse)
if(H.backbag == 1)