Add DnM/DS Encyclopedia & Catalog Data
Thanks in part to Retro Phil!
This commit is contained in:
parent
8fb103c3aa
commit
5d36fd54df
4 changed files with 39 additions and 5 deletions
|
@ -44,6 +44,9 @@ private static int GetCatalogBaseOffset(SaveType saveType)
|
|||
{
|
||||
switch (saveType)
|
||||
{
|
||||
case SaveType.DoubutsuNoMori:
|
||||
case SaveType.DongwuSenlin:
|
||||
return 0xAF0;
|
||||
case SaveType.AnimalCrossing:
|
||||
return 0x1108;
|
||||
case SaveType.WildWorld:
|
||||
|
@ -61,6 +64,9 @@ private static int GetCatalogSize(SaveType saveType)
|
|||
{
|
||||
switch (saveType)
|
||||
{
|
||||
case SaveType.DoubutsuNoMori:
|
||||
case SaveType.DongwuSenlin:
|
||||
return 0x98;
|
||||
case SaveType.AnimalCrossing:
|
||||
return 0xD4;
|
||||
case SaveType.WildWorld:
|
||||
|
|
|
@ -6,6 +6,20 @@ namespace ACSE.Core.BitFields.Encyclopedia
|
|||
{
|
||||
public static class Encyclopedia
|
||||
{
|
||||
public static readonly Dictionary<int, byte> DoubutsuNoMoriEncyclopediaBitMap = new Dictionary<int, byte>
|
||||
{
|
||||
// Fish
|
||||
{ 0xABC, 0xFF },
|
||||
{ 0xABD, 0xFF },
|
||||
{ 0xABE, 0xFF },
|
||||
{ 0xABF, 0xFF },
|
||||
// Insects
|
||||
{ 0xAC0, 0xFF },
|
||||
{ 0xAC1, 0xFF },
|
||||
{ 0xAC2, 0xFF },
|
||||
{ 0xAC3, 0xFF }
|
||||
};
|
||||
|
||||
public static readonly Dictionary<int, byte> AnimalCrossingEncyclopediaBitMap = new Dictionary<int, byte>
|
||||
{
|
||||
{ 0x1164, 0xFF },
|
||||
|
@ -268,6 +282,9 @@ private static Dictionary<int, byte> GetBitMap(SaveType saveType)
|
|||
{
|
||||
switch (saveType)
|
||||
{
|
||||
case SaveType.DoubutsuNoMori:
|
||||
case SaveType.DongwuSenlin:
|
||||
return DoubutsuNoMoriEncyclopediaBitMap;
|
||||
case SaveType.AnimalCrossing:
|
||||
return AnimalCrossingEncyclopediaBitMap;
|
||||
case SaveType.DoubutsuNoMoriEPlus:
|
||||
|
|
|
@ -146,10 +146,22 @@ public static class PlayerInfo
|
|||
HeldItem = 0x3EC,
|
||||
InventoryBackground = 0xA72,
|
||||
Shirt = 0xA78,
|
||||
Birthday = -1,
|
||||
BirthdaySize = 2,
|
||||
// foreign_npc_id
|
||||
// destiny
|
||||
Birthday = 0xA90,
|
||||
BirthdaySize = 4, // Year, Month, Day
|
||||
// shop_ftr[5]
|
||||
// mobile_ftr[10]
|
||||
Encyclopedia = 0xABC, // 4 bytes fish, 4 bytes insects
|
||||
// uint[2] md_collect_bit // music collected
|
||||
// Anm_remail_c remail; // remail data
|
||||
Reset = 0xAE0,
|
||||
ResetSize = 4,
|
||||
// mPr_ranm_c animal_memory;
|
||||
// byte comp_ins_fish; // fish & insect completion byte. 0x2 = fish complete, 0x8 = insect complete, 0xA = both
|
||||
Catalog = 0xAF0, //uint[30] ftr, uint[2] wall, uint[2] carpet, uint[2] paper, uint[2] music
|
||||
// B88 = mPr_map_c map[8];
|
||||
// ulong pad; // end
|
||||
Savings = -1, // Does DnM have savings?
|
||||
Patterns = -1, // No Patterns in DnM
|
||||
PatternCount = 8,
|
||||
|
@ -158,8 +170,6 @@ public static class PlayerInfo
|
|||
TownPassCardImage = -1,
|
||||
HairType = -1,
|
||||
Bed = -1,
|
||||
Catalog = -1, //Actually research
|
||||
Encyclopedia = -1,
|
||||
Dressers = -1,
|
||||
Emotions = -1,
|
||||
EyeColor = -1,
|
||||
|
|
|
@ -258,4 +258,5 @@
|
|||
0xE0FC, DLC Villager #17
|
||||
0xE0FD, DLC Villager #18
|
||||
0xE0FE, DLC Villager #19
|
||||
0xE0FF, DLC Villager #20
|
||||
0xE0FF, DLC Villager #20
|
||||
0xE100, Unknown
|
Loading…
Reference in a new issue