Implemented halberd
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 328 B |
@@ -574,6 +574,7 @@ block.dagger-pad.name=Dagger Pad
|
|||||||
block.titan-pad.name=Titan Pad
|
block.titan-pad.name=Titan Pad
|
||||||
block.thermal-generator.name=Thermal Generator
|
block.thermal-generator.name=Thermal Generator
|
||||||
|
|
||||||
|
unit.alpha-drone.name=Alpha Drone
|
||||||
unit.drone.name=Drone
|
unit.drone.name=Drone
|
||||||
unit.drone.description=The starter drone unit. Spawns in the core by default. Automatically mines ores, collects items and repairs blocks.
|
unit.drone.description=The starter drone unit. Spawns in the core by default. Automatically mines ores, collects items and repairs blocks.
|
||||||
unit.fabricator.name=Fabricator
|
unit.fabricator.name=Fabricator
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 140 KiB |
@@ -12,7 +12,7 @@ import io.anuke.mindustry.type.ContentList;
|
|||||||
public class AmmoTypes implements ContentList{
|
public class AmmoTypes implements ContentList{
|
||||||
public static AmmoType bulletCopper, bulletDense, bulletThorium, bulletSilicon, bulletPyratite,
|
public static AmmoType bulletCopper, bulletDense, bulletThorium, bulletSilicon, bulletPyratite,
|
||||||
shotgunTungsten, bombExplosive, bombIncendiary, bombOil, shellCarbide, flamerThermite, weaponMissile, weaponMissileSwarm, bulletMech,
|
shotgunTungsten, bombExplosive, bombIncendiary, bombOil, shellCarbide, flamerThermite, weaponMissile, weaponMissileSwarm, bulletMech,
|
||||||
healBlaster,
|
healBlaster, bulletHalberd,
|
||||||
flakLead, flakExplosive, flakPlastic, flakSurge, missileExplosive, missileIncindiary, missileSurge,
|
flakLead, flakExplosive, flakPlastic, flakSurge, missileExplosive, missileIncindiary, missileSurge,
|
||||||
artilleryDense, artilleryPlastic, artilleryHoming, artilleryIncindiary, artilleryExplosive,
|
artilleryDense, artilleryPlastic, artilleryHoming, artilleryIncindiary, artilleryExplosive,
|
||||||
basicFlame, lancerLaser, lightning, spectreLaser, meltdownLaser, fuseShotgun, oil, water, lava, cryofluid;
|
basicFlame, lancerLaser, lightning, spectreLaser, meltdownLaser, fuseShotgun, oil, water, lava, cryofluid;
|
||||||
@@ -29,6 +29,13 @@ public class AmmoTypes implements ContentList{
|
|||||||
inaccuracy = 5f;
|
inaccuracy = 5f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|
||||||
|
bulletHalberd = new AmmoType(Items.pyratite, StandardBullets.halberd, 3){{
|
||||||
|
shootEffect = ShootFx.shootSmall;
|
||||||
|
smokeEffect = ShootFx.shootSmallSmoke;
|
||||||
|
inaccuracy = 3f;
|
||||||
|
}};
|
||||||
|
|
||||||
healBlaster = new AmmoType(TurretBullets.healBullet){{
|
healBlaster = new AmmoType(TurretBullets.healBullet){{
|
||||||
shootEffect = ShootFx.shootHeal;
|
shootEffect = ShootFx.shootHeal;
|
||||||
smokeEffect = BulletFx.hitLaser;
|
smokeEffect = BulletFx.hitLaser;
|
||||||
|
|||||||
@@ -312,26 +312,30 @@ public class Mechs implements ContentList{
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
trident = new Mech("trident-ship", true){
|
trident = new Mech("trident-ship", true){{
|
||||||
|
drillPower = 2;
|
||||||
|
speed = 0.12f;
|
||||||
|
maxSpeed = 3.4f;
|
||||||
|
drag = 0.035f;
|
||||||
|
turnCursor = false;
|
||||||
|
armor = 20f;
|
||||||
|
trailColor = Color.valueOf("84f491");
|
||||||
|
weapon = Weapons.bomberTrident;
|
||||||
|
}};
|
||||||
|
|
||||||
|
halberd = new Mech("halberd-ship", true){
|
||||||
{
|
{
|
||||||
|
weapon = Weapons.halberdBlaster;
|
||||||
drillPower = 4;
|
drillPower = 4;
|
||||||
speed = 0.12f;
|
mineSpeed = 1.3f;
|
||||||
maxSpeed = 3.4f;
|
speed = 0.3f;
|
||||||
drag = 0.035f;
|
maxSpeed = 3f;
|
||||||
turnCursor = false;
|
drag = 0.06f;
|
||||||
armor = 30f;
|
armor = 30f;
|
||||||
trailColor = Color.valueOf("84f491");
|
trailColor = Color.valueOf("feb380");
|
||||||
weapon = Weapons.bomberTrident;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
halberd = new Mech("halberd-ship", true){{
|
|
||||||
drillPower = 2;
|
|
||||||
speed = 0.4f;
|
|
||||||
maxSpeed = 3f;
|
|
||||||
drag = 0.1f;
|
|
||||||
}};
|
|
||||||
|
|
||||||
starterDesktop = alpha;
|
starterDesktop = alpha;
|
||||||
starterMobile = dart;
|
starterMobile = dart;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import io.anuke.mindustry.type.ContentList;
|
|||||||
import io.anuke.mindustry.type.Weapon;
|
import io.anuke.mindustry.type.Weapon;
|
||||||
|
|
||||||
public class Weapons implements ContentList{
|
public class Weapons implements ContentList{
|
||||||
public static Weapon blaster, droneBlaster, healBlaster, chainBlaster, shockgun, sapper, swarmer, bomber, bomberTrident, flakgun, flamethrower, missiles;
|
public static Weapon blaster, halberdBlaster, droneBlaster, healBlaster, chainBlaster, shockgun, sapper, swarmer, bomber, bomberTrident, flakgun, flamethrower, missiles;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
@@ -21,6 +21,14 @@ public class Weapons implements ContentList{
|
|||||||
ammo = AmmoTypes.bulletMech;
|
ammo = AmmoTypes.bulletMech;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
halberdBlaster = new Weapon("bomber"){{
|
||||||
|
length = 1.5f;
|
||||||
|
reload = 12f;
|
||||||
|
roundrobin = true;
|
||||||
|
ejectEffect = ShootFx.shellEjectSmall;
|
||||||
|
ammo = AmmoTypes.bulletHalberd;
|
||||||
|
}};
|
||||||
|
|
||||||
droneBlaster = new Weapon("blaster"){{
|
droneBlaster = new Weapon("blaster"){{
|
||||||
length = 2f;
|
length = 2f;
|
||||||
reload = 40f;
|
reload = 40f;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package io.anuke.mindustry.content.bullets;
|
package io.anuke.mindustry.content.bullets;
|
||||||
|
|
||||||
|
import com.badlogic.gdx.graphics.Color;
|
||||||
import io.anuke.mindustry.content.fx.BulletFx;
|
import io.anuke.mindustry.content.fx.BulletFx;
|
||||||
import io.anuke.mindustry.entities.bullet.BasicBulletType;
|
import io.anuke.mindustry.entities.bullet.BasicBulletType;
|
||||||
import io.anuke.mindustry.entities.bullet.BulletType;
|
import io.anuke.mindustry.entities.bullet.BulletType;
|
||||||
@@ -7,7 +8,7 @@ import io.anuke.mindustry.graphics.Palette;
|
|||||||
import io.anuke.mindustry.type.ContentList;
|
import io.anuke.mindustry.type.ContentList;
|
||||||
|
|
||||||
public class StandardBullets extends BulletList implements ContentList{
|
public class StandardBullets extends BulletList implements ContentList{
|
||||||
public static BulletType copper, dense, thorium, homing, tracer, mechSmall;
|
public static BulletType copper, dense, thorium, homing, tracer, mechSmall, halberd;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
@@ -55,6 +56,18 @@ public class StandardBullets extends BulletList implements ContentList{
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
halberd = new BasicBulletType(3.2f, 6, "bullet"){
|
||||||
|
{
|
||||||
|
bulletWidth = 10f;
|
||||||
|
bulletHeight = 12f;
|
||||||
|
frontColor = Color.valueOf("feb380");
|
||||||
|
backColor = Color.valueOf("ea8878");
|
||||||
|
incendSpread = 3f;
|
||||||
|
incendAmount = 1;
|
||||||
|
incendChance = 0.3f;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
mechSmall = new BasicBulletType(4f, 9, "bullet"){
|
mechSmall = new BasicBulletType(4f, 9, "bullet"){
|
||||||
{
|
{
|
||||||
bulletWidth = 11f;
|
bulletWidth = 11f;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public abstract class BulletType extends BaseBulletType<Bullet> implements Conte
|
|||||||
this.damage = damage;
|
this.damage = damage;
|
||||||
lifetime = 40f;
|
lifetime = 40f;
|
||||||
hiteffect = BulletFx.hitBulletSmall;
|
hiteffect = BulletFx.hitBulletSmall;
|
||||||
despawneffect = BulletFx.despawn;
|
despawneffect = BulletFx.hitBulletSmall;
|
||||||
|
|
||||||
types.add(this);
|
types.add(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user