Exemplo n.º 1
0
 public void onRevolutionWon(bool setReform)
 {
     siegeCapitalTurns = 0;
     _isInRevolt       = false;
     if (ReferenceEquals(targetReformType, null)) // meaning separatism
     {
         OnSeparatistsWon();
     }
     else
     {
         if (setReform)
         {
             targetReformType.SetValue(getGoal());//to avoid recursion
             if (!Country.isAI())
             {
                 MessageSystem.Instance.NewMessage("Rebels won", "Now you have " + targetReformValue, "Ok", false, Game.Player.Capital.Position);
             }
         }
     }
     foreach (var pop in members)
     {
         pop.loyalty.Add(Options.PopLoyaltyBoostOnRevolutionWon);
         pop.loyalty.clamp100();
     }
     killMovement();
 }
Exemplo n.º 2
0
 private void changeReformValue()
 {
     if (!(ReferenceEquals(selectedReformType, null)) && selectedReformValue != null && selectedReformType != selectedReformValue)
     {
         selectedReformType.SetValue(selectedReformValue);
         MainCamera.refreshAllActive();
     }
 }
Exemplo n.º 3
0
 private void changeReformValue()
 {
     if (!(ReferenceEquals(selectedReformType, null)) && selectedReformValue != null && selectedReformType != selectedReformValue)
     {
         selectedReformType.SetValue(selectedReformValue);
         //MainCamera.refreshAllActive();
         UIEvents.RiseSomethingVisibleToPlayerChangedInWorld(EventArgs.Empty, this);
     }
 }