2023-01-08 09:23:00 +00:00
|
|
|
# Pokémon (monster) data
|
|
|
|
|
|
|
|
MONSTER_DIR = $(DATA_ASM_SUBDIR)/monster
|
|
|
|
MONSTER_DATA = $(MONSTER_DIR)/monster_data.inc
|
|
|
|
|
|
|
|
# Headers included by tools/dungeonjson/dungeonjson.cpp:generate_monster_data_text
|
|
|
|
MONSTER_DATA_INC = \
|
|
|
|
include/constants/ability.h \
|
|
|
|
include/constants/evolve_type.h \
|
|
|
|
include/constants/friend_area.h \
|
|
|
|
include/constants/item.h \
|
|
|
|
include/constants/monster.h \
|
|
|
|
include/constants/type.h \
|
|
|
|
include/constants/walkable_tile.h
|
|
|
|
|
|
|
|
data_monster: $(MONSTER_DATA);
|
|
|
|
|
|
|
|
$(MONSTER_DATA): $(MONSTER_DIR)/monster_data.json $(MONSTER_DATA_INC)
|
|
|
|
$(DUNGEONJSON) monster pmd-red $<
|
2023-01-30 02:58:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
LEARNSET_DIR = $(MONSTER_DIR)/learnset
|
|
|
|
LEARNSET_DATA = $(LEARNSET_DIR)/learnset_data.inc
|
2023-01-30 23:13:49 +00:00
|
|
|
LEARNSET_PTRS = $(LEARNSET_DIR)/learnset_ptrs.s
|
2023-01-30 02:58:44 +00:00
|
|
|
|
|
|
|
data_learnset: $(LEARNSET_DATA);
|
|
|
|
|
|
|
|
$(LEARNSET_DATA): $(LEARNSET_DIR)/learnset_data.json
|
|
|
|
$(DUNGEONJSON) learnset pmd-red $<
|
|
|
|
|
2023-01-30 23:13:49 +00:00
|
|
|
data_learnset_ptrs: ${LEARNSET_DATA};
|
2024-11-10 18:04:13 +00:00
|
|
|
echo '.4byte 0' > $(LEARNSET_PTRS)
|
2023-01-30 23:13:49 +00:00
|
|
|
echo '.4byte 0' >> $(LEARNSET_PTRS)
|
|
|
|
cat $(LEARNSET_DATA) | grep .global >> $(LEARNSET_PTRS)
|
|
|
|
ifeq ($(shell uname -s), Darwin)
|
|
|
|
sed -i '' 's/global/4byte/g' $(LEARNSET_PTRS)
|
|
|
|
else
|
|
|
|
sed -i 's/global/4byte/g' $(LEARNSET_PTRS)
|
|
|
|
endif
|