mirror of
https://github.com/kwsch/NHSE.git
synced 2026-07-02 00:11:55 -05:00
Extend recipe max for v1.1
the whole array is probably 0x100 bytes (max recipe ID 0x800), but we can clamp things by only reading a certain amount (dump RecipeCraftParam.bcsv and add the bunny craftables to the recipe list...)
This commit is contained in:
parent
e1cc460575
commit
828b560e5e
|
|
@ -25,7 +25,7 @@ public abstract class PersonalOffsets
|
|||
public int Pockets1Count { get; } = 20;
|
||||
public int Pockets2Count { get; } = 20;
|
||||
public int StorageCount { get; } = 5000;
|
||||
public int MaxRecipeID { get; } = 0x2A0;
|
||||
public virtual int MaxRecipeID { get; } = 0x2A0;
|
||||
|
||||
public static PersonalOffsets GetOffsets(FileHeaderInfo Info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,5 +18,7 @@ public sealed class PersonalOffsets11 : PersonalOffsets
|
|||
|
||||
public override int Bank => 0x68C34; // +0x50 from v1.0
|
||||
public override int Recipes => 0x68C44; // + 0x50 from v1.0
|
||||
|
||||
public override int MaxRecipeID { get; } = 0x2C8;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using NHSE.Core;
|
||||
using NHSE.Core.Structures;
|
||||
|
|
@ -23,9 +22,7 @@ public RecipeListEditor(Player player)
|
|||
private void FillCheckBoxes()
|
||||
{
|
||||
var recipes = RecipeList.Recipes;
|
||||
var max = recipes.Max(z => z.Key);
|
||||
if (Known.Length < max)
|
||||
max = (ushort)Known.Length;
|
||||
var max = (ushort)Known.Length - 1;
|
||||
|
||||
var strings = GameInfo.Strings.itemlist;
|
||||
for (ushort i = 0; i <= max; i++)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user