25 lines
962 B
C#
25 lines
962 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using RobotAndDonkey.Game.Board;
|
|
using RobotAndDonkey.Game.Execution.Results;
|
|
using RobotAndDonkey.Game.GameState;
|
|
using RobotAndDonkey.Game.Intents;
|
|
using RobotAndDonkey.Game.Pois;
|
|
|
|
namespace RobotAndDonkey.Game.Cards.Patches;
|
|
|
|
public record PatchCard(ECard Id, int ShopCost, int PlayCost, ERarity Rarity) : Card(Id, ECardType.Patch, Rarity, ShopCost, PlayCost)
|
|
{
|
|
public override void CreateIntents(Cell? avatarCell, CoreLoop coreLoop, Guid requestId, List<Intent> intents, List<Result> results)
|
|
{
|
|
if (avatarCell?.Poi is not Avatar avatar)
|
|
return;
|
|
|
|
base.CreateIntents(avatarCell, coreLoop, requestId, intents, results);
|
|
CreateIntents(avatarCell, avatar, coreLoop, requestId, intents, results);
|
|
}
|
|
|
|
protected virtual void CreateIntents(Cell avatarCell, Avatar avatar, CoreLoop coreLoop, Guid requestId, List<Intent> intents, List<Result> results)
|
|
{
|
|
}
|
|
} |