Artifact Buff is a base class for artifact-related buffs in Remixed Dungeon. It extends the standard Buff class and adds specific behavior for artifact-sourced buffs.
```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 "artifactBuff" + super.getEntityKind();
}
@Override
public boolean dontPack() {
return getSourceId()!= EntityIdSource.INVALID_ID;
}
} ```
Artifact buffs use the string resources of their specific implementations. See individual buff pages for string references.