en:rpd:artifact_buff
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:rpd:artifact_buff [2026/07/11 12:32] – Fix red link in elven_bow_item.txt: change arrows to arrows_item Qwen Assistant | en:rpd:artifact_buff [2026/07/12 00:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Artifact Buff ====== | ||
| + | **Artifact Buff** is a base class for artifact-related buffs in Remixed Dungeon. It extends the standard [[en: | ||
| + | |||
| + | ==== Description ==== | ||
| + | Artifact Buffs are special buffs that originate from artifact items (typically artifact rings). Unlike regular buffs, they have additional logic to track their artifact source and automatically detach if the source artifact is removed or invalid. | ||
| + | |||
| + | ==== Key Features ==== | ||
| + | * **Source Tracking:** Each ArtifactBuff tracks its source entity ID via `getSourceId()` | ||
| + | * **Auto-Detach: | ||
| + | * **Persistence: | ||
| + | * **Entity Kind:** Returns " | ||
| + | |||
| + | ==== Code Implementation ==== | ||
| + | ```java | ||
| + | public class ArtifactBuff extends Buff { | ||
| + | |||
| + | @Override | ||
| + | public boolean act() { | ||
| + | if(getSourceId()==EntityIdSource.INVALID_ID) { // non-artifact source | ||
| + | detach(); | ||
| + | } | ||
| + | return super.act(); | ||
| + | } | ||
| + | |||
| + | public String getEntityKind() { | ||
| + | return " | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean dontPack() { | ||
| + | return getSourceId()!= EntityIdSource.INVALID_ID; | ||
| + | } | ||
| + | } | ||
| + | ``` | ||
| + | |||
| + | ==== Known Subclasses ==== | ||
| + | * [[en: | ||
| + | * Other artifact ring buffs (extend ArtifactBuff) | ||
| + | |||
| + | ==== Code References ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | Artifact buffs use the string resources of their specific implementations. See individual buff pages for string references. | ||
| + | |||
| + | ==== Related Pages ==== | ||
| + | * [[en: | ||
| + | * [[en: | ||
| + | * [[en: | ||
| + | * [[en: | ||
| + | |||
| + | {{tag> rpd buffs artifact mechanics }} | ||
en/rpd/artifact_buff.txt · Last modified: by 127.0.0.1
