Skip to content

Commit

Permalink
nukes_pop_reduce -> antagonists_balance + add more
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemchik542 committed Jul 22, 2024
1 parent 6e4a683 commit 3a4a212
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ GLOBAL_LIST_EMPTY(jam_on_wardec)
return

declaring_war = TRUE
//MASSMETA EDIT CHANGE BEGIN (nukes_pop_reduce)
//MASSMETA EDIT CHANGE BEGIN (antagonists_balance)
/* ORIGINAL
var/are_you_sure = tgui_alert(user, "Consult your team carefully before you declare war on [station_name()]. Are you sure you want to alert the enemy crew? You have [DisplayTimeText(CHALLENGE_TIME_LIMIT - world.time - SSticker.round_start_time)] to decide.", "Declare war?", list("Yes", "No"))
*/
Expand Down Expand Up @@ -121,7 +121,7 @@ GLOBAL_LIST_EMPTY(jam_on_wardec)
continue
uplinks += uplink

//MASSMETA EDIT CHANGE BEGIN (nukes_pop_reduce)
//MASSMETA EDIT CHANGE BEGIN (antagonists_balance)
/* ORIGINAL
var/tc_to_distribute = CHALLENGE_TELECRYSTALS
*/
Expand Down
14 changes: 12 additions & 2 deletions code/modules/antagonists/traitor/datum_traitor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@
uplink_handler.has_progression = TRUE
SStraitor.register_uplink_handler(uplink_handler)

if(give_secondary_objectives && GLOB.joined_player_list.len >= 25) // MASSMETA EDIT CHANGE: original - if(give_seocndary_objectives)
//MASSMETA EDIT CHANGE BEGIN (antagonists_balance)
/* ORIGINAL
if(give_secondary_objectives)
*/
if(give_secondary_objectives && GLOB.joined_player_list.len >= 25)
//MASSMETA EDIT CHANGE END
uplink_handler.has_objectives = TRUE
uplink_handler.generate_objectives()

Expand Down Expand Up @@ -248,7 +253,12 @@
objectives += ending_objective

/datum/antagonist/traitor/proc/forge_single_generic_objective()
if(prob(KILL_PROB) && GLOB.joined_player_list.len >= 25) // MASSMETA EDIT CHANGE: original - if(prob(KILL_PROB))
//MASSMETA EDIT CHANGE BEGIN (antagonists_balance)
/* ORIGINAL
if(prob(KILL_PROB))
*/
if(prob(KILL_PROB) && GLOB.joined_player_list.len >= 25)
//MASSMETA EDIT CHANGE END
var/list/active_ais = active_ais(skip_syndicate = TRUE)
if(active_ais.len && prob(DESTROY_AI_PROB(GLOB.joined_player_list.len)))
var/datum/objective/destroy/destroy_objective = new()
Expand Down
32 changes: 32 additions & 0 deletions massmeta/features/antagonists_balance/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Module ID: antagonists_balance

### Description:

- Меняет минимальное количество игроков для объявления войны на 25 и даёт по формуле общий ТК всем нюкам в зависимости от онлайна ([кол-во игроков]*6), т.е. 25 pop = 150 TC, 50 pop = 300 TC, 100 pop = 600 TC.
- Убирает у Предателя на онлайне ниже 25 - цельки на убийства а также и доп. цельки.


### TG Proc/File Changes:

- code/modules/antagonists/nukeop/equipment/nuclear_challenge.dm
- code/modules/antagonists/traitor/datum_traitor.dm


### Modular Overrides:

- N/A


### Defines:

- ~meta_defines/nukes_pop_reduce.dm


### TGUI Files:

- N/A


### Credits:

- RosSample, Huz2e
30 changes: 0 additions & 30 deletions massmeta/features/nukes_pop_reduce/readme.md

This file was deleted.

0 comments on commit 3a4a212

Please sign in to comment.