mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
* 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>
10 lines
438 B
Plaintext
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)
|