Add food point data to save/load build structure

master
Joshua Sigona 3 years ago
parent 4dbcde8e35
commit c7feed31f3
  1. 2
      src/TestPanel.js

@ -451,6 +451,7 @@ function SaveData() {
armor3Name:selectedArmor3?.name, armor3Name:selectedArmor3?.name,
points:points, points:points,
skillPointData:skillPointData, skillPointData:skillPointData,
foodPointData:foodPointData,
} }
axios.post(BACKENDURL+"/submitBuild",{ axios.post(BACKENDURL+"/submitBuild",{
id:BUILDID, id:BUILDID,
@ -519,6 +520,7 @@ useEffect(()=>{
setsecondaryLevel(dat.secondaryLevel) setsecondaryLevel(dat.secondaryLevel)
setPoints(dat.points) setPoints(dat.points)
setSkillPointData(dat.skillPointData) setSkillPointData(dat.skillPointData)
setFoodPointData(dat.foodPointData??{})
var dat1=p.GetData("weapon_existence_data") var dat1=p.GetData("weapon_existence_data")
var weapon_type=GetData("weapon_type",dat.weaponType) var weapon_type=GetData("weapon_type",dat.weaponType)
var weapon=GetData("weapon",dat.weaponBaseName) var weapon=GetData("weapon",dat.weaponBaseName)

Loading…
Cancel
Save