home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enemies have hitpoints (5 at start), disappear when those reach 0.
[plomrogue]
/
src
/
objects_on_map.h
diff --git
a/src/objects_on_map.h
b/src/objects_on_map.h
index 4966161d90ec6b7cc239ff93973af56d2e6ac8e9..ccb9bcd0f90389f948cfb5dc2201d738c6915a64 100644
(file)
--- a/
src/objects_on_map.h
+++ b/
src/objects_on_map.h
@@
-17,7
+17,8
@@
struct Item {
struct Monster {
struct Monster * next;
unsigned char name;
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 *);
extern char is_passable (struct Map *, struct yx_uint16);
extern struct yx_uint16 find_passable_pos (struct Map *);