diff --git a/src/weapon.c b/src/weapon.c index 88832eb..677bb5a 100644 --- a/src/weapon.c +++ b/src/weapon.c @@ -312,9 +312,9 @@ static void weapon_update(Weapon* w, const double dt, WeaponLayer layer) { static void weapon_hit(Weapon* w, Pilot* p, WeaponLayer layer) { /* Someone should let the ai know it's been attacked. */ if(!pilot_isPlayer(p)) { - if((player_target == p->id) || (RNG(0,2) == 0)) { + if((player_target == p->id) || (RNG(0,2) == 0)) { /* 33% chance. */ if((w->parent == PLAYER_ID) && - (!pilot_isFlag(p, PILOT_HOSTILE) || (RNG(0, 2) == 0))) { + (!pilot_isFlag(p, PILOT_HOSTILE) || (RNG(0, 1) == 0))) { /* 50% chance. */ faction_modPlayer(p->faction, -1); /* Slowly lower faction. */ pilot_setFlag(p, PILOT_HOSTILE); }