55 lines
1.5 KiB
Java
55 lines
1.5 KiB
Java
package constructTheArena.relics;
|
|
|
|
import basemod.abstracts.CustomRelic;
|
|
import com.badlogic.gdx.graphics.Texture;
|
|
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
|
|
import constructTheArena.DefaultMod;
|
|
import constructTheArena.util.TextureLoader;
|
|
|
|
import static constructTheArena.DefaultMod.makeRelicOutlinePath;
|
|
import static constructTheArena.DefaultMod.makeRelicPath;
|
|
|
|
public class PlaceholderRelic extends CustomRelic {
|
|
|
|
/*
|
|
* https://github.com/daviscook477/BaseMod/wiki/Custom-Relics
|
|
*
|
|
* Gain 1 energy.
|
|
*/
|
|
|
|
// ID, images, text.
|
|
public static final String ID = DefaultMod.makeID("PlaceholderRelic");
|
|
|
|
private static final Texture IMG = TextureLoader.getTexture(makeRelicPath("placeholder_relic.png"));
|
|
private static final Texture OUTLINE = TextureLoader.getTexture(makeRelicOutlinePath("placeholder_relic.png"));
|
|
|
|
public PlaceholderRelic() {
|
|
super(ID, IMG, OUTLINE, RelicTier.STARTER, LandingSound.MAGICAL);
|
|
}
|
|
|
|
// Flash at the start of Battle.
|
|
@Override
|
|
public void atBattleStartPreDraw() {
|
|
flash();
|
|
}
|
|
|
|
// Gain 1 energy on equip.
|
|
@Override
|
|
public void onEquip() {
|
|
AbstractDungeon.player.energy.energyMaster += 1;
|
|
}
|
|
|
|
// Lose 1 energy on unequip.
|
|
@Override
|
|
public void onUnequip() {
|
|
AbstractDungeon.player.energy.energyMaster -= 1;
|
|
}
|
|
|
|
// Description
|
|
@Override
|
|
public String getUpdatedDescription() {
|
|
return DESCRIPTIONS[0];
|
|
}
|
|
|
|
}
|