mirror of
https://github.com/pret/pokeheartgold.git
synced 2024-11-24 21:59:54 +00:00
growtbl.narc to csv
This commit is contained in:
parent
c811a9f33f
commit
fd8af7d805
4
files/.gitignore
vendored
4
files/.gitignore
vendored
@ -13,7 +13,9 @@ a/1/6/3
|
||||
a/2/1/4
|
||||
a/2/5/2
|
||||
msgdata/msg.narc
|
||||
fielddata/encountdata/*.narc
|
||||
fielddata/encountdata/g_enc_data.narc
|
||||
fielddata/encountdata/s_enc_data.narc
|
||||
data/gs_areawindow.narc
|
||||
itemtool/itemdata/item_icon.narc
|
||||
itemtool/itemdata/item_data.narc
|
||||
poketool/personal/growtbl.narc
|
||||
|
9
files/poketool/personal/growtbl.csv
Normal file
9
files/poketool/personal/growtbl.csv
Normal file
@ -0,0 +1,9 @@
|
||||
rate,lv000,lv001,lv002,lv003,lv004,lv005,lv006,lv007,lv008,lv009,lv010,lv011,lv012,lv013,lv014,lv015,lv016,lv017,lv018,lv019,lv020,lv021,lv022,lv023,lv024,lv025,lv026,lv027,lv028,lv029,lv030,lv031,lv032,lv033,lv034,lv035,lv036,lv037,lv038,lv039,lv040,lv041,lv042,lv043,lv044,lv045,lv046,lv047,lv048,lv049,lv050,lv051,lv052,lv053,lv054,lv055,lv056,lv057,lv058,lv059,lv060,lv061,lv062,lv063,lv064,lv065,lv066,lv067,lv068,lv069,lv070,lv071,lv072,lv073,lv074,lv075,lv076,lv077,lv078,lv079,lv080,lv081,lv082,lv083,lv084,lv085,lv086,lv087,lv088,lv089,lv090,lv091,lv092,lv093,lv094,lv095,lv096,lv097,lv098,lv099,lv100
|
||||
GROWTH_MEDIUM_FAST,0,0,8,27,64,125,216,343,512,729,1000,1331,1728,2197,2744,3375,4096,4913,5832,6859,8000,9261,10648,12167,13824,15625,17576,19683,21952,24389,27000,29791,32768,35937,39304,42875,46656,50653,54872,59319,64000,68921,74088,79507,85184,91125,97336,103823,110592,117649,125000,132651,140608,148877,157464,166375,175616,185193,195112,205379,216000,226981,238328,250047,262144,274625,287496,300763,314432,328509,343000,357911,373248,389017,405224,421875,438976,456533,474552,493039,512000,531441,551368,571787,592704,614125,636056,658503,681472,704969,729000,753571,778688,804357,830584,857375,884736,912673,941192,970299,1000000
|
||||
GROWTH_ERRATIC,0,0,15,52,122,237,406,637,942,1326,1800,2369,3041,3822,4719,5737,6881,8155,9564,11111,12800,14632,16610,18737,21012,23437,26012,28737,31610,34632,37800,41111,44564,48155,51881,55737,59719,63822,68041,72369,76800,81326,85942,90637,95406,100237,105122,110052,115015,120001,125000,131324,137795,144410,151165,158056,165079,172229,179503,186894,194400,202013,209728,217540,225443,233431,241496,249633,257834,267406,276458,286328,296358,305767,316074,326531,336255,346965,357812,367807,378880,390077,400293,411686,423190,433572,445239,457001,467489,479378,491346,501878,513934,526049,536557,548720,560922,571333,583539,591882,600000
|
||||
GROWTH_FLUCTUATING,0,0,4,13,32,65,112,178,276,393,540,745,967,1230,1591,1957,2457,3046,3732,4526,5440,6482,7666,9003,10506,12187,14060,16140,18439,20974,23760,26811,30146,33780,37731,42017,46656,50653,55969,60505,66560,71677,78533,84277,91998,98415,107069,114205,123863,131766,142500,151222,163105,172697,185807,196322,210739,222231,238036,250562,267840,281456,300293,315059,335544,351520,373744,390991,415050,433631,459620,479600,507617,529063,559209,582187,614566,639146,673863,700115,737280,765275,804997,834809,877201,908905,954084,987754,1035837,1071552,1122660,1160499,1214753,1254796,1312322,1354652,1415577,1460276,1524731,1571884,1640000
|
||||
GROWTH_MEDIUM_SLOW,0,0,9,57,96,135,179,236,314,419,560,742,973,1261,1612,2035,2535,3120,3798,4575,5460,6458,7577,8825,10208,11735,13411,15244,17242,19411,21760,24294,27021,29949,33084,36435,40007,43808,47846,52127,56660,61450,66505,71833,77440,83335,89523,96012,102810,109923,117360,125126,133229,141677,150476,159635,169159,179056,189334,199999,211060,222522,234393,246681,259392,272535,286115,300140,314618,329555,344960,360838,377197,394045,411388,429235,447591,466464,485862,505791,526260,547274,568841,590969,613664,636935,660787,685228,710266,735907,762160,789030,816525,844653,873420,902835,932903,963632,995030,1027103,1059860
|
||||
GROWTH_FAST,0,0,6,21,51,100,172,274,409,583,800,1064,1382,1757,2195,2700,3276,3930,4665,5487,6400,7408,8518,9733,11059,12500,14060,15746,17561,19511,21600,23832,26214,28749,31443,34300,37324,40522,43897,47455,51200,55136,59270,63605,68147,72900,77868,83058,88473,94119,100000,106120,112486,119101,125971,133100,140492,148154,156089,164303,172800,181584,190662,200037,209715,219700,229996,240610,251545,262807,274400,286328,298598,311213,324179,337500,351180,365226,379641,394431,409600,425152,441094,457429,474163,491300,508844,526802,545177,563975,583200,602856,622950,643485,664467,685900,707788,730138,752953,776239,800000
|
||||
GROWTH_SLOW,0,0,10,33,80,156,270,428,640,911,1250,1663,2160,2746,3430,4218,5120,6141,7290,8573,10000,11576,13310,15208,17280,19531,21970,24603,27440,30486,33750,37238,40960,44921,49130,53593,58320,63316,68590,74148,80000,86151,92610,99383,106480,113906,121670,129778,138240,147061,156250,165813,175760,186096,196830,207968,219520,231491,243890,256723,270000,283726,297910,312558,327680,343281,359370,375953,393040,410636,428750,447388,466560,486271,506530,527343,548720,570666,593190,616298,640000,664301,689210,714733,740880,767656,795070,823128,851840,881211,911250,941963,973360,1005446,1038230,1071718,1105920,1140841,1176490,1212873,1250000
|
||||
GROWTH_UNUSED_6,0,0,8,27,64,125,216,343,512,729,1000,1331,1728,2197,2744,3375,4096,4913,5832,6859,8000,9261,10648,12167,13824,15625,17576,19683,21952,24389,27000,29791,32768,35937,39304,42875,46656,50653,54872,59319,64000,68921,74088,79507,85184,91125,97336,103823,110592,117649,125000,132651,140608,148877,157464,166375,175616,185193,195112,205379,216000,226981,238328,250047,262144,274625,287496,300763,314432,328509,343000,357911,373248,389017,405224,421875,438976,456533,474552,493039,512000,531441,551368,571787,592704,614125,636056,658503,681472,704969,729000,753571,778688,804357,830584,857375,884736,912673,941192,970299,1000000
|
||||
GROWTH_UNUSED_7,0,0,8,27,64,125,216,343,512,729,1000,1331,1728,2197,2744,3375,4096,4913,5832,6859,8000,9261,10648,12167,13824,15625,17576,19683,21952,24389,27000,29791,32768,35937,39304,42875,46656,50653,54872,59319,64000,68921,74088,79507,85184,91125,97336,103823,110592,117649,125000,132651,140608,148877,157464,166375,175616,185193,195112,205379,216000,226981,238328,250047,262144,274625,287496,300763,314432,328509,343000,357911,373248,389017,405224,421875,438976,456533,474552,493039,512000,531441,551368,571787,592704,614125,636056,658503,681472,704969,729000,753571,778688,804357,830584,857375,884736,912673,941192,970299,1000000
|
|
8
files/poketool/personal/growtbl.mk
Normal file
8
files/poketool/personal/growtbl.mk
Normal file
@ -0,0 +1,8 @@
|
||||
GROWTBL_NARC := files/poketool/personal/growtbl.narc
|
||||
|
||||
$(GROWTBL_NARC): MANIFEST = $(patsubst %.narc,%.txt,$@)\
|
||||
|
||||
$(GROWTBL_NARC): %.narc: %.csv $(MANIFEST) $$(csvdep)
|
||||
$(CSV2BIN) compile $< $@ $(MANIFEST) $(CSV2BINFLAGS)
|
||||
|
||||
FS_CLEAN_TARGETS += $(GROWTBL_NARC)
|
Binary file not shown.
102
files/poketool/personal/growtbl.txt
Normal file
102
files/poketool/personal/growtbl.txt
Normal file
@ -0,0 +1,102 @@
|
||||
rate:skip:constants/pokemon.h:GROWTH_
|
||||
lv000:u32
|
||||
lv001:u32
|
||||
lv002:u32
|
||||
lv003:u32
|
||||
lv004:u32
|
||||
lv005:u32
|
||||
lv006:u32
|
||||
lv007:u32
|
||||
lv008:u32
|
||||
lv009:u32
|
||||
lv010:u32
|
||||
lv011:u32
|
||||
lv012:u32
|
||||
lv013:u32
|
||||
lv014:u32
|
||||
lv015:u32
|
||||
lv016:u32
|
||||
lv017:u32
|
||||
lv018:u32
|
||||
lv019:u32
|
||||
lv020:u32
|
||||
lv021:u32
|
||||
lv022:u32
|
||||
lv023:u32
|
||||
lv024:u32
|
||||
lv025:u32
|
||||
lv026:u32
|
||||
lv027:u32
|
||||
lv028:u32
|
||||
lv029:u32
|
||||
lv030:u32
|
||||
lv031:u32
|
||||
lv032:u32
|
||||
lv033:u32
|
||||
lv034:u32
|
||||
lv035:u32
|
||||
lv036:u32
|
||||
lv037:u32
|
||||
lv038:u32
|
||||
lv039:u32
|
||||
lv040:u32
|
||||
lv041:u32
|
||||
lv042:u32
|
||||
lv043:u32
|
||||
lv044:u32
|
||||
lv045:u32
|
||||
lv046:u32
|
||||
lv047:u32
|
||||
lv048:u32
|
||||
lv049:u32
|
||||
lv050:u32
|
||||
lv051:u32
|
||||
lv052:u32
|
||||
lv053:u32
|
||||
lv054:u32
|
||||
lv055:u32
|
||||
lv056:u32
|
||||
lv057:u32
|
||||
lv058:u32
|
||||
lv059:u32
|
||||
lv060:u32
|
||||
lv061:u32
|
||||
lv062:u32
|
||||
lv063:u32
|
||||
lv064:u32
|
||||
lv065:u32
|
||||
lv066:u32
|
||||
lv067:u32
|
||||
lv068:u32
|
||||
lv069:u32
|
||||
lv070:u32
|
||||
lv071:u32
|
||||
lv072:u32
|
||||
lv073:u32
|
||||
lv074:u32
|
||||
lv075:u32
|
||||
lv076:u32
|
||||
lv077:u32
|
||||
lv078:u32
|
||||
lv079:u32
|
||||
lv080:u32
|
||||
lv081:u32
|
||||
lv082:u32
|
||||
lv083:u32
|
||||
lv084:u32
|
||||
lv085:u32
|
||||
lv086:u32
|
||||
lv087:u32
|
||||
lv088:u32
|
||||
lv089:u32
|
||||
lv090:u32
|
||||
lv091:u32
|
||||
lv092:u32
|
||||
lv093:u32
|
||||
lv094:u32
|
||||
lv095:u32
|
||||
lv096:u32
|
||||
lv097:u32
|
||||
lv098:u32
|
||||
lv099:u32
|
||||
lv100:u32
|
@ -432,6 +432,7 @@ include files/data/gs_areawindow.mk
|
||||
include files/fielddata/encountdata/gs_enc_data.mk
|
||||
include files/fielddata/script/scr_seq.mk
|
||||
include files/itemtool/itemdata/item_data.mk
|
||||
include files/poketool/personal/growtbl.mk
|
||||
|
||||
include graphics_files_rules.mk
|
||||
|
||||
|
@ -506,15 +506,15 @@ typedef enum EvoMethod
|
||||
EVO_ROUTE217,
|
||||
} EvoMethod;
|
||||
|
||||
enum GrowthRate
|
||||
{
|
||||
GROWTH_MEDIUM_FAST = 0,
|
||||
GROWTH_ERRATIC,
|
||||
GROWTH_FLUCTUATING,
|
||||
GROWTH_MEDIUM_SLOW,
|
||||
GROWTH_FAST,
|
||||
GROWTH_SLOW,
|
||||
};
|
||||
#endif //PM_ASM
|
||||
|
||||
#define GROWTH_MEDIUM_FAST 0
|
||||
#define GROWTH_ERRATIC 1
|
||||
#define GROWTH_FLUCTUATING 2
|
||||
#define GROWTH_MEDIUM_SLOW 3
|
||||
#define GROWTH_FAST 4
|
||||
#define GROWTH_SLOW 5
|
||||
#define GROWTH_UNUSED_6 6
|
||||
#define GROWTH_UNUSED_7 7
|
||||
|
||||
#endif //POKEHEARTGOLD_CONSTANTS_POKEMON_H
|
||||
|
@ -244,22 +244,22 @@ int Options::main_disasm() {
|
||||
size_t binfsize;
|
||||
size_t manifest_size = manifest.size();
|
||||
if (narc_mode) {
|
||||
static char narc_header[16];
|
||||
static char btaf_header[12];
|
||||
binfile.in->read(narc_header, 16);
|
||||
static unsigned char narc_header[16];
|
||||
static unsigned char btaf_header[12];
|
||||
binfile.in->read((char *)narc_header, 16);
|
||||
assert(memcmp(narc_header, "NARC\xfe\xff\x00\x01", 8) == 0);
|
||||
binfile.in->read(btaf_header, 12);
|
||||
binfile.in->read((char *)btaf_header, 12);
|
||||
assert(memcmp(btaf_header, "BTAF", 4) == 0);
|
||||
size_t fatb_size = from_array<unsigned>(btaf_header, 4) - 12;
|
||||
size_t nrow = from_array<unsigned>(btaf_header, 8);
|
||||
binfile.in->seekg(fatb_size, std::ios::cur);
|
||||
static char btnf_header[8];
|
||||
binfile.in->read(btnf_header, 8);
|
||||
static unsigned char btnf_header[8];
|
||||
binfile.in->read((char *)btnf_header, 8);
|
||||
assert(memcmp(btnf_header, "BTNF", 4) == 0);
|
||||
size_t fntb_size = from_array<unsigned>(btnf_header, 4) - 8;
|
||||
binfile.in->seekg(fntb_size, std::ios::cur);
|
||||
static char gmif_header[8];
|
||||
binfile.in->read(gmif_header, 8);
|
||||
static unsigned char gmif_header[8];
|
||||
binfile.in->read((char *)gmif_header, 8);
|
||||
assert(memcmp(gmif_header, "GMIF", 4) == 0);
|
||||
binfsize = from_array<unsigned>(gmif_header, 4) - 8;
|
||||
assert(binfsize / manifest_size == nrow);
|
||||
|
Loading…
Reference in New Issue
Block a user