summaryrefslogtreecommitdiff
path: root/src/data/items.json.txt
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-06-19 18:03:24 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-06-19 18:28:55 -0400
commit7eeba327bd6dc235a33f06a7779e3b3c52f04475 (patch)
treee9639b90704ac227cb14a0ec87b9dc0b2a478a15 /src/data/items.json.txt
parentcaa193364bf786cb567ed16eb4670ed2cc4cb362 (diff)
Dump items and start decomp item_use
Diffstat (limited to 'src/data/items.json.txt')
-rw-r--r--src/data/items.json.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/data/items.json.txt b/src/data/items.json.txt
new file mode 100644
index 000000000..0daa783aa
--- /dev/null
+++ b/src/data/items.json.txt
@@ -0,0 +1,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 %}
+};