From 290dfcbea237b092c4dca41f40c19d428eadb81c Mon Sep 17 00:00:00 2001 From: lzk <124214523+lzk228@users.noreply.github.com> Date: Wed, 10 Jan 2024 01:03:33 +0100 Subject: [PATCH] Implement corvax secret weight (#1730) --- Resources/ConfigPresets/Corvax/common.toml | 1 + Resources/Prototypes/Corvax/secret_weights.yml | 8 ++++++++ Resources/Prototypes/secret_weights.yml | 10 +++++----- 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 Resources/Prototypes/Corvax/secret_weights.yml diff --git a/Resources/ConfigPresets/Corvax/common.toml b/Resources/ConfigPresets/Corvax/common.toml index 8433f5037d4..cd79caec8a4 100644 --- a/Resources/ConfigPresets/Corvax/common.toml +++ b/Resources/ConfigPresets/Corvax/common.toml @@ -16,6 +16,7 @@ maximum_width = 26 [game] lobbyduration = 360 +secret_weight_prototype = "CorvaxSecretDefault" [server] rules_header = "ui-rules-header-corvax" diff --git a/Resources/Prototypes/Corvax/secret_weights.yml b/Resources/Prototypes/Corvax/secret_weights.yml new file mode 100644 index 00000000000..db068c43be1 --- /dev/null +++ b/Resources/Prototypes/Corvax/secret_weights.yml @@ -0,0 +1,8 @@ +- type: weightedRandom + id: CorvaxSecretDefault + weights: + Nukeops: 0.15 + Traitor: 0.55 + Zombie: 0.10 + Revolutionary: 0.15 + Extended: 0.05 diff --git a/Resources/Prototypes/secret_weights.yml b/Resources/Prototypes/secret_weights.yml index 27de7c378a7..4c20d52daf8 100644 --- a/Resources/Prototypes/secret_weights.yml +++ b/Resources/Prototypes/secret_weights.yml @@ -1,8 +1,8 @@ - type: weightedRandom id: Secret - weights: # Corvax-MRP - Nukeops: 0.15 - Traitor: 0.55 + weights: + Nukeops: 0.20 + Traitor: 0.50 Zombie: 0.10 - Revolutionary: 0.15 - Extended: 0.05 + Revolutionary: 0.20 + \ No newline at end of file