WIP tank unit type

This commit is contained in:
Anuken
2021-12-12 18:29:44 -05:00
parent 86a6ec6bd2
commit 0d33768f58
19 changed files with 168 additions and 33 deletions

View File

@@ -15,6 +15,7 @@ import mindustry.gen.*;
import mindustry.graphics.*;
import mindustry.type.*;
import mindustry.type.ammo.*;
import mindustry.type.unit.*;
import mindustry.type.weapons.*;
import mindustry.world.meta.*;
@@ -70,6 +71,10 @@ public class UnitTypes{
//transport
public static @EntityDef({Unitc.class, BuildingTetherc.class}) UnitType manifold;
//tank
//TODO tank comp
public static @EntityDef({Unitc.class, Tankc.class}) UnitType vanquish;
//endregion
//missile definition, needed for codegen
@@ -1372,8 +1377,8 @@ public class UnitTypes{
lowAltitude = false;
flying = true;
circleTarget = true;
engineOffset = 12f;
engineSize = 6f;
engineOffset = 13f;
engineSize = 7f;
rotateShooting = false;
hitSize = 36f;
payloadCapacity = (3 * 3) * tilePayload;
@@ -2419,6 +2424,13 @@ public class UnitTypes{
}});
}};
//endregion
//region erekir - tank
vanquish = new TankUnitType("vanquish"){{
hitSize = 28f;
}};
//endregion
//region erekir - core