Files
3e3be651f5 [MODULAR] Fixes custom tongues not getting the right food preferences/hemophage abilities (#22664)
* Fixes custom tongues not getting the right food preferences/hemophage abilities

* Update modular_skyrat/modules/organs/code/tongue.dm

Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>

* Adjusts to the upcoming hemophage refactor

as per suggestion

* Makes the default behavior not copy actions

* Update organs.dm

* Update modular_skyrat/modules/organs/code/tongue.dm

Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>

---------

Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
2023-07-29 15:35:05 -04:00

10 lines
438 B
Plaintext

/// Copy traits from one organ to another - e.g. with custom roundstart organs that should still get species traits applied.
/obj/item/organ/proc/copy_traits_from(obj/item/organ/old_organ, copy_actions = FALSE)
if(isnull(old_organ))
return
if(copy_actions)
// for when you want to make sure the organ gets any actions from the old one
for(var/datum/action/action as anything in old_organ.actions)
add_item_action(action.type)