keyword + animation
This commit is contained in:
@@ -17,8 +17,10 @@ MonoBehaviour:
|
||||
displayName: Card_Basic_DualStrike_DisplayName
|
||||
cardRarity: 10
|
||||
cardType: 0
|
||||
tags: []
|
||||
keywords:
|
||||
- Strike
|
||||
cardSprite: {fileID: 21300000, guid: b5ebf255ba7f19543b7faea59e86ea77, type: 3}
|
||||
cardLayoutTags: []
|
||||
functionText: Card_Basic_DualStrike_FunctionText
|
||||
cardDescription: '$Keyword("Strike"), deal $Attribute("Damage") damage twice. '
|
||||
baseWeight: 1
|
||||
|
||||
@@ -17,10 +17,11 @@ MonoBehaviour:
|
||||
displayName: Card_Basic_Strike_DisplayName
|
||||
cardRarity: 10
|
||||
cardType: 0
|
||||
tags:
|
||||
keywords:
|
||||
- Strike
|
||||
- TargetEnemies
|
||||
- Physics
|
||||
cardSprite: {fileID: 21300000, guid: 54336fab907a76a4095ff5607e0b86c8, type: 3}
|
||||
cardLayoutTags: []
|
||||
functionText: Card_Basic_Strike_FunctionText
|
||||
cardDescription: Card_Basic_Strike_Description
|
||||
baseWeight: 1
|
||||
|
||||
@@ -17,8 +17,9 @@ MonoBehaviour:
|
||||
displayName: Card_Basic_HiddenBlade_DisplayName
|
||||
cardRarity: 0
|
||||
cardType: 50
|
||||
tags: []
|
||||
keywords: []
|
||||
cardSprite: {fileID: 21300000, guid: 8be7e5378b35956469dceadef0180595, type: 3}
|
||||
cardLayoutTags: []
|
||||
functionText: Card_Basic_HiddenBlade_FunctionText
|
||||
cardDescription: $Keyword("Retain"), $Keyword("Exhaust"), $Keyword("Prick"), deal
|
||||
$Attribute("Damage") damage.
|
||||
|
||||
@@ -44,6 +44,5 @@ MonoBehaviour:
|
||||
upgradeCards: []
|
||||
customDescriptions: []
|
||||
prefabRefs: []
|
||||
derivativeCardDataRefs:
|
||||
- CardData_Basic_HolyWaterPreparation
|
||||
derivativeCardDataRefs: []
|
||||
derivativeCharacterDataRefs: []
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
private void SelectEffect(CardInstance card)
|
||||
{
|
||||
card.cardLogic.ModifyAttribute("StaminaCost", -1);
|
||||
card.cardLogic.contentSubmodule.keywords.Add("Retain");
|
||||
card.cardLogic.contentSubmodule.originalFunctionText += " + $Keyword(\"Retain\")";
|
||||
CardTextInterpreter.InterpretText(card.cardLogic, true);
|
||||
card.handCardView.Setup();
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
|
||||
private bool CardFilter(CardData cardData)
|
||||
{
|
||||
return cardData.cardType == CardType.Attack && cardData.HasTag("Physics");
|
||||
return cardData.cardType == CardType.Attack && cardData.HasKeyword("Physics");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,7 +24,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
mainGroup.AddCommand(new Cmd_PlayAnimation(user.characterView, "Skill"));
|
||||
mainGroup.AddCommand(new Cmd_Function(() =>
|
||||
{
|
||||
CardData holyWaterCardData = LogicComponent<CardLogicComponent_GenerateCards>().GetDerivativeCardData(0);
|
||||
CardData holyWaterCardData = GetDerivativeCardData(0);
|
||||
CardInstance.GenerateCardInstance(holyWaterCardData, user.team, "Hand");
|
||||
}));
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
@@ -14,18 +15,22 @@ namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
AddLogicComponent<CardLogicComponent_Attack>();
|
||||
}
|
||||
|
||||
|
||||
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_PlayAnimation(user.characterView, "Attack"),
|
||||
new Cmd_PlaySFX("SFX_Basic_SwordStrike"),
|
||||
new Cmd_SpawnVFX("VFX_Basic_RedImpact"),
|
||||
new Cmd_ParamFunction<CharacterBase>(target => user.Attack(target, GetFinalDamage(target))));
|
||||
new Cmd_SpawnVFX("VFX_Basic_RedImpact"));
|
||||
|
||||
foreach (Cmd_PlayAnimation cmd in mainGroup.GetAllCommands<Cmd_PlayAnimation>())
|
||||
{
|
||||
cmd.AddAction<CharacterBase>(0.7f, "Target", target => user.Attack(target, GetFinalDamage(target)));
|
||||
}
|
||||
|
||||
return mainGroup;
|
||||
}
|
||||
|
||||
|
||||
public override void ApplyAttributeChangesByCard()
|
||||
{
|
||||
LogicComponent<CardLogicComponent_Attack>().SetDamage_Strike();
|
||||
|
||||
Reference in New Issue
Block a user