Re: Технологии
Добавлено: 23 фев 2012, 20:58
vars.php - добавить
'bonus' => TECH_LASER,
'bonus1' => laser_tech,
или
'bonus' => TECH_ION,
'bonus1' => ionic_tech,
или
'bonus' => TECH_PLASMA,
'bonus1' => buster_tech,
coe_calculateattack.php - function coe_precalc_round_data
$thisAtt = $amount * ($sn_data[$element]['attack']) * $fleet['techs']['att'];
заменить на
$thisAtt = $amount * ($sn_data[$element]['attack'] * $fleet['techs']['att']) *
(1 + 0.1 * ($user[ $sn_data[$element]['bonus1'] ] - $sn_data[$element]['require'][ $sn_data[$element]['bonus'] ] );
simulator.php -
$techs_and_officers = array(TECH_WEAPON, TECH_SHIELD, TECH_ARMOR, MRC_ADMIRAL);
заменить на
$techs_and_officers = array(TECH_WEAPON, TECH_SHIELD, TECH_ARMOR, TECH_LASER, TECH_ION, TECH_PLASMA, MRC_ADMIRAL);
еще можно добавить эффективные значения для обороны
infos.php
// Defenses
добавить
$parse['ACTUAL_ARMOR'] = pretty_number(($sn_data[$unit_id]['metal'] + $sn_data[$unit_id]['crystal']) / 10 * mrc_modify_value($user, false, MRC_ADMIRAL, 1 + 0.1 * $user['defence_tech']));
$parse['ACTUAL_SHIELD'] = pretty_number($sn_data[$unit_id]['shield'] * mrc_modify_value($user, false, MRC_ADMIRAL, 1 + 0.1 * $user['shield_tech']));
$parse['ACTUAL_WEAPON'] = pretty_number($sn_data[$unit_id]['attack'] * mrc_modify_value($user, false, MRC_ADMIRAL, 1 + 0.1 * $user['military_tech']) *
(1 + 0.1 * ( $user[$sn_data[$unit_id]['bonus1']] - $sn_data[$unit_id]['require'][ $sn_data[$unit_id]['bonus'] ] ) ) );
info_buildings_defense.tpl
добавить
<th>{ACTUAL_WEAPON}</th> после <th>{attack_pt}</th>
<th>{ACTUAL_SHIELD}</th> после <th>{shield_pt}</th>
<th>{ACTUAL_ARMOR}</th> после <th>{hull_pt}</th>
и поменять colspan="2" на colspan="3" где надо
'bonus' => TECH_LASER,
'bonus1' => laser_tech,
или
'bonus' => TECH_ION,
'bonus1' => ionic_tech,
или
'bonus' => TECH_PLASMA,
'bonus1' => buster_tech,
coe_calculateattack.php - function coe_precalc_round_data
$thisAtt = $amount * ($sn_data[$element]['attack']) * $fleet['techs']['att'];
заменить на
$thisAtt = $amount * ($sn_data[$element]['attack'] * $fleet['techs']['att']) *
(1 + 0.1 * ($user[ $sn_data[$element]['bonus1'] ] - $sn_data[$element]['require'][ $sn_data[$element]['bonus'] ] );
simulator.php -
$techs_and_officers = array(TECH_WEAPON, TECH_SHIELD, TECH_ARMOR, MRC_ADMIRAL);
заменить на
$techs_and_officers = array(TECH_WEAPON, TECH_SHIELD, TECH_ARMOR, TECH_LASER, TECH_ION, TECH_PLASMA, MRC_ADMIRAL);
еще можно добавить эффективные значения для обороны
infos.php
// Defenses
добавить
$parse['ACTUAL_ARMOR'] = pretty_number(($sn_data[$unit_id]['metal'] + $sn_data[$unit_id]['crystal']) / 10 * mrc_modify_value($user, false, MRC_ADMIRAL, 1 + 0.1 * $user['defence_tech']));
$parse['ACTUAL_SHIELD'] = pretty_number($sn_data[$unit_id]['shield'] * mrc_modify_value($user, false, MRC_ADMIRAL, 1 + 0.1 * $user['shield_tech']));
$parse['ACTUAL_WEAPON'] = pretty_number($sn_data[$unit_id]['attack'] * mrc_modify_value($user, false, MRC_ADMIRAL, 1 + 0.1 * $user['military_tech']) *
(1 + 0.1 * ( $user[$sn_data[$unit_id]['bonus1']] - $sn_data[$unit_id]['require'][ $sn_data[$unit_id]['bonus'] ] ) ) );
info_buildings_defense.tpl
добавить
<th>{ACTUAL_WEAPON}</th> после <th>{attack_pt}</th>
<th>{ACTUAL_SHIELD}</th> после <th>{shield_pt}</th>
<th>{ACTUAL_ARMOR}</th> после <th>{hull_pt}</th>
и поменять colspan="2" на colspan="3" где надо