forked from mtcontrib/factions
		
	If no diplomacy then make war by default
This commit is contained in:
		@@ -182,8 +182,13 @@ end
 | 
				
			|||||||
function factions.start_diplomacy(name,faction)
 | 
					function factions.start_diplomacy(name,faction)
 | 
				
			||||||
	for i,fac in pairs(factions.factions) do
 | 
						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
 | 
							if i ~= name and not (faction.neutral[i] or faction.allies[i] or faction.enemies[i]) then
 | 
				
			||||||
			faction:new_neutral(i)
 | 
								if factions_config.faction_diplomacy == true then
 | 
				
			||||||
			fac:new_neutral(name)
 | 
									faction:new_neutral(i)
 | 
				
			||||||
 | 
									fac:new_neutral(name)
 | 
				
			||||||
 | 
								else
 | 
				
			||||||
 | 
									faction:new_enemy(i)
 | 
				
			||||||
 | 
									fac:new_enemy(name)
 | 
				
			||||||
 | 
								end
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user