Bazaar new minigame which replaces old minigame
This commit is contained in:
@@ -3,23 +3,9 @@
|
||||
|
||||
#include "BazarSettingsDataAsset.h"
|
||||
|
||||
void UBazarSettingsDataAsset::GetModifiersFromEmotionData(const FBazarDialogueEmotionData& InData, int32& OutAnger,
|
||||
int32& OutFear, int32& OutSadness)
|
||||
|
||||
void UBazarSettingsDataAsset::PostLoad()
|
||||
{
|
||||
for (const FBazarEmotionModifier& Mod : InData.EmotionModifiers)
|
||||
{
|
||||
switch (Mod.Emotion)
|
||||
{
|
||||
case EBazarNpcEmotion::Anger:
|
||||
OutAnger = FMath::RandRange(Mod.ValueMin, Mod.ValueMax);
|
||||
break;
|
||||
case EBazarNpcEmotion::Fear:
|
||||
OutFear = FMath::RandRange(Mod.ValueMin, Mod.ValueMax);
|
||||
break;
|
||||
case EBazarNpcEmotion::Sadness:
|
||||
OutSadness = FMath::RandRange(Mod.ValueMin, Mod.ValueMax);
|
||||
break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
Super::PostLoad();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user