MCPcopy Create free account
hub / github.com/Card-Forge/forge / setRandomFoil

Method setRandomFoil

forge-game/src/main/java/forge/game/card/Card.java:6289–6291  ·  view source on GitHub ↗

Assign a random foil finish depending on the card edition.

()

Source from the content-addressed store, hash-verified

6287 * Assign a random foil finish depending on the card edition.
6288 */
6289 public final void setRandomFoil() {
6290 setFoil(CardEdition.getRandomFoil(getSetCode()));
6291 }
6292 public final void setFoil(final int f) {
6293 currentState.setSVar("Foil", Integer.toString(f));
6294 }

Callers 4

preparePlayerZoneMethod · 0.95
startMatchMethod · 0.45
startBattleMethod · 0.45
finishStartingGameMethod · 0.45

Calls 3

setFoilMethod · 0.95
getRandomFoilMethod · 0.95
getSetCodeMethod · 0.95

Tested by

no test coverage detected