public void RefreshStamina()
 {
     if (!_explorer.State.IsRun)
     {
         Logger.Error($"Attempting to record stamina for stage outside of explorer", this);
         return;
     }
     _explorer.GetStage(_explorer.CurrentStage).Values[_scorers.StaminaId] += _settings.Settings.PlayerSettings.BuyStamina;
     _scorers.Spend(_settings.GetPriceStamina(_explorer.State.RefreshNumber), _formula);
     _explorer.State.RefreshNumber++;
     LogicLog.ExploreRenew(_explorer.State.StageId, _explorer.State.RefreshNumber);
     LogicLog.SetExplorer(_explorer.CurrentStage, LogExplorerType.BuyStamina);
 }
Exemple #2
0
 public IPrice GetPriceStamina(System.Int32 number)
 {
     return(_accessor.GetPriceStamina(number));
 }