Compare commits

..

No commits in common. "0f856ea26d90800bff637e2116a121e5e79fe988" and "02e231876163d10575f593e363ca0de5377ce97b" have entirely different histories.

12 changed files with 14 additions and 33 deletions

BIN
Content/Enemy/DA_Enemy.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Enemy/DA_HeavyEnemy.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Enemy/DA_LightEnemy.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Enemy/DA_NormalEnemy.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Gamemode/BP_DefaultGamemode.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Meshes/SM_Enemy.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Meshes/SM_HeavyEnemy.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Meshes/SM_LightEnemy.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Meshes/SM_NormalEnemy.uasset (Stored with Git LFS)

Binary file not shown.

View File

@ -118,7 +118,6 @@ void AEnemyCharacter::LoadDataFromDataAsset_Implementation(UEnemyDataAsset* Enem
OnDeathNiagaraSystem = EnemyDataAsset->OnDeathNiagaraSystem;
HealthComponent->SetMaxHealth(EnemyDataAsset->MaxHealth);
GetCharacterMovement()->MaxWalkSpeed = EnemyDataAsset->MovementSpeed;
Damage = EnemyDataAsset->Damage;
PickupArray.Add(EnemyDataAsset->CommonPickupDataAsset);
PickupArray.Add(EnemyDataAsset->UncommonPickupDataAsset);
@ -137,7 +136,6 @@ void AEnemyCharacter::ResetData_Implementation()
OnDeathNiagaraSystem = nullptr;
HealthComponent->SetMaxHealth(100.0f);
GetCharacterMovement()->MaxWalkSpeed = 300.0f;
Damage = 5.0f;
}
float AEnemyCharacter::GetCapsuleRadius_Implementation()

View File

@ -51,7 +51,4 @@ public:
UPROPERTY(EditDefaultsOnly, Category = "Properties")
float MovementSpeed = 300.0f;
UPROPERTY(EditDefaultsOnly, Category = "Properties")
float Damage = 5.0f;
};

View File

@ -148,14 +148,12 @@ AObjectPoolManager* AVampireGameMode::GetPickupObjectPoolManager_Implementation(
void AVampireGameMode::AddRandomEnemyTypeToPool()
{
// if (EnemyDataAssets.Num() > 0)
// {
// int32 rand = FMath::RandRange(0, EnemyDataAssets.Num() - 1);
// SpawnableEnemyDataAssets.Add(EnemyDataAssets[rand]);
// EnemyDataAssets.RemoveAt(rand);
// }
SpawnableEnemyDataAssets = EnemyDataAssets;
if (EnemyDataAssets.Num() > 0)
{
int32 rand = FMath::RandRange(0, EnemyDataAssets.Num() - 1);
SpawnableEnemyDataAssets.Add(EnemyDataAssets[rand]);
EnemyDataAssets.RemoveAt(rand);
}
}
void AVampireGameMode::OnPlayerDeath(FDamageInfo DamageInfo)