… | |
… | |
175 | arch_ptr ACC (RW, arch); /* Pointer to archetype */ |
175 | arch_ptr ACC (RW, arch); /* Pointer to archetype */ |
176 | arch_ptr ACC (RW, other_arch);/* Pointer used for various things - mostly used for what */ |
176 | arch_ptr ACC (RW, other_arch);/* Pointer used for various things - mostly used for what */ |
177 | |
177 | |
178 | float ACC (RW, speed); /* The overall speed of this object */ |
178 | float ACC (RW, speed); /* The overall speed of this object */ |
179 | float ACC (RW, speed_left); /* How much speed is left to spend this round */ |
179 | float ACC (RW, speed_left); /* How much speed is left to spend this round */ |
180 | uint32 ACC (RW, nrof); /* How many of the objects */ |
180 | sint32 ACC (RW, nrof); /* How many of the objects */ |
181 | |
181 | |
182 | /* This next big block is basically used for monsters and equipment */ |
182 | /* This next big block is basically used for monsters and equipment */ |
183 | uint16 ACC (RW, client_type); /* Public type information. see doc/Developers/objects */ |
183 | uint16 ACC (RW, client_type); /* Public type information. see doc/Developers/objects */ |
184 | |
184 | |
185 | sint16 ACC (RW, resist[NROFATTACKS]); /* Resistance adjustments for attacks */ |
185 | sint16 ACC (RW, resist[NROFATTACKS]); /* Resistance adjustments for attacks */ |
… | |
… | |
467 | /* This return true if object has still randomitems which |
467 | /* This return true if object has still randomitems which |
468 | * could be expanded. |
468 | * could be expanded. |
469 | */ |
469 | */ |
470 | MTH bool has_random_items () const { return randomitems && !flag [FLAG_IS_A_TEMPLATE]; } |
470 | MTH bool has_random_items () const { return randomitems && !flag [FLAG_IS_A_TEMPLATE]; } |
471 | |
471 | |
|
|
472 | MTH bool has_dialogue () const { return *&msg == '@'; } |
|
|
473 | |
472 | // returns the outermost owner, never returns 0 |
474 | // returns the outermost owner, never returns 0 |
473 | MTH object *outer_owner () |
475 | MTH object *outer_owner () |
474 | { |
476 | { |
475 | for (object *op = this; ; op = op->owner) |
477 | for (object *op = this; ; op = op->owner) |
476 | if (!op->owner) |
478 | if (!op->owner) |