Table of Contents

mr:buffs

Machine-readable reference page for Buff system in Remixed Dungeon.

Java Implementation

Base Class:

Key Properties:

Key Methods:

Buff Factory

Factory Class:

Factory Methods:

Common Buff Classes

Positive Buffs (Buffs):

Negative Buffs (Debuffs):

Buff Application Patterns

Affect (Apply new or extend): ```java Buff.affect(target, BuffClass.class).level(value); ```

Prolong (Extend existing duration): ```java Buff.prolong(target, BuffClass.class, duration); ```

Attach (Direct attachment): ```java buff.attachTo(target); ```

Detach (Remove buff): ```java buff.detach(); ```

String Resource Format

Buff string resources follow this naming convention:

Example:

Lua Integration

Buffs can be created and manipulated from Lua scripts: ```lua – Apply buff to character Buff.affect(target, “Poison”):level(damage)

– Prolong buff duration Buff.prolong(target, “Haste”, duration)

– Check if character has buff if target:hasBuff(“Invisibility”) then

  1. - Handle invisible target

end ```

Buff Icons

Buff icons are stored in: RemixedDungeon/src/main/assets/assets/buffs.png Individual buff icons for wiki: wiki-data/media/rpd/images/{buff_name}_buff.png

Machine-readable references:

Wiki documentation:

Code References