-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new midround antag: the divergent clone (#37334)
* Add new midround antag: the divergent clone Divergent clones are perfect copies of existing, potentially still living crew members, created in a freak cloner accident. They can remember the original's antag status, and may sometimes be evil which means they get traitor objectives. If the original is also a traitor, the evil clone will share their objectives. * give the spirits-in-waiting the default ghost sprite instead * skip records check if forcespawn is enabled * Forgot the role * Review fixes * duh
- Loading branch information
Showing
44 changed files
with
1,135 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/datum/objective/freeform/divergentclone_neutral | ||
explanation_text = "Convince the world that you are the real <person>, or at least as real as the other copy." | ||
|
||
/datum/objective/freeform/divergentclone_neutral/format_explanation() | ||
return "Convince the world that you are the real [owner.name], or at least as real as the other copy." | ||
|
||
/datum/objective/freeform/divergentclone_neutral/PostAppend() | ||
explanation_text = format_explanation() | ||
return TRUE | ||
|
||
/datum/objective/freeform/divergentclone_evil | ||
explanation_text = "Convince the world that you are the real <person> at any cost, be that by talk, violence or subterfuge. Do not let anyone get in your way, including your original copy." | ||
|
||
/datum/objective/freeform/divergentclone_evil/format_explanation() | ||
return "Convince the world that you are the real [owner.name] at any cost, be that by talk, violence or subterfuge. Do not let anyone get in your way, including your original copy." | ||
|
||
/datum/objective/freeform/divergentclone_evil/PostAppend() | ||
explanation_text = format_explanation() | ||
return TRUE | ||
|
||
/datum/objective/divergentclone/spawn_in | ||
explanation_text = "Reincarnate as a divergent clone." | ||
name = "Reincarnate" | ||
|
||
/datum/objective/divergentclone/spawn_in/IsFulfilled() | ||
if(..()) | ||
return TRUE | ||
if(!owner || !owner.current) | ||
return FALSE | ||
|
||
var/datum/role/divergentclone/role = owner.GetRole(DIVERGENTCLONE) | ||
if(role?.has_spawned_in) | ||
return TRUE | ||
|
||
/datum/objective/acquire_personal_id | ||
explanation_text = "Acquire an ID card matching your name or DNA." | ||
name = "Acquire personal ID card" | ||
|
||
/datum/objective/acquire_personal_id/IsFulfilled() | ||
if(..()) | ||
return TRUE | ||
|
||
if(!owner || !owner.current) | ||
return FALSE | ||
|
||
for(var/obj/O in get_contents_in_object(owner.current)) | ||
var/obj/item/weapon/card/id/I | ||
if(istype(O, /obj/item/weapon/card/id)) | ||
I = O | ||
else if(istype(O, /obj/item/device/pda)) | ||
var/obj/item/device/pda/P = O | ||
I = P.id | ||
else | ||
continue | ||
var/datum/dna/D = owner.current.dna | ||
if((I?.dna_hash == D.unique_enzymes) || (I?.registered_name == owner.name)) | ||
return TRUE | ||
|
||
return FALSE | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.