2023-03-31 18:42:06 +00:00
|
|
|
<?php
|
2023-08-14 15:15:05 +00:00
|
|
|
if (!defined('GAME')) {
|
|
|
|
die();
|
2022-06-06 21:30:34 +00:00
|
|
|
}
|
|
|
|
/*
|
2023-01-10 16:29:32 +00:00
|
|
|
Прием: Рывок
|
2022-06-06 21:30:34 +00:00
|
|
|
*/
|
2023-08-14 15:15:05 +00:00
|
|
|
$pvr = [];
|
|
|
|
|
|
|
|
echo '<font color=red><b>Вы успешно использовали прием "Рывок"</b></font>';
|
|
|
|
|
|
|
|
$this->maxtr(1, 3);
|
|
|
|
$this->addEffPr($pl, $id);
|
|
|
|
//
|
|
|
|
$prv['effx'] = '';
|
|
|
|
//Разбираем дату $pl['date3']
|
|
|
|
$prv['eda'] = $pl['date3'];
|
|
|
|
//
|
|
|
|
if (isset($prv['eda'])) {
|
|
|
|
$prv['d'] = Helper\Conversion::dataStringToArray($prv['eda']);
|
|
|
|
$prv['j'] = Helper\Conversion::dataStringToArray($this->redate($prv['eda'], $u->info['id']));
|
|
|
|
$prv['v'] = $u->lookKeys($this->redate($prv['eda'], $u->info['id']), 0); // ключи 2
|
|
|
|
$prv['i'] = 0;
|
|
|
|
$prv['inf'] = '';
|
|
|
|
while ($prv['i'] < count($prv['v'])) {
|
|
|
|
//$prv['j'][$prv['v'][$prv['i']]] += $prv['j'][$prv['v'][$prv['i']]];
|
|
|
|
$prv['vi'] = str_replace('add_', '', $prv['v'][$prv['i']]);
|
|
|
|
if ($u->is[$prv['vi']] != '') {
|
|
|
|
if ($prv['j'][$prv['v'][$prv['i']]] > 0) {
|
|
|
|
$prv['inf'] .= $u->is[$prv['vi']] . ': +' . ($prv['j'][$prv['v'][$prv['i']]]) . ', ';
|
|
|
|
} elseif ($prv['j'][$prv['v'][$prv['i']]] < 0) {
|
|
|
|
$prv['inf'] .= $u->is[$prv['vi']] . ': ' . ($prv['j'][$prv['v'][$prv['i']]]) . ', ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$prv['i']++;
|
|
|
|
}
|
|
|
|
$prv['effx'] = rtrim($prv['inf'], ', ');
|
|
|
|
}
|
|
|
|
//
|
|
|
|
if ($prv['effx'] != '') {
|
|
|
|
$prv['effx'] = ' (' . $prv['effx'] . ')';
|
|
|
|
}
|
|
|
|
//
|
|
|
|
$prv['color2'] = '000000';
|
|
|
|
$prv['text'] = $btl->addlt(1, 17, $btl->users[$btl->uids[$u->info['id']]]['sex'], null);
|
|
|
|
$prv['text2'] = '{tm1} ' . $prv['text'] . '.' . $prv['effx'];
|
|
|
|
$pvr['i'] = 1;
|
|
|
|
$btl->users[$btl->uids[$u->info['id']]]['tactic' . $pvr['i']] = $btl->users[$btl->uids[$u->info['id']]]['tactic' . $pvr['i']] + 3;
|
|
|
|
|
|
|
|
if ($btl->users[$btl->uids[$u->info['id']]]['tactic' . $pvr['i']] > 25) {
|
|
|
|
$btl->users[$btl->uids[$u->info['id']]]['tactic' . $pvr['i']] = 25;
|
|
|
|
}
|
|
|
|
|
|
|
|
$btl->priemAddLog($id, 1, 2, $u->info['id'], $this->ue['id'],
|
|
|
|
'<font color^^^^#' . $prv['color2'] . '>Рывок</font>',
|
|
|
|
$prv['text2'],
|
|
|
|
($btl->hodID + 0)
|
|
|
|
);
|
2022-06-06 21:30:34 +00:00
|
|
|
unset($pvr);
|
|
|
|
?>
|