Card爆改!

This commit is contained in:
SoulliesOfficial
2025-11-15 12:17:34 -05:00
parent 85bbe2431c
commit 5fe665d0ce
121 changed files with 838 additions and 783 deletions

View File

@@ -25,7 +25,7 @@ namespace Continentis.Mods.Basic.Buffs
private void OnBeforePlayCard(CardInstance instance, List<CharacterBase> list)
{
if (instance.cardLogic.contentSubmodule.cardType == CardType.Power)
if (instance.contentSubmodule.cardType == CardType.Power)
{
CommandQueueManager.Instance.AddCommand(this.attachedCharacter.deckSubmodule.DrawCards(unitedStackSubmodule.stackAmount));
}

View File

@@ -25,7 +25,7 @@ namespace Continentis.Mods.Basic.Buffs
this.eventSubmodule.onAfterPlayCard.Add("FlameInscription",
new PrioritizedAction<CardInstance, List<CharacterBase>>((card, targets) =>
{
if (card.cardLogic.contentSubmodule.cardType == CardType.Attack && card.cardLogic.HasKeyword("Magic"))
if (card.contentSubmodule.cardType == CardType.Attack && card.HasKeyword("Magic"))
{
List<CharacterBase> enemies = CombatMainManager.Instance.characterController.GetAllEnemies(attachedCharacter);
foreach (CharacterBase enemy in enemies)

View File

@@ -31,32 +31,32 @@ namespace Continentis.Mods.Basic.Characters
{
characterDeck.PoolPile.ForEach(card =>
{
card.cardLogic.weightSubmodule.baseWeight = 0;
card.cardLogic.weightSubmodule.forceUse = false;
card.cardLogic.weightSubmodule.forceIgnore = false;
card.weightSubmodule.baseWeight = 0;
card.weightSubmodule.forceUse = false;
card.weightSubmodule.forceIgnore = false;
});
foreach (CardInstance card in characterDeck.PoolPile)
{
if (card.cardLogic is HellfireBlast)
{
card.cardLogic.weightSubmodule.baseWeight = 1;
card.weightSubmodule.baseWeight = 1;
}
else if (card.cardLogic is NecromanticInfusion)
{
if (characterRecord.GetLastActionsRecords(3)
.Any(rec => rec.cardsPlayed.Any(recCard => recCard.cardLogic is NecromanticInfusion)))
{
card.cardLogic.weightSubmodule.baseWeight = 0;
card.weightSubmodule.baseWeight = 0;
}
else
{
card.cardLogic.weightSubmodule.baseWeight = 1;
card.weightSubmodule.baseWeight = 1;
}
}
else if (card.cardLogic is GreatswordSweep)
{
card.cardLogic.weightSubmodule.baseWeight = 1;
card.weightSubmodule.baseWeight = 1;
}
}
}
@@ -83,7 +83,7 @@ namespace Continentis.Mods.Basic.Characters
{
if (card.cardLogic is ArmyOfTheDead)
{
card.cardLogic.weightSubmodule.forceUse = true;
card.weightSubmodule.forceUse = true;
}
}
}
@@ -121,7 +121,7 @@ namespace Continentis.Mods.Basic.Characters
{
if (card.cardLogic is WrathOfUnderworld)
{
card.cardLogic.weightSubmodule.forceUse = true;
card.weightSubmodule.forceUse = true;
}
}
}