From a3ae1e6aad696f584d138d9363c05dedff136a65 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 21 Jun 2026 22:19:17 -0400 Subject: feat: safespot system implemented --- data/help/automap.yaml | 4 ++-- data/help/hide.yaml | 15 +++++++++++++++ data/help/map.yaml | 6 +++--- data/help/map_height.yaml | 10 ++++++++++ data/help/map_padding.yaml | 13 +++++++++++++ data/help/map_width.yaml | 10 ++++++++++ data/help/mapheight.yaml | 10 ---------- data/help/mappadding.yaml | 13 ------------- data/help/mapwidth.yaml | 10 ---------- data/help/option.yaml | 2 +- data/help/safespot.yaml | 38 ++++++++++++++++++++++++++++++++++++++ data/items/ammo/adamant_arrow.yaml | 1 + data/items/ammo/bronze_arrow.yaml | 1 + data/items/ammo/iron_arrow.yaml | 1 + data/items/ammo/mithril_arrow.yaml | 1 + data/items/ammo/rune_arrow.yaml | 1 + data/items/ammo/steel_arrow.yaml | 1 + data/objects/fence_post.yaml | 18 ++++++++++++++++++ data/objects/rock_outcrop.yaml | 22 ++++++++++++++++++++++ data/objects/simple_rock.yaml | 18 ++++++++++++++++++ data/objects/tutorial_lever.yaml | 22 ++++++++++++++++++++++ data/rooms/town/4.yaml | 10 +++++++++- 22 files changed, 187 insertions(+), 40 deletions(-) create mode 100644 data/help/hide.yaml create mode 100644 data/help/map_height.yaml create mode 100644 data/help/map_padding.yaml create mode 100644 data/help/map_width.yaml delete mode 100644 data/help/mapheight.yaml delete mode 100644 data/help/mappadding.yaml delete mode 100644 data/help/mapwidth.yaml create mode 100644 data/help/safespot.yaml create mode 100644 data/objects/fence_post.yaml create mode 100644 data/objects/rock_outcrop.yaml create mode 100644 data/objects/simple_rock.yaml create mode 100644 data/objects/tutorial_lever.yaml (limited to 'data') diff --git a/data/help/automap.yaml b/data/help/automap.yaml index 32b84cb..3cd1a2f 100644 --- a/data/help/automap.yaml +++ b/data/help/automap.yaml @@ -9,5 +9,5 @@ description: | When enabled, the map command output is printed after each room movement, so you always know where you are. - Map size and padding are controlled by the mapwidth, - mapheight, and mappadding options. + Map size and padding are controlled by the map_width, + map_height, and map_padding options. diff --git a/data/help/hide.yaml b/data/help/hide.yaml new file mode 100644 index 0000000..eb2d27a --- /dev/null +++ b/data/help/hide.yaml @@ -0,0 +1,15 @@ +name: "hide" +category: "Skills" +description: | + Hide behind a safespot object to block melee attacks. + + Usage: hide + hide behind + safespot + + Hiding takes 1 tick out of combat or 4 ticks while fighting. If a mob + hits you during repositioning in combat, the hide attempt fails. + + Leave cover with: unhide (or unsafespot) + + See also: help safespot, help combat diff --git a/data/help/map.yaml b/data/help/map.yaml index 3b4917a..7ca03a2 100644 --- a/data/help/map.yaml +++ b/data/help/map.yaml @@ -9,11 +9,11 @@ description: | centered on your current location. You are shown as @. Map size is controlled by: - option mapwidth (default 30) - option mapheight (default 20) + option map_width (default 30) + option map_height (default 20) Padding/trimming is controlled by: - option mappadding + option map_padding none - strip blank lines + left-trim (default) x - strip blank lines only y - left-trim only diff --git a/data/help/map_height.yaml b/data/help/map_height.yaml new file mode 100644 index 0000000..32daf0a --- /dev/null +++ b/data/help/map_height.yaml @@ -0,0 +1,10 @@ +name: "map_height" +category: "Options" +description: | + Height of the full map display in characters. + + Type: integer + Default: 20 + + Controls how many rows tall the map command + output is. Must be at least 5. diff --git a/data/help/map_padding.yaml b/data/help/map_padding.yaml new file mode 100644 index 0000000..7772226 --- /dev/null +++ b/data/help/map_padding.yaml @@ -0,0 +1,13 @@ +name: "map_padding" +category: "Options" +description: | + Controls how the map command trims its output. + + Type: string + Default: none + Values: none, x, y, xy + + none - Strip blank rows and left-trim whitespace + x - Strip blank rows only (horizontal trim) + y - Left-trim whitespace only (vertical trim) + xy - No trimming (raw output) diff --git a/data/help/map_width.yaml b/data/help/map_width.yaml new file mode 100644 index 0000000..3957bed --- /dev/null +++ b/data/help/map_width.yaml @@ -0,0 +1,10 @@ +name: "map_width" +category: "Options" +description: | + Width of the full map display in characters. + + Type: integer + Default: 30 + + Controls how many columns wide the map command + output is. Must be at least 5. diff --git a/data/help/mapheight.yaml b/data/help/mapheight.yaml deleted file mode 100644 index ee3920b..0000000 --- a/data/help/mapheight.yaml +++ /dev/null @@ -1,10 +0,0 @@ -name: "mapheight" -category: "Options" -description: | - Height of the full map display in characters. - - Type: integer - Default: 20 - - Controls how many rows tall the map command - output is. Must be at least 5. diff --git a/data/help/mappadding.yaml b/data/help/mappadding.yaml deleted file mode 100644 index 201ef53..0000000 --- a/data/help/mappadding.yaml +++ /dev/null @@ -1,13 +0,0 @@ -name: "mappadding" -category: "Options" -description: | - Controls how the map command trims its output. - - Type: string - Default: none - Values: none, x, y, xy - - none - Strip blank rows and left-trim whitespace - x - Strip blank rows only (horizontal trim) - y - Left-trim whitespace only (vertical trim) - xy - No trimming (raw output) diff --git a/data/help/mapwidth.yaml b/data/help/mapwidth.yaml deleted file mode 100644 index 7e372ef..0000000 --- a/data/help/mapwidth.yaml +++ /dev/null @@ -1,10 +0,0 @@ -name: "mapwidth" -category: "Options" -description: | - Width of the full map display in characters. - - Type: integer - Default: 30 - - Controls how many columns wide the map command - output is. Must be at least 5. diff --git a/data/help/option.yaml b/data/help/option.yaml index 9fdcf7f..75b1794 100644 --- a/data/help/option.yaml +++ b/data/help/option.yaml @@ -15,7 +15,7 @@ description: | Examples: option tinymap off option color ansi - option mapwidth 50 + option map_width 50 Use help