1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-05 09:52:23 +00:00

Merge pull request #360 from jlmjlm/oofishfix

Record Orb of Fish in savefile.
This commit is contained in:
Zeno Rogue
2024-02-19 14:22:00 +01:00
committed by GitHub

View File

@@ -443,7 +443,7 @@ EX namespace scores {
/** \brief the amount of boxes reserved for each hr::score item */
#define MAXBOX 500
/** \brief currently used boxes in hr::score */
#define POSSCORE 408
#define POSSCORE 410
/** \brief a struct to keep local score from an earlier game */
struct score {
/** \brief version used */
@@ -941,6 +941,9 @@ EX void applyBoxes() {
applyBoxEnum(bow::weapon, "weapon choice");
applyBoxEnum(bow::style, "crossbow style");
applyBoxOrb(itOrbFish);
list_invorb();
if(POSSCORE != boxid) printf("ERROR: %d boxes\n", boxid);
if(isize(invorb)) { println(hlog, "ERROR: Orbs not taken into account"); exit(1); }
}