@blizzhackers/d2data 3.1.91736 → 3.1.91738
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/launch.json +20 -0
- package/README.md +1 -7
- package/json/base/precalctc/_all.mjs +2279 -0
- package/json/precalctc/_all.mjs +2517 -0
- package/package.json +3 -7
- package/.eslintrc.js +0 -59
- package/_config.yml +0 -1
- package/compile.js +0 -908
- package/docs/_config.yml +0 -1
- package/docs/armor.js +0 -134
- package/docs/drops/.vscode/extensions.json +0 -3
- package/docs/drops/README.md +0 -7
- package/docs/drops/dist/assets/index.12ae3c90.js +0 -6675
- package/docs/drops/dist/index.html +0 -10
- package/docs/drops/index.html +0 -23
- package/docs/drops/package-lock.json +0 -1143
- package/docs/drops/package.json +0 -17
- package/docs/drops/src/App.vue +0 -870
- package/docs/drops/src/main.js +0 -4
- package/docs/drops/vite.config.js +0 -8
- package/docs/drops.html +0 -10
- package/docs/effort.css +0 -118
- package/docs/effort.js +0 -367
- package/docs/elem-effort.html +0 -130
- package/docs/images/0-0.svg +0 -18
- package/docs/images/0-1.svg +0 -17
- package/docs/images/0-2.svg +0 -17
- package/docs/images/1-0.svg +0 -18
- package/docs/images/1-1.svg +0 -18
- package/docs/images/1-2.svg +0 -17
- package/docs/images/2-0.svg +0 -17
- package/docs/images/2-1.svg +0 -11
- package/docs/images/2-2.svg +0 -18
- package/docs/images/3-0.svg +0 -17
- package/docs/images/3-1.svg +0 -18
- package/docs/images/3-2.svg +0 -18
- package/docs/images/4-0.svg +0 -18
- package/docs/images/4-1.svg +0 -18
- package/docs/images/4-2.svg +0 -18
- package/docs/images/5-0.svg +0 -18
- package/docs/images/5-1.svg +0 -18
- package/docs/images/5-2.svg +0 -14
- package/docs/images/6-0.svg +0 -17
- package/docs/images/6-1.svg +0 -17
- package/docs/images/6-2.svg +0 -17
- package/docs/images/AmSkillicon.png +0 -0
- package/docs/images/AsSkillicon.png +0 -0
- package/docs/images/BaSkillicon.png +0 -0
- package/docs/images/DrSkillicon.png +0 -0
- package/docs/images/NeSkillicon.png +0 -0
- package/docs/images/PaSkillicon.png +0 -0
- package/docs/images/Skillicon.png +0 -0
- package/docs/images/SoSkillicon.png +0 -0
- package/docs/index.md +0 -5
- package/docs/items.html +0 -170
- package/docs/leveling/.vscode/extensions.json +0 -3
- package/docs/leveling/README.md +0 -7
- package/docs/leveling/dist/assets/index.f9765357.js +0 -1
- package/docs/leveling/dist/index.html +0 -24
- package/docs/leveling/index.html +0 -23
- package/docs/leveling/package-lock.json +0 -1143
- package/docs/leveling/package.json +0 -17
- package/docs/leveling/src/App.vue +0 -526
- package/docs/leveling/src/main.js +0 -4
- package/docs/leveling/vite.config.js +0 -8
- package/docs/runewords/.vscode/extensions.json +0 -3
- package/docs/runewords/README.md +0 -7
- package/docs/runewords/dist/assets/index.0838f27c.js +0 -6673
- package/docs/runewords/dist/assets/index.73bf3e23.css +0 -1
- package/docs/runewords/dist/index.html +0 -25
- package/docs/runewords/index.html +0 -23
- package/docs/runewords/package-lock.json +0 -1143
- package/docs/runewords/package.json +0 -17
- package/docs/runewords/src/App.vue +0 -781
- package/docs/runewords/src/main.js +0 -4
- package/docs/runewords/src/modorder.json +0 -234
- package/docs/runewords/vite.config.js +0 -8
- package/docs/skills.css +0 -1250
- package/docs/skills.html +0 -63
- package/docs/skills.js +0 -2192
- package/docs/vue-setup.js +0 -12
- package/docs/weapons.js +0 -149
- package/font-example.html +0 -34
- package/generatecsv.js +0 -64
- package/json/.gitkeep +0 -0
- package/json/base/.gitkeep +0 -0
- package/json/base/precalctc/.gitkeep +0 -0
- package/json/precalctc/.gitkeep +0 -0
- package/objext.js +0 -53
- package/precalctc.php +0 -296
- package/string.js +0 -93
package/docs/_config.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
theme: jekyll-theme-hacker
|
package/docs/armor.js
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
'use strict'; /* global Vue */
|
|
2
|
-
|
|
3
|
-
(function () {
|
|
4
|
-
let data = fetch('https://raw.githubusercontent.com/blizzhackers/d2data/master/json/armor.json');
|
|
5
|
-
|
|
6
|
-
function first (...values) {
|
|
7
|
-
return values.filter(v => v !== undefined).shift();
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
new Vue({
|
|
11
|
-
el: '#armorapp',
|
|
12
|
-
data: {
|
|
13
|
-
visible: false,
|
|
14
|
-
pageTitle: 'Diablo 2 Armor Browser',
|
|
15
|
-
items: [],
|
|
16
|
-
sortColumn: undefined,
|
|
17
|
-
contains: '',
|
|
18
|
-
levelreqlower: 0,
|
|
19
|
-
levelrequpper: 99,
|
|
20
|
-
tier: 0,
|
|
21
|
-
sockets: 0,
|
|
22
|
-
weight: -1,
|
|
23
|
-
maxstrreq: 0,
|
|
24
|
-
maxstrreqmax: 0,
|
|
25
|
-
maxlevelreq: 99,
|
|
26
|
-
itemtype: 'All',
|
|
27
|
-
itemtypes: {
|
|
28
|
-
All: 'All',
|
|
29
|
-
},
|
|
30
|
-
defaults: {
|
|
31
|
-
value: '??',
|
|
32
|
-
headstyle: 'width:1px;user-select:none;cursor:pointer;text-align:center;',
|
|
33
|
-
style: 'text-align: center;',
|
|
34
|
-
},
|
|
35
|
-
columns: [
|
|
36
|
-
{ label: '', value: '', headstyle: 'width:auto;user-select:none;cursor:pointer;' },
|
|
37
|
-
{ label: 'Item Name (code)', key: 'name', render: item => item.name + ' (' + item.code + ')', headstyle: 'width:1px;user-select:none;cursor:pointer;text-align:center;white-space:nowrap;', style: 'text-align:center;white-space:nowrap;', tooltip: 'The item name (and internal item code).' },
|
|
38
|
-
{ label: 'Type', key: 'type', render: item => item.type || '??', sortDefault: '??', tooltip: 'The category this item belongs to.' },
|
|
39
|
-
{ label: 'Req Level', key: 'levelreq', render: item => item.levelreq || 0, sortDefault: 0, tooltip: 'The minimum level required to equip this item.' },
|
|
40
|
-
{ label: 'Tier', key: 'tier', render: item => item.tierName, sortDefault: 0, defaultSortOrder: -1, tooltip: 'Each item has Normal, Exceptional, and Elite variants. Elite is the best.' },
|
|
41
|
-
{ label: 'Sock', key: 'gemsockets', render: item => item.gemsockets || 0, sortDefault: 0, tooltip: 'The maximum number of sockets an item can possibly have.' },
|
|
42
|
-
{ label: 'Max AC', key: 'maxac', render: item => item.maxac || 0, sortDefault: 0, tooltip: 'The maximum amount of armor class an item can possibly have.' },
|
|
43
|
-
{ label: 'Weight', key: 'speed', render: item => item.weightClass, sortDefault: 0, tooltip: 'The weight of the armor. Medium has a run speed penalty, and Heavy has even more.' },
|
|
44
|
-
{ label: 'Req Str', key: 'reqstr', render: item => item.reqstr || 0, sortDefault: 0, tooltip: 'The minimum amount of strength required to equip this item (before modifiers).' },
|
|
45
|
-
{ label: '', value: '', headstyle: 'width:auto;user-select:none;cursor:pointer;' },
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
methods: {
|
|
49
|
-
sort: function (column) {
|
|
50
|
-
if (this.sortColumn === column) {
|
|
51
|
-
column.sortOrder = -column.sortOrder;
|
|
52
|
-
} else {
|
|
53
|
-
if (this.sortColumn) {
|
|
54
|
-
delete this.sortColumn.headclass;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
this.sortColumn = column;
|
|
58
|
-
column.sortOrder = column.sortOrder || column.defaultSortOrder || 1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
column.headclass = column.sortOrder > 0 ? 'text-primary' : 'text-danger';
|
|
62
|
-
|
|
63
|
-
this.item = this.items.sort((a, b) => {
|
|
64
|
-
let av = first(column.value, a[column.key], column.sortDefault);
|
|
65
|
-
let bv = first(column.value, b[column.key], column.sortDefault);
|
|
66
|
-
let ret = av < bv ? -column.sortOrder : av > bv ? column.sortOrder : 0;
|
|
67
|
-
|
|
68
|
-
return ret;
|
|
69
|
-
});
|
|
70
|
-
},
|
|
71
|
-
resetValues: function () {
|
|
72
|
-
this.contains = '';
|
|
73
|
-
this.levelreqlower = 0;
|
|
74
|
-
this.levelrequpper = this.maxlevelreq;
|
|
75
|
-
this.sockets = 0;
|
|
76
|
-
this.tier = 0;
|
|
77
|
-
this.itemtype = 'All';
|
|
78
|
-
this.weight = -1;
|
|
79
|
-
this.maxstrreq = this.maxstrreqmax;
|
|
80
|
-
},
|
|
81
|
-
canShow: function (item) {
|
|
82
|
-
if (item.name.toLowerCase().indexOf(this.contains.toLowerCase()) < 0) {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (+this.levelreqlower && +item.levelreq < +this.levelreqlower) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (+this.levelrequpper && +item.levelreq > +this.levelrequpper) {
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (+this.tier && +item.tier !== +this.tier) {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (this.itemtype !== 'All' && this.itemtype !== item.type) {
|
|
99
|
-
return false;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (this.sockets && (item.gemsockets || 0) < this.sockets) {
|
|
103
|
-
return false;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if (+this.weight >= 0 && +(item.speed || 0) !== +this.weight) {
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if ((item.reqstr || 0) > this.maxstrreq) {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return true;
|
|
115
|
-
},
|
|
116
|
-
first,
|
|
117
|
-
},
|
|
118
|
-
created: async function () {
|
|
119
|
-
data = await data;
|
|
120
|
-
data = await data.json();
|
|
121
|
-
this.items = Object.values(data).map(v => {
|
|
122
|
-
v.levelreq = v.levelreq || 0;
|
|
123
|
-
v.weightClass = v.speed === 10 ? 'Heavy' : v.speed === 5 ? 'Medium' : 'Light';
|
|
124
|
-
v.tier = v.code === v.ultracode ? 3 : v.code === v.ubercode ? 2 : 1;
|
|
125
|
-
v.tierName = ['None', 'Norm', 'Excep', 'Elite'][v.tier];
|
|
126
|
-
this.maxstrreq = this.maxstrreqmax = Math.max(this.maxstrreqmax, v.reqstr || 0);
|
|
127
|
-
this.itemtypes[v.type || 'none'] = v.type || 'none';
|
|
128
|
-
|
|
129
|
-
return v;
|
|
130
|
-
}).filter(i => i.spawnable);
|
|
131
|
-
this.visible = true;
|
|
132
|
-
},
|
|
133
|
-
});
|
|
134
|
-
})();
|
package/docs/drops/README.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Vue 3 + Vite
|
|
2
|
-
|
|
3
|
-
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
-
|
|
5
|
-
## Recommended IDE Setup
|
|
6
|
-
|
|
7
|
-
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
|