到IronWall

This commit is contained in:
SoulliesOfficial
2025-10-30 23:31:29 -04:00
parent 8b72c75128
commit 5d09ef7b53
39 changed files with 688 additions and 41 deletions

View File

@@ -0,0 +1,61 @@
%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_IronWall
m_EditorClassIdentifier:
modName: Basic
className: IronWall
displayName: Card_Basic_IronWall_DisplayName
cardRarity: 20
cardType: 20
keywords:
- TargetSelf
cardSprite: {fileID: 21300000, guid: 423e0c7f7f5e3904f8b117dcb99dc195, type: 3}
cardLayoutTags: []
functionText: Card_Basic_IronWall_FunctionText
cardDescription:
baseWeight: 1
variableAttributes:
dictionaryList:
- Key: StaminaCost
Value: 3
index: 0
isKeyDuplicated: 0
- Key: ManaCost
Value: 0
index: 1
isKeyDuplicated: 0
- Key: TargetCount
Value: 0
index: 2
isKeyDuplicated: 0
- Key: BuffCount_Withstand
Value: 10
index: 3
isKeyDuplicated: 0
dividerPosProp: 0.5
originalAttributes:
dictionaryList: []
dividerPosProp: 0.5
runtimeCurrentAttributes:
dictionaryList: []
dividerPosProp: 0.5
upgradeNode:
sourceCard: {fileID: 0}
isTerminalNode: 0
isInfiniteUpgrade: 0
maxUpgradeLevel: 0
upgradeCards: []
customDescriptions: []
prefabRefs: []
derivativeCardDataRefs: []
derivativeCharacterDataRefs: []

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cf83d1221ea596749a05a285fee6c313
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -30,7 +30,7 @@ namespace Continentis.Mods.Basic.Cards
private void SelectEffect(CardInstance card)
{
user.deckSubmodule.DiscardCard(card);
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.DiscardCard(card), new CommandContext());
}
}
}

View File

@@ -1,16 +1,25 @@
using System.Collections.Generic;
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using Continentis.Mods.Basic.Buffs;
using SLSFramework.General;
using UnityEngine;
public class IronWall : MonoBehaviour
namespace Continentis.Mods.Basic.Cards
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
public class IronWall : CardLogicBase
{
}
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential,
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_Function(() =>
{
CreateCharacterBuff<Withstand>(GetAttribute("BuffCount_Withstand")).Apply(user, user, this);
}));
// Update is called once per frame
void Update()
{
return mainGroup;
}
}
}
}

View File

@@ -0,0 +1,16 @@
using UnityEngine;
public class UtmostStrike : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 9299438b564ba4a4aa59e98ea7d83c9d

View File

@@ -35,7 +35,7 @@ namespace Continentis.Mods.Basic.Cards
public void SelectEffect(CardInstance card)
{
card.deck.ExhaustCard(card);
CommandQueueManager.Instance.AddCommand(card.deck.ExhaustCard(card));
}
}
}

View File

@@ -20,7 +20,7 @@ namespace Continentis.Mods.Basic.Cards
{
if (handPile.Filtered(CardFilter).TryGetRandom(out CardInstance randomCard))
{
user.deckSubmodule.ExhaustCard(randomCard);
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.ExhaustCard(randomCard));
}
}
}));