Closed Villfuk02 closed 6 years ago
I don't even know if there is a problem with the starting deck, starting relic or graphics. I have tried everything and nothing works. Here's the code if you can fing anything: `package the_marksman;
import java.util.ArrayList;
import basemod.abstracts.CustomPlayer; import basemod.animations.SpriterAnimation;
import com.megacrit.cardcrawl.core.EnergyManager; import com.megacrit.cardcrawl.screens.CharSelectInfo;
public class TheMarksmanClass extends CustomPlayer{ public static final int ENERGY_PER_TURN = 3;
public TheMarksmanClass(String name, PlayerClass setClass) {
super(name, setClass, null, null, null, new SpriterAnimation("img/char/construct/anim/Construct.scml"));
initializeClass(null, "img/char/construct/shoulder2.png", "img/char/construct/shoulder.png", "img/char/construct/corpse.png",
getLoadout(), 20.0F, -10.0F, 220.0F, 290.0F, new EnergyManager(ENERGY_PER_TURN));
}
public static ArrayList<String> getStartingDeck() {
ArrayList<String> retVal = new ArrayList<>();
return retVal;
}
public static ArrayList<String> getStartingRelics() {
ArrayList<String> retVal = new ArrayList<>();
return retVal;
}
public static CharSelectInfo getLoadout() {
return new CharSelectInfo("The Marksman", "",
80, 80, 0, 119, 6,
TheMarksmanEnum.THE_MARKSMAN, getStartingRelics(), getStartingDeck(), false);
}
}`
Ok, after 6 hours I finally found what's wrong: I referenced wrong class in the recieveEditCharacters() Sorry for clogging this thread with my problems.
I don't know if I should post it here, but I have a problem with making a mod. The game crashes when generating loadout for my character. I have no idea why this happens, because I have literally copied the class from The Construct and just changed some values. I also don't understand why are they using Defect.getStartingDeck() instead of just getStartingDeck().