home · contact · privacy
Enemies have hitpoints (5 at start), disappear when those reach 0.
[plomrogue] / src / objects_on_map.h
index 4966161d90ec6b7cc239ff93973af56d2e6ac8e9..ccb9bcd0f90389f948cfb5dc2201d738c6915a64 100644 (file)
@@ -17,7 +17,8 @@ struct Item {
 struct Monster {
   struct Monster * next;
   unsigned char name;
-  struct yx_uint16 pos; };
+  struct yx_uint16 pos;
+  unsigned char hitpoints; };
 
 extern char is_passable (struct Map *, struct yx_uint16);
 extern struct yx_uint16 find_passable_pos (struct Map *);