MOD!
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Continentis.MainGame;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using SLSFramework.General;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public class Basic_CommomHolyWater : CardLogicBase
|
||||
{
|
||||
protected override void SetUpLogicComponents()
|
||||
{
|
||||
AddLogicComponent<CardLogicComponent_SelectHandCards>();
|
||||
}
|
||||
|
||||
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
base.PlayEffect(targetList);
|
||||
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential);
|
||||
mainGroup.AddCommand(new Cmd_PlayAnimation(user.characterView, "Skill"));
|
||||
LogicComponent<CardLogicComponent_SelectHandCards>().AddSelectionCommands(ref mainGroup, "Select at most 3 Status or Curse cards to be exhausted.", 3);
|
||||
|
||||
return mainGroup;
|
||||
}
|
||||
|
||||
public bool SelectCondition(CardInstance card)
|
||||
{
|
||||
CardType type = card.cardLogic.contentSubmodule.cardType;
|
||||
return type == CardType.Status || type == CardType.Curse;
|
||||
}
|
||||
|
||||
public void SelectEffect(CardInstance card)
|
||||
{
|
||||
card.deck.ExhaustCard(card);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 88547d53279f48e42bad2ac4f007d2fa
|
||||
@@ -0,0 +1,201 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9a4129cdd7011ca46b83d8c17d9f3623, type: 3}
|
||||
m_Name: CardData_Basic_CommomHolyWater
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Continentis.MainGame.Card.CardData
|
||||
serializationData:
|
||||
SerializedFormat: 2
|
||||
SerializedBytes:
|
||||
ReferencedUnityObjects:
|
||||
- {fileID: 11400000}
|
||||
SerializedBytesString:
|
||||
Prefab: {fileID: 0}
|
||||
PrefabModificationsReferencedUnityObjects: []
|
||||
PrefabModifications: []
|
||||
SerializationNodes:
|
||||
- Name: cardClass
|
||||
Entry: 7
|
||||
Data: 0|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: Continentis.Mods.Basic.Cards.Basic_CommomHolyWater, Assembly-CSharp
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: prefabs
|
||||
Entry: 7
|
||||
Data: 1|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[UnityEngine.GameObject,
|
||||
UnityEngine.CoreModule]], mscorlib
|
||||
- Name: comparer
|
||||
Entry: 7
|
||||
Data: 2|System.Collections.Generic.GenericEqualityComparer`1[[System.String,
|
||||
mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: variableAttributes
|
||||
Entry: 7
|
||||
Data: 3|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Single,
|
||||
mscorlib]], mscorlib
|
||||
- Name: comparer
|
||||
Entry: 9
|
||||
Data: 2
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: originalAttributes
|
||||
Entry: 7
|
||||
Data: 4|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Single,
|
||||
mscorlib]], mscorlib
|
||||
- Name: comparer
|
||||
Entry: 9
|
||||
Data: 2
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: TargetCount
|
||||
- Name: $v
|
||||
Entry: 4
|
||||
Data: 0
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: endowingCurrentAttributes
|
||||
Entry: 7
|
||||
Data: 5|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.String,
|
||||
mscorlib]], mscorlib
|
||||
- Name: comparer
|
||||
Entry: 9
|
||||
Data: 2
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: upgradeNode
|
||||
Entry: 7
|
||||
Data: 6|Continentis.MainGame.Card.CardUpgradeNode, Assembly-CSharp
|
||||
- Name: sourceCard
|
||||
Entry: 10
|
||||
Data: 0
|
||||
- Name: isTerminalNode
|
||||
Entry: 5
|
||||
Data: true
|
||||
- Name: isInfiniteUpgrade
|
||||
Entry: 5
|
||||
Data: false
|
||||
- Name: maxUpgradeLevel
|
||||
Entry: 3
|
||||
Data: 1
|
||||
- Name: upgradeCards
|
||||
Entry: 7
|
||||
Data: 7|System.Collections.Generic.List`1[[Continentis.MainGame.Card.CardData,
|
||||
Assembly-CSharp]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: defaultUpgradeAttributes
|
||||
Entry: 7
|
||||
Data: 8|System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Single,
|
||||
mscorlib]], mscorlib
|
||||
- Name: comparer
|
||||
Entry: 7
|
||||
Data: 9|System.Collections.Generic.GenericEqualityComparer`1[[System.String,
|
||||
mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: customUpgradeAttributes
|
||||
Entry: 7
|
||||
Data: 10|System.Collections.Generic.List`1[[System.Collections.Generic.Dictionary`2[[System.String,
|
||||
mscorlib],[System.Single, mscorlib]], mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: customDescriptions
|
||||
Entry: 7
|
||||
Data: 11|System.Collections.Generic.List`1[[System.String, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
cardName: Commom Holy Water
|
||||
cardIdentifier: Basic_CommomHolyWater
|
||||
cardRarity: 10
|
||||
cardType: 50
|
||||
cardSprite: {fileID: 21300000, guid: aae12ccc5edd96c40b082fba851f3056, type: 3}
|
||||
cardDescription: $Keyword("Exhaust"), exhaust at most 3 Status or Curse cards.
|
||||
functionalTags:
|
||||
- TargetSelf
|
||||
elementalTags: []
|
||||
baseWeight: 1
|
||||
derivativeCardDataList: []
|
||||
characterDataList: []
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cbbd115a40fd28d46a02de7ad2cc44d7
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user