summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-08-28 16:07:28 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-08-28 16:07:28 +0200
commita3ca314c49a9acfd2d27742c7a4998b1fa561c5e (patch)
tree4b337297c63f0166ca5bccd91186d436237cf7fa /glyph_board/global.m4.conf
parent92c21e348391af5fc3c2d68af0e6c6bfd7a40b03 (diff)
Converts the weapons, adds glyphs and their boards
Diffstat (limited to 'glyph_board/global.m4.conf')
-rw-r--r--glyph_board/global.m4.conf37
1 files changed, 37 insertions, 0 deletions
diff --git a/glyph_board/global.m4.conf b/glyph_board/global.m4.conf
new file mode 100644
index 0000000..5965616
--- /dev/null
+++ b/glyph_board/global.m4.conf
@@ -0,0 +1,37 @@
+m4_include(__MAKEFILE_DATA_DIR`/modifiers.m4.conf')m4_dnl
+m4_define(`__GLYPH_BOARD_CHOOSE_STYLE', `m4_define(`__GLYPH_BOARD',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl
+m4_define(`__GLYPH_SLOT_LIST',``[''$1`` 0 ]'')m4_dnl
+m4_define(`__GLYPH_SLOT', $1``, '')m4_dnl
+m4_dnl
+m4_dnl
+m4_dnl
+m4_define(`__GLYPH_SLOT_LIST_ERLANG_STYLE',``[''$1`` 0 ]'')m4_dnl
+m4_define(`__GLYPH_SLOT_ERLANG_STYLE', $1``, '')m4_dnl
+m4_define(`__GLYPH_BOARD_ERLANG_STYLE',`from_id (`$1') ->
+ #glyph_board
+ {
+ id = $1,
+ name = <<"$2">>,
+ slots = $3,
+ attr_mod = $4,
+ stat_mod = $5,
+ atk_mod = $6,
+ def_mod = $7
+ };
+')m4_dnl
+m4_define(`__GLYPH_BOARD_USE_ERLANG_STYLE',`__GLYPH_BOARD_CHOOSE_STYLE(`__GLYPH_BOARD_ERLANG_STYLE')__MOD_USE_ERLANG_STYLE()')m4_dnl
+m4_dnl
+m4_dnl
+m4_dnl
+m4_define(`__GLYPH_BOARD_JSON_STYLE',` {
+ "msg": "add_glyph_board",
+ "id": $1,
+ "nam": "$2",
+ "slot": $3,
+ "attm": $4,
+ "stam": $5,
+ "atkm": $6,
+ "defm": $7
+ },
+')m4_dnl
+m4_define(`__GLYPH_BOARD_USE_JSON_STYLE',`__GLYPH_BOARD_CHOOSE_STYLE(`__GLYPH_BOARD_JSON_STYLE')__MOD_USE_JSON_STYLE()')m4_dnl