[Change] Lower faction loss for beams, no longer insta-hostile.

This commit is contained in:
Allanis 2014-05-20 14:56:43 +01:00
parent cf4a4926d7
commit b689102f75

View File

@ -681,7 +681,7 @@ static void weapon_hitBeam(Weapon* w, Pilot* p, WeaponLayer layer,
((player->target == p->id) || (RNGF() < 0.30*dt))) { /* 30% chance per second. */ ((player->target == p->id) || (RNGF() < 0.30*dt))) { /* 30% chance per second. */
parent = pilot_get(w->parent); parent = pilot_get(w->parent);
if((parent != NULL) && (parent->faction == FACTION_PLAYER) && if((parent != NULL) && (parent->faction == FACTION_PLAYER) &&
(!pilot_isFlag(p, PILOT_HOSTILE) || (RNGF()*dt < 0.5))) { /* 50% chance. */ (!pilot_isFlag(p, PILOT_HOSTILE) || (RNGF() < 0.50*dt))) { /* 50% chance. */
faction_modPlayer(p->faction, -1.); /* Slowly lower faction. */ faction_modPlayer(p->faction, -1.); /* Slowly lower faction. */
} }
pilot_rmFlag(p, PILOT_BRIBED); pilot_rmFlag(p, PILOT_BRIBED);