From 4340b8042cc0611157359e8e6c101e80cf8232ac Mon Sep 17 00:00:00 2001 From: Allanis Date: Thu, 3 Oct 2013 01:17:11 +0100 Subject: [PATCH] [Change] Tweaked beam aggro chance somewhat. --- src/weapon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/weapon.c b/src/weapon.c index 73382a3..0581d48 100644 --- a/src/weapon.c +++ b/src/weapon.c @@ -561,7 +561,7 @@ static void weapon_hitBeam(Weapon* w, Pilot* p, WeaponLayer layer, /* Inform the ai it has been attacked, useless if player. */ if(!pilot_isPlayer(p)) { - if((player_target == p->id) || (RNGF()*dt < 0.70)) { /* 70% chance per second. */ + if((player_target == p->id) || (RNGF() < 0.30*dt)) { /* 30% chance per second. */ if((w->parent == PLAYER_ID) && (!pilot_isFlag(p, PILOT_HOSTILE) || (RNGF() < 0.5))) { /* 50% chance. */ faction_modPlayer(p->faction, -1); /* Slowly lower faction. */