summaryrefslogtreecommitdiff
blob: c3716bcdaa78a06c17e7dca8bb8868cbe356e3ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
m4_include(__MAKEFILE_DATA_DIR`/names.m4.conf')m4_dnl
m4_dnl
m4_dnl
m4_dnl
m4_define(`__OMNIMODS_CHOOSE_STYLE', `m4_define(`__OMNIMODS',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl
m4_define(`__MOD_LIST_CHOOSE_STYLE', `m4_define(`__MOD_LIST',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl
m4_define(`__MOD_CHOOSE_STYLE', `m4_define(`__MOD',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl
m4_define(`__FIRST_MOD_CHOOSE_STYLE', `m4_define(`__FIRST_MOD',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl
m4_dnl
m4_dnl
m4_dnl
m4_define(`__MOD_LIST_ERLANG_STYLE', ``[$1]'')m4_dnl
m4_define(`__FIRST_MOD_ERLANG_STYLE',``{$1, $2}'')m4_dnl
m4_define(`__MOD_ERLANG_STYLE',``, {$1, $2}'')m4_dnl
m4_define(`__OMNIMODS_ERLANG_STYLE',
   ``shr_omnimods:new($1, $2, $3)'')m4_dnl
m4_define(`__MOD_USE_ERLANG_STYLE',
   `__MOD_LIST_CHOOSE_STYLE(`__MOD_LIST_ERLANG_STYLE')__FIRST_MOD_CHOOSE_STYLE(`__FIRST_MOD_ERLANG_STYLE')__MOD_CHOOSE_STYLE(`__MOD_ERLANG_STYLE')__OMNIMODS_CHOOSE_STYLE(`__OMNIMODS_ERLANG_STYLE')')m4_dnl
m4_dnl
m4_dnl
m4_dnl
m4_define(`__MOD_LIST_JSON_STYLE',```[''$1`` ]''')m4_dnl
m4_define(`__MOD_JSON_STYLE',```, {"t": "''$1``", "v":'' $2``} ''')m4_dnl
m4_define(`__FIRST_MOD_JSON_STYLE',```{"t": "''$1``", "v":'' $2``} ''')m4_dnl
m4_define(`__OMNIMODS_JSON_STYLE',`
         {
            "attm": $1'``,''`
            "atkm": $2'``,''`
            "defm": $3
         }
')m4_dnl
m4_define(`__MOD_USE_JSON_STYLE',
   `__MOD_LIST_CHOOSE_STYLE(`__MOD_LIST_JSON_STYLE')__FIRST_MOD_CHOOSE_STYLE(`__FIRST_MOD_JSON_STYLE')__MOD_CHOOSE_STYLE(`__MOD_JSON_STYLE')__OMNIMODS_CHOOSE_STYLE(`__OMNIMODS_JSON_STYLE')')m4_dnl
m4_dnl
m4_dnl
m4_dnl
m4_define(`__MOD_BASE',    ``__MOD(__SN_BASE(),     $1)'')m4_dnl
m4_define(`__MOD_SLASH',   ``__MOD(__SN_SLASH(),    $1)'')m4_dnl
m4_define(`__MOD_PIERCE',  ``__MOD(__SN_PIERCE(),   $1)'')m4_dnl
m4_define(`__MOD_BLUNT',   ``__MOD(__SN_BLUNT(),    $1)'')m4_dnl
m4_dnl
m4_dnl
m4_dnl
m4_define(`__MOD_MAX_HEALTH',       ``__MOD(__SN_MAX_HEALTH(),      $1)'')m4_dnl
m4_define(`__MOD_MOVEMENT_POINTS',  ``__MOD(__SN_MOVEMENT_POINTS(), $1)'')m4_dnl
m4_define(`__MOD_DODGE',            ``__MOD(__SN_DODGE(),           $1)'')m4_dnl
m4_define(`__MOD_PARRY',            ``__MOD(__SN_PARRY(),           $1)'')m4_dnl
m4_define(`__MOD_ACCURACY',         ``__MOD(__SN_ACCURACY(),        $1)'')m4_dnl
m4_define(`__MOD_DOUBLE_HITS',      ``__MOD(__SN_DOUBLE_HITS(),     $1)'')m4_dnl
m4_define(`__MOD_CRITICAL',         ``__MOD(__SN_CRITICAL_HIT(),    $1)'')m4_dnl
m4_define(`__MOD_DAMAGE',           ``__MOD(__SN_DAMAGE_MODIFIER(), $1)'')m4_dnl
m4_dnl
m4_dnl
m4_dnl
m4_define(`__FIRST_MOD_BASE',    ``__FIRST_MOD(__SN_BASE(),     $1)'')m4_dnl
m4_define(`__FIRST_MOD_SLASH',   ``__FIRST_MOD(__SN_SLASH(),    $1)'')m4_dnl
m4_define(`__FIRST_MOD_PIERCE',  ``__FIRST_MOD(__SN_PIERCE(),   $1)'')m4_dnl
m4_define(`__FIRST_MOD_BLUNT',   ``__FIRST_MOD(__SN_BLUNT(),    $1)'')m4_dnl
m4_dnl
m4_dnl
m4_dnl
m4_define(`__FIRST_MOD_MAX_HEALTH',       ``__FIRST_MOD(__SN_MAX_HEALTH(),      $1)'')m4_dnl
m4_define(`__FIRST_MOD_MOVEMENT_POINTS',  ``__FIRST_MOD(__SN_MOVEMENT_POINTS(), $1)'')m4_dnl
m4_define(`__FIRST_MOD_DODGE',            ``__FIRST_MOD(__SN_DODGE(),           $1)'')m4_dnl
m4_define(`__FIRST_MOD_PARRY',            ``__FIRST_MOD(__SN_PARRY(),           $1)'')m4_dnl
m4_define(`__FIRST_MOD_ACCURACY',         ``__FIRST_MOD(__SN_ACCURACY(),        $1)'')m4_dnl
m4_define(`__FIRST_MOD_DOUBLE_HITS',      ``__FIRST_MOD(__SN_DOUBLE_HITS(),     $1)'')m4_dnl
m4_define(`__FIRST_MOD_CRITICAL',         ``__FIRST_MOD(__SN_CRITICAL_HIT(),    $1)'')m4_dnl
m4_define(`__FIRST_MOD_DAMAGE',           ``__FIRST_MOD(__SN_DAMAGE_MODIFIER(), $1)'')m4_dnl
m4_dnl
m4_dnl
m4_dnl
m4_ifelse(__CODE_STYLE(),
   erlang, `__MOD_USE_ERLANG_STYLE()',
   __CODE_STYLE, json,` __MOD_USE_JSON_STYLE()')m4_dnl