From e44870a3cec31e7c8d73c5392dec22dc120c5eba Mon Sep 17 00:00:00 2001
From: SkyratBot <59378654+SkyratBot@users.noreply.github.com>
Date: Sat, 29 Aug 2020 21:28:39 +0200
Subject: [PATCH] [MIRROR] Sentience potion now also tames the mob (#553)
* sentience potion (#53167)
Sentience potion now calls tame on the mob.
Since some mobs add their ridable component when tamed, this lets you ride sentience potion mobs without first feeding them.
It makes sense a sentient loyal creature should be able to be ridden without first being bribed with food.
* Sentience potion now also tames the mob
Co-authored-by: Krysonism <49783092+Krysonism@users.noreply.github.com>
---
code/modules/research/xenobiology/xenobiology.dm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/code/modules/research/xenobiology/xenobiology.dm b/code/modules/research/xenobiology/xenobiology.dm
index 6742f1e2453..4bb11af9000 100644
--- a/code/modules/research/xenobiology/xenobiology.dm
+++ b/code/modules/research/xenobiology/xenobiology.dm
@@ -726,6 +726,8 @@
var/mob/dead/observer/C = pick(candidates)
SM.key = C.key
SM.mind.enslave_mind_to_creator(user)
+ if(!SM.tame)
+ SM.tamed(user)
SM.sentience_act()
to_chat(SM, "All at once it makes sense: you know what you are and who you are! Self awareness is yours!")
to_chat(SM, "You are grateful to be self aware and owe [user.real_name] a great debt. Serve [user.real_name], and assist [user.p_them()] in completing [user.p_their()] goals at any cost.")