====== Shields ====== {{ rpd:images:item_WoodenShield.png|Shield }} **Shields** are defensive equipment items that can be equipped in the Left Hand slot in Remixed Pixel Dungeon. ==== Overview ==== Shields provide defensive bonuses and blocking capabilities when equipped in the left hand. They can be used in combination with weapons in the main hand, offering protection at the cost of some offensive capability. ==== Shield Mechanics ==== * **Slot**: Left Hand equipment slot (can also be wielded as a weapon in main hand) * **Function**: Provides defensive bonuses and blocking capabilities * **Strategy**: Offers protection at the cost of some offensive capability * **Compatibility**: Can be used with one-handed weapons in the main hand, or as a weapon when placed in main hand * **Block Chance**: Varies by shield level and character strength (30%, 40%, 40%, 50% base chance for levels 1-4) * **Block Damage**: Reduces incoming damage by a fixed amount (4, 6, 8, 10 base values for levels 1-4, scales with item level) * **Block Formula**: Base damage reduction = blockForLevel[shieldLevel] * (1.3 ^ itemLevel) * **Recharge Time**: After blocking, shields require time to recharge before the next block (base 5 turns + strength penalty) * **Required Strength**: Each shield level requires a minimum strength (Wooden: 12, Tough: 14, Strong: 16, Royal: 18) * **Weight Penalty**: If character STR is below required STR, block chance is reduced by 10% per point deficit * **Recharge Formula**: Recharge time = 5 + max(required STR - effective STR, 0) * **Damage Mechanics**: When wielded as a weapon, damage is calculated as random value between damageMin and damageMax functions based on strength and shield level ==== Types of Shields ==== * [[en:rpd:wooden_shield_item|Wooden Shield]] - Basic shield (Level 1) * [[en:rpd:tough_shield_item|Tough Shield]] - Reinforced shield (Level 2) * [[en:rpd:strong_shield_item|Strong Shield]] - Heavy shield (Level 3) * [[en:rpd:royal_shield_item|Royal Shield]] - Elite shield (Level 4) * [[en:rpd:chaos_shield_item|Chaos Shield]] - Special shield created by fusing a Chaos Crystal with a regular shield ==== Combat Strategy ==== Using shields changes the combat approach significantly: * **Defense**: Higher damage reduction and blocking capabilities * **Offense**: Reduced attack potential compared to dual-wielding * **Versatility**: Can use main hand for weapons while maintaining defense * **Tactics**: Best for defensive playstyles or when facing numerous dangerous enemies * **Block Timing**: Shields must recharge after each block, so timing is crucial * **Dual Usage**: Can be equipped as a weapon in main hand (with different damage mechanics) ==== Content Verification ==== * Information source: Lua Script Library (lib/shields.lua, stats/shields.lua) * Stats verified: Yes (from strForLevel, chanceForLevel, blockForLevel arrays) * Mechanics verified: Yes (from shield functions in shields.lua) * Last updated: December 15, 2025 * Lua Implementation: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/lib/shields.lua|shields.lua]] * Stats Implementation: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/stats/shields.lua|shields stats]] * Individual Shield Scripts: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/WoodenShield.lua|WoodenShield.lua]], [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/ToughShield.lua|ToughShield.lua]], [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/StrongShield.lua|StrongShield.lua]], [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/RoyalShield.lua|RoyalShield.lua]] * Guardian Subclass: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/armor/GuardianArmor.java|GuardianArmor.java]] for Guardian subclass interaction with shields ==== Shield Stats Reference ==== * **Strength Requirements**: { 12, 14, 16, 18 } for levels 1-4 (strForLevel array) * **Block Chances**: { 30%, 40%, 40%, 50% } for levels 1-4 (chanceForLevel array) * **Block Values**: { 4, 6, 8, 10 } base damage reduction for levels 1-4 (blockForLevel array) * **Damage when Wielded as Weapon**: Random value between damageMin(str, shieldLevel) and damageMax(str, shieldLevel) ==== Modding Support ==== Remixed Dungeon's modding system supports custom shields with various special properties and effects, allowing for extensive equipment customization using the shields library. ==== See Also ==== * [[en:rpd:equipment_slots_mechanic|Equipment Slots]] * [[en:rpd:mechanics|Game Mechanics]] * [[en:rpd:items|Items]] * [[en:rpd:dual_wielding|Dual Wielding]] * [[en:rpd:guardian_subclass|Guardian Subclass]] {{tag> rpd shields equipment defensive}}