Skip to content

Commit

Permalink
Fixes demon type for shadow demon vial (#27887)
Browse files Browse the repository at this point in the history
* now checking for shadow demons.

* damn typepathing

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

* go away silly var (Thanks Contra)

Co-authored-by: Contrabang <[email protected]>
Signed-off-by: Erikos66 <[email protected]>

---------

Signed-off-by: Erikos66 <[email protected]>
Co-authored-by: Contrabang <[email protected]>
Co-authored-by: Luc <[email protected]>
  • Loading branch information
3 people authored Jan 10, 2025
1 parent f97dc58 commit 678bb87
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/modules/antagonists/_common/antag_spawner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 678bb87

Please sign in to comment.