各种修复

This commit is contained in:
SoulliesOfficial
2025-11-13 08:52:30 -05:00
parent 427674331a
commit c62d86ddb2
14 changed files with 186 additions and 19 deletions

View File

@@ -3,6 +3,7 @@ using Continentis.MainGame.Character;
using SLSFramework.General;
using System;
using System.Collections.Generic;
using Continentis.MainGame.Card;
using UnityEngine;
namespace Continentis.Mods.Basic.Buffs
@@ -13,20 +14,20 @@ namespace Continentis.Mods.Basic.Buffs
{
Initialize(BuffType.Positive, BuffDispelLevel.Basic);
this.contentSubmodule = new ContentSubmodule(this)
.AddParameterGetter("Stack", () => unitedStackSubmodule.stackAmount.ToString());
.AddParameterGetter("Stack", () => unitedStackSubmodule.stackAmount.ToString());
this.iconSubmodule = new IconSubmodule(this);
this.unitedStackSubmodule = new UnitedStackSubmodule(this, stack);
this.eventSubmodule = new EventSubmodule(this);
this.eventSubmodule.onBeforePlayCard.Add(this.GetType().FullName, new PrioritizedAction<MainGame.Card.CardInstance, System.Collections.Generic.List<CharacterBase>>(OnBeforePlayCard));
this.eventSubmodule.onBeforePlayCard.Add("FreedomOfMovement", new PrioritizedAction<CardInstance, List<CharacterBase>>(OnBeforePlayCard));
}
private void OnBeforePlayCard(MainGame.Card.CardInstance instance, List<CharacterBase> list)
private void OnBeforePlayCard(CardInstance instance, List<CharacterBase> list)
{
if (instance.cardLogic.contentSubmodule.cardType == MainGame.Card.CardType.Power)
if (instance.cardLogic.contentSubmodule.cardType == CardType.Power)
{
this.attachedCharacter.deckSubmodule.DrawCards(unitedStackSubmodule.stackAmount);
CommandQueueManager.Instance.AddCommand(this.attachedCharacter.deckSubmodule.DrawCards(unitedStackSubmodule.stackAmount));
}
}