Page 1 of 1

[1.0.5] Cannot equip two short staffs.

Posted: Fri Oct 18, 2013 12:53 pm
by Moander
You cannot equip two "Short" staffs at the same time despite that they are both one-handed. You can on the other hand equip a short staff and a shield.

If this is intentional it should probably say so somewhere in the description.

[Edit] I closed this bugreport earlier but my Reaver have the same problem.

I can equip a short staff and a shield, I can equip two maces but I can not equip two short staffs

Re: [1.0.5 beta] You cannot equip two one-handed staffs at o

Posted: Fri Oct 18, 2013 3:53 pm
by Doctornull
Have you tried equipping two non-staff one-handed weapons?

One-handed staves work the same as one-handed longswords.

Re: [1.0.5 beta] You cannot equip two one-handed staffs at o

Posted: Fri Oct 18, 2013 5:14 pm
by Crim, The Red Thunder
Indeed. If you have corrupted strength and still can't equip, then it's a bug.

Re: [1.0.5 beta] You cannot equip two one-handed staffs at o

Posted: Fri Oct 18, 2013 9:21 pm
by Moander
Doctornull wrote:Have you tried equipping two non-staff one-handed weapons?

One-handed staves work the same as one-handed longswords.
Dooh, you are correct. :oops:

I will blame the 14 hour meeting I had today.

Re: [1.0.5] Cannot equip two short staffs.

Posted: Wed Nov 13, 2013 8:28 pm
by Moander
I am reopening this bug. My Reaver http://te4.org/characters/9027/tome/d0d ... 2aab69426a have the same problem as my Arcane Blade.

I can equip a short staff and a shield or two maces but I can't equip two short staffs.

From the log file:

Code: Select all

[MOUSE] pre starting drag'n'drop
[MOUSE] enabling drag from predrag
[MOUSE] ending drag'n'drop
fight: 	short elm vilestaff of illumination	Prox's Lucky Halfling Foot	::	nil	MAINHAND
fight: 	short elm vilestaff of illumination	short ash magestaff of fate	::	false	MAINHAND
fight: 	short elm vilestaff of illumination	alchemist's iron gauntlets of war-making	::	nil	MAINHAND
fight: 	short elm vilestaff of illumination	Mighty Girdle	::	nil	MAINHAND
fight: 	short elm vilestaff of illumination	grounding linen wizard hat of corrosion (#RESIST#)	::	nil	MAINHAND
fight: 	short elm vilestaff of illumination	Cloak of Deception	::	nil	MAINHAND
fight: 	short elm vilestaff of illumination	Eel-skin armour	::	nil	MAINHAND
fight: 	short elm vilestaff of illumination	Summertide Phial	::	nil	MAINHAND
fight: 	short elm vilestaff of illumination	starlit copper amulet of strength (#STATBONUS#)	::	nil	MAINHAND
fight: 	short elm vilestaff of illumination	wizard's copper ring	::	nil	MAINHAND
fight: 	short elm vilestaff of illumination	wizard's steel ring	::	nil	MAINHAND
fight: 	short elm vilestaff of illumination	Koreromitir the pair of iron boots	::	nil	MAINHAND
[SOUND] loading from	/data/sound/actions/takeoff.ogg	:=:	sound "/data/sound/actions/takeoff.ogg" : <static>
[LOG]	Aelfin wears(replacing): #00FF80##UID:1549:0#short elm vilestaff of illumination (10-12 power, 2 apr, blight damage)#LAST#.
[LOG]	
[MOUSE] pre starting drag'n'drop
[MOUSE] enabling drag from predrag
[MOUSE] ending drag'n'drop

Re: [1.0.5] Cannot equip two short staffs.

Posted: Thu Nov 14, 2013 7:21 am
by Moander
I took a look at the code and I think I have found the cause of the "bug".

Code: Select all

--- Returns the possible offslot
function _M:getObjectOffslot(o)
	if o.dual_wieldable and self:attr("allow_any_dual_weapons") then
		return "OFFHAND"
	else
		return o.offslot
	end
end
The "Short" staff ego does not have a dual_wieldable or a offslot property which means it will only be wield-able in the main slot.

Unless this is intentional the quickest fix would be to add a dual_wieldable = true for the "Short" and "Magewarriors short" ego in data/general/objects/egos/staves.lua

Re: [1.0.5] Cannot equip two short staffs.

Posted: Thu Nov 14, 2013 8:39 am
by darkgod
fixed

Re: [1.0.5] Cannot equip two short staffs.

Posted: Thu Nov 14, 2013 8:48 am
by SageAcrin
As a note; The code perfectly mirrors the Telos Staff (Top) code, and I wasn't sure if the Reaver disallow was purposeful or not.

If it's not, Telos Top probably ought to be fixed too.

Re: [1.0.5] Cannot equip two short staffs.

Posted: Thu Nov 14, 2013 8:50 am
by darkgod
Nope, telos is a broken staff into two parts, one for each hands

Re: [1.0.5] Cannot equip two short staffs.

Posted: Thu Nov 14, 2013 8:51 am
by SageAcrin
Fair enough.