Half-implemented titan turret
This commit is contained in:
@@ -53,6 +53,6 @@ public class Vars{
|
||||
"",
|
||||
"Credits:",
|
||||
"- SFX made with [YELLOW]bfxr.com[]",
|
||||
"- Music made by [GREEN]RoccoW[]",
|
||||
"- Music made by [GREEN]RoccoW[] / found on [lime]FreeMusicArchive.org[]",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public enum Recipe{
|
||||
teslaturret(weapon, WeaponBlocks.teslaturret, stack(Item.steel, 10), stack(Item.titanium, 15), stack(Item.dirium, 15)),
|
||||
plasmaturret(weapon, WeaponBlocks.plasmaturret, stack(Item.steel, 10), stack(Item.titanium, 10), stack(Item.dirium, 15)),
|
||||
chainturret(weapon, WeaponBlocks.chainturret, stack(Item.steel, 10), stack(Item.titanium, 10), stack(Item.dirium, 15)),
|
||||
rocketturret(weapon, WeaponBlocks.plasmaturret, stack(Item.steel, 10), stack(Item.titanium, 10), stack(Item.dirium, 15)),
|
||||
titanturret(weapon, WeaponBlocks.titanturret, stack(Item.steel, 10), stack(Item.titanium, 10), stack(Item.dirium, 15)),
|
||||
|
||||
smelter(crafting, ProductionBlocks.smelter, stack(Item.stone, 40), stack(Item.iron, 40)),
|
||||
crucible(crafting, ProductionBlocks.crucible, stack(Item.titanium, 40), stack(Item.steel, 40)),
|
||||
|
||||
@@ -171,9 +171,24 @@ public class WeaponBlocks{
|
||||
reload = 40f;
|
||||
bullet = BulletType.shell;
|
||||
ammo = Item.coal;
|
||||
health = 360;
|
||||
health = 430;
|
||||
ammoMultiplier = 10;
|
||||
width = height = 2;
|
||||
}
|
||||
},
|
||||
|
||||
titanturret = new Turret("titancannon"){
|
||||
{
|
||||
inaccuracy = 7f;
|
||||
formalName = "titan cannon";
|
||||
range = 120f;
|
||||
reload = 40f;
|
||||
bullet = BulletType.shell;
|
||||
ammo = Item.coal;
|
||||
health = 800;
|
||||
ammoMultiplier = 10;
|
||||
width = height = 3;
|
||||
rotatespeed = 0.08f;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ public class Turret extends Block{
|
||||
|
||||
float inac = Mathf.range(inaccuracy);
|
||||
|
||||
Angles.translation(entity.rotation + inac, 4f);
|
||||
Angles.translation(entity.rotation + inac, width * Vars.tilesize / 2f);
|
||||
|
||||
Bullet out = new Bullet(bullet, tile.entity,
|
||||
tile.worldx() + Angles.x(), tile.worldy() + Angles.y(), entity.rotation + inac).add();
|
||||
|
||||
Reference in New Issue
Block a user