mirror of
https://github.com/bartvdbraak/SlayerWeightCalculator.git
synced 2025-04-26 17:21:21 +00:00
bug fixes to slater point unlocks
This commit is contained in:
parent
470fd4ae8f
commit
31c5d02f92
3 changed files with 29 additions and 4 deletions
|
@ -16,7 +16,7 @@ export default {
|
||||||
{id: 2, name: 'Defence level', filter: 'defence_req', value: {min: 1, current: 99, max: 99}, image: 'defence_icon.png'},
|
{id: 2, name: 'Defence level', filter: 'defence_req', value: {min: 1, current: 99, max: 99}, image: 'defence_icon.png'},
|
||||||
],
|
],
|
||||||
pointUnlocks: [
|
pointUnlocks: [
|
||||||
{id: 0, name: 'Seeing red', monster_ids: [83, 3], unlock: 'false', masters: [5,6,7]},
|
{id: 0, name: 'Seeing red', monster_ids: [83], unlock: 'false', masters: [5,6,7]},
|
||||||
{id: 1, name: 'I hope you mith me', monster_ids: [72], unlock: 'false', masters: [5,6,7]},
|
{id: 1, name: 'I hope you mith me', monster_ids: [72], unlock: 'false', masters: [5,6,7]},
|
||||||
{id: 2, name: 'Watch the birdie', monster_ids: [4], unlock: 'false', masters: [4,5,6,7]},
|
{id: 2, name: 'Watch the birdie', monster_ids: [4], unlock: 'false', masters: [4,5,6,7]},
|
||||||
{id: 3, name: 'Hot stuff', monster_ids: [102], unlock: 'false', masters: [4,6,7]},
|
{id: 3, name: 'Hot stuff', monster_ids: [102], unlock: 'false', masters: [4,6,7]},
|
||||||
|
|
|
@ -193,9 +193,10 @@ export default {
|
||||||
|
|
||||||
//filter based on Point Unlocks
|
//filter based on Point Unlocks
|
||||||
this.configData.pointUnlocks.forEach(reward=>{
|
this.configData.pointUnlocks.forEach(reward=>{
|
||||||
if ((reward.unlock === 'true' && reward.block) || (reward.unlock === 'false' && !reward.block)) {
|
if (reward.unlock === 'true' && reward.block) {
|
||||||
//if reward unlocked but blocks monsters OR reward not unlocked and doesnt block
|
removeIds = removeIds.concat(reward.monster_ids)
|
||||||
//then, add to removal
|
}
|
||||||
|
else if (reward.unlock === 'false' && !reward.block && reward.masters.includes(this.currentMaster.id)) {
|
||||||
removeIds = removeIds.concat(reward.monster_ids)
|
removeIds = removeIds.concat(reward.monster_ids)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1559,6 +1559,14 @@
|
||||||
"combat_req": "0",
|
"combat_req": "0",
|
||||||
"defence_req": "0"
|
"defence_req": "0"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "7",
|
||||||
|
"monster": "Basilisks",
|
||||||
|
"slayer_req": "40",
|
||||||
|
"taskweight": "5",
|
||||||
|
"combat_req": "40",
|
||||||
|
"defence_req": "20"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "11",
|
"id": "11",
|
||||||
"monster": "Black demons",
|
"monster": "Black demons",
|
||||||
|
@ -1878,6 +1886,14 @@
|
||||||
"combat_req": "0",
|
"combat_req": "0",
|
||||||
"defence_req": "0"
|
"defence_req": "0"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "7",
|
||||||
|
"monster": "Basilisks",
|
||||||
|
"slayer_req": "40",
|
||||||
|
"taskweight": "6",
|
||||||
|
"combat_req": "40",
|
||||||
|
"defence_req": "0"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "11",
|
"id": "11",
|
||||||
"monster": "Black demons",
|
"monster": "Black demons",
|
||||||
|
@ -2213,6 +2229,14 @@
|
||||||
"combat_req": "0",
|
"combat_req": "0",
|
||||||
"defence_req": "0"
|
"defence_req": "0"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "7",
|
||||||
|
"monster": "Basilisks",
|
||||||
|
"slayer_req": "40",
|
||||||
|
"taskweight": "7",
|
||||||
|
"combat_req": "40",
|
||||||
|
"defence_req": "0"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "11",
|
"id": "11",
|
||||||
"monster": "Black demons",
|
"monster": "Black demons",
|
||||||
|
|
Loading…
Reference in a new issue