mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 17:41:50 +00:00
* This tail refactor turned into an organ refactor. Funny how that works. * Firstly, fixing all the conflicts. * Fixes all our maps (hopefully) * Actually, this should fix pod people hair :) * Almost everything is working, just two major things to fix * Fixed a certain kind of external organ * Cleaning up some more stuff * Turned tail_cat into tail because why the fuck are they separate? * Moved all the tails into tails.dmi because that was just dumb to have like 3 in a different file * Adds relevant_layers to organs to help with rendering * Makes stored_feature_id also check mutant_bodyparts * Fixes the icon_state names of ALL the tails (pain) * Fixes wagging, gotta refactor most mutant bodyparts later on * I Love Added Failures * Fixed some organs that slipped through my searches * This could possibly fix the CI for this? * It doesn't look like it did fix it * This will make it pass, even if it's ugly as sin. * Fixed Felinids having a weird ghost tail * Fixes instances of snouts and tails not being properly colored Co-authored-by: Kapu1178 <75460809+Kapu1178@users.noreply.github.com> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
55 lines
1.5 KiB
Plaintext
55 lines
1.5 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/M, special = FALSE)
|
|
..()
|
|
ADD_TRAIT(owner, TRAIT_XENO_HOST, ORGAN_TRAIT)
|
|
ADD_TRAIT(owner, TRAIT_XENO_IMMUNE, ORGAN_TRAIT)
|
|
owner.med_hud_set_status()
|
|
INVOKE_ASYNC(src, .proc/AddInfectionImages, owner)
|
|
|
|
/obj/item/organ/internal/body_egg/Remove(mob/living/carbon/M, special = FALSE)
|
|
if(owner)
|
|
REMOVE_TRAIT(owner, TRAIT_XENO_HOST, ORGAN_TRAIT)
|
|
REMOVE_TRAIT(owner, TRAIT_XENO_IMMUNE, ORGAN_TRAIT)
|
|
owner.med_hud_set_status()
|
|
INVOKE_ASYNC(src, .proc/RemoveInfectionImages, owner)
|
|
..()
|
|
|
|
/obj/item/organ/internal/body_egg/on_death(delta_time, times_fired)
|
|
. = ..()
|
|
if(!owner)
|
|
return
|
|
egg_process(delta_time, times_fired)
|
|
|
|
/obj/item/organ/internal/body_egg/on_life(delta_time, times_fired)
|
|
. = ..()
|
|
egg_process(delta_time, times_fired)
|
|
|
|
/obj/item/organ/internal/body_egg/proc/egg_process(delta_time, 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
|