Fixes demon type for shadow demon vial (#27887)

* now checking for shadow demons.

* damn typepathing

* now using :: to get name. Thanks Lewcc.

* go away silly var (Thanks Contra)

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: Erikos66 <Erikos66@outlook.com>

---------

Signed-off-by: Erikos66 <Erikos66@outlook.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Erikos66
2025-01-10 19:08:36 +00:00
committed by GitHub
co-authored by Contrabang Luc
parent f97dc588e4
commit 678bb87de3
@@ -198,10 +198,7 @@
used = TRUE
to_chat(user, "<span class='notice'>You break the seal on the bottle, calling upon the dire spirits of the underworld...</span>")
var/type = "slaughter"
if(demon_type == /mob/living/simple_animal/demon/slaughter/laughter)
type = "laughter"
var/list/candidates = SSghost_spawns.poll_candidates("Do you want to play as a [type] demon summoned by [user.real_name]?", ROLE_DEMON, TRUE, 10 SECONDS, source = demon_type)
var/list/candidates = SSghost_spawns.poll_candidates("Do you want to play as a [demon_type::name] summoned by [user.real_name]?", ROLE_DEMON, TRUE, 10 SECONDS, source = demon_type)
if(length(candidates) > 0)
var/mob/C = pick(candidates)