Skip to content

Commit

Permalink
Merge pull request #701 from lmenvs/remove-player-vote
Browse files Browse the repository at this point in the history
Removes ability for players to initiate vote on  storytellers
  • Loading branch information
dwasint authored Dec 14, 2023
2 parents 3d21ff6 + 580a51e commit fc9c2a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions code/controllers/subsystem/vote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ SUBSYSTEM_DEF(vote)
if(vote_initiator)
to_chat(vote_initiator, span_warning("Invalid voting choice."))
return FALSE

if(!to_vote.player_startable)
return FALSE

// Vote can't be initiated in our circumstances? No vote
if(!to_vote.can_be_initiated(vote_initiator, unlimited_vote_power))
return FALSE
Expand Down
4 changes: 3 additions & 1 deletion code/datums/votes/_vote_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@
*/
/datum/vote/proc/can_be_initiated(mob/by_who, forced = FALSE)
SHOULD_CALL_PARENT(TRUE)
if(!player_startable)
//monkestation edit begin
if(!player_startable && !forced)
return FALSE
//monkestation edit end

if(started_time)
var/next_allowed_time = (started_time + CONFIG_GET(number/vote_delay))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
name = "Storyteller"
message = "Vote for the storyteller!"
has_desc = TRUE
player_startable = FALSE


/datum/vote/storyteller/New()
Expand Down

0 comments on commit fc9c2a2

Please sign in to comment.