forked from chaorace/Civ6-UIFiles
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDiplomacyRibbonSupport.lua
More file actions
41 lines (35 loc) · 947 Bytes
/
Copy pathDiplomacyRibbonSupport.lua
File metadata and controls
41 lines (35 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Relationship =
{
m_kValidAIRelationships = {
"DIPLO_STATE_ALLIED",
"DIPLO_STATE_DECLARED_FRIEND",
"DIPLO_STATE_DENOUNCED",
"DIPLO_STATE_WAR",
"DIPLO_STATE_UNFRIENDLY",
"DIPLO_STATE_FRIENDLY"
},
m_kValidHumanRelationships = {
"DIPLO_STATE_ALLIED",
"DIPLO_STATE_DECLARED_FRIEND",
"DIPLO_STATE_DENOUNCED",
"DIPLO_STATE_WAR"
},
-- ===========================================================================
IsValidWithAI = function( relationshipType:string )
for _, type:string in ipairs(Relationship.m_kValidAIRelationships) do
if relationshipType == type then
return true;
end
end
return false;
end,
-- ===========================================================================
IsValidWithHuman = function( relationshipType:string )
for _, type:string in ipairs(Relationship.m_kValidHumanRelationships) do
if relationshipType == type then
return true;
end
end
return false;
end
}