mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Fix being unable to add a flux core to new the combat heart cybernetic (#84420)
## About The Pull Request Fix being unable to add a flux core to new the combat heart cybernetic ## Why It's Good For The Game bugfix ## Changelog 🆑 fix: Fix being unable to add a flux core to new the combat heart cybernetic /🆑 --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
@@ -114,19 +114,20 @@
|
||||
/obj/item/organ/internal/heart/cybernetic/anomalock/proc/get_held_mob()
|
||||
return owner
|
||||
|
||||
/obj/item/organ/internal/heart/cybernetic/anomalock/attackby(obj/item/item, mob/living/user, params)
|
||||
if(!istype(item.type, required_anomaly))
|
||||
return ..()
|
||||
/obj/item/organ/internal/heart/cybernetic/anomalock/item_interaction(mob/living/user, obj/item/tool, list/modifiers)
|
||||
if(!istype(tool, required_anomaly))
|
||||
return NONE
|
||||
if(core)
|
||||
balloon_alert(user, "core already in!")
|
||||
return
|
||||
if(!user.transferItemToLoc(item, src))
|
||||
return
|
||||
core = item
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
if(!user.transferItemToLoc(tool, src))
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
core = tool
|
||||
balloon_alert(user, "core installed")
|
||||
playsound(src, 'sound/machines/click.ogg', 30, TRUE)
|
||||
add_organ_trait(TRAIT_SHOCKIMMUNE)
|
||||
update_icon_state()
|
||||
return ITEM_INTERACT_SUCCESS
|
||||
|
||||
/obj/item/organ/internal/heart/cybernetic/anomalock/screwdriver_act(mob/living/user, obj/item/tool)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user