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