traitormod

This commit is contained in:
Evil Factory
2021-06-17 13:06:17 -03:00
parent 0b5505cb34
commit 4c157ded2b
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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