[Change] Lower faction loss for beams, no longer insta-hostile.
This commit is contained in:
parent
cf4a4926d7
commit
b689102f75
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user