Skip to content

Commit

Permalink
:badguy:
Browse files Browse the repository at this point in the history
  • Loading branch information
Anorak2024 committed Oct 14, 2024
1 parent 5ab9897 commit 59ea3ad
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 21 deletions.
20 changes: 20 additions & 0 deletions code/modules/antagonists/_common/antag_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -445,3 +445,23 @@ GLOBAL_LIST_EMPTY(antagonists)
*/
/datum/antagonist/proc/roundend_report_footer()
return

/**
* Create and assign a single randomized objective.
*/
/datum/antagonist/proc/forge_single_human_objective()
if(prob(50))
if(length(active_ais()) && prob(100 / length(GLOB.player_list)))
add_objective(/datum/objective/destroy)

else if(prob(5))
add_objective(/datum/objective/debrain)

else if(prob(20))
add_objective(/datum/objective/protect)

else
add_objective(/datum/objective/maroon)

else
add_objective(/datum/objective/steal)
3 changes: 3 additions & 0 deletions code/modules/antagonists/changeling/changeling_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ GLOBAL_LIST_INIT(possible_changeling_IDs, list("Alpha","Beta","Gamma","Delta","E
absorb.owner = owner
objectives += absorb

forge_single_human_objective()
forge_single_human_objective()

if(prob(60))
add_objective(/datum/objective/steal)
else
Expand Down
21 changes: 0 additions & 21 deletions code/modules/antagonists/traitor/datum_traitor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -184,27 +184,6 @@
mob.update_icons()


/**
* Create and assign a single randomized traitor objective.
*/
/datum/antagonist/traitor/proc/forge_single_human_objective()
if(prob(50))
if(length(active_ais()) && prob(100 / length(GLOB.player_list)))
add_objective(/datum/objective/destroy)

else if(prob(5))
add_objective(/datum/objective/debrain)

else if(prob(20))
add_objective(/datum/objective/protect)

else
add_objective(/datum/objective/maroon)

else
add_objective(/datum/objective/steal)


/**
* Give traitors their uplink. Play the traitor an alert sound.
*/
Expand Down
2 changes: 2 additions & 0 deletions code/modules/antagonists/vampire/vampire_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
add_objective(/datum/objective/blood)
add_objective(/datum/objective/maroon)
add_objective(/datum/objective/steal)
forge_single_human_objective()
forge_single_human_objective()

if(prob(20)) // 20% chance of getting survive. 80% chance of getting escape.
add_objective(/datum/objective/survive)
Expand Down

0 comments on commit 59ea3ad

Please sign in to comment.