파운드 100%, 알리움 대상 지정 제외 전체 완성
This commit is contained in:
BIN
Content/Blueprints/BP_DefaultPlayerCharacter.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/BP_DefaultPlayerCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Blueprints/UI/NameBar_UI/NameBar_UI.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/UI/NameBar_UI/NameBar_UI.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Alium_P_Buff1.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/Alium_P_Buff1.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/Alium_P_Buff2.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/Alium_P_Buff2.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/Alium_Q.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Alium_Q.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Alium_Q_Debuff1.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/Alium_Q_Debuff1.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/Alium_Q_Debuff2.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/Alium_Q_Debuff2.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/Alium_R.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Alium_R.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Alium_R_Attack.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/Alium_R_Attack.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/Alium_W.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Alium_W.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Alium_w_debuff.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/Alium_w_debuff.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/Aliun_E_Effect.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/Aliun_E_Effect.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/Animation/ABP_Allium.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Animation/ABP_Allium.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Animation/Attack1_Anim.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Animation/Attack1_Anim.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Animation/Attack2_Anim.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Animation/Attack2_Anim.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Animation/Attack3_Anim.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Animation/Attack3_Anim.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Animation/Skill1_Anim.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Animation/Skill1_Anim.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Animation/Skill2_Anim.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Animation/Skill2_Anim.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Animation/Skill3_Anim.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Animation/Skill3_Anim.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/Animation/Skill4_2_Anim.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/Animation/Skill4_2_Anim.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/BP_Allium.uasset
(Stored with Git LFS)
BIN
Content/Character/Allium/BP_Allium.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Allium/sound/AL_A_1.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/sound/AL_A_1.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/sound/AL_A_2.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/sound/AL_A_2.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/sound/AL_Q.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/sound/AL_Q.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/sound/AL_Q_Hited.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/sound/AL_Q_Hited.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Allium/sound/Al_Q_Boom.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Allium/sound/Al_Q_Boom.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/Animation/ABP_Lb.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/Animation/ABP_Lb.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/BP_Lb.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/BP_Lb.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/BaseArrow.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/BaseArrow.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/Effect/MP_Toxic Goo.mp3
Normal file
BIN
Content/Character/Lb/Effect/MP_Toxic Goo.mp3
Normal file
Binary file not shown.
BIN
Content/Character/Lb/EskillBuff.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/EskillBuff.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/LB_Bolla_Throw.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/LB_Bolla_Throw.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/LB_Q_Arrow.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/LB_Q_Arrow.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/LB_TNT_Fire.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/LB_TNT_Fire.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/Lb_EskillBuff.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/Lb_EskillBuff.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/Lb_Passive.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/Lb_Passive.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/Lb_QskillDebuff.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/Lb_QskillDebuff.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/Lb_RskillBurst.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/Lb_RskillBurst.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/Lb_WskillDebuff.uasset
(Stored with Git LFS)
BIN
Content/Character/Lb/Lb_WskillDebuff.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Character/Lb/sound/BaseArrow.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/BaseArrow.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/Missile.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/Missile.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/Missile11.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/Missile11.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/NewMaterial.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/NewMaterial.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_A.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_A.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_A_reached.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_A_reached.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_E.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_E.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_Q_Boom.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_Q_Boom.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_Q_Burn.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_Q_Burn.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_Q_shoot.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_Q_shoot.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_R_Boom.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_R_Boom.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_R_Hold.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_R_Hold.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_R_Shoot.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_R_Shoot.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_W_Shoot.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_W_Shoot.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Lb/sound/T_H_W_Tied.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Character/Lb/sound/T_H_W_Tied.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Character/Riana/BP_Riana.uasset
(Stored with Git LFS)
BIN
Content/Character/Riana/BP_Riana.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Alium_E/Alium_E.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Alium_E/Alium_E.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Alium_P_Buff1_Nia.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Effect/Alium/Alium_P_Buff1_Nia.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Effect/Alium/Alium_P_Buff2_Nia.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Effect/Alium/Alium_P_Buff2_Nia.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Effect/Alium/Alium_Q/Aliun_Q_Fx.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Alium_Q/Aliun_Q_Fx.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Alium_W/Alium_W.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Alium_W/Alium_W.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Hit/Alium_E_Hit/Alium_E_Hit_Nia.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Hit/Alium_E_Hit/Alium_E_Hit_Nia.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Hit/Alium_Q_Hit.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Hit/Alium_Q_Hit.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Hit/Alium_Q_Hit/Alium_Q_Hit.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Hit/Alium_Q_Hit/Alium_Q_Hit.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Hit/Alium_R_Hit.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Hit/Alium_R_Hit.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Hit/Alium_R_Hit/Alium_R_Hit_Nia.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Hit/Alium_R_Hit/Alium_R_Hit_Nia.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Hit/Alium_Simple_Hit.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Hit/Alium_Simple_Hit.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Hit/Alium_W_Hit.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Hit/Alium_W_Hit.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/Alium/Hit/Alium_W_Hit/Alium_W_Hit_Nia.uasset
(Stored with Git LFS)
BIN
Content/Effect/Alium/Hit/Alium_W_Hit/Alium_W_Hit_Nia.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/ETC/Hit_FX/Hit_nomal.uasset
(Stored with Git LFS)
BIN
Content/Effect/ETC/Hit_FX/Hit_nomal.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/ETC/Speed_Down.uasset
(Stored with Git LFS)
BIN
Content/Effect/ETC/Speed_Down.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/ETC/Speed_Down/Speed_Down.uasset
(Stored with Git LFS)
BIN
Content/Effect/ETC/Speed_Down/Speed_Down.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/LB/Arrow/Arrow_Flash.uasset
(Stored with Git LFS)
BIN
Content/Effect/LB/Arrow/Arrow_Flash.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/LB/LB_Hit/LB_Q_Hit/LB_Q_Hit.uasset
(Stored with Git LFS)
BIN
Content/Effect/LB/LB_Hit/LB_Q_Hit/LB_Q_Hit.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Effect/LB/LB_Skill/Q/LB_Q.uasset
(Stored with Git LFS)
BIN
Content/Effect/LB/LB_Skill/Q/LB_Q.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Maps/DevMap.umap
(Stored with Git LFS)
BIN
Content/Maps/DevMap.umap
(Stored with Git LFS)
Binary file not shown.
@@ -15,7 +15,8 @@ void UAN_AnimEnd::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* An
|
||||
|
||||
ADefaultPlayerState* MyState = MyCharacter->GetPlayerState<ADefaultPlayerState>();
|
||||
if (!MyState) return;
|
||||
MyState->SetState(ECharacterState::Idle);
|
||||
MyState->SetState(ECharacterState::Idle);
|
||||
UE_LOG(LogTemp, Warning, TEXT("State log : %d"), MyState->GetState());
|
||||
MyState->Stats[(uint8)EStats::Attackable] = 0;
|
||||
MyState->Stats[(uint8)EStats::Skillusable] = 0;
|
||||
MyState->Stats[(uint8)EStats::Movable] = 0;
|
||||
|
||||
@@ -133,7 +133,7 @@ FString ADeathmatch::InitNewPlayer(APlayerController* NewPlayerController, const
|
||||
//DebugPerpose
|
||||
if (Type == CharacterType::Lukriel)
|
||||
{
|
||||
Type = CharacterType::Lb;
|
||||
Type = CharacterType::Allium;
|
||||
}
|
||||
if (Team == TeamType::Null)
|
||||
{
|
||||
|
||||
@@ -65,64 +65,60 @@ float ADefaultPlayerCharacter::TakeDamage_Implementation(float DamageAmount, str
|
||||
{
|
||||
float ReturnValue = Super::TakeDamage(DamageAmount, DamageEvent, EventInstigator, DamageCauser);
|
||||
|
||||
if (HasAuthority())
|
||||
ADefaultPlayerState* State = GetPlayerState<ADefaultPlayerState>();
|
||||
if (!State) return ReturnValue;
|
||||
|
||||
if (!Cast<APawn>(DamageCauser)) return ReturnValue;
|
||||
|
||||
ADefaultPlayerState* AttackerState = Cast<APawn>(DamageCauser)->GetPlayerState<ADefaultPlayerState>();
|
||||
if (!AttackerState) return ReturnValue;
|
||||
|
||||
float ADDamageMultiplier = 0;
|
||||
float APDamageMultiplier = 0;
|
||||
|
||||
if (State->Stats[(uint8)EStats::Armor] >= 0)
|
||||
ADDamageMultiplier = 100 / (100 + State->Stats[(uint8)EStats::Armor]);
|
||||
else
|
||||
ADDamageMultiplier = 2 - 100 / (100 - State->Stats[(uint8)EStats::Armor]);
|
||||
|
||||
if (State->Stats[(uint8)EStats::MagicResistance] >= 0)
|
||||
APDamageMultiplier = 100 / (100 + State->Stats[(uint8)EStats::MagicResistance]);
|
||||
else
|
||||
APDamageMultiplier = 2 - 100 / (100 - State->Stats[(uint8)EStats::MagicResistance]);
|
||||
|
||||
|
||||
UE_LOG(LogTemp, Warning, TEXT("%s : ADDamageMultiplier : %f CalculatedDamage : %f"), *DamageCauser->GetName(), ADDamageMultiplier, DamageAmount * ADDamageMultiplier);
|
||||
UE_LOG(LogTemp, Warning, TEXT("%s : APDamageMultiplier : %f CalculatedDamage : %f"), *DamageCauser->GetName(), APDamageMultiplier, DamageAmount * APDamageMultiplier);
|
||||
|
||||
float UpdatedHealth = 0;
|
||||
|
||||
if (Cast<UBaseAttack>(DamageEvent.DamageTypeClass->GetDefaultObject()))
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("TakeDamage Called On Server"));
|
||||
UE_LOG(LogTemp, Warning, TEXT("DamageType : BaseAttack"));
|
||||
|
||||
UpdatedHealth = State->Stats[(uint8)EStats::Health] - DamageAmount * ADDamageMultiplier;
|
||||
}
|
||||
else
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("DamageType : APDamage"));
|
||||
|
||||
UpdatedHealth = State->Stats[(uint8)EStats::Health] - DamageAmount * APDamageMultiplier;
|
||||
}
|
||||
|
||||
if (UpdatedHealth < 0 || UpdatedHealth < 0.1)
|
||||
{
|
||||
State->Stats[(uint8)EStats::Health] = 0;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("TakeDamage Called On Client"));
|
||||
State->Stats[(uint8)EStats::Health] = UpdatedHealth;
|
||||
}
|
||||
|
||||
if (HasAuthority())
|
||||
{
|
||||
if (ADefaultPlayerState* MyState = this->GetInstigatorController()->GetPlayerState<ADefaultPlayerState>())
|
||||
{
|
||||
if (ADefaultPlayerState* EventInstigatorState = EventInstigator->GetPlayerState<ADefaultPlayerState>())
|
||||
{
|
||||
float ADDamageMultiplier = 0;
|
||||
float APDamageMultiplier = 0;
|
||||
UE_LOG(LogTemp, Warning, TEXT("Current Health : %f"), State->Stats[(uint8)EStats::Health]);
|
||||
UE_LOG(LogTemp, Warning, TEXT("U Health : %f"), UpdatedHealth);
|
||||
|
||||
if (MyState->Stats[(uint8)EStats::Armor] >= 0)
|
||||
ADDamageMultiplier = 100 / (100 + MyState->Stats[(uint8)EStats::Armor]);
|
||||
else
|
||||
ADDamageMultiplier = 2 - 100 / (100 - MyState->Stats[(uint8)EStats::Armor]);
|
||||
|
||||
if (MyState->Stats[(uint8)EStats::MagicResistance] >= 0)
|
||||
APDamageMultiplier = 100 / (100 + MyState->Stats[(uint8)EStats::MagicResistance]);
|
||||
else
|
||||
APDamageMultiplier = 2 - 100 / (100 - MyState->Stats[(uint8)EStats::MagicResistance]);
|
||||
|
||||
|
||||
UE_LOG(LogTemp, Warning, TEXT("%s : ADDamageMultiplier : %f CalculatedDamage : %f"), *DamageCauser->GetName(), ADDamageMultiplier, DamageAmount * ADDamageMultiplier);
|
||||
UE_LOG(LogTemp, Warning, TEXT("%s : APDamageMultiplier : %f CalculatedDamage : %f"), *DamageCauser->GetName(), APDamageMultiplier, DamageAmount * APDamageMultiplier);
|
||||
|
||||
if (Cast<UBaseAttack>(DamageEvent.DamageTypeClass->GetDefaultObject()))
|
||||
{
|
||||
UE_LOG(LogTemp, Warning, TEXT("DamageType : BaseAttack"));
|
||||
|
||||
float UpdatedHealth = MyState->Stats[(uint8)EStats::Health] - EventInstigatorState->Stats[(uint8)EStats::AttackDamage] * ADDamageMultiplier;
|
||||
if (UpdatedHealth < 0)
|
||||
{
|
||||
MyState->Stats[(uint8)EStats::Health] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
MyState->Stats[(uint8)EStats::Health] = UpdatedHealth;
|
||||
}
|
||||
|
||||
UE_LOG(LogTemp, Warning, TEXT("Current Health : %f"), MyState->Stats[(uint8)EStats::Health]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return ReturnValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1.0f;
|
||||
}
|
||||
return ReturnValue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -102,9 +102,9 @@ enum class EStats : uint8
|
||||
HPRegeneration,
|
||||
HealAndShieldpower,
|
||||
Armor,
|
||||
ArmorBuff,
|
||||
MaxHealth,
|
||||
MagicResistance,
|
||||
MagicResistanceBuff,
|
||||
MaxMana,
|
||||
Tenacity,
|
||||
SlowRisist,
|
||||
AttackSpeed,
|
||||
|
||||
Reference in New Issue
Block a user