… | |
… | |
284 | MTH void change_luck (int value); |
284 | MTH void change_luck (int value); |
285 | |
285 | |
286 | // info must hold 256 * 3 bytes currently |
286 | // info must hold 256 * 3 bytes currently |
287 | const char *debug_desc (char *info) const; |
287 | const char *debug_desc (char *info) const; |
288 | MTH const char *debug_desc () const; |
288 | MTH const char *debug_desc () const; |
|
|
289 | const char *debug_desc2 () const; // another debug_desc, pure convinience function |
289 | const char *flag_desc (char *desc, int len) const; |
290 | const char *flag_desc (char *desc, int len) const; |
290 | |
291 | |
291 | MTH bool is_weapon () const { return type == ARROW || type == BOW || type == WEAPON; } |
292 | MTH bool is_weapon () const { return type == ARROW || type == BOW || type == WEAPON; } |
292 | MTH bool is_armor () const { return type == ARMOUR || type == SHIELD || type == HELMET |
293 | MTH bool is_armor () const { return type == ARMOUR || type == SHIELD || type == HELMET |
293 | || type == CLOAK || type == BOOTS || type == GLOVES |
294 | || type == CLOAK || type == BOOTS || type == GLOVES |