[Change] Made rating/faction gain not linear.

This commit is contained in:
Allanis 2013-08-09 20:19:47 +01:00
parent c58223606b
commit 47f132a467

View File

@ -267,6 +267,7 @@ static void pilot_shootWeapon(Pilot* p, PilotOutfit* w, const unsigned int t) {
void pilot_hit(Pilot* p, const Solid* w, const unsigned int shooter,
const DamageType dtype, const double damage) {
int mod;
double damage_shield, damage_armour, knockback, dam_mod;
/* Calculate the damage. */
@ -299,8 +300,9 @@ void pilot_hit(Pilot* p, const Solid* w, const unsigned int shooter,
pilot_dead(p);
/* Adjust the combat rating based on pilot mass and ditto faction. */
if(shooter == PLAYER_ID) {
player_crating += MAX(1, p->ship->mass/50);
faction_modPlayer(p->faction, -(p->ship->mass/10));
mod = (int)sqrt(p->ship->mass/25.);
player_crating += MAX(1, mod);
faction_modPlayer(p->faction, -mod);
}
}
}