Skip to content

Development

Minh Vu edited this page Mar 15, 2017 · 16 revisions

How to Further Develop the Casters Plugin

Setting Up the Project in IntelliJ

  • Those who wish to add on to the project should have the latest version of the IntelliJ IDEA IDE along with the latest versions of java.
  • From there, within the main menu, follow these directions.

Changing Classes/Races/Jobs

  • In order to change classes, you must navigate to the Main.java file within the project.
  • Individuals can change the name, description, base statistics, what armor the class can wear, what tools the class can use, how much damage the class does, and the casts/skills/abilities the class has.
Type type = new Type("Name", "Description");
type.setStrength(1);
type.setConstitution(1);
type.setDexterity(1);
type.setIntellect(1);
type.setWisdom(1);
type.getArmor().add(Material.DIAMOND_HELMET);
type.getArmor().add(Material.DIAMOND_CHESTPLATE);
type.getArmor().add(Material.DIAMOND_LEGGINGS);
type.getArmor().add(Material.DIAMOND_BOOTS);
type.getWeapon().put(Material.DIAMOND_SWORD, 5);
type.getWeapon().put(Material.IRON_SWORD, 4);
type.getWeapon().put(Material.GOLD_SWORD, 3);
type.getWeapon().put(Material.STONE_SWORD, 2);
type.getWeapon().put(Material.WOOD_SWORD, 1);
type.getCasts().put("Cast", 1);

Changing Cast Values

  • Within each Cast (or Passive) file in the constructor there are values.
  • Change the values there in order to modify the Cast.
public CastFireball(String name, String description)
{
	super(name, description);
	warmup.setDuration(0);
	warmup.setAmplifier(0);
	cooldown.setCooldown(40);
	manacost = 3;
	timer = 100;
	damage = 2;
	velocity = 1.5;
	gravity = true;
	fireballfireticks = 100;
	targetfireticks = 50;
	areaofeffect = 1;
	explosion = 0;
	incendiary = false;
	singletarget = true;
}