mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 17:41:50 +00:00
* Organ movement refactor *Un-nullspaces your organs* * Fix conflicts I checked the conflicts on the two weird conflicts and no previous TG pr touches them i assume its just github being github because those shoulden't be conflicts *shrug * Fix #1 uhh...this is going to be a long one * Fix #2 Modular Movement Flags * Fix #3 It builds now * Fix #4 Oh god it builds now, I missed some things * Fix #5 No more Runtimesplosion Now time for Synths * Update nightmare_organs.dm * on_mob_insert * https://github.com/Skyrat-SS13/Skyrat-tg/pull/25664 * https://github.com/Skyrat-SS13/Skyrat-tg/pull/25685 * https://github.com/Skyrat-SS13/Skyrat-tg/pull/25582 * https://github.com/Skyrat-SS13/Skyrat-tg/pull/25686 * bro the fucking brain does not go into the chest. * seriously? undocumented code causing shit. if it breaks ghouls, so be it. --------- Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> Co-authored-by: SomeRandomOwl <somerandomowl@ratchtnet.com> Co-authored-by: SomeRandomOwl <2568378+SomeRandomOwl@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
/obj/item/organ/internal/body_egg
|
|
name = "body egg"
|
|
desc = "All slimy and yuck."
|
|
icon_state = "innards"
|
|
visual = TRUE
|
|
zone = BODY_ZONE_CHEST
|
|
slot = ORGAN_SLOT_PARASITE_EGG
|
|
|
|
/obj/item/organ/internal/body_egg/on_find(mob/living/finder)
|
|
..()
|
|
to_chat(finder, span_warning("You found an unknown alien organism in [owner]'s [zone]!"))
|
|
|
|
/obj/item/organ/internal/body_egg/Initialize(mapload)
|
|
. = ..()
|
|
if(iscarbon(loc))
|
|
Insert(loc)
|
|
|
|
/obj/item/organ/internal/body_egg/Insert(mob/living/carbon/egg_owner, special = FALSE, movement_flags = DELETE_IF_REPLACED)
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
egg_owner.add_traits(list(TRAIT_XENO_HOST, TRAIT_XENO_IMMUNE), ORGAN_TRAIT)
|
|
egg_owner.med_hud_set_status()
|
|
INVOKE_ASYNC(src, PROC_REF(AddInfectionImages), egg_owner)
|
|
|
|
/obj/item/organ/internal/body_egg/Remove(mob/living/carbon/egg_owner, special, movement_flags)
|
|
. = ..()
|
|
egg_owner.remove_traits(list(TRAIT_XENO_HOST, TRAIT_XENO_IMMUNE), ORGAN_TRAIT)
|
|
egg_owner.med_hud_set_status()
|
|
INVOKE_ASYNC(src, PROC_REF(RemoveInfectionImages), egg_owner)
|
|
|
|
/obj/item/organ/internal/body_egg/on_death(seconds_per_tick, times_fired)
|
|
. = ..()
|
|
if(!owner)
|
|
return
|
|
egg_process(seconds_per_tick, times_fired)
|
|
|
|
/obj/item/organ/internal/body_egg/on_life(seconds_per_tick, times_fired)
|
|
. = ..()
|
|
egg_process(seconds_per_tick, times_fired)
|
|
|
|
/obj/item/organ/internal/body_egg/proc/egg_process(seconds_per_tick, times_fired)
|
|
return
|
|
|
|
/obj/item/organ/internal/body_egg/proc/RefreshInfectionImage()
|
|
RemoveInfectionImages()
|
|
AddInfectionImages()
|
|
|
|
/obj/item/organ/internal/body_egg/proc/AddInfectionImages()
|
|
return
|
|
|
|
/obj/item/organ/internal/body_egg/proc/RemoveInfectionImages()
|
|
return
|