Merge pull request #363 from jlmjlm/save-xbow-reload

Record the ranged weapons' state in the savefile
This commit is contained in:
Zeno Rogue 2024-02-28 15:25:35 +01:00 committed by GitHub
commit ddb9fbd58e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

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