Merge pull request #11094 from Verkister/patch-71

Fixes holderless mobs being un-eggable
This commit is contained in:
Aronai Sieyes
2021-07-15 18:02:20 -04:00
committed by GitHub
@@ -175,8 +175,9 @@ GLOBAL_LIST_INIT(digest_modes, list())
return
if(isliving(C))
var/mob/living/M = C
var/mob_holder_type = M.holder_type || /obj/item/weapon/holder
B.ownegg.w_class = M.size_multiplier * 4 //Egg size and weight scaled to match occupant.
var/obj/item/weapon/holder/H = new M.holder_type(B.ownegg, M)
var/obj/item/weapon/holder/H = new mob_holder_type(B.ownegg, M)
B.ownegg.max_storage_space = H.w_class
B.ownegg.icon_scale_x = 0.25 * B.ownegg.w_class
B.ownegg.icon_scale_y = 0.25 * B.ownegg.w_class
@@ -199,4 +200,4 @@ GLOBAL_LIST_INIT(digest_modes, list())
if(B.ownegg.w_class > 4)
B.ownegg.slowdown = B.ownegg.w_class - 4
B.ownegg = null
return
return