Удаление старого кода отвечающего за лечение травм.

This commit is contained in:
lopar
2020-09-16 18:50:38 +03:00
parent df35ebe524
commit 8d4062eb84
12 changed files with 26 additions and 345 deletions
+18 -9
View File
@@ -78,35 +78,41 @@ if (in_array($_POST['use'], array_keys($moj))) {
break;
case "ct1":
if ($abil[0] > 0 && $user->align == 6) {
include("./magic/ct1.php");
//Заменён на CureInjury.php class. Придумать вызов.
//include("./magic/ct1.php");
if ($outok == 1) {
$abil[0] -= 1;
db::c()->query('UPDATE users SET abil = "?s" WHERE id = ?i', serialize($abil), $user->id);
}
} elseif ($user->align != 6) {
include("./magic/ct1.php");
//Заменён на CureInjury.php class. Придумать вызов.
//include("./magic/ct1.php");
}
break;
case "ct2":
if ($abil[1] > 0 && $user->align == 6) {
include("./magic/ct2.php");
//Заменён на CureInjury.php class. Придумать вызов.
//include("./magic/ct2.php");
if ($outok == 1) {
$abil[1] -= 1;
db::c()->query('UPDATE users SET abil = "?s" WHERE id = ?i', serialize($abil), $user->id);
}
} elseif ($user->align != 6) {
include("./magic/ct2.php");
//Заменён на CureInjury.php class. Придумать вызов.
//include("./magic/ct2.php");
}
break;
case "ct3":
if ($abil[2] > 0 && $user->align == 6) {
include("./magic/ct3.php");
//Заменён на CureInjury.php class. Придумать вызов.
//include("./magic/ct3.php");
if ($outok == 1) {
$abil[2] -= 1;
db::c()->query('UPDATE users SET abil = "?s" WHERE id = ?i', serialize($abil), $user->id);
}
} elseif ($user->align != 6) {
include("./magic/ct3.php");
//Заменён на CureInjury.php class. Придумать вызов.
//include("./magic/ct3.php");
}
break;
@@ -153,7 +159,8 @@ if (in_array($_POST['use'], array_keys($moj))) {
include("./magic/unmarry.php");
break;
case "ct_all":
include("./magic/ct_all.php");
//Заменён на CureInjury.php class. Придумать вызов.
//include("./magic/ct_all.php");
break;
case "check":
include("./magic/check.php");
@@ -671,7 +678,8 @@ if (isset($_GET['used'])) {
} elseif ($_GET['used'] == 6) {
//include('magic/usability_user/heal50.php');
} elseif ($_GET['used'] == 7) {
include('magic/usability_user/travmoff.php');
//Заменён на CureInjury.php class. Придумать вызов.
//include('magic/usability_user/travmoff.php');
} elseif ($_GET['used'] == 8) {
include('magic/usability_user/attack.php');
} elseif ($_GET['used'] == 9) {
@@ -703,7 +711,8 @@ if (isset($_GET['useds'])) {
} elseif ($_GET['useds'] == 6) {
//include('magic/usability_klan/heal50.php');
} elseif ($_GET['useds'] == 7) {
include('magic/usability_klan/travmoff.php');
//Заменён на CureInjury.php class. Придумать вызов.
//include('magic/usability_klan/travmoff.php');
} elseif ($_GET['useds'] == 8) {
include('magic/usability_klan/attack.php');
} elseif ($_GET['useds'] == 9) {