From 07e42ea60b15e445222ce5d3f139eb11865b7ffd Mon Sep 17 00:00:00 2001 From: henrisel Date: Thu, 12 Mar 2026 16:27:58 +0200 Subject: [PATCH] treat more words as positive, make serving tray larger --- 3d-generation-pipeline/README.md | 3 --- Assets/_PROJECT/Fonts/Handlee-Regular SDF.asset | 4 ++-- Assets/_PROJECT/Scenes/DeltaBuilding_base.unity | 4 ++-- .../Scripts/ModeGeneration/NPCs/CafeWaiterNPC.cs | 15 +++++++++++++-- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/3d-generation-pipeline/README.md b/3d-generation-pipeline/README.md index 1ffabdba..7981676a 100644 --- a/3d-generation-pipeline/README.md +++ b/3d-generation-pipeline/README.md @@ -29,10 +29,7 @@ * UFO möödalendamise animation/cutscene alguses kui ütleb "delta attacked by ufos" * cafe: * võiks saada hinnata saadud tellimust - * spawnitud order liiga väike, diameter 0.6ks - * kandik ka suuremaks, ülemine osa kõrgemale * "order again" nupp - * "sure", "of course", "okay", "affirmative", "yup" = jah * continuos collision spawnitud orderitele Can't/Won't Do: diff --git a/Assets/_PROJECT/Fonts/Handlee-Regular SDF.asset b/Assets/_PROJECT/Fonts/Handlee-Regular SDF.asset index 7605eefb..e55e2402 100644 --- a/Assets/_PROJECT/Fonts/Handlee-Regular SDF.asset +++ b/Assets/_PROJECT/Fonts/Handlee-Regular SDF.asset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6421dc9247d0a59f310e520c8d2faff42a6963868f92dd5d6a8c19e101d2341e -size 2699147 +oid sha256:95153ddc300e7209a3587d1ecd64d598b2ce9aac7032c824ce16e5bf8f331ce3 +size 2717980 diff --git a/Assets/_PROJECT/Scenes/DeltaBuilding_base.unity b/Assets/_PROJECT/Scenes/DeltaBuilding_base.unity index ab18e320..9d5152bf 100644 --- a/Assets/_PROJECT/Scenes/DeltaBuilding_base.unity +++ b/Assets/_PROJECT/Scenes/DeltaBuilding_base.unity @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9d821bc7017fdff7b17aea37974ec5ac39d24766044cbddae55159eb859a3b68 -size 68693675 +oid sha256:efa8201d58c106498933eb430a1121221c436ab6404490b94cf4672b1b584d87 +size 68694459 diff --git a/Assets/_PROJECT/Scripts/ModeGeneration/NPCs/CafeWaiterNPC.cs b/Assets/_PROJECT/Scripts/ModeGeneration/NPCs/CafeWaiterNPC.cs index af2b6d2c..1886a9b9 100644 --- a/Assets/_PROJECT/Scripts/ModeGeneration/NPCs/CafeWaiterNPC.cs +++ b/Assets/_PROJECT/Scripts/ModeGeneration/NPCs/CafeWaiterNPC.cs @@ -122,7 +122,7 @@ public class CafeWaiterNPC : NPCController } else if (state == 2) { fmodWhisperBridge.DeactivateRecording(); - bool positiveAnswer = playerText.ToLower().Contains("ye") || playerText.ToLower().Contains("correct") | playerText.ToLower().Contains("right"); + bool positiveAnswer = IsPlayerAnswerPositive(playerText); SpeakVoiceLine(positiveAnswer ? 2 : 3); // Flip notepad back notepad.transform.DOLocalRotate(notepadOriginalRotation, 0.5f).OnComplete(() => @@ -159,7 +159,18 @@ public class CafeWaiterNPC : NPCController } } - + private bool IsPlayerAnswerPositive(string playerText) + { + string lower = playerText.ToLower(); + return lower.Contains("ye") + || lower.Contains("correct") + || lower.Contains("right") + || lower.Contains("sure") + || lower.Contains("of course") + || lower.Contains("okay") + || lower.Contains("yup") + || lower.Contains("affirmative"); + } private async void BringFood() {