summaryrefslogtreecommitdiff
path: root/src/data/items.json.txt
blob: 0daa783aa1238c35a662fe948333c32ba4af14fd (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
{{ doNotModifyHeader }}
## for item in items
## if item.pocket == "POCKET_TM_CASE"
extern const u8 gMoveDescription_{{ item.moveId }}[];
## endif
{% if item.itemId != "ITEM_NONE" %}const u8 gItemDescription_{{ item.itemId }}[] = _("{{ item.description_english }}");{% endif %}
## endfor
const u8 gItemDescription_ITEM_NONE[] = _("?????");

const struct Item gItems[] = {
    {% for item in items %}{
        .name = _("{{ item.english }}"),
        .itemId = {{ item.itemId }},
        .price = {{ item.price }},
        .holdEffect = {{ item.holdEffect }},
        .holdEffectParam = {{ item.holdEffectParam }},
## if item.pocket == "POCKET_TM_CASE"
        .description = gMoveDescription_{{ item.moveId }},
## else
        .description = gItemDescription_{{ item.itemId }},
## endif
        .importance = {{ item.importance }},
        .exitsBagOnUse = {{ item.exitsBagOnUse }},
        .pocket = {{ item.pocket }},
        .type = {{ item.type }},
        .fieldUseFunc = {{ item.fieldUseFunc }},
        .battleUsage = {{ item.battleUsage }},
        .battleUseFunc = {{ item.battleUseFunc }},
        .secondaryId = {{ item.secondaryId }}
    }, {% endfor %}
};