Bugfix Combat Values Not Being Reset on Combat End
This commit is contained in:
parent
4f8f2b37d1
commit
69bd004895
@ -87,17 +87,23 @@ void ATurnBaseCombatV2::CombatCheck(bool bWasShot)
|
|||||||
EisResource = 10;
|
EisResource = 10;
|
||||||
AzosResource = 10;
|
AzosResource = 10;
|
||||||
IroquoidResource = 10;
|
IroquoidResource = 10;
|
||||||
|
|
||||||
|
ChainDamageMultiplier = 1.0f;
|
||||||
|
BaseDamageMultiplier = 1.0f;
|
||||||
|
DamageMultiplierTextBlock->SetText(FText::FromString(""));
|
||||||
|
|
||||||
|
FProperty* ReactionSpeedProperty = EnemyActor->GetClass()->FindPropertyByName(FName("ReactionSpeed"));
|
||||||
|
float* EnemyReactionSpeedPtr = ReactionSpeedProperty->ContainerPtrToValuePtr<float>(EnemyActor);
|
||||||
|
|
||||||
CurrentComboString = "";
|
CurrentComboString = "";
|
||||||
UpdateComboString(CurrentComboString);
|
UpdateComboString(CurrentComboString);
|
||||||
RevertActionPoints();
|
RevertActionPoints();
|
||||||
UpdateActionPoints();
|
UpdateActionPoints();
|
||||||
UpdateResourceBars();
|
UpdateResourceBars();
|
||||||
|
UpdateProgressBars();
|
||||||
ClearBattleLog();
|
ClearBattleLog();
|
||||||
EnableButtons();
|
EnableButtons();
|
||||||
|
|
||||||
FProperty* ReactionSpeedProperty = EnemyActor->GetClass()->FindPropertyByName(FName("ReactionSpeed"));
|
|
||||||
float* EnemyReactionSpeedPtr = ReactionSpeedProperty->ContainerPtrToValuePtr<float>(EnemyActor);
|
|
||||||
if (EnemyBlackboard->GetValueAsBool("Sight") && !bWasShot)
|
if (EnemyBlackboard->GetValueAsBool("Sight") && !bWasShot)
|
||||||
{
|
{
|
||||||
//bEnemyHasExtraTurn = true;
|
//bEnemyHasExtraTurn = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user