From c705ae942573984784ef501bf8198f61f5206ddd Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 9 Jul 2026 05:27:10 -0400 Subject: refactor: simplify yaml, remove support for old scalar fields --- data/rooms/intro/1002.yaml | 6 ++++-- data/rooms/intro/1003.yaml | 30 +++++++++++++++--------------- data/rooms/intro/2001.yaml | 22 ++++++++++++---------- data/rooms/intro/2006.yaml | 9 ++++++--- 4 files changed, 37 insertions(+), 30 deletions(-) (limited to 'data/rooms/intro') diff --git a/data/rooms/intro/1002.yaml b/data/rooms/intro/1002.yaml index c7195ea..ca34347 100644 --- a/data/rooms/intro/1002.yaml +++ b/data/rooms/intro/1002.yaml @@ -42,9 +42,11 @@ objects: text: "The pilot stands straight as if about to escort royalty looking down his nose a bit at the passengers. He is quickly and professionally checking tickets." - name: building aliases: [processing] - description: "A building with no door on this side that looks like a giant cup of tea spilled towards you. It's built from large chunks of gray rock that must've come from the surface of Vesta." + description: + - text: "A building with no door on this side that looks like a giant cup of tea spilled towards you. It's built from large chunks of gray rock that must've come from the surface of Vesta." - name: sign - description: "The sign simply says 'Processing' in bold red letters. Beneath in smaller text it says 'Welcome to Vesta', seemingly added afterwards to try to give the sign some warmth." + description: + - text: "The sign simply says 'Processing' in bold red letters. Beneath in smaller text it says 'Welcome to Vesta', seemingly added afterwards to try to give the sign some warmth." exits: up: room: 1001 diff --git a/data/rooms/intro/1003.yaml b/data/rooms/intro/1003.yaml index 77cb096..c6d3d8a 100644 --- a/data/rooms/intro/1003.yaml +++ b/data/rooms/intro/1003.yaml @@ -2,26 +2,26 @@ id: 1003 name: Processing Building color: "" description: - - text: A short tunnel-like building with queue ropes and desks on each side, and signs directing "Departures" and "Arrivals" above each. An attendant stands doing paperwork on the Departures side. No one is on the Arrivals side. +- text: A short tunnel-like building with queue ropes and desks on each side, and signs directing "Departures" and "Arrivals" above each. An attendant stands doing paperwork on the Departures side. No one is on the Arrivals side. exits: - north: - room: 1004 - condition: - player_flag: 1003_talked - south: - room: 1002 + north: + room: 1004 + condition: + player_flag: 1003_talked + south: + room: 1002 objects: [] item_spawns: [] mobs: - - spaceport_attendant +- id: spaceport_attendant on_enter: - - condition: - player_flag: 1003_first_time - not: true - delay: 5 - message: "{bold}The ground rumbles as the shuttle departs the pad behind you!{/}" - set_player_flags: - 1003_first_time: true +- condition: + player_flag: 1003_first_time + not: true + delay: 5 + message: "{bold}The ground rumbles as the shuttle departs the pad behind you!{/}" + set_player_flags: + 1003_first_time: true hazard: "" block_transport: false triggers: [] diff --git a/data/rooms/intro/2001.yaml b/data/rooms/intro/2001.yaml index 5b79018..eb7bd59 100644 --- a/data/rooms/intro/2001.yaml +++ b/data/rooms/intro/2001.yaml @@ -1,4 +1,5 @@ -block_transport: false +id: 2001 +name: Test Room color: "" description: - text: It's a test room @@ -9,8 +10,14 @@ exits: room: 2006 southeast: room: 2005 -hazard: "" -id: 2001 + west: + room: 1001 +objects: + - name: hidden guy + hidden: true + description: + - text: YOU FOUND HIM + - id: tree item_spawns: - id: bronze_axe quantity: 1 @@ -23,12 +30,7 @@ item_spawns: respawn_ticks: 1 mobs: - id: man -name: Test Room -objects: - - description: - - text: YOU FOUND HIM - hidden: true - name: hidden guy - - id: tree on_enter: [] +hazard: "" +block_transport: false triggers: [] diff --git a/data/rooms/intro/2006.yaml b/data/rooms/intro/2006.yaml index 74dd657..7ab682f 100644 --- a/data/rooms/intro/2006.yaml +++ b/data/rooms/intro/2006.yaml @@ -1,5 +1,8 @@ name: "Test Room" -description: "It's a test room" +description: + - text: "It's a test room" exits: - east: 2005 - north: 2001 + east: + room: 2005 + north: + room: 2001 -- cgit v1.2.3