mirror of
https://github.com/bartvdbraak/SlayerWeightCalculator.git
synced 2025-04-27 17:41:22 +00:00
temporary
This commit is contained in:
parent
4430bbb147
commit
2ad8a3f3ba
1 changed files with 7 additions and 5 deletions
|
@ -36,7 +36,7 @@
|
||||||
value="true"
|
value="true"
|
||||||
unchecked-value="false"
|
unchecked-value="false"
|
||||||
>
|
>
|
||||||
<span class="mr-2" v-b-tooltip.hover.right :title="''">{{ pointUnlock.name }}
|
<span class="mr-2" v-b-tooltip.hover.right :title="masterListString(pointUnlock)">{{ pointUnlock.name }}
|
||||||
<small class="text-monospace text-muted">{{ monsterPreText(pointUnlock) }}</small>
|
<small class="text-monospace text-muted">{{ monsterPreText(pointUnlock) }}</small>
|
||||||
</span>
|
</span>
|
||||||
</b-form-checkbox>
|
</b-form-checkbox>
|
||||||
|
@ -83,6 +83,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import monster_json from '../data/monsters'
|
import monster_json from '../data/monsters'
|
||||||
|
import master_json from '../data/masters'
|
||||||
export default {
|
export default {
|
||||||
name: "ConfigSection",
|
name: "ConfigSection",
|
||||||
props: {
|
props: {
|
||||||
|
@ -91,6 +92,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
monsterData: monster_json,
|
monsterData: monster_json,
|
||||||
|
masterData: master_json,
|
||||||
configData: {
|
configData: {
|
||||||
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, 3], unlock: false, masters: [5,6,7]},
|
||||||
|
@ -162,12 +164,12 @@ export default {
|
||||||
return monsterList.join(', ').replace(/,(?!.*,)/gmi, ' and');
|
return monsterList.join(', ').replace(/,(?!.*,)/gmi, ' and');
|
||||||
},
|
},
|
||||||
masterListString(entry) {
|
masterListString(entry) {
|
||||||
let monsterList = [];
|
let masterList = [];
|
||||||
entry['add_to_sm'].forEach( id => {
|
entry['masters'].forEach( id => {
|
||||||
monsterList.push(this.mastersData[id].name)
|
masterList.push(this.mastersData[id].name)
|
||||||
});
|
});
|
||||||
|
|
||||||
return 'Assigned by' + monsterList.join(', ').replace(/,(?!.*,)/gmi, ' and');
|
return 'Assigned by' + masterList.join(', ').replace(/,(?!.*,)/gmi, ' and');
|
||||||
},
|
},
|
||||||
testConfig() {
|
testConfig() {
|
||||||
console.log(JSON.stringify(this.configData.blockList, null, 2))
|
console.log(JSON.stringify(this.configData.blockList, null, 2))
|
||||||
|
|
Loading…
Reference in a new issue