en:rpd:artifact_buff
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:rpd:artifact_buff [2026/07/23 04:41] – Fix wiki pages: link format, naming conventions, and namespace consistency Bot | en:rpd:artifact_buff [2026/07/23 04:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Artifact Buff ====== | ||
| + | {{ rpd: | ||
| + | |||
| + | ===== Description ===== | ||
| + | **Artifact Buff** is a base class for artifact-related buffs in Remixed Dungeon. It extends the standard [[en: | ||
| + | |||
| + | ===== 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 }} | ||
