X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fbattle.c;h=836f1e7702dd0cd12c2de9140df591960f3a7dda;hp=3f3accdc830832195953156a69630264feb385a0;hb=74121a21cca010c891ef19a178f9b9acf4d473eb;hpb=deed0903c0666e52bab540a39ed99131f4073970 diff --git a/src/battle.c b/src/battle.c index 3f3accd..836f1e7 100644 --- a/src/battle.c +++ b/src/battle.c @@ -538,7 +538,8 @@ static void fry(double hit) if (loop2 < loop1) continue; ktr += 1; - if (ktr==3) skip(1); + if (ktr==3) + skip(1); proutn(_(" and ")); } proutn(device[j]); @@ -597,7 +598,8 @@ void attack(bool torps_ok) where = sector; for_local_enemies(loop) { - if (game.kpower[loop] < 0) continue; /* too weak to attack */ + if (game.kpower[loop] < 0) + continue; /* too weak to attack */ /* compute hit strength and diminish shield power */ r = Rand(); /* Increase chance of photon torpedos if docked or enemy energy low */ @@ -617,7 +619,8 @@ void attack(bool torps_ok) (iquad==IHS && r > 0.07) || (iquad==IHQUEST && r > 0.05); if (usephasers) { /* Enemy uses phasers */ - if (game.condition == docked) continue; /* Don't waste the effort! */ + if (game.condition == docked) + continue; /* Don't waste the effort! */ attempt = true; /* Attempt to attack */ dustfac = 0.8+0.05*Rand(); hit = game.kpower[loop]*pow(dustfac,game.kavgd[loop]);