| summaryrefslogtreecommitdiff |
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-07-13 16:01:16 +0200 |
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-07-13 16:01:16 +0200 |
| commit | ea725eaeda94d47b4d1e4cf5cc0029f3d99760f9 (patch) | |
| tree | 716657217aa3edc674993af5d76ea69b8efe2f12 /tile | |
Adds current data.
Diffstat (limited to 'tile')
| -rw-r--r-- | tile/global.m4.conf | 25 | ||||
| -rw-r--r-- | tile/grassland.m4d | 5 |
2 files changed, 30 insertions, 0 deletions
diff --git a/tile/global.m4.conf b/tile/global.m4.conf new file mode 100644 index 0000000..92a5351 --- /dev/null +++ b/tile/global.m4.conf @@ -0,0 +1,25 @@ +m4_define(`__TILE_CHOOSE_STYLE', `m4_define(`__TILE_CLASS',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl +m4_define(`__TILE_COST_WHEN_OCCUPIED', 201)m4_dnl +m4_define(`__TILE_COST_WHEN_OOB', 255)m4_dnl +m4_define(`__TILE_CLASS_ERLANG_STYLE',`from_id (`$1') -> + #tile + { + id = $1, + name = <<"[__TILE_CATEGORY_NAME] $2">>, + cost = $3, + class_range_min = $4, + class_range_max = $5 + };')m4_dnl +m4_define(`__TILE_CLASS_ERLANG_SELECT_STYLE',` N when ((N >= $4) and (N =< $5)) -> $1;')m4_dnl +m4_define(`__TILE_CLASS_JSON_STYLE',` { + "msg": "add_tile", + "id": $1, + "nam": "[__TILE_CATEGORY_NAME] $2", + "ct": $3, + "rmi": $4, + "rma": $5 + },')m4_dnl +m4_define(`__TILE_CATEGORY',`m4_define(`__TILE_CATEGORY_NAME', `$1')')m4_dnl +m4_define(`__TILE_CLASS_USE_ERLANG_STYLE',`__TILE_CHOOSE_STYLE(`__TILE_CLASS_ERLANG_STYLE')')m4_dnl +m4_define(`__TILE_CLASS_USE_ERLANG_SELECT_STYLE',`__TILE_CHOOSE_STYLE(`__TILE_CLASS_ERLANG_SELECT_STYLE')')m4_dnl +m4_define(`__TILE_CLASS_USE_JSON_STYLE',`__TILE_CHOOSE_STYLE(`__TILE_CLASS_JSON_STYLE')')m4_dnl diff --git a/tile/grassland.m4d b/tile/grassland.m4d new file mode 100644 index 0000000..7d4c943 --- /dev/null +++ b/tile/grassland.m4d @@ -0,0 +1,5 @@ +__TILE_CATEGORY(`Grassland')m4_dnl +__TILE_CLASS(0, `Grass', 6, 0, 0) +__TILE_CLASS(1, `Mushroom Infestation', 12, 1, 1) +__TILE_CLASS(2, `Tree Remains', 24, 2, 2) +__TILE_CLASS(3, `Clear Water', __TILE_COST_WHEN_OCCUPIED, 3, 17) |


