[MIRROR] Absorb Prey Names (#11411)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
Co-authored-by: fracshun <fracshun@gmail.com>
Co-authored-by: vorestation-ci[bot] <199609141+vorestation-ci[bot]@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aroliacue <96730930+Aroliacue@users.noreply.github.com>
Co-authored-by: Aroliacue <avaylaiss34@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-13 15:42:48 -07:00
committed by GitHub
parent 67587a10a0
commit b0f1c1a115
11 changed files with 132 additions and 21 deletions

View File

@@ -65,6 +65,14 @@
/mob/proc/build_the_emote(m_type, message, input, range, runemessage)
if(client)
message = span_emote(span_bold("[src]") + " [input]")
if(src.absorbed && isbelly(src.loc))
var/obj/belly/B = src.loc
if(B.absorbedrename_enabled)
var/formatted_name = B.absorbedrename_name
formatted_name = replacetext(formatted_name,"%pred",B.owner)
formatted_name = replacetext(formatted_name,"%belly",B.name)
formatted_name = replacetext(formatted_name,"%prey",name)
message = span_emote(span_bold("[formatted_name]") + " [input]")
else
message = span_npc_emote(span_bold("[src]") + " [input]")