diff options
author | Robert Burnham <burnhamrobertp@gmail.com> | 2011-03-25 10:07:31 -0500 |
---|---|---|
committer | Robert Burnham <burnhamrobertp@gmail.com> | 2011-03-25 10:07:31 -0500 |
commit | c29de29ce95cd402298e8bef5965ae1f4f361f22 (patch) | |
tree | 0b8a6484abb490dad5bab9d4e61d3d761a6844ad /crawl-ref/source/attack.h | |
parent | 9596e462eaa8bda46c7dd09599c7095ef451e6e9 (diff) | |
download | crawl-ref-c29de29ce95cd402298e8bef5965ae1f4f361f22.tar.gz crawl-ref-c29de29ce95cd402298e8bef5965ae1f4f361f22.zip |
Change attack::damage_brand from <int> to <brand_type>
Also moves melee_attack::*shield to attack::*shield (attacker's shield) since
both melee and ranged attacks would benefit from this same member data.
Diffstat (limited to 'crawl-ref/source/attack.h')
-rw-r--r-- | crawl-ref/source/attack.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/attack.h b/crawl-ref/source/attack.h index 2179445513..e107a4e3df 100644 --- a/crawl-ref/source/attack.h +++ b/crawl-ref/source/attack.h @@ -58,16 +58,18 @@ public: bool ev_margin; item_def *weapon; - int damage_brand; // TODO: int => brand_type + brand_type damage_brand; skill_type wpn_skill; hands_reqd_type hands; bool hand_half_bonus; + // Attacker's shield, stored so we can reference it and determine + // the attacker's combat effectiveness (staff + shield == bad) + item_def *shield; // 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; |