From a3ca314c49a9acfd2d27742c7a4998b1fa561c5e Mon Sep 17 00:00:00 2001 From: nsensfel Date: Tue, 28 Aug 2018 16:07:28 +0200 Subject: Converts the weapons, adds glyphs and their boards --- glyph/global.m4.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 glyph/global.m4.conf (limited to 'glyph/global.m4.conf') diff --git a/glyph/global.m4.conf b/glyph/global.m4.conf new file mode 100644 index 0000000..fafef02 --- /dev/null +++ b/glyph/global.m4.conf @@ -0,0 +1,25 @@ +m4_include(__MAKEFILE_DATA_DIR`/modifiers.m4.conf')m4_dnl +m4_define(`__GLYPH_CHOOSE_STYLE', `m4_define(`__GLYPH',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl +m4_define(`__GLYPH_ERLANG_STYLE',`from_id (`$1') -> + #glyph + { + id = $1, + name = <<"$2">>, + attr_mod = $3, + stat_mod = $4, + atk_mod = $5, + def_mod = $6 + }; +')m4_dnl +m4_define(`__GLYPH_JSON_STYLE',` { + "msg": "add_glyph", + "id": $1, + "nam": "$2", + "attm": $3, + "stam": $4, + "atkm": $5, + "defm": $6 + }, +')m4_dnl +m4_define(`__GLYPH_USE_ERLANG_STYLE',`__GLYPH_CHOOSE_STYLE(`__GLYPH_ERLANG_STYLE')__MOD_USE_ERLANG_STYLE()')m4_dnl +m4_define(`__GLYPH_USE_JSON_STYLE',`__GLYPH_CHOOSE_STYLE(`__GLYPH_JSON_STYLE')__MOD_USE_JSON_STYLE()')m4_dnl -- cgit v1.2.3-70-g09d2