| 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 /armor/global.m4.conf | |
Adds current data.
Diffstat (limited to 'armor/global.m4.conf')
| -rw-r--r-- | armor/global.m4.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/armor/global.m4.conf b/armor/global.m4.conf new file mode 100644 index 0000000..6a901a3 --- /dev/null +++ b/armor/global.m4.conf @@ -0,0 +1,21 @@ +m4_define(`__ARMOR_CHOOSE_STYLE', `m4_define(`__ARMOR',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl +m4_define(`__ARMOR_ERLANG_STYLE',`from_id (`$1') -> + #armor + { + id = $1, + name = <<"$2">>, + category = $3, + coef = $4 + }; +')m4_dnl +m4_define(`__ARMOR_CATEGORY_TO_CHAR',m4_ifelse($1,kinetic,j,$1,leather,l,$1,chain,c,$1,plate,p))m4_dnl +m4_define(`__ARMOR_JSON_STYLE',` { + "msg": "add_armor", + "id": $1, + "nam": "$2", + "ct": "__ARMOR_CATEGORY_TO_CHAR($3)", + "cf": $4 + }, +')m4_dnl +m4_define(`__ARMOR_USE_ERLANG_STYLE',`__ARMOR_CHOOSE_STYLE(`__ARMOR_ERLANG_STYLE')')m4_dnl +m4_define(`__ARMOR_USE_JSON_STYLE',`__ARMOR_CHOOSE_STYLE(`__ARMOR_JSON_STYLE')')m4_dnl |


