From 916060f34f560ee97b41cc893b5b9c188c601b38 Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Thu, 27 Dec 2018 01:16:11 -0600 Subject: [PATCH] If no diplomacy then make war by default --- factions.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/factions.lua b/factions.lua index da43248..397e491 100644 --- a/factions.lua +++ b/factions.lua @@ -182,8 +182,13 @@ end function factions.start_diplomacy(name,faction) for i,fac in pairs(factions.factions) do if i ~= name and not (faction.neutral[i] or faction.allies[i] or faction.enemies[i]) then - faction:new_neutral(i) - fac:new_neutral(name) + if factions_config.faction_diplomacy == true then + faction:new_neutral(i) + fac:new_neutral(name) + else + faction:new_enemy(i) + fac:new_enemy(name) + end end end end