mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Merge remote-tracking branch 'origin/master' into upstream-feb12-2026
# Conflicts: # _maps/map_files/moonstation/moonstation.dmm # tgstation.dme
This commit is contained in:
@@ -10,13 +10,16 @@
|
||||
|
||||
/// whether the removal needs to be surgical for it to explode. If you're adding more modes, just pass the signal directly instead
|
||||
var/surgical
|
||||
/// whether the removal causes the organ to qdel
|
||||
var/annihilate
|
||||
|
||||
/datum/element/dangerous_organ_removal/Attach(datum/target, surgical = FALSE)
|
||||
/datum/element/dangerous_organ_removal/Attach(datum/target, surgical = FALSE, annihilate = TRUE) //BUBBER EDIT - Adds new variable to make organ not qdel
|
||||
. = ..()
|
||||
if(!isorgan(target))
|
||||
return ELEMENT_INCOMPATIBLE
|
||||
|
||||
src.surgical = surgical
|
||||
src.annihilate = annihilate
|
||||
|
||||
if(surgical)
|
||||
RegisterSignal(target, COMSIG_ORGAN_SURGICALLY_REMOVED, PROC_REF(on_removal))
|
||||
@@ -40,4 +43,10 @@
|
||||
source.audible_message("[source] explodes into tiny pieces!")
|
||||
|
||||
explosion(source, light_impact_range = 1, explosion_cause = source)
|
||||
qdel(source)
|
||||
//BUBBER EDIT - if it doesn't qdel, set it to take all its health in damage
|
||||
//qdel(source)
|
||||
if(annihilate)
|
||||
qdel(source)
|
||||
else
|
||||
source.set_organ_damage(source.maxHealth)
|
||||
//EDIT END
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/datum/quirk/prosthetic_organ
|
||||
// BUBBER EDIT: moved to modular_zubbers\code\datums\quirks\negative_quirks\prosthetic_organ_bubber.dm
|
||||
/* /datum/quirk/prosthetic_organ
|
||||
name = "Prosthetic Organ"
|
||||
desc = "An accident caused you to lose one of your organs. Because of this, you now have a surplus prosthetic!"
|
||||
icon = FA_ICON_LUNGS
|
||||
@@ -72,3 +73,4 @@
|
||||
if(old_organ)
|
||||
old_organ.Insert(quirk_holder, special = TRUE)
|
||||
old_organ = null
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user