-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #729 from wraith-54321/no-vote
No voting for you
- Loading branch information
Showing
14 changed files
with
108 additions
and
31 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
47 changes: 47 additions & 0 deletions
47
monkestation/code/modules/storytellers/converted_events/solo/monsterhunter.dm
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,47 @@ | ||
#define MINIMUM_MONSTERS_REQUIRED 2 | ||
|
||
/datum/round_event_control/antagonist/solo/monsterhunter | ||
track = EVENT_TRACK_MAJOR //being an anrtag event is for backend reasons, the event itself is major | ||
antag_flag = ROLE_MONSTERHUNTER | ||
tags = list(TAG_MAGICAL, TAG_TARGETED, TAG_COMBAT) | ||
antag_datum = /datum/antagonist/monsterhunter | ||
protected_roles = list( | ||
JOB_CAPTAIN, | ||
JOB_HEAD_OF_PERSONNEL, | ||
JOB_CHIEF_ENGINEER, | ||
JOB_CHIEF_MEDICAL_OFFICER, | ||
JOB_RESEARCH_DIRECTOR, | ||
JOB_DETECTIVE, | ||
JOB_HEAD_OF_SECURITY, | ||
JOB_PRISONER, | ||
JOB_SECURITY_OFFICER, | ||
JOB_WARDEN, | ||
) | ||
restricted_roles = list( | ||
JOB_AI, | ||
JOB_CYBORG, | ||
) | ||
min_players = 30 //no required enemies deu to instead needing enemy antags | ||
weight = 2 | ||
maximum_antags = 1 | ||
prompted_picking = TRUE | ||
|
||
/datum/round_event_control/antagonist/solo/monsterhunter/can_spawn_event(players_amt, allow_magic = FALSE, fake_check = FALSE) | ||
. = ..() | ||
if(!.) | ||
return | ||
|
||
var/count = 0 | ||
for(var/datum/antagonist/monster as anything in GLOB.antagonists) | ||
if(!monster.owner || !monster.owner.current || monster.owner.current.stat == DEAD) | ||
continue | ||
|
||
if(GLOB.monster_antagonist_types.Find(monster.type)) | ||
count++ | ||
|
||
if(MINIMUM_MONSTERS_REQUIRED > count) | ||
return FALSE | ||
|
||
return ..() | ||
|
||
#undef MINIMUM_MONSTERS_REQUIRED |
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