User Tools

Site Tools


mr:amok_buff

Amok Buff - Code References

Amok Buff

Java Classes

This entity was originally implemented in Java (`com.watabou.pixeldungeon.actors.buffs.Amok`) but has been migrated to a Lua script.

Lua Scripts

Key Implementation Details:

  • Lua buff module using `scripts/lib/buff` library
  • Icon: `9` (BuffIndicator.AMOK)
  • Name string: `AmokBuff_Name`
  • Info string: `AmokBuff_Info`
  • Visual status: `CharSprite.NEGATIVE` (red text)
  • Status text: `Char_StaAmok` string resource

Core Functions:

  • `desc()` - Returns buff descriptor with icon, name, and info strings
  • `attachVisual()` - Shows “AMOKâ€� status text on target when buff is applied

JSON Configuration

This entity is implemented in Lua, no JSON configuration exists

String Resources

  • Name: `AmokBuff_Name` - Buff name
  • Info: `AmokBuff_Info` - Buff description
  • Status text: `Char_StaAmok` - Displayed when buff is applied
mr/amok_buff.txt · Last modified: by 127.0.0.1