From 345251f20401a71f7e7e00f4810b92af39ad4395 Mon Sep 17 00:00:00 2001 From: troido Date: Sat, 26 Sep 2020 00:05:03 +0200 Subject: use flags for the whole room instead of room permissions the flags on a tile are the union of the flags from the entity on that tile and the room flags --- content/encyclopediae/default_encyclopedia.json | 2 +- content/maps/_home.json | 2 +- content/maps/begin.json | 2 +- content/maps/broom.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'content') diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json index 9de0470..2c88f45 100644 --- a/content/encyclopediae/default_encyclopedia.json +++ b/content/encyclopediae/default_encyclopedia.json @@ -155,7 +155,7 @@ }, "items": { "pebble": {}, - "stone": {"action": {"build": ["builtwall", ["Floor"], ["Blocking"]]}}, + "stone": {"action": {"build": ["builtwall", ["Floor", "Build"], ["Blocking"]]}}, "sword": {"action": {"equip": { "slot": "hand", "stats": {"strength": 5} diff --git a/content/maps/_home.json b/content/maps/_home.json index 10a43b0..7d67c85 100644 --- a/content/maps/_home.json +++ b/content/maps/_home.json @@ -2,7 +2,7 @@ "width": 64, "height": 64, "spawn": [0,0], - "permissions": {"build": true}, + "flags": ["Build"], "places": {}, "field":[ "%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,", diff --git a/content/maps/begin.json b/content/maps/begin.json index 0a7e236..e01e866 100644 --- a/content/maps/begin.json +++ b/content/maps/begin.json @@ -2,7 +2,7 @@ "width": 126, "height": 64, "spawn": [15, 30], - "permissions": {"build": true}, + "flags": ["Build"], "places": { "stairdown": [37, 33], "caveentrance": [31, 50], diff --git a/content/maps/broom.json b/content/maps/broom.json index ed7e7ca..6effa07 100644 --- a/content/maps/broom.json +++ b/content/maps/broom.json @@ -2,7 +2,7 @@ "width": 42, "height": 23, "spawn": [5, 15], - "permissions": {"build": true}, + "flags": ["Build"], "places": { "northentry": [6, 1] }, -- cgit