Backup local du monsters.json et mise à jour des monstres requis selon 2.63.9.16 #7

Merged
Esenjin_Asakha merged 3 commits from backup-monsters-json-and-update-list into master 2022-06-07 18:56:50 +00:00
Showing only changes of commit c71c7e6eac - Show all commits

2
app.js
View File

@ -196,7 +196,7 @@
} }
}; };
$http.get('https://raw.githubusercontent.com/Mopolo/Eternelle-Moisson/gh-pages/monsters.json').then(function(res) { $http.get('monsters.json').then(function(res) {
vm.monsters = res.data; vm.monsters = res.data;
vm.monsters.forEach(monster => { vm.monsters.forEach(monster => {
monster.owned = vm.saveData?.find(el => el[0] === monster.id) ? vm.saveData.find(el => el[0] === monster.id)[1] : 0 monster.owned = vm.saveData?.find(el => el[0] === monster.id) ? vm.saveData.find(el => el[0] === monster.id)[1] : 0