From 4c157ded2b80b037fddcd67199ce5bb58731faae Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Thu, 17 Jun 2021 13:06:17 -0300 Subject: [PATCH] traitormod --- Example/Lua/traitormod/autorun/traitormod.lua | 2 +- Example/Lua/traitormod/traitorconfig.lua | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Example/Lua/traitormod/autorun/traitormod.lua b/Example/Lua/traitormod/autorun/traitormod.lua index b34ea412d..b389b46c3 100644 --- a/Example/Lua/traitormod/autorun/traitormod.lua +++ b/Example/Lua/traitormod/autorun/traitormod.lua @@ -20,7 +20,7 @@ local config = dofile("lua/traitormod/traitorconfig.lua") local util = dofile("lua/traitormod/util.lua") Game.OverrideTraitors(config.enableTraitors) -- shutup old traitors -Game.AllowWifiChat(config.enableWifiChat) +Game.AllowWifiChat(config.enableWifiChat) -- deprecated traitormod.config = config diff --git a/Example/Lua/traitormod/traitorconfig.lua b/Example/Lua/traitormod/traitorconfig.lua index cb97bf41d..ac2d56f39 100644 --- a/Example/Lua/traitormod/traitorconfig.lua +++ b/Example/Lua/traitormod/traitorconfig.lua @@ -23,11 +23,11 @@ config.traitorShipChance = 15 config.traitorShipGodModeDistance = 4000 config.enableCommunicationsOffline = true -config.communicationsOfflineChance = 20 +config.communicationsOfflineChance = 15 -- Gameplay Options config.enableSabotage = true -- allow everyone to sabotage -config.enableWifiChat = true -- allow people to wire wifi components to the chat ingame +config.enableWifiChat = true -- deprecated -- Traitor Selection Options config.roundEndPercentageIncrease = 10 @@ -41,6 +41,8 @@ config.getAmountTraitors = function (amountClients) if amountClients >= 8 then return 2 end -- if theres 8 or more players, 2 traitors will be selected + if amountClients == 1 then return 0 end + return 1 -- if theres less than 8 players, there will only one traitor end