mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-24 16:07:07 +00:00
Merge pull request #363 from jlmjlm/save-xbow-reload
Record the ranged weapons' state in the savefile
This commit is contained in:
commit
ddb9fbd58e
@ -444,7 +444,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 410
|
||||
#define POSSCORE 412
|
||||
/** \brief a struct to keep local score from an earlier game */
|
||||
struct score {
|
||||
/** \brief version used */
|
||||
@ -949,6 +949,9 @@ EX void applyBoxes() {
|
||||
applyBoxOrb(itOrbFish);
|
||||
list_invorb();
|
||||
|
||||
applyBoxNum(items[itCrossbow]);
|
||||
applyBoxNum(items[itRevolver]);
|
||||
|
||||
if(POSSCORE != boxid) printf("ERROR: %d boxes\n", boxid);
|
||||
if(isize(invorb)) { println(hlog, "ERROR: Orbs not taken into account"); exit(1); }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user