mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
[MIRROR] Cleans up ..() usage in organs' Insert() and Remove() [MDB IGNORE] (#19948)
* Cleans up `..()` usage in organs' `Insert()` and `Remove()` (#74055) ## About The Pull Request fumbled around while investigating #74047 and turns out there's other organs that have the same issue as the reported alien organs in that issue. went around and replaced parent calls where applicable (cursed/demonic hearts, flashlight eyes, alien organs, abductor glands) ## Why It's Good For The Game Fixes #74047 Considerably less ghost internal organs, hopefully less unreported jank on removing organs ## Changelog 🆑 fix: fixed a few internal organs acting wonky on inserting/removing (some xenomorph organs, abductor glands, flashlight eyes, demon/cursed hearts) /🆑 * Cleans up `..()` usage in organs' `Insert()` and `Remove()` --------- Co-authored-by: Sealed101 <75863639+Sealed101@users.noreply.github.com>
This commit is contained in:
@@ -68,14 +68,14 @@
|
||||
owner.adjustPlasma(0.1 * plasma_rate * delta_time)
|
||||
|
||||
/obj/item/organ/internal/alien/plasmavessel/Insert(mob/living/carbon/organ_owner, special = FALSE, drop_if_replaced = TRUE)
|
||||
..()
|
||||
. = ..()
|
||||
if(isalien(organ_owner))
|
||||
var/mob/living/carbon/alien/target_alien = organ_owner
|
||||
target_alien.updatePlasmaDisplay()
|
||||
RegisterSignal(organ_owner, COMSIG_MOB_GET_STATUS_TAB_ITEMS, PROC_REF(get_status_tab_item))
|
||||
|
||||
/obj/item/organ/internal/alien/plasmavessel/Remove(mob/living/carbon/organ_owner, special = FALSE)
|
||||
..()
|
||||
. = ..()
|
||||
if(isalien(organ_owner))
|
||||
var/mob/living/carbon/alien/organ_owner_alien = organ_owner
|
||||
organ_owner_alien.updatePlasmaDisplay()
|
||||
@@ -98,14 +98,14 @@
|
||||
var/recent_queen_death = FALSE
|
||||
|
||||
/obj/item/organ/internal/alien/hivenode/Insert(mob/living/carbon/organ_owner, special = FALSE, drop_if_replaced = TRUE)
|
||||
..()
|
||||
. = ..()
|
||||
organ_owner.faction |= ROLE_ALIEN
|
||||
ADD_TRAIT(organ_owner, TRAIT_XENO_IMMUNE, ORGAN_TRAIT)
|
||||
|
||||
/obj/item/organ/internal/alien/hivenode/Remove(mob/living/carbon/organ_owner, special = FALSE)
|
||||
organ_owner.faction -= ROLE_ALIEN
|
||||
REMOVE_TRAIT(organ_owner, TRAIT_XENO_IMMUNE, ORGAN_TRAIT)
|
||||
..()
|
||||
return ..()
|
||||
|
||||
//When the alien queen dies, all aliens suffer a penalty as punishment for failing to protect her.
|
||||
/obj/item/organ/internal/alien/hivenode/proc/queen_death()
|
||||
|
||||
@@ -181,13 +181,13 @@
|
||||
src.Insert(user) //Consuming the heart literally replaces your heart with a demon heart. H A R D C O R E
|
||||
|
||||
/obj/item/organ/internal/heart/demon/Insert(mob/living/carbon/M, special = FALSE, drop_if_replaced = TRUE)
|
||||
..()
|
||||
. = ..()
|
||||
// Gives a non-eat-people crawl to the new owner
|
||||
var/datum/action/cooldown/spell/jaunt/bloodcrawl/crawl = new(M)
|
||||
crawl.Grant(M)
|
||||
|
||||
/obj/item/organ/internal/heart/demon/Remove(mob/living/carbon/M, special = FALSE)
|
||||
..()
|
||||
. = ..()
|
||||
var/datum/action/cooldown/spell/jaunt/bloodcrawl/crawl = locate() in M.actions
|
||||
qdel(crawl)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user