Функция повышения статов и модификаторов. Отладка 5.

This commit is contained in:
lopar 2018-12-11 22:46:44 +02:00
parent a6c8f9ce3e
commit 7c0796bc7a

View File

@ -1538,7 +1538,8 @@ header("Cache-Control: no-cache");
if (input::get('edit')) { if (input::get('edit')) {
if (input::get('ups')) { if (input::get('ups')) {
switch (input::get('ups')) { addOnePoint(input::get('ups'), 'stat');
/*switch (input::get('ups')) {
case 'sila' : case 'sila' :
addOnePoint('sila','stat'); addOnePoint('sila','stat');
break; break;
@ -1590,9 +1591,11 @@ if (input::get('edit')) {
case 211 : case 211 :
addOnePoint('mdark','mastery'); addOnePoint('mdark','mastery');
break; break;
} }*/
} }
if (input::get('upm')) addOnePoint(input::get('upm'), 'mastery');
if (input::get('drop')) { if (input::get('drop')) {
dropitem(input::get('drop')); dropitem(input::get('drop'));
updstats(); updstats();
@ -1821,45 +1824,38 @@ if (input::get('edit')) {
<?php if (!empty($user['stats'])): ?> <?php if (!empty($user['stats'])): ?>
<img src=i/up.gif onclick="location.href='?edit=1&ups=sila'"> <img src=i/up.gif onclick="location.href='?edit=1&ups=sila'">
<?php endif; ?> <?php endif; ?>
<BR> <br>
Ловкость: <?= $user['lovk'] ?> Ловкость: <?= $user['lovk'] ?>
<?php if (!empty($user['stats'])): ?> <?php if (!empty($user['stats'])): ?>
<img src=i/up.gif onclick="location.href='?edit=1&ups=lovk'"> <img src=i/up.gif onclick="location.href='?edit=1&ups=lovk'">
<?php endif; ?> <?php endif; ?>
<BR> <br>
Интуиция: <?= $user['inta'] ?> Интуиция: <?= $user['inta'] ?>
<?php if (!empty($user['stats'])): ?> <?php if (!empty($user['stats'])): ?>
<img src=i/up.gif onclick="location.href='?edit=1&ups=inta'"> <img src=i/up.gif onclick="location.href='?edit=1&ups=inta'">
<?php endif; ?> <?php endif; ?>
<BR> <br>
Выносливость: <?= $user['vinos'] ?> Выносливость: <?= $user['vinos'] ?>
<?php if (!empty($user['stats'])): ?> <?php if (!empty($user['stats'])): ?>
<img src=i/up.gif onclick="location.href='?edit=1&ups=vinos'"> <img src=i/up.gif onclick="location.href='?edit=1&ups=vinos'">
<?php endif; ?> <?php endif; ?>
<br>
<BR> Интеллект: <?= $user['intel'] ?>
<? <?php if (!empty($user['stats'])): ?>
echo ($user['level'] > 3) ? "Интеллект: {$user['intel']}" : ""; <img src=i/up.gif onclick="location.href='?edit=1&ups=intel'">
echo ($user['stats'] && ($user['level'] > 3)) ? " <img src=i/up.gif onclick=\"stats('Увеличить Интеллект', '', 1, '', '', '', '?ups=15&edit=1&s4i=" . ($user['sid']) . "');\">" : ""; <?php endif; ?>
if ($user['level'] > 3) echo "<BR>" ?> <br>
<!--<? Мудрость: <?= $user['mudra'] ?>
echo ($user['level'] > 6) ? "Мудрость: {$user['mudra']}" : ""; <?php if (!empty($user['stats'])): ?>
echo ($user['stats'] && ($user['level'] > 6)) ? " <img src=i/up.gif onclick=\"stats('Увеличить Мудрость', '', 1, '', '', '', '?ups=160&edit=1&s4i=" . ($user['sid']) . "');\">" : ""; <img src=i/up.gif onclick="location.href='?edit=1&ups=mudra'">
if ($user['level'] > 6) echo "<BR>" ?>--> <?php endif; ?>
<FONT COLOR="green">Возможных увеличений: <?= $user['stats'] ?></FONT> <br>
<br>
<small style="color: darkgreen;">Возможных увеличений: <?= $user['stats'] ?></small>
<? <?
$mf = countmf(); $mf = countmf();
?>
<script>DrawBar('Модификаторы', 'modif', <?if ($_SESSION['modif'] == 1) {
echo "1";
} else {
echo "6";
}?>, '', '');</script>
<?
if ($_SESSION['modif'] == 1) { if ($_SESSION['modif'] == 1) {
$item_mf = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_mf` > 0')); $item_mf = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_mf` > 0'));
$item_damage = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_uron` > 0')); $item_damage = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_uron` > 0'));