Page 1 of 1

Changing Item Type

PostPosted: Saturday, 5th November 2011, 19:11
by File200
I want to give the new race I'm developing an ability that gives a piece of weapon or armour the "Dwarven" tag. I planned to copy TSO's ability for this but I can't find it. What file would this be in? Has anyone tried to implement an ability like this before?

Re: Changing Item Type

PostPosted: Sunday, 6th November 2011, 08:56
by galehar
The function is _bless_weapon in godprayer.cc. You want to use

  Code:
set_equip_race(wpn, ISFLAG_DWARVEN);

Re: Changing Item Type

PostPosted: Saturday, 12th November 2011, 01:35
by File200
How do I create a menu (like the function "prompt_invent_item") that will list weapons, armour, and missiles, together, but nothing else?

E: N/M, don't need a menu at the moment.

Also, strange bug: when I use OBJ_ARMOUR in the inventory prompt, it doesn't return robes or other non-body armour, like boots and helmets.