Card爆改!
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user