diff options
author | Robert Burnham <burnhamrobertp@gmail.com> | 2011-03-24 16:05:40 -0500 |
---|---|---|
committer | Robert Burnham <burnhamrobertp@gmail.com> | 2011-03-24 16:05:40 -0500 |
commit | 9596e462eaa8bda46c7dd09599c7095ef451e6e9 (patch) | |
tree | 07289648e598e97daaa7bed56f5a9359c9274af2 /crawl-ref/source/attack.h | |
parent | 8cf1acf2f02e5dd17fc0b414197d6b6d714031d8 (diff) | |
download | crawl-ref-9596e462eaa8bda46c7dd09599c7095ef451e6e9.tar.gz crawl-ref-9596e462eaa8bda46c7dd09599c7095ef451e6e9.zip |
Move melee_attack properties to attack
Moves some artefact properties I thought I wasn't going to need for the general
attack class from melee_attack into attack since any attacking weapon could
potentially be an attacking weapon.
Diffstat (limited to 'crawl-ref/source/attack.h')
-rw-r--r-- | crawl-ref/source/attack.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/attack.h b/crawl-ref/source/attack.h index ada558babc..2179445513 100644 --- a/crawl-ref/source/attack.h +++ b/crawl-ref/source/attack.h @@ -1,6 +1,7 @@ #ifndef ATTACK_H #define ATTACK_H +#include "artefact.h" #include "itemprop-enum.h" // Used throughout inheriting classes, define them here for universal access @@ -62,6 +63,13 @@ public: hands_reqd_type hands; bool hand_half_bonus; + // If weapon is an artefact, its properties. + artefact_properties_t art_props; + + // If a weapon is an unrandart, its unrandart entry. + // TODO: replace with *weapon references in attack + unrandart_entry *unrand_entry; + int attacker_to_hit_penalty; // Attack messages |