![]() |
#1 |
Knight
Join Date: May 2008
Location: Saratoga, California (in the midst of Silicon Valley)
Posts: 515
![]() |
sil 1.1: minor bug with thrown weapons
I've noticed that sometimes the "attack to-hit" modifier for a thrown weapon is higher than it should be. I looked into this, and it appears the trouble is that when the character is wielding a melee weapon for which they have "affinity", that extra +1 for the melee weapon is not subtracted from the modifier for the thrown weapon. Thus, if a Noldor is wielding a sword and then throws a spear, the spear gets the benefit of the +1 sword affinity modifier.
More precisely: in cmd2.c, routine do_cmd_throw, it has: Code:
... attack_mod = p_ptr->skill_use[S_MEL] + i_ptr->att; // subtract out the melee weapon's bonus (as we had already accounted for it) attack_mod -= (&inventory[INVEN_WIELD])->att; ... |
![]() |
![]() |
![]() |
#2 |
Knight
Join Date: Jan 2009
Posts: 910
![]() |
Well spotted!
This is an advantage of having a combat rolls window. Presumably bugs like this would never be spotted in most games. Of course with all the different combinations of abilities and affinities, Sil has more opportunities for bugs like this to arise. I've added it to the bugs list. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sil: smithing (bug?) (feature?) | bron | Sil | 3 | September 11, 2012 02:10 |
Minor 3.3.2 bug with identify-by-use | bron | Vanilla | 1 | November 12, 2011 12:43 |
Bug while trying to switch weapons | Raggy | Development | 14 | June 10, 2011 10:03 |
Minor bug in 'n' command | fyonn | Vanilla | 7 | July 14, 2010 09:59 |
3.1.0 Very minor bug | perost | Vanilla | 0 | January 9, 2009 22:48 |