Card爆改!
This commit is contained in:
@@ -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