mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-02 06:28:57 +00:00
config overhall
This commit is contained in:
1 parent
a514879930
commit
09a148b5bc
10 files changed
+494
-293
No files matched your search
@@ -36,7 +36,7 @@ public class EntityProjectile extends SiegeEngineProjectile {
|
||||
}
|
||||
|
||||
public static EntityProjectile getDefaultFireballShot() {
|
||||
EntityProjectile fireProj = new EntityProjectile(new ItemStack(Material.FIRE_CHARGE));
|
||||
EntityProjectile fireProj = new EntityProjectile(new ItemStack(Material.MAGMA_BLOCK));
|
||||
fireProj.entityCount = 4;
|
||||
fireProj.entityType = EntityType.SMALL_FIREBALL;
|
||||
fireProj.particleType = Particle.WHITE_ASH;
|
||||
@@ -49,6 +49,7 @@ public class EntityProjectile extends SiegeEngineProjectile {
|
||||
EntityProjectile scatterProj = new EntityProjectile(new ItemStack(Material.GRAVEL));
|
||||
scatterProj.inaccuracy = 0.325f;
|
||||
scatterProj.entityCount = 24;
|
||||
scatterProj.entityType = EntityType.ARROW;
|
||||
scatterProj.particleType = Particle.ELECTRIC_SPARK;
|
||||
scatterProj.soundType = Sound.ITEM_CROSSBOW_SHOOT;
|
||||
return scatterProj;
|
||||
|
||||
@@ -11,7 +11,6 @@ import org.bukkit.Sound;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Snowball;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@@ -20,9 +19,9 @@ public class ExplosiveProjectile extends SiegeEngineProjectile {
|
||||
|
||||
// Defaults
|
||||
public Boolean placeBlocks = false;
|
||||
public Material blockToPlace = Material.COBWEB;
|
||||
public int blocksToPlaceAmount = 3;
|
||||
public float explodePower = 2;
|
||||
public Material blockToPlace = Material.COBWEB; // TO-DO
|
||||
public int blocksToPlaceAmount = 3; // TO-DO
|
||||
public float explodePower = 2.0f;
|
||||
public float inaccuracy = 0.3f;
|
||||
public int projectilesCount = 1;
|
||||
public Boolean delayedFire = false;
|
||||
@@ -45,10 +44,10 @@ public class ExplosiveProjectile extends SiegeEngineProjectile {
|
||||
|
||||
public static ExplosiveProjectile getDefaultRepeatingShot() {
|
||||
ExplosiveProjectile repeatingProj = new ExplosiveProjectile(new ItemStack(Material.TNT));
|
||||
repeatingProj.explodePower = 1;
|
||||
repeatingProj.explodePower = 1.0f;
|
||||
repeatingProj.projectilesCount = 5;
|
||||
repeatingProj.delayedFire = true;
|
||||
repeatingProj.inaccuracy = 0.75f;
|
||||
repeatingProj.inaccuracy = 0.45f;
|
||||
return repeatingProj;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,16 +5,13 @@ import com.github.alathra.siegeengines.SiegeEnginesUtil;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Particle;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.entity.Arrow;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Firework;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.bukkit.inventory.meta.FireworkMeta;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@@ -22,7 +19,6 @@ public class FireworkProjectile extends SiegeEngineProjectile {
|
||||
|
||||
// Defaults
|
||||
public int entityCount = 1;
|
||||
public int arrowOnlyDamage = 6;
|
||||
public Boolean delayedFire = true;
|
||||
public int delayTime = 6;
|
||||
public EntityType entityType = EntityType.FIREWORK;
|
||||
@@ -33,7 +29,7 @@ public class FireworkProjectile extends SiegeEngineProjectile {
|
||||
private boolean playSound = true;
|
||||
|
||||
public FireworkProjectile(ItemStack ammunitionItem) {
|
||||
super(ProjectileType.EXPLOSIVE, ammunitionItem);
|
||||
super(ProjectileType.FIREWORK, ammunitionItem);
|
||||
// Defaults
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package com.github.alathra.siegeengines.projectile;
|
||||
|
||||
public enum ProjectileType {
|
||||
DEFAULT, ENTITY, EXPLOSIVE, POTION;
|
||||
DEFAULT, ENTITY, EXPLOSIVE, FIREWORK, POTION;
|
||||
}
|
||||
Reference in new issue
Block a user