[Change] It should be easiar to lose a faction than it is to gain it.
This commit is contained in:
parent
afa05f0ff8
commit
515c951078
@ -100,7 +100,7 @@ void faction_modPlayer(int f, int mod) {
|
|||||||
for(i = 0; i < faction->nenemies; i++) {
|
for(i = 0; i < faction->nenemies; i++) {
|
||||||
enemy = &faction_stack[faction->enemies[i]];
|
enemy = &faction_stack[faction->enemies[i]];
|
||||||
|
|
||||||
enemy->player -= RNG(0, mod/2);
|
enemy->player -= MIN(1, RNG(0, mod/2));
|
||||||
faction_sanitizePlayer(enemy);
|
faction_sanitizePlayer(enemy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -301,7 +301,7 @@ void pilot_hit(Pilot* p, const Solid* w, const unsigned int shooter,
|
|||||||
pilot_dead(p);
|
pilot_dead(p);
|
||||||
/* Adjust the combat rating based on pilot mass and ditto faction. */
|
/* Adjust the combat rating based on pilot mass and ditto faction. */
|
||||||
if(shooter == PLAYER_ID) {
|
if(shooter == PLAYER_ID) {
|
||||||
mod = (int)sqrt(p->ship->mass/25.);
|
mod = MIN(1, (int)sqrt(p->ship->mass/25.));
|
||||||
player_crating += MAX(1, mod);
|
player_crating += MAX(1, mod);
|
||||||
faction_modPlayer(p->faction, -mod);
|
faction_modPlayer(p->faction, -mod);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user