Skip to content

Commit

Permalink
give the role to the temporary dummy human instead
Browse files Browse the repository at this point in the history
  • Loading branch information
brndd committed Dec 13, 2024
1 parent ed2cb6e commit 7eeebeb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions code/datums/gamemode/dynamic/dynamic_rulesets_midround.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,13 @@
var/L = get_turf(new_character)
var/mob/living/carbon/human/H = new /mob/living/carbon/human(pick(latejoin))
H.ckey = new_character.ckey
H.fully_replace_character_name(null, "\improper spirit of a divergent clone")

//Give the about-to-be-a-ghost mob the provisional role and objective
var/datum/role/divergentclone/new_role = new /datum/role/divergentclone(G.mind, override=TRUE)

Check failure on line 1155 in code/datums/gamemode/dynamic/dynamic_rulesets_midround.dm

View workflow job for this annotation

GitHub Actions / Run linters

OD0404: Unknown identifier "mind"

Check failure on line 1155 in code/datums/gamemode/dynamic/dynamic_rulesets_midround.dm

View workflow job for this annotation

GitHub Actions / Run linters

undefined var: "G"

Check warning on line 1155 in code/datums/gamemode/dynamic/dynamic_rulesets_midround.dm

View workflow job for this annotation

GitHub Actions / Run linters

field access requires static type: "mind"
new_role.ForgeObjectives()
new_role.AnnounceObjectives()

var/mob/dead/observer/G = H.ghostize(FALSE)
QDEL_NULL(H)
G.forceMove(L)
Expand All @@ -1157,11 +1164,5 @@
to_chat(G, "<span class='notice'><b>You were selected to be a divergent clone, but will not be spawned in yet!</b></span>")
to_chat(G, "<span class='notice'>You have been granted the \"Spawn as Divergent Clone\" ghost spell. Use this near a cloning pod to spawn in as a divergent clone of someone who was cloned, or is currently being cloned, in that pod.</span>")
to_chat(G, "<span class='notice'>Using this spell on an unoccupied cloning pod will allow you to choose a record of a person previously cloned in that pod. Using it on an occupied pod will cause you to become a twin of the person currently in the pod, and be ejected from the pod at the same time as them.</span>")
to_chat(G, "<span class='notice'>Remember: you can only use this spell once, and re-entering your corpse will remove it permanently. In fact, for your convenience we have removed your ability to re-enter your corpse.</span>")

//Give the ghost the provisional role and objective
var/datum/role/divergentclone/new_role = new /datum/role/divergentclone(G.mind, override=TRUE)
new_role.ForgeObjectives()
new_role.AnnounceObjectives()

to_chat(G, "<span class='notice'>Remember: you can only use this spell once, and re-entering your corpse will remove it permanently. In fact, for your convenience we have removed your ability to re-enter your corpse.</span>")

0 comments on commit 7eeebeb

Please sign in to comment.