1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-11 08:15:35 +03:00

Stell unit

This commit is contained in:
Anuken 2022-02-16 20:38:12 -05:00
parent 5e601cb978
commit 2bb417dfd3
13 changed files with 49 additions and 5 deletions

View File

@ -39,6 +39,7 @@ quasar=32
risso=20
scuttler=35
spiroct=21
stell=43
timed=38
timedDef=37
toxopid=33

View File

@ -0,0 +1 @@
{fields:[{name:abilities,type:"mindustry.entities.abilities.Ability[]"},{name:ammo,type:float},{name:controller,type:mindustry.entities.units.UnitController},{name:elevation,type:float},{name:flag,type:double},{name:health,type:float},{name:isShooting,type:boolean},{name:mineTile,type:mindustry.world.Tile},{name:mounts,type:"mindustry.entities.units.WeaponMount[]"},{name:plans,type:arc.struct.Queue<mindustry.entities.units.BuildPlan>},{name:rotation,type:float},{name:shield,type:float},{name:spawnedByCore,type:boolean},{name:stack,type:mindustry.type.ItemStack},{name:statuses,type:arc.struct.Seq<mindustry.entities.units.StatusEntry>},{name:team,type:mindustry.game.Team},{name:type,type:mindustry.type.UnitType},{name:updateBuilding,type:boolean},{name:vel,type:arc.math.geom.Vec2},{name:x,type:float},{name:y,type:float}]}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 511 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 711 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -543,3 +543,4 @@
63160=ore-wall-thorium|block-ore-wall-thorium-ui
63159=core-zone|block-core-zone-ui
63158=fabricator|block-fabricator-ui
63157=stell|unit-stell-ui

Binary file not shown.

View File

@ -2603,7 +2603,7 @@ public class Blocks{
//TODO should this be higher?
buildCostMultiplier = 0.75f;
unitCapModifier = 2;
unitCapModifier = 4;
researchCostMultiplier = 0.07f;
}};
@ -2617,7 +2617,7 @@ public class Blocks{
thrusterLength = 40/4f;
armor = 10f;
unitCapModifier = 4;
unitCapModifier = 6;
researchCostMultipliers.put(Items.silicon, 0.4f);
researchCostMultiplier = 0.14f;
}};
@ -2633,7 +2633,7 @@ public class Blocks{
thrusterLength = 48/4f;
armor = 15f;
unitCapModifier = 6;
unitCapModifier = 8;
researchCostMultipliers.put(Items.silicon, 0.3f);
researchCostMultiplier = 0.2f;
}};
@ -3603,7 +3603,7 @@ public class Blocks{
requirements(Category.units, with(Items.silicon, 230, Items.oxide, 50, Items.beryllium, 230));
size = 3;
configurable = false;
plans.add(new UnitPlan(UnitTypes.dagger, 60f * 60f, with(Items.oxide, 15f, Items.silicon, 50f)));
plans.add(new UnitPlan(UnitTypes.stell, 60f * 60f, with(Items.oxide, 15f, Items.silicon, 50f)));
consumePower(2f);
}};

View File

@ -73,7 +73,7 @@ public class UnitTypes{
public static @EntityDef({Unitc.class, BuildingTetherc.class, Payloadc.class}) UnitType manifold, assemblyDrone, effectDrone;
//tank
public static @EntityDef({Unitc.class, Tankc.class}) UnitType vanquish, conquer;
public static @EntityDef({Unitc.class, Tankc.class}) UnitType stell, vanquish, conquer;
//endregion
@ -2422,6 +2422,46 @@ public class UnitTypes{
//endregion
//region erekir - tank
stell = new TankUnitType("stell"){{
hitSize = 11f;
treadPullOffset = 3;
speed = 0.75f;
rotateSpeed = 3.5f;
health = 800;
armor = 5f;
areaDamage = 5f;
treadRects = new Rect[]{new Rect(12, 7, 14, 51)};
weapons.add(new Weapon("stell-weapon"){{
layerOffset = 0.0001f;
reload = 50f;
shootY = 4.5f;
recoil = 1f;
rotate = true;
rotateSpeed = 1.7f;
mirror = false;
x = 0f;
y = -0.75f;
heatColor = Color.valueOf("f9350f");
cooldownTime = 30f;
bullet = new BasicBulletType(4f, 40){{
sprite = "missile-large";
smokeEffect = Fx.shootBigSmoke;
shootEffect = Fx.shootBigColor;
width = 5f;
height = 7f;
lifetime = 40f;
hitSize = 4f;
hitColor = backColor = trailColor = Color.valueOf("feb380");
frontColor = Color.white;
trailWidth = 1.7f;
trailLength = 5;
despawnEffect = hitEffect = Fx.hitBulletColor;
}};
}});
}};
vanquish = new TankUnitType("vanquish"){{
hitSize = 28f;
treadPullOffset = 4;

View File

@ -43,6 +43,7 @@ public class BaseTurret extends Block{
if(coolant != null){
coolant.update = false;
coolant.booster = true;
coolant.optional = true;
}
placeOverlapRange = Math.max(placeOverlapRange, range + placeOverlapMargin);