Java Code Examples for com.megacrit.cardcrawl.characters.AbstractPlayer#PlayerClass

The following examples show how to use com.megacrit.cardcrawl.characters.AbstractPlayer#PlayerClass . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JorbsModSettings.java    From jorbs-spire-mod with MIT License 5 votes vote down vote up
private static void unlockA20(AbstractPlayer.PlayerClass clz) {
    Prefs prefs = CardCrawlGame.characterManager.getCharacter(clz).getPrefs();
    if (prefs.getInteger(CharStat.WIN_COUNT, 0) == 0) {
        prefs.putInteger(CharStat.WIN_COUNT, 1);
    }
    prefs.putInteger(CharStat.LAST_ASCENSION_LEVEL, Settings.MAX_ASCENSION_LEVEL);
    prefs.putInteger(CharStat.ASCENSION_LEVEL, Settings.MAX_ASCENSION_LEVEL);
    prefs.flush();
}
 
Example 2
Source File: Wanderer.java    From jorbs-spire-mod with MIT License 4 votes vote down vote up
@Override
public String getTitle(AbstractPlayer.PlayerClass playerClass) {
    return NAMES[1];
}
 
Example 3
Source File: TheTranquil.java    From FruityMod-StS with MIT License 4 votes vote down vote up
@Override
public String getTitle(AbstractPlayer.PlayerClass playerClass) {
    return "The Tranquil";
}
 
Example 4
Source File: TheSeeker.java    From FruityMod-StS with MIT License 4 votes vote down vote up
@Override
public String getTitle(AbstractPlayer.PlayerClass playerClass) {
    return "The Seeker";
}
 
Example 5
Source File: TheDefault.java    From StS-DefaultModBase with MIT License 4 votes vote down vote up
@Override
public String getTitle(AbstractPlayer.PlayerClass playerClass) {
    return NAMES[1];
}