forked from mtcontrib/factions
Fix: line 978 had a typo
new factions are neutral with everyone.
This commit is contained in:
parent
73b3fb300d
commit
269690d279
@ -645,8 +645,8 @@ if factions_config.faction_diplomacy == true then
|
||||
faction:end_neutral(args.strings[1])
|
||||
factions.factions[args.strings[1]]:end_neutral(faction.name)
|
||||
end
|
||||
faction:new_enemy(args.strings[1])
|
||||
factions.factions[args.strings[1]]:new_enemy(faction.name)
|
||||
faction:new_neutral(args.strings[1])
|
||||
factions.factions[args.strings[1]]:new_neutral(faction.name)
|
||||
factions.bulk_save()
|
||||
else
|
||||
send_error(player, "You are already at war.")
|
||||
@ -975,7 +975,7 @@ factions.register_command("set_rank_name", {
|
||||
faction:set_rank_name(rank, newrank)
|
||||
return true
|
||||
end
|
||||
},falsw)
|
||||
},false)
|
||||
|
||||
factions.register_command("del_rank", {
|
||||
description = "Replace and delete a rank.",
|
||||
|
@ -199,8 +199,8 @@ 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_enemy(i)
|
||||
fac:new_enemy(name)
|
||||
faction:new_neutral(i)
|
||||
fac:new_neutral(name)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user