Anonymous | Login | 2024-04-23 11:22 CEST |
Main | My View | View Issues | Change Log | Wiki | Tavern | News |
Viewing Issue Simple Details [ Jump to Notes ] [ Wiki ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
0004818 | [DCSS] Bug Report | minor | always | 2011-10-27 02:26 | 2011-11-09 17:58 | ||
Reporter | Caethan | View Status | public | ||||
Assigned To | Kate | ||||||
Priority | normal | Resolution | done | ||||
Status | closed | Product Branch | 0.9 ancient branch | ||||
Summary | 0004818: monsters won't swap weapons | ||||||
Description |
In versions 0.9.1 and later, most monsters will not ever switch to non-throwable melee weapons. This is due to a bug in monster::pickup_melee_weapon, in the monster.cc source file. The lines if (!_is_signature_weapon(this, item) && !dual_wielding) return (false); prevent a monster from replacing a non-throwable weapon if the new weapon is not "signature", even if its current weapon is also not "signature", which is true for nearly all monsters and weapons. These lines should be replaced with if (!_is_signature_weapon(this, item) && _is_signature_weapon(this, *weap) && !dual_wielding) return (false); which will only prevent weapon swaps to non-signature weapons if the monster is already wielding a signature weapon. |
||||||
Additional Information | |||||||
Tags | No tags attached. | ||||||
Attached Files | |||||||
|
Mantis 1.1.8[^] Copyright © 2000 - 2009 Mantis Group |