User Tools

Site Tools


mr:rat_king_crown_item

Rat King Crown Item - Code References

Rat King's Crown

Java Classes

Implementation Details

  • Class: `com.nyrds.pixeldungeon.items.common.RatKingCrown`
  • Extends: `Artifact`
  • Package: `items/common`
  • Identified: Always identified (`isIdentified()` returns `true`)
  • Sprite: `items/artifacts.png` at index 17
  • Buff: Creates `RatKingAuraBuff` when equipped

RatKingAuraBuff Inner Class

  • Icon: `BuffIndicator.RATTNESS`
  • Name Resource: `R.string.RatKingCrownBuff_Name` (“Ratness”)
  • Description Resource: `R.string.RatKingCrownBuff_Info` (“Hail the Lord of the rats, every rat shall obey and praise.”)
  • Effect: When attacking a `Rat` mob while wearing the crown, the rat becomes a pet via `Mob.makePet()`

JSON Configuration

No specific JSON configuration file found for this item.

String Resources

<string name="RatKingCrown_Name">Rat King\'s Crown</string>
<string name="RatKingCrown_Info">The golden crown of His Ratness, symbol of the etern_rat_power</string>
<string name="RatKingCrownBuff_Name">Ratness</string>
<string name="RatKingCrownBuff_Info">Hail the Lord of the rats, every rat shall obey and praise.</string>

Lua Scripts

This entity is implemented in Java, no Lua script exists

Additional Information

  • The RatKingCrown is an Artifact with an inner RatKingAuraBuff class
  • The RatKingAuraBuff allows taming of defeated rats when worn
  • Found in the items/common package
  • Dropped by the Rat King NPC
  • Part of the Rat King quest line
mr/rat_king_crown_item.txt · Last modified: by 127.0.0.1