//
const lib = require("blib");
const bullets = require("other/bullets");
const MultiShootTurret = lib.getClass("ExtraUtilities.worlds.blocks.turret.MultiShootTurret");
const items = require("game/items");
const shots = 3;
const hardMod = lib.hardMod;

const T3rip = new MultiShootTurret("T3-ripple");
T3rip.reload = 20;
T3rip.shots = shots;
T3rip.perShoot = 4;
T3rip.shoot = lib.moreShootAlternate(6, shots);
T3rip.targetAir = false;
T3rip.inaccuracy = 10;
//T3rip.xRand = 4;
T3rip.size = 4;
T3rip.ammoEjectBack = 5;
T3rip.ammoUseEffect = Fx.casing3Double;
T3rip.ammoPerShot = 2;
T3rip.cooldownTime = 60;
T3rip.velocityRnd = 0.2;
T3rip.recoilTime = 60;
T3rip.recoil = 6;
T3rip.shake = 2;
T3rip.range = 370;
T3rip.minRange = 50;
T3rip.health = 250 * 3 * 3;
T3rip.shootSound = Sounds.shootArtillery;
lib.Coolant(T3rip, 0.4, 1.5);
T3rip.ammoTypes = Blocks.ripple.ammoTypes;
T3rip.ammoTypes.put(Items.surgeAlloy, bullets.artillerySurge);
T3rip.requirements = ItemStack.with(
    Items.copper, 500,
    Items.graphite, 300,
    items.crispSteel, 250,
    Items.thorium, 200,
    Items.silicon, 350 + (hardMod ? 150 : 0),
);
T3rip.buildVisibility = BuildVisibility.shown;
T3rip.category = Category.turret;

exports.T3rip = T3rip;