added new stuff to savegames
This commit is contained in:
parent
ad0a362681
commit
80acefbdbe
17
system.cpp
17
system.cpp
|
@ -421,7 +421,7 @@ EX namespace scores {
|
||||||
/** \brief the amount of boxes reserved for each hr::score item */
|
/** \brief the amount of boxes reserved for each hr::score item */
|
||||||
#define MAXBOX 500
|
#define MAXBOX 500
|
||||||
/** \brief currently used boxes in hr::score */
|
/** \brief currently used boxes in hr::score */
|
||||||
#define POSSCORE 391
|
#define POSSCORE 406
|
||||||
/** \brief a struct to keep local score from an earlier game */
|
/** \brief a struct to keep local score from an earlier game */
|
||||||
struct score {
|
struct score {
|
||||||
/** \brief version used */
|
/** \brief version used */
|
||||||
|
@ -898,6 +898,21 @@ EX void applyBoxes() {
|
||||||
|
|
||||||
applyBoxNum(yasc_code, "YASC code");
|
applyBoxNum(yasc_code, "YASC code");
|
||||||
applyBoxBool(casual, "casual mode");
|
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(POSSCORE != boxid) printf("ERROR: %d boxes\n", boxid);
|
||||||
if(isize(invorb)) { println(hlog, "ERROR: Orbs not taken into account"); exit(1); }
|
if(isize(invorb)) { println(hlog, "ERROR: Orbs not taken into account"); exit(1); }
|
||||||
|
|
Loading…
Reference in New Issue