com.megacrit.cardcrawl.localization.CardStrings Java Examples

The following examples show how to use com.megacrit.cardcrawl.localization.CardStrings. 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: CustomJorbsModCard.java    From jorbs-spire-mod with MIT License 6 votes vote down vote up
private CustomJorbsModCard(final String id,
                          final CardStrings cardStrings,
                          final String img,
                          final int cost,
                          final CardType type,
                          final CardColor color,
                          final CardRarity rarity,
                          final CardTarget target) {
    super(id, cardStrings.NAME, img, cost, cardStrings.DESCRIPTION, type, color, rarity, target);

    this.cardStrings = cardStrings;
    bannerImageRarity = rarity;
    isCostModified = false;
    isCostModifiedForTurn = false;
    isDamageModified = false;
    isBlockModified = false;
    isMagicNumberModified = false;
    EXTENDED_DESCRIPTION = cardStrings.EXTENDED_DESCRIPTION;
    energyOnUse = -1;
}
 
Example #2
Source File: TranquilMod.java    From FruityMod-StS with MIT License 5 votes vote down vote up
@Override
public void receiveEditStrings() {
    // RelicStrings
    String relicStrings = Gdx.files.internal("localization/Tranquil-RelicStrings.json").readString(
            String.valueOf(StandardCharsets.UTF_8));
    BaseMod.loadCustomStrings(RelicStrings.class, relicStrings);
    // CardStrings
    String cardStrings = Gdx.files.internal("localization/Tranquil-CardStrings.json").readString(
            String.valueOf(StandardCharsets.UTF_8));
    BaseMod.loadCustomStrings(CardStrings.class, cardStrings);
}
 
Example #3
Source File: SeekerMod.java    From FruityMod-StS with MIT License 5 votes vote down vote up
@Override
public void receiveEditStrings() {
    // RelicStrings
    String relicStrings = Gdx.files.internal("localization/Seeker-RelicStrings.json").readString(
            String.valueOf(StandardCharsets.UTF_8));
    BaseMod.loadCustomStrings(RelicStrings.class, relicStrings);
    // CardStrings
    String cardStrings = Gdx.files.internal("localization/Seeker-CardStrings.json").readString(
            String.valueOf(StandardCharsets.UTF_8));
    BaseMod.loadCustomStrings(CardStrings.class, cardStrings);

    logger.info("done editting strings");
}