Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case itype_wand:
- {
- //!Dimentio Edit Territory
- int itemid = (int)Link.getDirectItem(); //Grab the item from the item Link is using this frame.
- if(Lwpns.idCount(itemsbuf[itemid].misc1))
- return false; //kill it if he has already used it.
- //! This will be BROKEN if other weapons of this type are on the screen, so BEWARE.
- //Create the weapon
- //params ( x, y, z, weapon_type, item_family, damage, direction, parent_item_id, UID )
- Lwpns.add(new weapon((fix)wx,(fix)wy,(fix)wz,itemsbuf[itemid].misc1,itemsbuf[itemid].family,itemsbuf[itemid].power*DAMAGE_MULTIPLIER,dir,itemid,getUID()));
- //Play the sound associated with this weapon.
- sfx(itemsbuf[itemid].usesound,pan(Wx));
- /*
- w->LOADGFX(itemsbuf[wandfireweapon1].wpn3 + w->dir); //use Sprites[2]
- w->step = itemsbuf[wandfireweapon1].misc2; //Attributes[1]
- */
- //Pay the magic cost associated with this weapon.
- paymagiccost(itemid);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement