User Tools

Site Tools


rpd:sacrificial_sword_item

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rpd:sacrificial_sword_item [2025/12/29 06:50] – Rename files to follow proper naming convention: plague_doctor_armor.txt to plague_doctor_armor_item.txt and sacrificial_sword.txt to sacrificial_sword_item.txt mikerpd:sacrificial_sword_item [2025/12/29 06:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Sacrificial Sword ======
  
 +{{ rpd:images:sacrificial_sword_swords.png|Sacrificial Sword }}
 +
 +==== Description ====
 +At first glance this aged bronze sword, covered with patina stains, looks absolutely useless. But some sort of old, archaic powers sleeps inside. Those powers can turn almost any creature to will-less slave. Just need find a right way to wake them...
 +
 +==== Basic Stats ====
 +  * **Damage:** 2 (base damage)
 +  * **Speed:** 1.0x (normal attack speed)
 +  * **Accuracy:** 1.0x (normal accuracy)
 +  * **Required Strength:** 13 (base, scales with upgrades)
 +  * **Durability:** Normal weapon durability
 +  * **Enchantment:** Cannot be enchanted
 +  * **Sprite:** Swords sprite sheet, image index 4
 +  * **Upgradable:** Yes
 +  * **Attack Animation:** Sword swing animation
 +
 +==== Special Properties ====
 +When attacking an enemy with the Sacrificial Sword, there is a chance to convert the enemy into a pet that fights for the player:
 +
 +  * **Conversion Chance Formula:**
 +    * Base chance = (0.25 + (hero level × 4 + sword level²) × 0.01) × class bonus / armorPenalty
 +    * Armor Penalty = target armor's DR / 8
 +    * Class Bonuses: Necromancer (×3.0), Shaman (×2.0), Warden (×1.5), others (×1.0)
 +    * Additional modifiers: - (enemy defense skill × 0.01 × enemy speed) - (enemy HP × 0.01)
 +
 +==== Restrictions ====
 +  * Cannot convert bosses
 +  * Cannot convert NPCs
 +  * Only works on mobs
 +  * Lower chance with higher enemy defense skill and speed
 +  * Lower chance against enemies with higher HP
 +  * Only triggers on direct hits (not on missed attacks)
 +
 +==== Mechanics ====
 +  * The sword emits a red glow that pulses more rapidly as the conversion chance increases
 +  * The glow period is inversely proportional to the base conversion chance
 +  * Successfully converting an enemy triggers the [[rpd:pet_mechanic|pet]] creation mechanics
 +  * Does not work on enemies that are already pets
 +
 +==== Strategy ====
 +  * Wear no armor or light armor to maximize conversion chances (armor DR reduces success rate)
 +  * Hero subclasses like Shaman or Necromancer have significantly higher conversion rates
 +  * Try to weaken enemies before attempting to convert them (lower HP increases chances)
 +  * Avoid using against fast enemies with high defense
 +  * The pulsing glow can indicate the current conversion chance visually
 +  * Consider using debuffs to reduce enemy defense before attempting conversion
 +
 +==== Related ====
 +  * [[rpd:pet_mechanic|Pets]] - Information about pets created by this weapon
 +  * [[rpd:hero_subclasses|Hero Subclasses]] - How different subclasses affect the conversion chance
 +  * [[rpd:armor|Armor]] - How armor damage reduction affects conversion chance
 +
 +==== Source Code ====
 +  * Java Class: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/SacrificialSword.java|SacrificialSword.java]]
 +  * String Resources: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml|SacrificialSword strings]]
 +  * Russian String Resources: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ru/strings_all.xml|Russian SacrificialSword strings]]
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/Mob.java#L442-L448|Mob.makePet()]] - Pet creation implementation
 +  * **mr: namespace:** Check [[mr:sacrificial_sword_item]] for machine-readable data
 +
 +{{tag> rpd items weapons artifacts melee warden shaman necromancer}}
rpd/sacrificial_sword_item.txt · Last modified: by 127.0.0.1