public RelationshipKingdoms(KingdomTest kingdom, DECISION previousDecision, int like) { // this.id = id; this.kingdom = kingdom; this.previousDecision = previousDecision; this.like = like; this.isFirstEncounter = true; this.lordRelationship = LORD_RELATIONSHIP.NEUTRAL; this.isAdjacent = false; this.isAtWar = false; }
public Relationship(Lord lord, DECISION previousDecision, int like) { // this.id = id; this.lord = lord; this.previousDecision = previousDecision; this.like = like; this.isFirstEncounter = true; this.lordRelationship = LORD_RELATIONSHIP.NEUTRAL; this.isAdjacent = false; this.isAtWar = false; }
internal void IncreaseWartime(int currentDay) { daysAtWar += 1; if (daysAtWar == 90) { Debug.LogError("War with lord: " + this.kingdom.kingdomName.ToString() + " has ended on day: " + currentDay.ToString() + "!"); this.like += 20; this.lordRelationship = GetLordRelationship(this.like); daysAtWar = 0; isAtWar = false; GameManager.Instance.turnEnded -= this.IncreaseWartime; } }