Java Code Examples for com.megacrit.cardcrawl.helpers.RelicLibrary#getRelic()
The following examples show how to use
com.megacrit.cardcrawl.helpers.RelicLibrary#getRelic() .
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: SuperRareRelicPatch.java From StSLib with MIT License | 6 votes |
public static String Postfix(String __result, AbstractRelic.RelicTier tier) { if (depth == 0 && RelicLibrary.getRelic(__result) instanceof SuperRareRelic) { RelicTools.returnRelicToPool(tier, __result); ++depth; __result = AbstractDungeon.returnRandomRelicKey(tier); --depth; } return __result; }
Example 2
Source File: SuperRareRelicPatch.java From StSLib with MIT License | 5 votes |
public static String Postfix(String __result, AbstractRelic.RelicTier tier) { if (depth == 0 && RelicLibrary.getRelic(__result) instanceof SuperRareRelic) { RelicTools.returnRelicToPool(tier, __result); ++depth; __result = AbstractDungeon.returnEndRandomRelicKey(tier); --depth; } return __result; }
Example 3
Source File: RelicTools.java From StSLib with MIT License | 4 votes |
public static boolean returnRelicToPool(String relicID) { AbstractRelic.RelicTier tier = RelicLibrary.getRelic(relicID).tier; return returnRelicToPool(tier, relicID); }