public Meatshield() { addedCombatCards.Add(new Shield()); placedStipulationCard = new Shielder(); name = "Meatshield"; image = SpriteBase.mainSpriteBase.armor; description = "Add cards to your deck, play "+placedStipulationCard.name; }
public void TryPlaceCharacterStipulationCard(CharacterStipulationCard playedCard) { foreach (CharacterStipulationCard card in activeStipulationCards) { if (card.GetType() == playedCard.GetType()) { RemoveCharacterStipulationCard(card); break; } } CharStipulationCardGraphic cardGraphic = Instantiate(stipulationCardPrefab); cardGraphic.AssignCard(playedCard); cardGraphic.transform.SetParent(stipulationCardsGroup, false); cardGraphic.transform.SetAsFirstSibling(); playedCard.ActivateCard(this); activeStipulationCards.Add(playedCard); }
public void RemoveCharacterStipulationCard(CharacterStipulationCard removedCard) { removedCard.DeactivateCard(); foreach (CharStipulationCardGraphic graphic in stipulationCardsGroup.GetComponentsInChildren<CharStipulationCardGraphic>()) { if (graphic.assignedCard == removedCard) { GameObject.Destroy(graphic.gameObject); break; } } activeStipulationCards.Remove(removedCard); }
public void AssignCard(CharacterStipulationCard newCard) { base.UpdateBasicVisuals(newCard); assignedCard = newCard; }
protected override void ExtenderConstructor() { staminaCost = 1; targetType = TargetType.None; placedStipulationCard = new BlockStipulationCard(); name = "Block"; description = "If no block is present:" + placedStipulationCard.description; image = SpriteBase.mainSpriteBase.armor; }
public Blocker() { addedCombatCards.Add(new Block()); placedStipulationCard = new BlockStipulationCard(); name = "Blocker"; image = SpriteBase.mainSpriteBase.armor; description = "Add cards to your deck, plays " + placedStipulationCard.name; }