… | |
… | |
300 | && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } |
300 | && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } |
301 | |
301 | |
302 | /* This return true if object has still randomitems which |
302 | /* This return true if object has still randomitems which |
303 | * could be expanded. |
303 | * could be expanded. |
304 | */ |
304 | */ |
305 | bool has_random_items () const { return randomitems && flags [FLAG_IS_A_TEMPLATE]; } |
305 | bool has_random_items () const { return randomitems && !flags [FLAG_IS_A_TEMPLATE]; } |
306 | |
306 | |
307 | // fully recursive iterator |
307 | // fully recursive iterator |
308 | struct iterator_base |
308 | struct iterator_base |
309 | { |
309 | { |
310 | object *item; |
310 | object *item; |