Skip to main content

Small Boon

Based on game build 714014 | Last updated: 2026-03-02

Overview

small_boon.lua is a static layout definition for a small boon chamber in the DST world generation system. It specifies the tile layout, object placement, and metadata (e.g., dimensions, orientation) for a compact map area. Unlike typical ECS components, this file is a data structure used by the map/room generation system to instantiate pre-defined chamber layouts.

Usage example

This file is not added as a component to an entity. Instead, it is loaded by the world generation system (e.g., via map/tasks/caves.lua) to construct instances of small boon chambers. Example of how it may be referenced internally:

-- Pseudocode illustration — actual loading handled by map/task systems
local layout = require("map/static_layouts/small_boon")
local inst = CreateEntity()
inst:AddTag("small_boon_chamber")
-- Layout data is used by room spawner logic to position tiles/objects

Dependencies & tags

Components used: None identified
Tags: Adds small_boon_chamber to the generated entity via room spawner logic (not in this file itself).

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version used for encoding.
orientationstring"orthogonal"Map orientation type.
widthnumber8Map width in tiles.
heightnumber8Map height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
tilesetstable...Tileset definitions (e.g., tile texture, size).
layerstable...Layer definitions: tile layers (BG_TILES) and object groups (FG_OBJECTS).
propertiestable{}Map-level properties (empty here).

Main functions

This file defines only a data structure (a Lua table) and exports it as the return value. It contains no executable functions.

Events & listeners

None identified.