}
/* incoming phaser or torpedo, shields may dissipate it */
if (game.shldup || game.shldchg || game.condition==docked) {
/* shields will take hits */
double absorb, hitsh, propor = pfac*game.shield*(game.condition==docked ? 2.1 : 1.0);
}
/* incoming phaser or torpedo, shields may dissipate it */
if (game.shldup || game.shldchg || game.condition==docked) {
/* shields will take hits */
double absorb, hitsh, propor = pfac*game.shield*(game.condition==docked ? 2.1 : 1.0);