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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actually ports heretics from /tg/station #2119
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
abde4b8
E
EdgeLordExe 1806b0c
E
EdgeLordExe fcd05cb
E
EdgeLordExe 16a78ff
E
EdgeLordExe d48460d
E
EdgeLordExe 56287dc
E
EdgeLordExe eff8aa3
E
EdgeLordExe f9886ab
E
EdgeLordExe c18cb3a
Merge remote-tracking branch 'BeeStation/master' into bounty1
EdgeLordExe bcee20c
E
EdgeLordExe File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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,66 @@ | ||
/datum/game_mode/heretics | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a title card generation for this mode? (The credit text) |
||
name = "heresy" | ||
config_tag = "heresy" | ||
report_type = "heresy" | ||
antag_flag = ROLE_HERETIC | ||
false_report_weight = 5 | ||
protected_jobs = list("Prisoner","Security Officer", "Warden", "Detective", "Head of Security", "Captain") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We do not have the prisoner role |
||
restricted_jobs = list("AI", "Cyborg") | ||
required_players = 0 | ||
required_enemies = 1 | ||
recommended_enemies = 4 | ||
reroll_friendly = 1 | ||
enemy_minimum_age = 0 | ||
|
||
announce_span = "danger" | ||
announce_text = "Heretics have been spotted on the station!\n\ | ||
<span class='danger'>Heretics</span>: Accomplish your objectives.\n\ | ||
<span class='notice'>Crew</span>: Do not let the madman succeed!" | ||
|
||
var/ecult_possible = 4 //hard limit on culties if scaling is turned off | ||
var/num_ecult = 1 | ||
var/list/culties = list() | ||
|
||
/datum/game_mode/heretics/pre_setup() | ||
|
||
if(CONFIG_GET(flag/protect_roles_from_antagonist)) | ||
restricted_jobs += protected_jobs | ||
|
||
if(CONFIG_GET(flag/protect_assistant_from_antagonist)) | ||
restricted_jobs += "Assistant" | ||
|
||
|
||
var/esc = CONFIG_GET(number/ecult_scaling_coeff) | ||
if(esc) | ||
num_ecult = min(max(1, min(round(num_players() / (esc * 2)) + 2, round(num_players() / esc))),4) | ||
else | ||
num_ecult = max(1, min(num_players(), ecult_possible)) | ||
|
||
for(var/i in 1 to num_ecult) | ||
if(!antag_candidates.len) | ||
break | ||
var/datum/mind/cultie = antag_pick(antag_candidates) | ||
antag_candidates -= cultie | ||
cultie.special_role = ROLE_HERETIC | ||
cultie.restricted_roles = restricted_jobs | ||
culties += cultie | ||
|
||
var/enough_heretics = culties.len > 0 | ||
|
||
if(!enough_heretics) | ||
setup_error = "Not enough heretic candidates" | ||
return FALSE | ||
else | ||
return TRUE | ||
|
||
/datum/game_mode/heretics/post_setup() | ||
for(var/c in culties) | ||
var/datum/mind/cultie = c | ||
log_game("[key_name(cultie)] has been selected as a heretic!") | ||
var/datum/antagonist/heretic/new_antag = new() | ||
cultie.add_antag_datum(new_antag) | ||
return ..() | ||
|
||
/datum/game_mode/heretics/generate_report() | ||
return "Cybersun Industries has announced that they have successfully raided a high-security library. The library contained a very dangerous book that was \ | ||
shown to posses anomalous properties. We suspect that the book has been copied over, Stay vigilant!" |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.