mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-15 19:30:51 -07:00
tungsten
This commit is contained in:
parent
00f03d793f
commit
38f7d2dcd0
8 changed files with 16 additions and 12 deletions
BIN
core/assets-raw/sprites/items/item-tungsten.png
Normal file
BIN
core/assets-raw/sprites/items/item-tungsten.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 382 B |
|
|
@ -416,3 +416,4 @@
|
|||
63292=spark|unit-spark-ui
|
||||
63291=beam-tower|block-beam-tower-ui
|
||||
63290=build-tower|block-build-tower-ui
|
||||
63289=tungsten|item-tungsten-ui
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1161,7 +1161,7 @@ public class Blocks implements ContentList{
|
|||
buildTower = new BuildTurret("build-tower"){{
|
||||
requirements(Category.effect, with(Items.graphite, 40, Items.beryllium, 50));
|
||||
outlineColor = Pal.darkOutline;
|
||||
consumes.power(1.5f);
|
||||
consumes.power(3f);
|
||||
range = 120f;
|
||||
size = 3;
|
||||
health = 80;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ public class Items implements ContentList{
|
|||
public static Item
|
||||
scrap, copper, lead, graphite, coal, titanium, thorium, silicon, plastanium,
|
||||
phaseFabric, surgeAlloy, sporePod, sand, blastCompound, pyratite, metaglass,
|
||||
beryllium, fissileMatter, dormantCyst;
|
||||
beryllium, fissileMatter, dormantCyst, tungsten;
|
||||
|
||||
@Override
|
||||
public void load(){
|
||||
|
|
@ -99,12 +99,15 @@ public class Items implements ContentList{
|
|||
}};
|
||||
|
||||
fissileMatter = new Item("fissile-matter", Color.valueOf("536631")){{
|
||||
hardness = 4;
|
||||
radioactivity = 1.5f;
|
||||
}};
|
||||
|
||||
dormantCyst = new Item("dormant-cyst", Color.valueOf("df824d")){{
|
||||
flammability = 0.1f;
|
||||
}};
|
||||
|
||||
tungsten = new Item("tungsten", Color.valueOf("768a9a")){{
|
||||
hardness = 5;
|
||||
}};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,13 +78,13 @@ public class BuildPlan implements Position{
|
|||
|
||||
/** Transforms the internal position of this config using the specified function, and return the result. */
|
||||
public static Object pointConfig(Block block, Object config, Cons<Point2> cons){
|
||||
if(config instanceof Point2){
|
||||
config = ((Point2)config).cpy();
|
||||
cons.get((Point2)config);
|
||||
}else if(config instanceof Point2[]){
|
||||
Point2[] result = new Point2[((Point2[])config).length];
|
||||
if(config instanceof Point2 point){
|
||||
config = point.cpy();
|
||||
cons.get(point);
|
||||
}else if(config instanceof Point2[] points){
|
||||
Point2[] result = new Point2[points.length];
|
||||
int i = 0;
|
||||
for(Point2 p : (Point2[])config){
|
||||
for(Point2 p : points){
|
||||
result[i] = p.cpy();
|
||||
cons.get(result[i++]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
|
|||
}
|
||||
|
||||
//not allowed
|
||||
state.rules.hiddenBuildItems.addAll(Items.copper, Items.titanium, Items.coal, Items.lead);
|
||||
state.rules.hiddenBuildItems.addAll(Items.copper, Items.titanium, Items.coal, Items.lead, Items.blastCompound, Items.pyratite, Items.sporePod, Items.metaglass);
|
||||
|
||||
//it is very hot
|
||||
state.rules.attributes.set(Attribute.heat, 0.8f);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public class BuildTurret extends BaseTurret{
|
|||
|
||||
public @Load(value = "@-base", fallback = "block-@size") TextureRegion baseRegion;
|
||||
public float buildSpeed = 1f;
|
||||
public float buildBeamOffset = 4.1f;
|
||||
public float buildBeamOffset = 5f;
|
||||
//created in init()
|
||||
public @Nullable UnitType unitType;
|
||||
public float elevation = -1f;
|
||||
|
|
@ -53,9 +53,9 @@ public class BuildTurret extends BaseTurret{
|
|||
commandLimit = 0;
|
||||
rotateSpeed = BuildTurret.this.rotateSpeed;
|
||||
buildBeamOffset = BuildTurret.this.buildBeamOffset;
|
||||
constructor = BlockUnitUnit::create;
|
||||
buildRange = BuildTurret.this.range;
|
||||
buildSpeed = BuildTurret.this.buildSpeed;
|
||||
constructor = BlockUnitUnit::create;
|
||||
}};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue