From 37b983fb5ebfaf08ca70a4e983bca4831bcaff7a Mon Sep 17 00:00:00 2001
From: CandyCrystal <23560850+CandyCrystal@users.noreply.github.com>
Date: Sun, 4 Apr 2021 16:35:07 +0200
Subject: [PATCH 1/6] Update royal_crypt.logic

---
 tmc/logic/royal_crypt.logic | 58 +++++++++++++++++++++++++++++++++----
 1 file changed, 52 insertions(+), 6 deletions(-)

diff --git a/tmc/logic/royal_crypt.logic b/tmc/logic/royal_crypt.logic
index 135064a..94eaefd 100644
--- a/tmc/logic/royal_crypt.logic
+++ b/tmc/logic/royal_crypt.logic
@@ -1,7 +1,53 @@
 area RoyalCrypt:
-  room Entrance
-  room KeyPuzzles
-  room KingsGrave
-  room LanternRoom
-  room MushroomPit
-  room RopeCorridor
+  room Entrance:
+    node Main:
+      enemy Gibdos
+      door North
+      door South
+    node MainPostEnemies:
+      item Left
+      item Right
+    Main <-> MainPostEnemies: defeat Gibdos
+  room KeyPuzzles:
+    node Main:
+      door South
+    node North:
+      door North
+    Main <-> North: flag KeyBlocksUnlocked
+    node LeftChest:
+      chest Left
+    node RightChest:
+      chest Right
+    Main <-> LeftChest: item CanSplit3
+    Main <-> RightChest: item CanSplit3
+  room KingsGrave:
+    node Main:
+      chest Element
+      door South
+      entrance Teleport
+  room LanternRoom:
+    node Main:
+      door South
+      exit North
+    node Fight:
+      enemy Gibdos
+    node PostFight:
+      entrance North
+    Main -> Fight: item Lantern
+    Fight -> PostFight: defeat Gibdo
+    Main <-> PostFight: defeat Gibdo
+  room MushroomPit:
+    node North:
+      exit North
+    node NorthEntrance:
+      entrance North
+    North -> NorthEntrance: flag DoorUnlocked
+    node South:
+      door South
+    South -> North
+    North -> South: ( item GustJar | item Cape )
+  room RopeCorridor:
+    node Main:
+      door North
+      door South
+      enemy Ropes

From 69fdd38d080311329b30235be0b95a4ba9839acc Mon Sep 17 00:00:00 2001
From: CandyCrystal <candy.crystal@outlook.com>
Date: Wed, 21 Apr 2021 15:46:41 +0200
Subject: [PATCH 2/6] Update royal_crypt.logic

---
 tmc/logic/royal_crypt.logic | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tmc/logic/royal_crypt.logic b/tmc/logic/royal_crypt.logic
index 94eaefd..7eee26d 100644
--- a/tmc/logic/royal_crypt.logic
+++ b/tmc/logic/royal_crypt.logic
@@ -11,9 +11,11 @@ area RoyalCrypt:
   room KeyPuzzles:
     node Main:
       door South
+      lock Block1
+      lock Block2
     node North:
       door North
-    Main <-> North: flag KeyBlocksUnlocked
+    Main <-> North: ( open Block1 & open Block2 )
     node LeftChest:
       chest Left
     node RightChest:
@@ -39,9 +41,10 @@ area RoyalCrypt:
   room MushroomPit:
     node North:
       exit North
+      lock Door
     node NorthEntrance:
       entrance North
-    North -> NorthEntrance: flag DoorUnlocked
+    North -> NorthEntrance: open Door
     node South:
       door South
     South -> North

From dd35c739cdd618a51855ad8a5e20af101e576147 Mon Sep 17 00:00:00 2001
From: CandyCrystal <candy.crystal@outlook.com>
Date: Wed, 19 May 2021 15:57:27 +0200
Subject: [PATCH 3/6] Update royal_crypt.logic

This one should be fully completed now
---
 tmc/logic/royal_crypt.logic | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tmc/logic/royal_crypt.logic b/tmc/logic/royal_crypt.logic
index 7eee26d..33adc51 100644
--- a/tmc/logic/royal_crypt.logic
+++ b/tmc/logic/royal_crypt.logic
@@ -5,8 +5,8 @@ area RoyalCrypt:
       door North
       door South
     node MainPostEnemies:
-      item Left
-      item Right
+      chest Left
+      chest Right
     Main <-> MainPostEnemies: defeat Gibdos
   room KeyPuzzles:
     node Main:

From 3ac42f20166faaf4c2afd4b0ede10f9eecc2e6a4 Mon Sep 17 00:00:00 2001
From: CandyCrystal <candy.crystal@outlook.com>
Date: Sun, 15 Oct 2023 15:52:58 +0200
Subject: [PATCH 4/6] change entrance/exit to warp/target

---
 tmc/logic/royal_crypt.logic | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tmc/logic/royal_crypt.logic b/tmc/logic/royal_crypt.logic
index 33adc51..d7d863e 100644
--- a/tmc/logic/royal_crypt.logic
+++ b/tmc/logic/royal_crypt.logic
@@ -26,24 +26,24 @@ area RoyalCrypt:
     node Main:
       chest Element
       door South
-      entrance Teleport
+      warp Teleport
   room LanternRoom:
     node Main:
       door South
-      exit North
+      target North
     node Fight:
       enemy Gibdos
     node PostFight:
-      entrance North
+      warp North
     Main -> Fight: item Lantern
     Fight -> PostFight: defeat Gibdo
     Main <-> PostFight: defeat Gibdo
   room MushroomPit:
     node North:
-      exit North
+      target North
       lock Door
     node NorthEntrance:
-      entrance North
+      warp North
     North -> NorthEntrance: open Door
     node South:
       door South

From 41aeb6cc797adf1e291d950f14132379c0cf7edc Mon Sep 17 00:00:00 2001
From: CandyCrystal <candy.crystal@outlook.com>
Date: Sun, 15 Oct 2023 17:58:07 +0200
Subject: [PATCH 5/6] Change defeat to kill

Could not validate with logic-editor because missing lock
---
 tmc/logic/royal_crypt.logic | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tmc/logic/royal_crypt.logic b/tmc/logic/royal_crypt.logic
index d7d863e..dd4dd41 100644
--- a/tmc/logic/royal_crypt.logic
+++ b/tmc/logic/royal_crypt.logic
@@ -7,7 +7,7 @@ area RoyalCrypt:
     node MainPostEnemies:
       chest Left
       chest Right
-    Main <-> MainPostEnemies: defeat Gibdos
+    Main <-> MainPostEnemies: kill Gibdos
   room KeyPuzzles:
     node Main:
       door South
@@ -36,8 +36,8 @@ area RoyalCrypt:
     node PostFight:
       warp North
     Main -> Fight: item Lantern
-    Fight -> PostFight: defeat Gibdo
-    Main <-> PostFight: defeat Gibdo
+    Fight -> PostFight: kill Gibdo
+    Main <-> PostFight: kill Gibdo
   room MushroomPit:
     node North:
       target North

From 0f1fdde92146daba0200594336f6736be2a90b20 Mon Sep 17 00:00:00 2001
From: Ibot02 <jtp.jtp@gmx.de>
Date: Sun, 11 Aug 2024 16:46:50 +0200
Subject: [PATCH 6/6] Royal_Crypt: Fix

Co-authored-By: Henny022 <git@henny022.de>
---
 tmc/logic/royal_crypt.logic | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/tmc/logic/royal_crypt.logic b/tmc/logic/royal_crypt.logic
index dd4dd41..9746d31 100644
--- a/tmc/logic/royal_crypt.logic
+++ b/tmc/logic/royal_crypt.logic
@@ -4,40 +4,45 @@ area RoyalCrypt:
       enemy Gibdos
       door North
       door South
-    node MainPostEnemies:
+    node PostEnemies:
       chest Left
       chest Right
-    Main <-> MainPostEnemies: kill Gibdos
+    Main -> PostEnemies: ( kill Gibdos | item Lantern )
   room KeyPuzzles:
     node Main:
       door South
       lock Block1
+    node HalfNorth:
+      lock Block1
       lock Block2
     node North:
+      lock Block2
       door North
-    Main <-> North: ( open Block1 & open Block2 )
+    Main <-> HalfNorth: open Block1
+    HalfNorth <-> North: open Block2
     node LeftChest:
       chest Left
     node RightChest:
       chest Right
-    Main <-> LeftChest: item CanSplit3
-    Main <-> RightChest: item CanSplit3
+    Main -> LeftChest: ( item CanSplit2 | item CanSplit3 | item CanSplit4 )
+    Main -> RightChest: ( item CanSplit2 | item CanSplit3 | item CanSplit4 )
   room KingsGrave:
     node Main:
-      chest Element
+      chest Prize
       door South
+    node Warp:
       warp Teleport
+    Main -> Warp: once
   room LanternRoom:
     node Main:
       door South
-      target North
     node Fight:
       enemy Gibdos
-    node PostFight:
-      warp North
+    node North:
+      door North
     Main -> Fight: item Lantern
-    Fight -> PostFight: kill Gibdo
-    Main <-> PostFight: kill Gibdo
+    Main -> North: kill Gibdo
+    North -> Main
   room MushroomPit:
     node North:
       target North