partial restore of item search
This commit is contained in:
parent
335b8681b6
commit
ebbba92a8e
3 changed files with 10 additions and 4 deletions
|
@ -140,13 +140,12 @@
|
||||||
<script type="text/javascript" src="../js/damage_calc.js"></script>
|
<script type="text/javascript" src="../js/damage_calc.js"></script>
|
||||||
<script type="text/javascript" src="../js/display_constants.js"></script>
|
<script type="text/javascript" src="../js/display_constants.js"></script>
|
||||||
<script type="text/javascript" src="../js/display.js"></script>
|
<script type="text/javascript" src="../js/display.js"></script>
|
||||||
<script type="text/javascript" src="../js/sq2display_constants.js"></script>
|
|
||||||
<script type="text/javascript" src="../js/sq2display.js"></script>
|
|
||||||
<script type="text/javascript" src="../js/query.js"></script>
|
<script type="text/javascript" src="../js/query.js"></script>
|
||||||
<script type="text/javascript" src="../js/query_2.js"></script>
|
<script type="text/javascript" src="../js/query_2.js"></script>
|
||||||
<script type="text/javascript" src="../js/expr_parser.js"></script>
|
<script type="text/javascript" src="../js/expr_parser.js"></script>
|
||||||
<script type="text/javascript" src="../js/load.js"></script>
|
<script type="text/javascript" src="../js/load.js"></script>
|
||||||
<script type="text/javascript" src="../js/items.js"></script>
|
<script type="text/javascript" src="../js/items.js"></script>
|
||||||
<script type="text/javascript" src="../js/sq2items.js"></script>
|
<script type="text/javascript" src="../js/sq2items.js"></script>
|
||||||
|
<script type="text/javascript" src="../js/powders.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -5,6 +5,7 @@ function get_base_dps(item) {
|
||||||
//SUPER JANK @HPP PLS FIX
|
//SUPER JANK @HPP PLS FIX
|
||||||
if (item.get("tier") !== "Crafted") {
|
if (item.get("tier") !== "Crafted") {
|
||||||
let total_damage = 0;
|
let total_damage = 0;
|
||||||
|
apply_weapon_powders(item);
|
||||||
for (const damage_k of damage_keys) {
|
for (const damage_k of damage_keys) {
|
||||||
damages = item.get(damage_k);
|
damages = item.get(damage_k);
|
||||||
total_damage += damages[0] + damages[1];
|
total_damage += damages[0] + damages[1];
|
||||||
|
|
|
@ -184,7 +184,8 @@ function displayItems(items_copy) {
|
||||||
box.appendChild(bckgrdbox);
|
box.appendChild(bckgrdbox);
|
||||||
bckgrdbox.id = "item"+i+"b";
|
bckgrdbox.id = "item"+i+"b";
|
||||||
items_parent.appendChild(box);
|
items_parent.appendChild(box);
|
||||||
displaysq2ExpandedItem(item, bckgrdbox.id);
|
item.set("powders", []);
|
||||||
|
displayExpandedItem(item, bckgrdbox.id, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,6 +252,11 @@ function resetItemSearch() {
|
||||||
|
|
||||||
function init_items() {
|
function init_items() {
|
||||||
items_expanded = items.filter( (i) => !("remapID" in i) ).map( (i) => expandItem(i) );
|
items_expanded = items.filter( (i) => !("remapID" in i) ).map( (i) => expandItem(i) );
|
||||||
|
console.log(items_expanded);
|
||||||
|
console.log("a");
|
||||||
}
|
}
|
||||||
|
|
||||||
load_init(init_items);
|
(async function() {
|
||||||
|
await Promise.resolve(load_init());
|
||||||
|
init_items();
|
||||||
|
})();
|
||||||
|
|
Loading…
Reference in a new issue