From b052ff532b941a98b9340941a38622af8fcd8402 Mon Sep 17 00:00:00 2001 From: Frostbyte <71291438+Frostbyte0x70@users.noreply.github.com> Date: Sun, 22 Sep 2024 18:56:52 +0200 Subject: [PATCH] Add DEFEAT_ITEM_LOSS_CHANCE literal --- headers/data/literals.h | 3 +++ symbols/literals.yml | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/headers/data/literals.h b/headers/data/literals.h index a977f4f4..f231fef0 100644 --- a/headers/data/literals.h +++ b/headers/data/literals.h @@ -11,6 +11,9 @@ extern const struct data_processing_instruction PARTNER_START_LEVEL; // Overlay 0 extern const struct data_processing_instruction TOP_MENU_MUSIC_ID; +// Overlay 10 +extern const struct data_processing_instruction DEFEAT_ITEM_LOSS_CHANCE; + // Overlay 29 extern const struct data_processing_instruction NECTAR_IQ_BOOST; extern const struct data_processing_instruction COMPRESSED_SPRITE_BUFFER_SIZE; diff --git a/symbols/literals.yml b/symbols/literals.yml index 65a7d011..f270967d 100644 --- a/symbols/literals.yml +++ b/symbols/literals.yml @@ -82,7 +82,12 @@ overlay10: JP: 0x1F6A0 description: Hard-coded immediate values (literals) in instructions within overlay 10. functions: [] - data: [] + data: + - name: DEFEAT_ITEM_LOSS_CHANCE + address: + EU: 0x22C3560 + NA: 0x22C2C08 + description: Chance of losing each individual bag item after being defeated in a dungeon (50%). overlay11: versions: - EU