mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
bye bye trailing whitespaces (#442)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php require_once 'engine/init.php'; include 'layout/overall/header.php';
|
||||
<?php require_once 'engine/init.php'; include 'layout/overall/header.php';
|
||||
protect_page();
|
||||
admin_only($user_data);
|
||||
|
||||
@@ -19,7 +19,7 @@ if (isset($_POST['pid']) && (int)$_POST['pid'] > 0) {
|
||||
if (!$status) {
|
||||
// New player level
|
||||
$level = (int)$_POST['level'];
|
||||
|
||||
|
||||
// Fetch stat gain for vocation
|
||||
$statgain = $config['vocations_gain'][(int)$_POST['vocation']];
|
||||
$playercnf = $config['player'];
|
||||
@@ -39,7 +39,7 @@ if (isset($_POST['pid']) && (int)$_POST['pid'] > 0) {
|
||||
$basecap = $config['nvCap'];
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
$LevelsFromBase = $level - $playercnf['base']['level'];
|
||||
$newhp = $playercnf['base']['health'] + ($statgain['hp'] * $LevelsFromBase);
|
||||
$newmp = $playercnf['base']['mana'] + ($statgain['mp'] * $LevelsFromBase);
|
||||
@@ -186,4 +186,4 @@ if ($name !== false) {
|
||||
</form>
|
||||
<?php
|
||||
// end
|
||||
include 'layout/overall/footer.php'; ?>
|
||||
include 'layout/overall/footer.php'; ?>
|
||||
|
Reference in New Issue
Block a user