1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +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
commit 52081a916a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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); }
}