forked from SkyeStarfall/BaseMod
-
Notifications
You must be signed in to change notification settings - Fork 118
Custom Characters
Davis Cook edited this page Feb 25, 2018
·
19 revisions
The base game denotes character options using the AbstractPlayer.PlayerClass
enum so in order to add a new color to the game you must patch the enum using ModTheSpire
's enum patching feature in addition to registering it with BaseMod. Here is an example of how to do so:
import com.evacipated.cardcrawl.modthespire.lib.SpireEnum;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
public class MyPlayerClassEnum {
@SpireEnum
public static AbstractPlayer.PlayerClass MY_PLAYER_CLASS;
}