initial commit

This commit is contained in:
Martin Michelsen
2018-10-31 23:55:32 -07:00
commit 5b8c26ccd7
814 changed files with 12277 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#pragma once
#include <stdint.h>
struct RareItemDrop {
uint8_t probability;
uint8_t item_code[3];
};
struct RareItemSet {
RareItemDrop rares[0x65]; // 0000 - 0194 in file
uint8_t box_areas[0x1E]; // 0194 - 01B2 in file
RareItemDrop box_rares[0x1E]; // 01B2 - 022A in file
uint8_t unused[0x56];
RareItemSet(const char* filename, uint8_t episode, uint8_t difficulty,
uint8_t secid);
}; // 0x280 in size; describes one difficulty, section ID, and episode
bool sample_rare_item(uint8_t pc);