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(); }
private void Leave() { GameManager.instance.map.currLocation.EndActivity(); if (!aidGiven) { if (GameManager.instance.player.CanApplyEffects(aid)) { aid.ApplyEffects(); } aidGiven = true; } }
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); }
public virtual void SelectCard() { cardEffectsSet.ApplyEffects(); GameManager.instance.map.currLocation.GetComponent <GatheringLocation>().ProcessGather(); }
public void PerformNightEffect() { cardEffectsSet.ApplyEffects(); }