New base calculation for PilotStatistics
Posted: Mon 02 Dec 2013 12:06 am
Hi again Shades,
I have a question if you dont mind. I'm trying to adjust the base calculation for the Gross Combat Score value seen in the pilot statistics.
I would like the normal Air+Surface+Casualty value to be multiplied by the survival rate in order to give a more fair score (in my opnion players have to value their virtual lives more than the number of kills per se) so i tried to add to the following code into line 298 of the MP - PilotDetails.php:
$CasualtyValue = -$KIAValue - $MIAValue;
print '<span class="small" style="color: '.SSkinText().';" title="Total Production Cost of Kills">'.LL($L->screen->PilotDetails->grossscore).':<br> <b> '.$AV.' ('.LL($L->screen->PilotDetails->air).') + '.$SV.' ('.LL($L->screen->PilotDetails->surface).') - '.$CasualtyValue.' ('.LL($L->screen->PilotDetails->casualty).') * '.sprint(($AK + $MIA)/$NMissions).' ('.LL($L->screen->PilotDetails->sortiesurvival).') = '.($AV+$SV-$CasualtyValue*($AK+$MIA)/$Missions*).'</b></span><br>';
but I keep getting a syntax error. What am I doing wrong?
Thxs for ur patience ...
Riksen
I have a question if you dont mind. I'm trying to adjust the base calculation for the Gross Combat Score value seen in the pilot statistics.
I would like the normal Air+Surface+Casualty value to be multiplied by the survival rate in order to give a more fair score (in my opnion players have to value their virtual lives more than the number of kills per se) so i tried to add to the following code into line 298 of the MP - PilotDetails.php:
$CasualtyValue = -$KIAValue - $MIAValue;
print '<span class="small" style="color: '.SSkinText().';" title="Total Production Cost of Kills">'.LL($L->screen->PilotDetails->grossscore).':<br> <b> '.$AV.' ('.LL($L->screen->PilotDetails->air).') + '.$SV.' ('.LL($L->screen->PilotDetails->surface).') - '.$CasualtyValue.' ('.LL($L->screen->PilotDetails->casualty).') * '.sprint(($AK + $MIA)/$NMissions).' ('.LL($L->screen->PilotDetails->sortiesurvival).') = '.($AV+$SV-$CasualtyValue*($AK+$MIA)/$Missions*).'</b></span><br>';
but I keep getting a syntax error. What am I doing wrong?
Thxs for ur patience ...
Riksen