Java Code Examples for com.megacrit.cardcrawl.localization.CardStrings

The following examples show how to use com.megacrit.cardcrawl.localization.CardStrings. These examples are extracted from open source projects. 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 Project: jorbs-spire-mod   Source File: CustomJorbsModCard.java    License: 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 Project: FruityMod-StS   Source File: TranquilMod.java    License: 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 Project: FruityMod-StS   Source File: SeekerMod.java    License: 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");
}