mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[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:
committed by
GitHub
parent
67587a10a0
commit
b0f1c1a115
@@ -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]")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user