mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
cortical borer organ and nifsoft cheap fixes
This commit is contained in:
@@ -46,6 +46,8 @@ GLOBAL_LIST_EMPTY(cortical_borers)
|
||||
|
||||
/obj/item/organ/borer_body/on_mob_insert(mob/living/carbon/carbon_target, special, movement_flags)
|
||||
. = ..()
|
||||
if(isnull(borer))
|
||||
return // BUBBER TODO: Refactor this mess
|
||||
for(var/datum/borer_focus/body_focus as anything in borer.body_focuses)
|
||||
body_focus.on_add()
|
||||
carbon_target.apply_status_effect(/datum/status_effect/grouped/screwy_hud/fake_healthy, type)
|
||||
|
||||
@@ -305,7 +305,8 @@
|
||||
|
||||
calibrating = FALSE
|
||||
is_calibrated = TRUE
|
||||
|
||||
if(isnull(linked_mob.mind))
|
||||
return // BUBBER TODO - Refactor NIFs
|
||||
if(!linked_mob.save_individual_persistence())
|
||||
stack_trace("persistence was not saved for [linked_mob]!")
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
///Is it a lewd item?
|
||||
var/lewd_nifsoft = FALSE
|
||||
|
||||
/datum/nifsoft/New(obj/item/organ/cyberimp/brain/nif/recepient_nif, no_rewards_points = FALSE)
|
||||
/datum/nifsoft/New(obj/item/organ/cyberimp/brain/nif/recipient_nif, no_rewards_points = FALSE)
|
||||
. = ..()
|
||||
|
||||
if(no_rewards_points) //This is mostly so that credits can't be farmed through printed or stolen NIFSoft disks
|
||||
@@ -65,9 +65,11 @@
|
||||
compatible_nifs += /obj/item/organ/cyberimp/brain/nif/debug
|
||||
program_name = name
|
||||
|
||||
if(!recepient_nif.install_nifsoft(src))
|
||||
if(!recipient_nif.install_nifsoft(src))
|
||||
qdel(src)
|
||||
|
||||
parent_nif = WEAKREF(recipient_nif)
|
||||
linked_mob = recipient_nif.linked_mob
|
||||
load_persistence_data()
|
||||
update_theme()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user