User Tools

Site Tools


mr:gladiator_armor_item

Gladiator Armor Item - Code References

Java Classes

  • GladiatorArmor.java - Main implementation (extends WarriorArmor)
    • Location: ``com.watabou.pixeldungeon.items.armor.GladiatorArmor``
    • Image ID: 7
    • Has helmet: true (coverHair: true)
    • Subclass restriction: Only equippable by HeroSubClass.GLADIATOR
  • WarriorArmor.java - Parent class implementation
    • Location: ``com.watabou.pixeldungeon.items.armor.WarriorArmor``
    • Extends: ClassArmor
    • Image ID: 5
    • Special ability: Leap attack (stuns adjacent enemies)
  • HeroSubClass.java - Subclass restriction (GLADIATOR)
    • Location: ``com.watabou.pixeldungeon.actors.hero.HeroSubClass``
    • GLADIATOR constant references “GladiatorArmor” as armor key

JSON Configuration

This entity is implemented in Java, no JSON configuration exists

String Resources

  • English: strings_all.xml
    • ``WarriorArmor_Name`` - “warrior suit of armor”
    • ``WarriorArmor_NotWarrior`` - “Only a warrior who has mastered the sword and shield can use this armor!”
    • ``WarriorArmor_ACSpecial`` - Special action name
    • ``WarriorArmor_Prompt`` - Ability targeting prompt
    • ``WarriorArmor_Desc`` - Item description
  • Russian: strings_all.xml
    • ``WarriorArmor_Name`` - “Боевой доспех”
    • ``WarriorArmor_NotWarrior`` - “Только воин, освоивший меч и щит, может использовать эту броню!”

Lua Scripts

This entity is implemented in Java, no Lua script exists

Usage in Code

  • Registered in ItemFactory.java (line 70 import, line 360 registration)
  • Subclass restriction checked in ``GladiatorArmor.doEquip()`` - only equippable by HeroSubClass.GLADIATOR
  • Parent class ``WarriorArmor`` restricts to HeroClass.WARRIOR
  • Special ability: Leap attack that stuns adjacent enemies for 3 turns (SHOCK_TIME = 3)
  • Leap time: 1 turn (LEAP_TIME = 1)
  • Uses Ballistica for targeting
  • Dispels Invisibility on use
  • Creates dust particle effects and camera shake on landing
mr/gladiator_armor_item.txt · Last modified: by 127.0.0.1