parent
42bd503e32
commit
75dfd6a3ba
1 changed files with 14 additions and 2 deletions
|
@ -2581,6 +2581,10 @@ private void SetupMapPictureBoxes()
|
|||
|
||||
if (CurrentSaveInfo.ContainsIsland)
|
||||
{
|
||||
for (var i = 0; i < _islandItemEditors.Count; i++)
|
||||
_islandItemEditors[i].Dispose();
|
||||
_islandItemEditors.Clear();
|
||||
|
||||
IslandAcres = new WorldAcre[CurrentSaveInfo.IslandAcreCount];
|
||||
_islandAcreMap = new PictureBoxWithInterpolationMode[IslandAcres.Length];
|
||||
_newLeafIslandAcreMap = new PictureBoxWithInterpolationMode[16];
|
||||
|
@ -2619,7 +2623,7 @@ private void SetupMapPictureBoxes()
|
|||
IslandAcres[idx] = new WorldAcre(acreId, idx, acreItems);
|
||||
|
||||
if (SaveFile.SaveGeneration == SaveGeneration.GCN ||
|
||||
((idx > 4 && idx < 7) || (idx > 8 && idx < 11)))
|
||||
(SaveFile.SaveGeneration == SaveGeneration.N3DS && ((idx > 4 && idx < 7) || (idx > 8 && idx < 11))))
|
||||
{
|
||||
var ePlus = SaveFile.SaveType == SaveType.DoubutsuNoMoriEPlus ||
|
||||
SaveFile.SaveType == SaveType.AnimalForestEPlus;
|
||||
|
@ -4100,9 +4104,17 @@ private void SaveToolStripMenuItemClick(object sender, EventArgs e)
|
|||
// Save Town Ordinances in New Leaf
|
||||
UpdateNewLeafOrdinances();
|
||||
|
||||
// Save DnM+/AC Island Cabana
|
||||
// Save DnM+/AC Island and Cabana
|
||||
if (SaveFile.SaveType == SaveType.DoubutsuNoMoriPlus || SaveFile.SaveType == SaveType.AnimalCrossing)
|
||||
{
|
||||
for (var i = 0; i < _islandItemEditors.Count; i++)
|
||||
{
|
||||
var items = _islandItemEditors[i].Items;
|
||||
for (var x = 0; x < 256; x++)
|
||||
{
|
||||
SaveFile.Write(CurrentSaveInfo.SaveOffsets.IslandWorldData + + i * 512 + x * 2, items[x].ItemId, SaveFile.IsBigEndian, true);
|
||||
}
|
||||
}
|
||||
_islandCabana.Data.Rooms[0].Write();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue