From c7feed31f354d697a54a3873da6b05f43f97fda6 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Fri, 10 Sep 2021 19:40:50 +0900 Subject: [PATCH] Add food point data to save/load build structure --- src/TestPanel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TestPanel.js b/src/TestPanel.js index e4d111c..fd64121 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -451,6 +451,7 @@ function SaveData() { armor3Name:selectedArmor3?.name, points:points, skillPointData:skillPointData, + foodPointData:foodPointData, } axios.post(BACKENDURL+"/submitBuild",{ id:BUILDID, @@ -519,6 +520,7 @@ useEffect(()=>{ setsecondaryLevel(dat.secondaryLevel) setPoints(dat.points) setSkillPointData(dat.skillPointData) + setFoodPointData(dat.foodPointData??{}) var dat1=p.GetData("weapon_existence_data") var weapon_type=GetData("weapon_type",dat.weaponType) var weapon=GetData("weapon",dat.weaponBaseName)