mirror of
https://github.com/bartvdbraak/SlayerWeightCalculator.git
synced 2025-04-27 17:41:22 +00:00
minor changes
This commit is contained in:
parent
96ad638ac8
commit
b38c41a7cc
1 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,7 @@ export default {
|
||||||
defence_level: 99,
|
defence_level: 99,
|
||||||
},
|
},
|
||||||
masterFilter: {
|
masterFilter: {
|
||||||
id: id => id === this.currentMaster.assignments[0],
|
id: id => id === 0,
|
||||||
},
|
},
|
||||||
accountFilters: {
|
accountFilters: {
|
||||||
combat_req: combat_req => combat_req < this.config.combat_level,
|
combat_req: combat_req => combat_req < this.config.combat_level,
|
||||||
|
@ -85,12 +85,16 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
reload() {
|
reload() {
|
||||||
|
//set current Slayer Master
|
||||||
this.currentMaster = this.mastersData.masters[this.$route.params.id];
|
this.currentMaster = this.mastersData.masters[this.$route.params.id];
|
||||||
|
|
||||||
|
//filter the list of Monsters
|
||||||
this.filterData();
|
this.filterData();
|
||||||
this.generateTaskWeights();
|
this.generateTaskWeights();
|
||||||
},
|
},
|
||||||
filterData() {
|
filterData() {
|
||||||
//filter based on current Slayer Master
|
//filter based on current Slayer Master
|
||||||
|
|
||||||
this.filtered_items = this.filterArray(this.monstersData, this.masterFilter);
|
this.filtered_items = this.filterArray(this.monstersData, this.masterFilter);
|
||||||
|
|
||||||
//filter based on Account Settings
|
//filter based on Account Settings
|
||||||
|
|
Loading…
Reference in a new issue