Item preview upgrade

This commit is contained in:
color.diff=auto
2021-05-04 10:21:16 -06:00
parent 21546a57db
commit f92a59dcc5
5 changed files with 56 additions and 11 deletions

View File

@@ -192,7 +192,7 @@ class D2ItemDesc {
$par = $params['par'];
$min = (int) $params['min'];
$v = $min;
$max = (int) $params['max'];
if ($min == $max) {
@@ -290,7 +290,7 @@ class D2ItemDesc {
if ($params['descfunc'] == 15) {
$sql = "SELECT skill FROM `skills` WHERE `Id`='$par'";
$skill = PDO_FetchOne($sql);
$this->str = sprintf($s1, $min, $max, $skill);
$this->str = sprintf($s1, $min, $params['max'], $skill);
}
if ($params['descfunc'] == 16) {
@@ -329,7 +329,7 @@ class D2ItemDesc {
$sql = "SELECT skill FROM `skills` WHERE `Id`='$par'";
$skill = PDO_FetchOne($sql);
$this->str = "+$min to Skill Charges Or Something";
$this->str = sprintf("Level $max $skill ".$string,$min,$min);
$this->str = sprintf("Level $max $skill " . $string, $min, $min);
}
if ($params['descfunc'] == 25) {

View File

@@ -52,10 +52,13 @@
<link rel="stylesheet" href="/res/font-awesome.min.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://bootswatch.com/4/sketchy/bootstrap.min.css">
<link rel="stylesheet" href="/res/style.css">
<link rel="stylesheet" href="/res/<?php echo $css ?>">
<style>
a {
color: #007bff;
}
</style>
<script src="/res/jquery-3.6.0.min.js"></script>
<script src="/res/bootstrap.bundle.min.js"></script>