====== Weapon ====== Weapon is the base class for all weapon items in Remixed Dungeon. ==== Description ==== Weapon items are equipped to enhance the hero's combat capabilities. They can be melee weapons for close combat or ranged weapons for distance attacks. ==== Base Properties ==== * **Type**: Equipment for main hand slot * **Damage**: Increases damage dealt to enemies * **Tier**: Weapons come in different tiers affecting damage and weight * **Enchantments**: Can be enchanted with special effects * **Durability**: Depletes with use and time * **Speed**: Affects attack speed ==== Weapon Categories ==== * **Melee Weapons** - Used for close combat * **Ranged Weapons** - For distance attacks using ammunition * **Special Weapons** - Unique mechanics and effects ==== Common Mechanics ==== * **Damage Range**: Specifies minimum and maximum damage dealt * **Speed Factor**: Affects how quickly attacks can be made * **Enchantments**: Can be upgraded with weapon enchantments * **Identification**: Weapons must be identified to see their level and enchantment * **Upgrading**: Weapons can be enchanted to improve stats ==== Code References ==== * Java Base Class: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/Weapon.java|Weapon.java]] - Base implementation * Item System: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/Item.java|Item.java]] - General item mechanics * Equipment System: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/hero/Belongings.java|Belongings.java]] - How weapons are equipped * Sprite System: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/sprites/ItemSpriteSheet.java|ItemSpriteSheet.java]] - Weapon sprites * String Resources: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml|strings_all.xml]] - All weapon names and descriptions ==== Common Weapons ==== * [[en:rpd:sword_item|Sword]] * [[en:rpd:axe_item|Axe]] * [[en:rpd:dagger_item|Dagger]] * [[en:rpd:mace_item|Mace]] * [[en:rpd:bow_item|Bow]] * [[en:rpd:crossbow_item|Crossbow]] * [[en:rpd:staff_item|Staff]] ==== See Also ==== * [[en:rpd:items|Items]] * [[en:rpd:equipment|Equipment]] * [[en:rpd:weapon_enchantments|Weapon Enchantments]] * [[en:rpd:melee_weapons|Melee Weapons]] * [[en:rpd:ranged_weapons|Ranged Weapons]] * [[en:rpd:weapon_types_mechanic|Weapon Types]] {{tag> rpd items weapons base_class }}