1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 06:27:17 +00:00

added new stuff to savegames

This commit is contained in:
Zeno Rogue 2021-05-30 13:38:32 +02:00
parent ad0a362681
commit 80acefbdbe

View File

@ -421,7 +421,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 391
#define POSSCORE 406
/** \brief a struct to keep local score from an earlier game */
struct score {
/** \brief version used */
@ -898,6 +898,21 @@ EX void applyBoxes() {
applyBoxNum(yasc_code, "YASC code");
applyBoxBool(casual, "casual mode");
applyBoxI(itCursed);
applyBoxI(itDice);
applyBoxOrb(itOrbPurity);
applyBoxOrb(itOrbWoods);
applyBoxM(moHexer);
applyBoxM(moAngryDie);
applyBoxM(moAnimatedDie);
applyBoxI(itCurseWeakness, true);
applyBoxI(itCurseFatigue, true);
applyBoxI(itCurseDraining, true);
applyBoxI(itCurseRepulsion, true);
applyBoxI(itCurseGluttony, true);
applyBoxI(itCurseWater, true);
list_invorb();
if(POSSCORE != boxid) printf("ERROR: %d boxes\n", boxid);
if(isize(invorb)) { println(hlog, "ERROR: Orbs not taken into account"); exit(1); }