- if (!scene[game].ship[shipnum].file -> struck){
- Write(FILES + shipnum, 0, 66, 1);
- points = specs[scene[game].ship[shipnum].shipnum].pts + scene[game].ship[fromship].file -> points;
- Write(FILES + fromship, 0, 20, points);
- unboard(shipnum, shipnum, 0); /* all offense */
- unboard(shipnum, shipnum, 1); /* all defense */
- switch(die()){
-
- case 3:
- case 4: /* ship may sink */
- Write(FILES + shipnum, 0, 234, 1);
- break;
- case 5:
- case 6: /* ship may explode */
- Write(FILES + shipnum, 0, 232, 1);
- break;
- }
- Write(FILES + shipnum, 1, 164, "striking her colours!");
+ if (ship->file->struck)
+ return;
+ Write(W_STRUCK, ship, 0, 1, 0, 0, 0);
+ points = ship->specs->pts + from->file->points;
+ Write(W_POINTS, from, 0, points, 0, 0, 0);
+ unboard(ship, ship, 0); /* all offense */
+ unboard(ship, ship, 1); /* all defense */
+ switch (die()) {
+ case 3:
+ case 4: /* ship may sink */
+ Write(W_SINK, ship, 0, 1, 0, 0, 0);
+ break;
+ case 5:
+ case 6: /* ship may explode */
+ Write(W_EXPLODE, ship, 0, 1, 0, 0, 0);
+ break;