… | |
… | |
532 | || (type == SPELL_EFFECT |
532 | || (type == SPELL_EFFECT |
533 | && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } |
533 | && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } |
534 | MTH bool is_range () const { return type == BOW || type == ROD || type == WAND || type == HORN; } |
534 | MTH bool is_range () const { return type == BOW || type == ROD || type == WAND || type == HORN; } |
535 | |
535 | |
536 | MTH bool is_dragon () const; |
536 | MTH bool is_dragon () const; |
|
|
537 | |
|
|
538 | MTH bool is_immunity () const { return invisible && type == SIGN; } |
537 | |
539 | |
538 | MTH bool has_active_speed () const { return speed >= MIN_ACTIVE_SPEED; } |
540 | MTH bool has_active_speed () const { return speed >= MIN_ACTIVE_SPEED; } |
539 | |
541 | |
540 | // temporary: wether the object can be saved in a map file |
542 | // temporary: wether the object can be saved in a map file |
541 | // contr => is a player |
543 | // contr => is a player |