allowed to fail

This commit is contained in:
Pin-alternative
2022-08-08 13:21:21 +10:00
parent e055a91f78
commit 4a3f7feebc

View File

@@ -80,10 +80,10 @@
switch(container.slot)
if(ORGAN_SLOT_PENIS)
var/obj/item/organ/genital/penis/peenus = container.owner.getorganslot(ORGAN_SLOT_PENIS)
peenus.modify_size(new_size)
peenus?.modify_size(new_size)
if(ORGAN_SLOT_BREASTS)
var/obj/item/organ/genital/breasts/breasts = container.owner.getorganslot(ORGAN_SLOT_BREASTS)
breasts.modify_size(new_size)
breasts?.modify_size(new_size)
else
var/obj/item/organ/genital/belly/belly = container.owner.getorganslot(ORGAN_SLOT_BELLY)
if(!belly && ishuman(container.owner))
@@ -95,10 +95,10 @@
switch(container.slot)
if(ORGAN_SLOT_PENIS)
var/obj/item/organ/genital/penis/peenus = container.owner.getorganslot(ORGAN_SLOT_PENIS)
peenus.modify_size(-size)
peenus?.modify_size(-size)
if(ORGAN_SLOT_BREASTS)
var/obj/item/organ/genital/breasts/breasts = container.owner.getorganslot(ORGAN_SLOT_BREASTS)
breasts.modify_size(-size)
breasts?.modify_size(-size)
else
var/obj/item/organ/genital/belly/belly = container?.owner?.getorganslot(ORGAN_SLOT_BELLY)
belly?.modify_size(-size)