EmptyEpsilon
EmptyEpsilon copied to clipboard
[FactionInfo] Expose getter and setter for faction relationships
-
Add conversion functions for EFactionVsFactionState as a parameter and return value
-
Replace the overloaded
FactionInfo::getState
function with separategetRelationshipWith
andgetRelationshipBetween
functions, and replaces usage ofFactionInfo::getState
with the equivalentgetRelationshipBetween
-
Expose
getRelationshipWith
to scripting:human_navy = getFactionInfo("Human Navy") kraylor = getFactionInfo("Kraylor") human_kraylor_relationship = kraylor:getRelationshipWith(human_navy) -- returns "enemy"
-
Add
setRelationshipWith
Towards #530.