From 1f2692a4fbb348c155228608068aa21775ac3825 Mon Sep 17 00:00:00 2001 From: Jacob Mandelson Date: Mon, 26 Feb 2024 17:17:38 -0800 Subject: [PATCH] Record crossbow reload time in savefile. --- system.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system.cpp b/system.cpp index 70250164..ec0c8fa9 100644 --- a/system.cpp +++ b/system.cpp @@ -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 411 /** \brief a struct to keep local score from an earlier game */ struct score { /** \brief version used */ @@ -947,6 +947,8 @@ EX void applyBoxes() { applyBoxOrb(itOrbFish); list_invorb(); + applyBoxNum(items[itCrossbow]); + if(POSSCORE != boxid) printf("ERROR: %d boxes\n", boxid); if(isize(invorb)) { println(hlog, "ERROR: Orbs not taken into account"); exit(1); } }