Merge branch 'dev' into UI-Implementation

# Conflicts:
#	Content/Blueprints/Player/BP_MyTempCharacter.uasset
#	Content/Levels/Top_layer_level.umap
This commit is contained in:
Marcel Hara 2023-03-13 17:13:56 +00:00
commit 688a724a62
81 changed files with 280 additions and 36 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Assets/Characters/Goat_Enemy/SM_Goat.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Characters/Merchant/AMerchant.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Assets/Characters/Merchant/Merchant_Body_low.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Characters/Merchant/Merchant_Boots_low.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Characters/Merchant/Merchant_Hair_low.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Characters/Merchant/Merchant_Hood_low.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Characters/Merchant/Merchant_Sash_low.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Assets/Characters/Merchant/SM_Merchant.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Assets/Objects/Crystal/Small_Crystal_1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/Crystal/Small_Crystal_2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/Crystal/Small_Crystal_3.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/Crystal/crystal_1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/Crystal/crystal_2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/Crystal/crystal_3.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/Crystal/lambert1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Barrel.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Beams_1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Beams_2.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Chest.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Large_Crate.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Pickaxe.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Plank_Long.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Plank_Short.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Sign_Short.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Sign_Tall.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/Small_Crate.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Assets/Objects/General_Dressing/lambert1.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/BlueprintAI/AI/AIBruh.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Blueprints/Items/AmmoItem.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Blueprints/Items/BP_Azos.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/BP_Eis.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/BP_Iroquoid.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/BP_Probertium.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemMaterials/Mat_Azos.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemMaterials/Mat_Eis.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemMaterials/Mat_Iroquoid.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemMaterials/Mat_Probertium.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Blueprints/Items/ItemsInWorld/BP_Azos.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemsInWorld/BP_Eis.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
Content/Blueprints/Items/ItemsInWorld/BP_Iroquoid.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Items/ItemsInWorld/BP_Probertium.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Levels/Build.umap (Stored with Git LFS)

Binary file not shown.

BIN
Content/Levels/MerchantPrototype.umap (Stored with Git LFS)

Binary file not shown.

BIN
Content/Levels/Top_layer_level.umap (Stored with Git LFS)

Binary file not shown.

BIN
Environment/MerchantShopAssets/MerchantShop.mb (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Environment/MerchantShopAssets/MerchantShopBlockout.fbx (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Environment/MerchantShopAssets/MerchantShop_high.fbx (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Environment/MerchantShopAssets/MerchantShop_low.fbx (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -54,7 +54,16 @@ public:
bool isDamageBuffItem;
UPROPERTY(EditAnywhere, Category = "Item")
bool isAmmoItemType;
bool isProbertiumType;
UPROPERTY(EditAnywhere, Category = "Item")
bool isEisType;
UPROPERTY(EditAnywhere, Category = "Item")
bool isAzosType;
UPROPERTY(EditAnywhere, Category = "Item")
bool isIroquoidType;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
int32 StackCount = 1;

View File

@ -39,18 +39,48 @@ void UEatableItems::Use(ATempCharacter* Character)
Character->Inventory->RemoveItem(this);
}
if (isAmmoItemType)
if (isProbertiumType)
{
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
if (TurnBaseCombat->ProbertiumResource > 10)
if (TurnBaseCombat->ProbertiumResource < 10)
{
UE_LOG(LogTemp, Warning, TEXT("Probertium eaten"));
TurnBaseCombat->ProbertiumResource += 5;
Character->Inventory->RemoveItem(this);
}
if (TurnBaseCombat->EisResource > 10)
}
if (isEisType)
{
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
if (TurnBaseCombat->EisResource < 10)
{
UE_LOG(LogTemp, Warning, TEXT("Eis eaten"));
TurnBaseCombat->EisResource += 5;
Character->Inventory->RemoveItem(this);
}
}
if (isAzosType)
{
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
if (TurnBaseCombat->AzosResource < 10)
{
UE_LOG(LogTemp, Warning, TEXT("Azos eaten"));
TurnBaseCombat->AzosResource += 5;
Character->Inventory->RemoveItem(this);
}
}
if (isIroquoidType)
{
TurnBaseCombat = GetWorld()->GetGameState<ATurnBaseCombatV2>();
if (TurnBaseCombat->IroquoidResource < 10)
{
UE_LOG(LogTemp, Warning, TEXT("Iroq eaten"));
TurnBaseCombat->IroquoidResource += 5;
Character->Inventory->RemoveItem(this);
}
}
}
}

View File

@ -39,7 +39,7 @@ void ATempCharacter::BeginPlay()
PostProcessVolume = Cast<APostProcessVolume>(AllActorsInScene[0]);
}
Enemy = TEXT("Enemy");
UGameplayStatics::GetAllActorsWithTag(GetWorld(), Enemy, AIActors);
//UGameplayStatics::GetAllActorsWithTag(GetWorld(), Enemy, AIActors);
Ammo = TEXT("Ammo");
NoiseEmitter = Cast<UPawnNoiseEmitterComponent>(this->FindComponentByClass(UPawnNoiseEmitterComponent::StaticClass()));
}
@ -66,27 +66,27 @@ void ATempCharacter::Sneak()
UnCrouch();
isInStealth = false;
if (PostProcessVolume != nullptr) PostProcessVolume->Settings.VignetteIntensity = 0.0f;
for (AActor* Actor : AIActors)
{
USphereComponent* SphereComponent = Actor->FindComponentByClass<USphereComponent>();
if (SphereComponent != nullptr)
{
SphereComponent->SetSphereRadius(40.0f); //default value
}
}
//for (AActor* Actor : AIActors)
//{
// USphereComponent* SphereComponent = Actor->FindComponentByClass<USphereComponent>();
// if (IsValid(SphereComponent))
// {
// SphereComponent->SetSphereRadius(40.0f); //default value
// }
//}
}
else
{
Crouch();
isInStealth = true;
for (AActor* Actor : AIActors)
/*for (AActor* Actor : AIActors)
{
USphereComponent* SphereComponent = Actor->FindComponentByClass<USphereComponent>();
if (IsValid(SphereComponent))
{
SphereComponent->SetSphereRadius(5.0f);
}
}
}*/
if (PostProcessVolume != nullptr) PostProcessVolume->Settings.VignetteIntensity = 0.8f;
}
}

View File

@ -2,6 +2,10 @@
## By Team 2:13
### Trello
https://trello.com/b/umw6SXsi/world-213
### Character Dialogue
https://docs.google.com/spreadsheets/d/13iVCQuveBiaihpREnY145OZi5QT-1sseNoI0A5v8D1o/edit?usp=sharing