Оптимизация.

This commit is contained in:
Ivor Barhansky 2023-09-30 23:17:25 +03:00
parent 82e48d473b
commit 707d6c5c99
3 changed files with 341 additions and 1114 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@ $pvr['vladenie'] = 1;
$pvr['bron'] = array( 0 , 0 ); $pvr['bron'] = array( 0 , 0 );
$pvr['power'] = 1; $pvr['power'] = 1;
$pvr['yron'] = $btl->yronGetrazmen($pvr['uid1'],$pvr['uid2'],3,rand(1,5),true); $pvr['yron'] = $btl->yronGetrazmen($pvr['uid1'],$pvr['uid2'],3);
$pvr['hp'] = floor(1+rand($pvr['yron']['y'],$pvr['yron']['m_y'])); $pvr['hp'] = floor(1+rand($pvr['yron']['y'],$pvr['yron']['m_y']));
$pvr['hp'] = round($pvr['hp']*0.40); $pvr['hp'] = round($pvr['hp']*0.40);

View File

@ -308,9 +308,17 @@ if ($pl['id'] == 189) {
} elseif ($pl['id'] == 271) { } elseif ($pl['id'] == 271) {
//прием Прорыв 1\3 урона оружием //прием Прорыв 1\3 урона оружием
$tp_atk = $btl->weaponTx($btl->stats[$btl->uids[$u->info['id']]]['items'][$btl->stats[$btl->uids[$u->info['id']]]['wp3id']]); $tp_atk = $btl->weaponTx($btl->stats[$btl->uids[$u->info['id']]]['items'][$btl->stats[$btl->uids[$u->info['id']]]['wp3id']]);
//$tp_atk = 0;
$yi_atk = $btl->weaponAt22($btl->stats[$btl->uids[$u->info['id']]]['items'][$btl->stats[$btl->uids[$u->info['id']]]['wp3id']], $btl->stats[$btl->uids[$u->info['id']]], $tp_atk); $yi_atk = $btl->weaponAt22($btl->stats[$btl->uids[$u->info['id']]]['items'][$btl->stats[$btl->uids[$u->info['id']]]['wp3id']], $btl->stats[$btl->uids[$u->info['id']]], $tp_atk);
$hpmin = $btl->yrn($btl->stats[$btl->uids[$u->info['id']]], $btl->stats[$btl->uids[$u->info['enemy']]], $btl->users[$btl->uids[$u->info['id']]], $btl->users[$btl->uids[$u->info['enemy']]], $btl->stats[$btl->uids[$u->info['id']]]['lvl'], $btl->stats[$btl->uids[$u->info['enemy']]]['lvl'], $tp_atk, $yi_atk[0], $yi_atk[1], 0, 0, 0, 0, $btl->stats[$btl->uids[$u->info['id']]]['m3'], 0, 0, 0);
$hpmin = $btl->yrn(
$btl->stats[$btl->uids[$u->info['id']]],
$btl->stats[$btl->uids[$u->info['enemy']]],
$btl->users[$btl->uids[$u->info['id']]],
$btl->users[$btl->uids[$u->info['enemy']]],
$tp_atk
);
$hpmin = rand($hpmin['min'], $hpmin['max']); $hpmin = rand($hpmin['min'], $hpmin['max']);
} elseif ($pl['id'] == 212) { } elseif ($pl['id'] == 212) {
//Ограниченный маневр //Ограниченный маневр