Example #1
0
 public void ApplyBackground(Player player)
 {
     player.playerBackground = this;
     startingItems.ApplyEffects(false);
     player.SetSprite(sprite);
     player.SetMaxHealth(maxHealth);
     player.SetHealth(maxHealth);
     UIManager.instance.UpdateGoldDisplay(player.inventory.GetGold());
     UIManager.instance.UpdateBackgroundDisplay();
 }
Example #2
0
 private void Leave()
 {
     GameManager.instance.map.currLocation.EndActivity();
     if (!aidGiven)
     {
         if (GameManager.instance.player.CanApplyEffects(aid))
         {
             aid.ApplyEffects();
         }
         aidGiven = true;
     }
 }
Example #3
0
    protected override void ApplyEffect(int quantity)
    {
        int successes = 0;

        for (int i = 0; i < quantity; i++)
        {
            if (Random.value <= successChance)
            {
                successes++;
            }
        }
        rewardEffects.ApplyEffects(true, successes);
        costEffects.ApplyEffects(true, quantity);
    }
Example #4
0
 public virtual void SelectCard()
 {
     cardEffectsSet.ApplyEffects();
     GameManager.instance.map.currLocation.GetComponent <GatheringLocation>().ProcessGather();
 }
Example #5
0
 public void PerformNightEffect()
 {
     cardEffectsSet.ApplyEffects();
 }