Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Gives paradox clone their own ghost polling icon #1836

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion code/controllers/subsystem/dynamic/dynamic_rulesets_midround.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
var/makeBody = TRUE
/// The rule needs this many applicants to be properly executed.
var/required_applicants = 1
///Path of an item to show up in ghost polls for applicants to sign up.
var/signup_item_path = /obj/structure/sign/poster/contraband/syndicate_recruitment

/datum/dynamic_ruleset/midround/from_ghosts/check_candidates()
var/dead_count = dead_players.len + list_observers.len
Expand Down Expand Up @@ -141,7 +143,14 @@
return

SSdynamic.log_dynamic_and_announce("Polling [possible_volunteers.len] players to apply for the [name] ruleset.")
candidates = SSpolling.poll_ghost_candidates("Looking for volunteers to become [antag_flag] for [name]", check_jobban = antag_flag_override, role = antag_flag || antag_flag_override, poll_time = 30 SECONDS, pic_source = /obj/structure/sign/poster/contraband/syndicate_recruitment, role_name_text = antag_flag)
candidates = SSpolling.poll_ghost_candidates(
question = "Looking for volunteers to become [antag_flag] for [name]",
check_jobban = antag_flag_override,
role = antag_flag || antag_flag_override,
poll_time = 30 SECONDS,
pic_source = signup_item_path,
role_name_text = antag_flag,
)

if(!candidates || candidates.len <= 0)
SSdynamic.log_dynamic_and_announce("The ruleset [name] received no applications.")
Expand Down Expand Up @@ -893,6 +902,7 @@
weight = 4
cost = 3
repeatable = TRUE
signup_item_path = /obj/effect/bluespace_stream
var/list/possible_spawns = list() ///places the antag can spawn

/datum/dynamic_ruleset/midround/from_ghosts/paradox_clone/forget_startup()
Expand Down
6 changes: 6 additions & 0 deletions code/modules/antagonists/paradox_clone/paradox_clone.dm
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,9 @@
explanation_text = "Free Objective"
CRASH("WARNING! [ADMIN_LOOKUPFLW(owner)] paradox clone objectives forged without an original!")
explanation_text = "Murder and replace [target.name], the [!target_role_type ? target.assigned_role.title : target.special_role]. Remember, your mission is to blend in, do not kill anyone else unless you have to!"

///Static bluespace stream used in its ghost poll icon.
/obj/effect/bluespace_stream
name = "bluespace stream"
icon = 'icons/effects/effects.dmi'
icon_state = "bluestream"
Loading