public static void improveRelations(Nation player, int target) { Nation otherNation = State.getNations()[target]; int adjustment = 1; MyEnum.NationType NType = otherNation.getType(); if (NType == MyEnum.NationType.major) { adjustment = 10; Debug.Log("here"); } if (NType == MyEnum.NationType.minor) { adjustment = 30; Debug.Log("here"); } if (NType == MyEnum.NationType.oldEmpire) { adjustment = 20; Debug.Log("here"); } Debug.Log("Adjustment is " + adjustment); player.getRelationFromThisPlayer(target).adjustAttude(adjustment); player.getRelationToThisPlayer(target).adjustAttude(adjustment); player.useDiplomacyPoints(1); }
public Nation(string nationName, int index, float[] color, MyEnum.NationType type, List <int> provinceIndexes, string culture) { this.nationName = nationName; this.index = index; // Color _color = new Color(color[0], color[1], color[2], color[3]); this.Color = new Color(color[0], color[1], color[2], color[3]); this.type = type; this.provinceIndexes = provinceIndexes; this.culture = culture; this.industry = new PlayerIndustry(); }