From 847087affbcf2fb5c18b47ae1ee7b5471fc32378 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 31 May 2021 23:30:54 -0400 Subject: Semi-random ship damage --- convfont.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'convfont.c') diff --git a/convfont.c b/convfont.c index 211eb30..f48542f 100644 --- a/convfont.c +++ b/convfont.c @@ -190,6 +190,18 @@ char damaged_shipshape[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; +/* DAMAGED2.DAT - as above. damage_lorcha randomly picks + from the 2 damaged ship shapes. */ +char damaged_shipshape2[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x42, 0x4e, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x48, 0x4c, 0x56, 0x57, 0x60, + 0x00, 0x00, 0x5e, 0x49, 0x4b, 0x57, 0x5f, + 0x00, 0x7d, 0x7e, 0x7c, 0x7e, 0x50, 0x7f, + 0x00, 0x46, 0xd4, 0x49, 0x4c, 0x5d, 0x47, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; + void bitswap(unsigned char *b, int lim) { unsigned char j, k; // fprintf(stderr, "bitswap(%x, %d)\n", b, lim); @@ -310,5 +322,9 @@ int main(int argc, char **argv) { write(i, damaged_shipshape, sizeof(damaged_shipshape)); close(i); + i = open("DAMAGED2.DAT", O_WRONLY | O_CREAT, 0666); + write(i, damaged_shipshape2, sizeof(damaged_shipshape2)); + close(i); + return 0; } -- cgit v1.2.3