Reason text for sentience potion (#23139)

* Reason text for sentience potion

* Update code/controllers/subsystem/SSghost_spawns.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/modules/research/xenobiology/xenobiology.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/controllers/subsystem/SSghost_spawns.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Сиротка
2023-11-14 13:16:30 +00:00
committed by GitHub
co-authored by Luc
parent 25c3980998
commit fb2a51da53
2 changed files with 5 additions and 4 deletions
@@ -228,11 +228,12 @@
explosion(T, -1, -1, 2, 3)
qdel(src)
return
var/reason_text = input(user, "Enter reason for giving sentience", "Reason for sentience potion", "") as null|text
to_chat(user, "<span class='notice'>You offer [src] sentience potion to [SM]...</span>")
being_used = TRUE
var/ghostmsg = "Play as [SM.name], pet of [user.name]?"
var/list/candidates = SSghost_spawns.poll_candidates(ghostmsg, ROLE_SENTIENT, FALSE, 10 SECONDS, source = M)
var/ghostmsg = "Play as [SM.name], pet of [user.name]?[reason_text ? "\nReason: [sanitize(reason_text)]\n" : ""]"
var/list/candidates = SSghost_spawns.poll_candidates(ghostmsg, ROLE_SENTIENT, FALSE, 10 SECONDS, source = M, reason = reason_text)
if(QDELETED(src) || QDELETED(SM))
return