Items load from mod, else d2modder. broken res/ folder fixed
BIN
android-chrome-192x192.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
android-chrome-512x512.png
Normal file
After Width: | Height: | Size: 215 KiB |
BIN
apple-touch-icon.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
favicon-16x16.png
Normal file
After Width: | Height: | Size: 727 B |
BIN
favicon-32x32.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
favicon.ico
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
img/items/invch1.png
Normal file
After Width: | Height: | Size: 608 B |
BIN
img/items/invch2.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
img/items/invch3.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
img/items/invch4.png
Normal file
After Width: | Height: | Size: 744 B |
BIN
img/items/invch5.png
Normal file
After Width: | Height: | Size: 925 B |
BIN
img/items/invch6.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
img/items/invch7.png
Normal file
After Width: | Height: | Size: 890 B |
BIN
img/items/invch8.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
img/items/invch9.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 722 B |
BIN
img/items/invjbi.png
Normal file
After Width: | Height: | Size: 931 B |
BIN
img/items/invjw1.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
img/items/invjw2.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
img/items/invjw3.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
img/items/invjw4.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
img/items/invjw5.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
img/items/invjw6.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 590 B |
BIN
img/items/invrin1.png
Normal file
After Width: | Height: | Size: 875 B |
BIN
img/items/invrin2.png
Normal file
After Width: | Height: | Size: 962 B |
BIN
img/items/invrin3.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
img/items/invrin4.png
Normal file
After Width: | Height: | Size: 908 B |
BIN
img/items/invrin5.png
Normal file
After Width: | Height: | Size: 883 B |
BIN
ironman-dev.db-journal
Normal file
12
res/app.js
@ -124,13 +124,6 @@ $(document).ready(function () {
|
||||
y.value = x;
|
||||
});
|
||||
|
||||
|
||||
w = $('.w-select').val();
|
||||
console.log(w);
|
||||
|
||||
|
||||
|
||||
|
||||
$(".btnconfig").click(function () {
|
||||
$(".ctrl-config").hide();
|
||||
$("#loading").show();
|
||||
@ -441,7 +434,7 @@ $(document).ready(function () {
|
||||
$(".itemlvlreq").html("Level Required: "+$(this).val());
|
||||
});
|
||||
|
||||
// unique item change function select
|
||||
|
||||
// cmd = getUniqueItem
|
||||
$('.uniqueitems-select').change(function () {
|
||||
|
||||
@ -488,9 +481,6 @@ $(document).ready(function () {
|
||||
}
|
||||
|
||||
|
||||
$('.a-select, .w-select, .m-select').removeAttr('required');
|
||||
|
||||
|
||||
/*
|
||||
* THIS LINE BREAKS hidden fields and set them to blank.
|
||||
*
|
||||
|
1
site.webmanifest
Normal file
@ -0,0 +1 @@
|
||||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
@ -6,54 +6,43 @@ class D2ItemData {
|
||||
public $images;
|
||||
|
||||
public function getImages() {
|
||||
$sql = "
|
||||
SELECT code,invfile,type,type2 FROM armor
|
||||
$sql = "SELECT code,uniqueinvfile,invfile,type,type2 FROM armor
|
||||
UNION ALL
|
||||
SELECT code,invfile,type,type2 FROM misc
|
||||
SELECT code,uniqueinvfile,invfile,type,type2 FROM misc
|
||||
UNION ALL
|
||||
SELECT code,invfile,type,type2 FROM weapons
|
||||
";
|
||||
|
||||
SELECT code,uniqueinvfile,invfile,type,type2 FROM weapons";
|
||||
$res = PDO_FetchAll($sql);
|
||||
|
||||
$isc = null;
|
||||
foreach ($res as $r) {
|
||||
$isc1[$r['code']] = $r;
|
||||
$isc1[$r['code']]['code'] = $r['prop'];
|
||||
|
||||
$isc1[$r['code']]['code'] = $r['code'];
|
||||
$isc2[$r['type']] = $r;
|
||||
$isc2[$r['type']]['type'] = $r['prop'];
|
||||
$isc2[$r['type']]['type'] = $r['type'];
|
||||
}
|
||||
|
||||
$this->images = array_merge($isc1, $isc2);
|
||||
|
||||
unset($isc1);
|
||||
unset($isc2);
|
||||
}
|
||||
|
||||
public function uniqueItems($index, $doc = FALSE) {
|
||||
|
||||
// This is where we get props for each item
|
||||
$sql = "SELECT * FROM uniqueitems WHERE enabled='1' AND `index`=?";
|
||||
|
||||
$res = (PDO_FetchRow($sql, [$index]));
|
||||
|
||||
/*
|
||||
* Get invfile code all 3 item tables wherever it is
|
||||
*
|
||||
*/
|
||||
|
||||
if (empty($this->images)) {
|
||||
$this->getImages();
|
||||
}
|
||||
// This is where we get props for each item
|
||||
$sql = "SELECT * FROM uniqueitems WHERE enabled='1' AND `index`=?";
|
||||
$res = (PDO_FetchRow($sql, [$index]));
|
||||
|
||||
$res['invfile'] = $this->images[$res['code']]['invfile'];
|
||||
if (empty($res['uniqueinvfile'])){
|
||||
$sql = "SELECT InvGfx1 FROM itemtypes WHERE Code = '{$this->images[$res['code']]['type']}'";
|
||||
$invfile = PDO_FetchOne($sql);
|
||||
}
|
||||
if (empty($invfile)){
|
||||
$invfile = $this->images[$res['code']]['invfile'];
|
||||
}
|
||||
$res['invfile'] = $invfile;
|
||||
$return = $res;
|
||||
|
||||
/*
|
||||
* for all props for this unique item, get ISC strings
|
||||
*/
|
||||
|
||||
// for all props for this unique item, get ISC strings
|
||||
$props = array_filter([
|
||||
"Prop1" => array_filter(
|
||||
["prop1" => $return['prop1'], "par1" => $return['par1'], "min1" => $return['min1'], "max1" => $return['max1']]
|
||||
|
@ -47,7 +47,7 @@
|
||||
<div class="" style="text-align: center; margin: 0 auto;">
|
||||
<a style="margin-top: 60px; text-align: center;" target="_blank" href="/genDocs.php?cmd=genDocMisc" class="">
|
||||
<div style="height: 100px;">
|
||||
<img style="height: 56px;" class="img-fluid" src="/img/items/invbok.png">
|
||||
<img style="height: 56px;" class="img-fluid" src="/img/items/invtbk.png">
|
||||
<img style="height: 28px;" class="img-fluid" src="/img/items/invkey.png">
|
||||
</div>
|
||||
</a>
|
||||
|