-# Makefile for Dungeon Bash
+# Makefile for Cave Chop (7DRL)
#
# Linux/gcc only; I'm writing this in riceboy-hacker mode. Deal.
OBJS=bmagic.o combat.o display.o main.o map.o misc.o monsters.o mon2.o objects.o permobj.o permons.o pmon2.o rng.o u.o vector.o
-GAME=dungeonbash
-# MPR: per <lj user="ewx">, users are advised to remove -Werror when
-# building on Darwin due to a bug in Darwin's version of "ncurses.h".
-#
-# It is apparently possible to build this code for Windows XP, although I have
-# no details.
+GAME=cavechop
MAJVERS=1
-MINVERS=7
-CFLAGS=-c -g -Wall -Wstrict-prototypes -Wwrite-strings -Wmissing-prototypes -Werror -Wredundant-decls -Wunreachable-code -DMAJVERS=$(MAJVERS) -DMINVERS=$(MINVERS)
+MINVERS=0
+PRODUCTION_CFLAGS=-c -Wall -Wstrict-prototypes -Wwrite-strings -Wmissing-prototypes -Wredundant-decls -Wunreachable-code -DMAJVERS=$(MAJVERS) -DMINVERS=$(MINVERS)
+DEVELOPMENT_CFLAGS=-c -Wall -Wstrict-prototypes -Wwrite-strings -Wmissing-prototypes -Wredundant-decls -Wunreachable-code -Werror -DMAJVERS=$(MAJVERS) -DMINVERS=$(MINVERS)
+CFLAGS=$(DEVELOPMENT_CFLAGS)
LINKFLAGS=-lpanel -lncurses -g
+ARCHIVEDIR=cavedir7drl
all: $(GAME)
$(CC) $(OBJS) $(LINKFLAGS) -o $(GAME)
archive: clean
- (cd .. && tar cvzf dungeonbash-$(MAJVERS).$(MINVERS).tar.gz dungeonbash-$(MAJVERS).$(MINVERS))
+ mkdir $(ARCHIVEDIR)
+ cp `cat MANIFEST` $(ARCHIVEDIR)
+ tar czf $(ARCHIVEDIR).tgz $(ARCHIVEDIR)
clean:
-rm -f *.o $(GAME) dunbash.log dunbash.sav.gz
/* bmagic.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* combat.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* display.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
idcok(status_window, FALSE);
idcok(world_window, FALSE);
idcok(message_window, FALSE);
- mvwprintw(world_window, 6, 5, " Martin's");
- mvwprintw(world_window, 7, 5, "Dungeon Bash");
- mvwprintw(world_window, 9, 5, "Version %d.%d", MAJVERS, MINVERS);
+ mvwprintw(world_window, 7, 7, "Cave Chop");
+ mvwprintw(world_window, 9, 2, "Seven-Day Roguelike");
+ mvwprintw(world_window, 11, 4, "By Martin Read");
wmove(message_window, 0, 0);
map_updated = FALSE;
status_updated = FALSE;
#define PO_DRAGON_ARMOUR (PO_FIRST_ARMOUR + 7)
#define PO_METEOR_ARMOUR (PO_FIRST_ARMOUR + 8)
#define PO_SACRED_MAIL (PO_FIRST_ARMOUR + 9)
-#define PO_LAST_ARMOUR PO_SACRED_MAIL
+#define PO_BATTLE_BALLGOWN (PO_FIRST_ARMOUR + 10)
+#define PO_RIBBONS (PO_FIRST_ARMOUR + 11)
+#define PO_LAST_ARMOUR PO_RIBBONS
#define PO_RING_REGEN (PO_LAST_ARMOUR + 1)
#define PO_FIRST_RING PO_RING_REGEN
#define PO_RING_FIRE (PO_FIRST_RING + 1)
/* main.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* map.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* misc.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* mon2.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* monsters.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* objects.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* permobj.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* permons.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* pmon2.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* rng.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* u.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
/* vector.c
*
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions