game/_incl_data/class/priem/24.php

74 lines
2.2 KiB
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?
if(!defined('GAME')) {
die();
}
/*
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
$pvr = array();
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
if( isset($pr_momental_this)) {
$fx_moment = function( $uid, $enemy, $j_id, $yron, $profil, $inlog ) {
return round($yron);
};
}elseif( isset($pr_tested_this) ) {
$fx_priem = function( $id , $at , $uid, $j_id ) {
return $at;
};
unset( $pr_used_this );
}elseif( isset($pr_used_this) && isset($pr_moment) && isset($btl->info['id']) ) {
$fx_priem = function( $id , $at , $uid, $j_id ) {
return $at;
};
unset( $pr_used_this );
}elseif(isset($btl->info['id'])) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
/*
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $u->info['enemy'],
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
'{tm1} '.$btl->addlt(1 , 21 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL).'',
($btl->hodID+1)
);
*/
//
$pvr['mp'] = round($u->stats['mpAll']*0.10);
$pvr['mpSee'] = 0;
$pvr['mpNow'] = floor($u->stats['mpNow']);
$pvr['mpAll'] = $u->stats['mpAll'];
$pvr['mpTr'] = $pvr['mpAll'] - $pvr['mpNow'];
//$pvr['mp'] = $btl->hphe( $u->info['id'] , $pvr['hp'] );
if( $pvr['mpTr'] > 0 ) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
if( $pvr['mpTr'] < $pvr['mp'] ) {
$pvr['mp'] = $pvr['mpTr'];
}
$pvr['mpSee'] = '+'.$pvr['mp'];
$pvr['mpNow'] += $pvr['mp'];
}
if( $pvr['mpNow'] > $pvr['mpAll'] ) {
$pvr['mpNow'] = $pvr['mpAll'];
}elseif( $pvr['mpNow'] < 0 ) {
$pvr['mpNow'] = 0;
}
//
//$btl->users[$btl->uids[$u->info['id']]]['last_hp'] = $pvr['hp'];
//
$u->stats['mpNow'] = $pvr['mpNow'];
$u->info['mpNow'] = $pvr['mpNow'];
$btl->stats[$btl->uids[$u->info['id']]]['mpNow'] = $pvr['mpNow'];
$btl->users[$btl->uids[$u->info['id']]]['mpNow'] = $pvr['mpNow'];
mysql_query('UPDATE `stats` SET `mpNow` = "'.$u->stats['mpNow'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
//
$btl->priemAddLogFast( $u->info['id'], 0, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
'{tm1} '.$btl->addlt(1 , 21 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL).' <20><> <font Color=#006699><b>'.$pvr['mpSee'].'</b></font> ['.$pvr['mpNow'].'/'.$pvr['mpAll'].'] (<28><><EFBFBD><EFBFBD>)',
1, time() );
//
echo '<font color=red><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> &quot;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>&quot;</b></font>';
$this->addEffPr($pl,$id);
}
unset($pvr);
?>