diff --git a/.gitignore b/.gitignore index 3c335ae..897a9d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +Assets/_Recovery/* + # This .gitignore file should be placed at the root of your Unity project directory # # Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore diff --git a/Assets/LevelData/j_sad.json b/Assets/LevelData/j_sad.json new file mode 100644 index 0000000..f96a49b --- /dev/null +++ b/Assets/LevelData/j_sad.json @@ -0,0 +1,49 @@ +{ + "doors": [ + { + "type": "DEFAULT", + "action": "DEATH" + }, + { + "type": "DEFAULT", + "action": "DEATH" + }, + { + "type": "DEFAULT", + "action": "LIFE" + } + ], + "guards": [ + { + "type": "BASE", + "action": "JOKER" + } + ], + "doorsmods": [ + "#LEFT", + "#CENTER", + "#RIGHT" + ], + "introdialog": "I'm too sad to be of any use", + "dialog": { + "a horse walks into a therapist's office": { + "and says it feels hoarse": "$ugh, so basic", + "and says nothing, because horses can't talk": "$that just makes me sadder" + }, + "a horse walks into a bar": { + "and asks": { + "where the lavatory can be found": "$thats just normal?" + }, + "and orders a whiskey": { + "the bartender says": { + "we don't serve horses here": "$Oh poor horse, probably feels like me", + "that'll be five dollars": "$Inflation, in these holy lands!", + "why the long face": "$haha, good one. Alright, fine, you need the CDOOR door" + } + } + }, + "two horses walk into a bar": { + "one says ouch": "$I cannot comprehend two horses" + } + } +} \ No newline at end of file diff --git a/Assets/LevelData/j_sad.json.meta b/Assets/LevelData/j_sad.json.meta new file mode 100644 index 0000000..f024081 --- /dev/null +++ b/Assets/LevelData/j_sad.json.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 14d89d6852d448e5818c172b6e0137f6 +timeCreated: 1787831699 \ No newline at end of file diff --git a/Assets/LevelData/k_life.json b/Assets/LevelData/k_life.json new file mode 100644 index 0000000..47b55e1 --- /dev/null +++ b/Assets/LevelData/k_life.json @@ -0,0 +1,44 @@ +{ + "doors": [ + { + "type": "DEFAULT", + "action": "LIFE" + }, + { + "type": "DEFAULT", + "action": "LIFE" + } + ], + "guards": [ + { + "type": "BASE", + "action": "LIAR" + }, + { + "type": "BASE", + "action": "TRUTHER" + } + ], + "guardsmods": [ + "HAT", + "SHORT" + ], + "doorsmods": [ + "BLUE", + "RED" + ], + "globalmod": "HIDE", + "introdialog": "Doesn't seem like anything is off here...", + "dialog": { + "is": { + "DOORS": { + "safe": "DS#safe", + "unsafe": "DS#safe!" + }, + "GUARDS_YOU": { + "short": "GS#short", + "wearing a hat": "GS#hat" + } + } + } +} \ No newline at end of file diff --git a/Assets/LevelData/k_life.json.meta b/Assets/LevelData/k_life.json.meta new file mode 100644 index 0000000..540ed95 --- /dev/null +++ b/Assets/LevelData/k_life.json.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: df749150cf624835a9d584977460e706 +timeCreated: 1787832487 \ No newline at end of file diff --git a/Assets/Scenes/MainMenu.unity b/Assets/Scenes/MainMenu.unity index 3515abc..39512b0 100644 --- a/Assets/Scenes/MainMenu.unity +++ b/Assets/Scenes/MainMenu.unity @@ -668,6 +668,8 @@ MonoBehaviour: - {fileID: 4900000, guid: 952c1e81a6ca4c5ca91390ad12e714ab, type: 3} - {fileID: 4900000, guid: dc3e4e9757d445debb596fe2f5fad7a4, type: 3} - {fileID: 4900000, guid: 3f7768c50f1e44d6b0965af3ba420fde, type: 3} + - {fileID: 4900000, guid: 14d89d6852d448e5818c172b6e0137f6, type: 3} + - {fileID: 4900000, guid: df749150cf624835a9d584977460e706, type: 3} parlorPuzzles: {fileID: 4900000, guid: 665a3d6096294d17ab0ea2e2db862bbb, type: 3} --- !u!4 &516359711 Transform: diff --git a/Assets/Scripts/DialogManager.cs b/Assets/Scripts/DialogManager.cs index 5367e80..d29b446 100644 --- a/Assets/Scripts/DialogManager.cs +++ b/Assets/Scripts/DialogManager.cs @@ -257,7 +257,10 @@ public class DialogManager : Singleton //now get a response from the guard being questioned response = currentGuard.Answer(FullQuestion).ToRandomString(); } - + + + var cdoor = LevelLoader.Instance.Doors.First((d) => d.type == "LIFE"); + response = response.Replace("CDOOR", cdoor.mod.Replace("#","")); response = response.Replace("$", ""); diff --git a/Assets/Scripts/LevelLoader.cs b/Assets/Scripts/LevelLoader.cs index 173a983..45f012b 100644 --- a/Assets/Scripts/LevelLoader.cs +++ b/Assets/Scripts/LevelLoader.cs @@ -33,6 +33,9 @@ public class LevelLoader : Singleton data.doors.Shuffle(); data.guards.Shuffle(); + //the global modifier, refrenced everywhere + GlobalModifier = data.globalmod; + //maybe in wrong place, idc at this point engine almost done //get parlor puzzles var parlorText = GlobalStateManager.Instance.parlorPuzzles.ToString(); @@ -124,8 +127,6 @@ public class LevelLoader : Singleton }); } - - GlobalModifier = data.globalmod; } diff --git a/Assets/Scripts/PauseController.cs b/Assets/Scripts/PauseController.cs index 4a52263..c568a1a 100644 --- a/Assets/Scripts/PauseController.cs +++ b/Assets/Scripts/PauseController.cs @@ -13,6 +13,7 @@ public class PauseController : MonoBehaviour public void GoBackToMenu(int intended) { + TogglePause(false); GlobalStateManager.Instance.MenuIntended = intended; SceneManager.LoadScene(0); diff --git a/Assets/Scripts/StatusManager.cs b/Assets/Scripts/StatusManager.cs index c27f668..9a7d157 100644 --- a/Assets/Scripts/StatusManager.cs +++ b/Assets/Scripts/StatusManager.cs @@ -25,11 +25,11 @@ public class StatusManager : Singleton public void PopulatePanels() { - PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast().ToList()); - PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast().ToList()); + PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast().ToList(),LevelLoader.Instance.GlobalModifier == "HIDE"); + PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast().ToList(), false); } - private void PopulatePanel(Transform panel, GameObject template, List items) + private void PopulatePanel(Transform panel, GameObject template, List items, bool hide) { foreach (Transform child in panel) { @@ -43,8 +43,17 @@ public class StatusManager : Singleton var titleMesh = obj.transform.FindChildRecursive("TITLE").GetComponent(); var descMesh = obj.transform.FindChildRecursive("DESC").GetComponent(); - titleMesh.text = item.GetName(); - descMesh.text = item.GetDescription(); + if (hide) + { + titleMesh.text = "???"; + descMesh.text = "???"; + } + else + { + titleMesh.text = item.GetName(); + descMesh.text = item.GetDescription(); + } + } } diff --git a/Assets/_Recovery.meta b/Assets/_Recovery.meta new file mode 100644 index 0000000..dcaafe0 --- /dev/null +++ b/Assets/_Recovery.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ecdc335139674c2fa9c766ce13a30c3e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: