The Doom interface marks buffs that trigger special effects when the hero dies. It is used for curse-type effects and doom-related mechanics that activate upon character death.
Interface Definition:
Key Method:
// In Doom.java public interface Doom extends NamedEntityKind { void onHeroDeath(); }
Implementation Requirements:
Example Implementation (StoneWalking):
// In RingOfStoneWalking.java public static class StoneWalking extends ArtifactBuff implements Doom { @Override public int icon() { return BuffIndicator.STONEBLOOD; } @Override public String name() { return StringsManager.getVar(R.string.StoneBloodBuff_Name); } @Override public String desc() { return StringsManager.getVar(R.string.StoneBloodBuff_Info); } @Override public void onHeroDeath() { Badges.validateDeathInStone(); Dungeon.fail(Utils.format(ResultDescriptions.getDescription(ResultDescriptions.Reason.IMMURED), Dungeon.depth)); GLog.n(StringsManager.getVar(R.string.RingOfStoneWalking_ImmuredInStone)); } }
The Doom interface does not have JSON configuration. It is:
Doom-type buffs use standard string resources for their display names and descriptions. The death messages may be customized per implementation.
Example String Resources (English):
<string name="StoneBloodBuff_Name">Stone Blood</string> <string name="StoneBloodBuff_Info">Description of the buff effect</string> <string name="RingOfStoneWalking_ImmuredInStone">You are immured in stone. Forever.</string>
Example String Resources (Russian):
<string name="StoneBloodBuff_Name">Каменная Кровь</string> <string name="RingOfStoneWalking_ImmuredInStone">Замурован в камне. Навсегда.</string>
The Doom interface is implemented entirely in Java. No Lua scripts are used.
Base Interfaces:
Related Classes:
Example Doom Buffs:
Related Systems: