Omega mech ability / Rendering fix
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 413 B |
BIN
core/assets-raw/sprites/mechs/mechs/omega-mech-armor.png
Normal file
BIN
core/assets-raw/sprites/mechs/mechs/omega-mech-armor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 252 B |
@@ -42,7 +42,7 @@ void main() {
|
|||||||
|
|
||||||
if(c.a > 0.01 || outline){
|
if(c.a > 0.01 || outline){
|
||||||
float f = abs(sin(coords.x*2.0 + u_time));
|
float f = abs(sin(coords.x*2.0 + u_time));
|
||||||
if(f > 0.9 || (f > 0.7 && rand(t) > 0.6))
|
if(f > 0.9 )
|
||||||
f = 1.0;
|
f = 1.0;
|
||||||
else
|
else
|
||||||
f = 0.0;
|
f = 0.0;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 139 KiB |
@@ -1,12 +1,19 @@
|
|||||||
package io.anuke.mindustry.content;
|
package io.anuke.mindustry.content;
|
||||||
|
|
||||||
import com.badlogic.gdx.graphics.Color;
|
import com.badlogic.gdx.graphics.Color;
|
||||||
|
import com.badlogic.gdx.graphics.g2d.TextureRegion;
|
||||||
import com.badlogic.gdx.utils.Array;
|
import com.badlogic.gdx.utils.Array;
|
||||||
|
import io.anuke.mindustry.entities.Player;
|
||||||
import io.anuke.mindustry.game.Content;
|
import io.anuke.mindustry.game.Content;
|
||||||
import io.anuke.mindustry.graphics.Palette;
|
import io.anuke.mindustry.graphics.Palette;
|
||||||
|
import io.anuke.mindustry.graphics.Shaders;
|
||||||
import io.anuke.mindustry.type.ContentList;
|
import io.anuke.mindustry.type.ContentList;
|
||||||
import io.anuke.mindustry.type.Mech;
|
import io.anuke.mindustry.type.Mech;
|
||||||
import io.anuke.mindustry.type.Upgrade;
|
import io.anuke.mindustry.type.Upgrade;
|
||||||
|
import io.anuke.ucore.core.Core;
|
||||||
|
import io.anuke.ucore.core.Graphics;
|
||||||
|
import io.anuke.ucore.core.Timers;
|
||||||
|
import io.anuke.ucore.graphics.Draw;
|
||||||
|
|
||||||
public class Mechs implements ContentList{
|
public class Mechs implements ContentList{
|
||||||
public static Mech alpha, delta, tau, omega, dart, javelin, trident, halberd;
|
public static Mech alpha, delta, tau, omega, dart, javelin, trident, halberd;
|
||||||
@@ -52,19 +59,61 @@ public class Mechs implements ContentList{
|
|||||||
armor = 30f;
|
armor = 30f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
omega = new Mech("omega-mech", false){{
|
omega = new Mech("omega-mech", false){
|
||||||
drillPower = 2;
|
protected TextureRegion armorRegion;
|
||||||
mineSpeed = 1.5f;
|
{
|
||||||
itemCapacity = 50;
|
drillPower = 2;
|
||||||
speed = 0.36f;
|
mineSpeed = 1.5f;
|
||||||
boostSpeed = 0.6f;
|
itemCapacity = 50;
|
||||||
shake = 4f;
|
speed = 0.36f;
|
||||||
weaponOffsetX = 1;
|
boostSpeed = 0.6f;
|
||||||
weaponOffsetY = 0;
|
shake = 4f;
|
||||||
weapon = Weapons.swarmer;
|
weaponOffsetX = 1;
|
||||||
maxSpeed = 3.5f;
|
weaponOffsetY = 0;
|
||||||
armor = 70f;
|
weapon = Weapons.swarmer;
|
||||||
}};
|
trailColorTo = Color.valueOf("feb380");
|
||||||
|
maxSpeed = 3.5f;
|
||||||
|
armor = 50f;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float spreadX(Player player){
|
||||||
|
return player.altHeat*2f;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void load(){
|
||||||
|
super.load();
|
||||||
|
armorRegion = Draw.region(name + "-armor");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateAlt(Player player){
|
||||||
|
float scl = 1f - player.altHeat/2f;
|
||||||
|
player.getVelocity().scl(scl);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getExtraArmor(Player player){
|
||||||
|
return player.altHeat * 40f;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void draw(Player player){
|
||||||
|
if(player.altHeat <= 0.01f) return;
|
||||||
|
|
||||||
|
float alpha = Core.batch.getColor().a;
|
||||||
|
Shaders.build.progress = player.altHeat;
|
||||||
|
Shaders.build.region = armorRegion;
|
||||||
|
Shaders.build.time = Timers.time() / 10f;
|
||||||
|
Shaders.build.color.set(Palette.accent).a = player.altHeat;
|
||||||
|
Graphics.shader(Shaders.build);
|
||||||
|
Draw.alpha(1f);
|
||||||
|
Draw.rect(armorRegion, player.snappedX(), player.snappedY(), player.rotation);
|
||||||
|
Graphics.shader(Shaders.mix);
|
||||||
|
Draw.color(1f, 1f, 1f, alpha);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
dart = new Mech("dart-ship", true){{
|
dart = new Mech("dart-ship", true){{
|
||||||
drillPower = 1;
|
drillPower = 1;
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ public class MissileBullets extends BulletList implements ContentList{
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
javelin = new MissileBulletType(2.5f, 10, "missile"){
|
javelin = new MissileBulletType(2.5f, 14, "missile"){
|
||||||
{
|
{
|
||||||
bulletWidth = 8f;
|
bulletWidth = 8f;
|
||||||
bulletHeight = 8f;
|
bulletHeight = 8f;
|
||||||
@@ -60,22 +60,23 @@ public class MissileBullets extends BulletList implements ContentList{
|
|||||||
drag = -0.02f;
|
drag = -0.02f;
|
||||||
keepVelocity = false;
|
keepVelocity = false;
|
||||||
splashDamageRadius = 25f;
|
splashDamageRadius = 25f;
|
||||||
splashDamage = 15f;
|
splashDamage = 11f;
|
||||||
lifetime = 90f;
|
lifetime = 90f;
|
||||||
hiteffect = BulletFx.blastExplosion;
|
hiteffect = BulletFx.blastExplosion;
|
||||||
despawneffect = BulletFx.blastExplosion;
|
despawneffect = BulletFx.blastExplosion;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
swarm = new MissileBulletType(2.7f, 10, "missile"){
|
swarm = new MissileBulletType(2.7f, 14, "missile"){
|
||||||
{
|
{
|
||||||
bulletWidth = 8f;
|
bulletWidth = 8f;
|
||||||
bulletHeight = 8f;
|
bulletHeight = 8f;
|
||||||
bulletShrink = 0f;
|
bulletShrink = 0f;
|
||||||
drag = -0.003f;
|
drag = -0.003f;
|
||||||
|
homingRange = 60f;
|
||||||
keepVelocity = false;
|
keepVelocity = false;
|
||||||
splashDamageRadius = 25f;
|
splashDamageRadius = 25f;
|
||||||
splashDamage = 15f;
|
splashDamage = 11f;
|
||||||
lifetime = 120f;
|
lifetime = 120f;
|
||||||
trailColor = Color.GRAY;
|
trailColor = Color.GRAY;
|
||||||
backColor = Palette.bulletYellowBack;
|
backColor = Palette.bulletYellowBack;
|
||||||
|
|||||||
@@ -159,7 +159,11 @@ public class Renderer extends RendererModule{
|
|||||||
Vector2 position = averagePosition();
|
Vector2 position = averagePosition();
|
||||||
|
|
||||||
if(!mobile){
|
if(!mobile){
|
||||||
setCamera(position.x + 0.0001f, position.y + 0.0001f);
|
if(players[0].isDead()){
|
||||||
|
smoothCamera(position.x + 0.0001f, position.y + 0.0001f, 0.08f);
|
||||||
|
}else{
|
||||||
|
setCamera(position.x + 0.0001f, position.y + 0.0001f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(world.getSector() == null){
|
if(world.getSector() == null){
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||||||
public String name = "name";
|
public String name = "name";
|
||||||
public String uuid, usid;
|
public String uuid, usid;
|
||||||
public boolean isAdmin, isTransferring, isShooting, isBoosting, isAlt, isMobile;
|
public boolean isAdmin, isTransferring, isShooting, isBoosting, isAlt, isMobile;
|
||||||
public float boostHeat;
|
public float boostHeat, altHeat;
|
||||||
public boolean achievedFlight;
|
public boolean achievedFlight;
|
||||||
public Color color = new Color();
|
public Color color = new Color();
|
||||||
public Mech mech;
|
public Mech mech;
|
||||||
@@ -183,7 +183,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getArmor(){
|
public float getArmor(){
|
||||||
return mech.armor;
|
return mech.armor + mech.getExtraArmor(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -210,7 +210,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||||||
public void damage(float amount){
|
public void damage(float amount){
|
||||||
hitTime = hitDuration;
|
hitTime = hitDuration;
|
||||||
if(!Net.client()){
|
if(!Net.client()){
|
||||||
health -= amount;
|
health -= calculateDamage(amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(health <= 0 && !dead){
|
if(health <= 0 && !dead){
|
||||||
@@ -314,12 +314,14 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||||||
|
|
||||||
Draw.rect(mech.region, x, y, rotation - 90);
|
Draw.rect(mech.region, x, y, rotation - 90);
|
||||||
|
|
||||||
|
mech.draw(this);
|
||||||
|
|
||||||
for(int i : Mathf.signs){
|
for(int i : Mathf.signs){
|
||||||
float tra = rotation - 90, trY = -mech.weapon.getRecoil(this, i > 0) + mech.weaponOffsetY;
|
float tra = rotation - 90, trY = -mech.weapon.getRecoil(this, i > 0) + mech.weaponOffsetY;
|
||||||
float w = i > 0 ? -mech.weapon.equipRegion.getRegionWidth() : mech.weapon.equipRegion.getRegionWidth();
|
float w = i > 0 ? -mech.weapon.equipRegion.getRegionWidth() : mech.weapon.equipRegion.getRegionWidth();
|
||||||
Draw.rect(mech.weapon.equipRegion,
|
Draw.rect(mech.weapon.equipRegion,
|
||||||
x + Angles.trnsx(tra, mech.weaponOffsetX * i, trY),
|
x + Angles.trnsx(tra, (mech.weaponOffsetX + mech.spreadX(this)) * i, trY),
|
||||||
y + Angles.trnsy(tra, mech.weaponOffsetX * i, trY), w, mech.weapon.equipRegion.getRegionHeight(), rotation - 90);
|
y + Angles.trnsy(tra, (mech.weaponOffsetX + mech.spreadX(this)) * i, trY), w, mech.weapon.equipRegion.getRegionHeight(), rotation - 90);
|
||||||
}
|
}
|
||||||
|
|
||||||
float backTrns = 4f, itemSize = 5f;
|
float backTrns = 4f, itemSize = 5f;
|
||||||
@@ -366,11 +368,11 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float snappedX(){
|
public float snappedX(){
|
||||||
return snapCamera && isLocal ? (int) (x + 0.0001f) : x;
|
return snapCamera && isLocal ? (int) (x + 0.0001f) : x;
|
||||||
}
|
}
|
||||||
|
|
||||||
float snappedY(){
|
public float snappedY(){
|
||||||
return snapCamera && isLocal ? (int) (y + 0.0001f) : y;
|
return snapCamera && isLocal ? (int) (y + 0.0001f) : y;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -489,8 +491,11 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||||||
protected void updateMech(){
|
protected void updateMech(){
|
||||||
Tile tile = world.tileWorld(x, y);
|
Tile tile = world.tileWorld(x, y);
|
||||||
|
|
||||||
|
altHeat = Mathf.lerpDelta(altHeat, isAlt ? 1f : 0f, mech.altChargeAlpha);
|
||||||
boostHeat = Mathf.lerpDelta(boostHeat, isBoosting && ((!movement.isZero() && moved) || !isLocal) ? 1f : 0f, 0.08f);
|
boostHeat = Mathf.lerpDelta(boostHeat, isBoosting && ((!movement.isZero() && moved) || !isLocal) ? 1f : 0f, 0.08f);
|
||||||
|
|
||||||
|
mech.updateAlt(this);
|
||||||
|
|
||||||
if(boostHeat > liftoffBoost + 0.1f){
|
if(boostHeat > liftoffBoost + 0.1f){
|
||||||
achievedFlight = true;
|
achievedFlight = true;
|
||||||
}
|
}
|
||||||
@@ -505,7 +510,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||||||
achievedFlight = false;
|
achievedFlight = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
isBoosting = Inputs.keyDown("dash") && !mech.flying;
|
isBoosting = Inputs.keyDown("dash") && !mech.flying && !isAlt;
|
||||||
isAlt = Inputs.keyDown("ability") && !mech.flying;
|
isAlt = Inputs.keyDown("ability") && !mech.flying;
|
||||||
|
|
||||||
//if player is in solid block
|
//if player is in solid block
|
||||||
@@ -771,7 +776,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||||||
public void write(DataOutput buffer) throws IOException{
|
public void write(DataOutput buffer) throws IOException{
|
||||||
super.writeSave(buffer, !isLocal);
|
super.writeSave(buffer, !isLocal);
|
||||||
buffer.writeUTF(name); //TODO writing strings is very inefficient
|
buffer.writeUTF(name); //TODO writing strings is very inefficient
|
||||||
buffer.writeByte(Bits.toByte(isAdmin) | (Bits.toByte(dead) << 1) | (Bits.toByte(isBoosting) << 2));
|
buffer.writeByte(Bits.toByte(isAdmin) | (Bits.toByte(dead) << 1) | (Bits.toByte(isBoosting) << 2)| (Bits.toByte(isAlt) << 3));
|
||||||
buffer.writeInt(Color.rgba8888(color));
|
buffer.writeInt(Color.rgba8888(color));
|
||||||
buffer.writeByte(mech.id);
|
buffer.writeByte(mech.id);
|
||||||
buffer.writeInt(mining == null ? -1 : mining.packedPosition());
|
buffer.writeInt(mining == null ? -1 : mining.packedPosition());
|
||||||
@@ -790,6 +795,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||||||
isAdmin = (bools & 1) != 0;
|
isAdmin = (bools & 1) != 0;
|
||||||
dead = (bools & 2) != 0;
|
dead = (bools & 2) != 0;
|
||||||
boolean boosting = (bools & 4) != 0;
|
boolean boosting = (bools & 4) != 0;
|
||||||
|
boolean alt = (bools & 8) != 0;
|
||||||
color.set(buffer.readInt());
|
color.set(buffer.readInt());
|
||||||
mech = Upgrade.getByID(buffer.readByte());
|
mech = Upgrade.getByID(buffer.readByte());
|
||||||
int mine = buffer.readInt();
|
int mine = buffer.readInt();
|
||||||
@@ -807,6 +813,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
|
|||||||
}else{
|
}else{
|
||||||
mining = world.tile(mine);
|
mining = world.tile(mine);
|
||||||
isBoosting = boosting;
|
isBoosting = boosting;
|
||||||
|
isAlt = alt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,14 +88,13 @@ public class BlockRenderer{
|
|||||||
|
|
||||||
int shadowW = rangex * tilesize*2, shadowH = rangey * tilesize*2;
|
int shadowW = rangex * tilesize*2, shadowH = rangey * tilesize*2;
|
||||||
|
|
||||||
if(shadows.width() != shadowW || shadows.height() != shadowH){
|
|
||||||
shadows.setSize(shadowW, shadowH);
|
|
||||||
}
|
|
||||||
|
|
||||||
teamChecks.clear();
|
teamChecks.clear();
|
||||||
requestidx = 0;
|
requestidx = 0;
|
||||||
|
|
||||||
Graphics.end();
|
Graphics.end();
|
||||||
|
if(shadows.width() != shadowW || shadows.height() != shadowH){
|
||||||
|
shadows.setSize(shadowW, shadowH);
|
||||||
|
}
|
||||||
Core.batch.getProjectionMatrix().setToOrtho2D(Mathf.round(Core.camera.position.x, tilesize)-shadowW/2f, Mathf.round(Core.camera.position.y, tilesize)-shadowH/2f, shadowW, shadowH);
|
Core.batch.getProjectionMatrix().setToOrtho2D(Mathf.round(Core.camera.position.x, tilesize)-shadowW/2f, Mathf.round(Core.camera.position.y, tilesize)-shadowH/2f, shadowW, shadowH);
|
||||||
Graphics.surface(shadows);
|
Graphics.surface(shadows);
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class DefaultKeybinds{
|
|||||||
//"shoot", Input.MOUSE_LEFT,
|
//"shoot", Input.MOUSE_LEFT,
|
||||||
"rotate", new Axis(Input.SCROLL),
|
"rotate", new Axis(Input.SCROLL),
|
||||||
"dash", Input.SHIFT_LEFT,
|
"dash", Input.SHIFT_LEFT,
|
||||||
"ability", Input.SPACE,
|
"ability", Input.CONTROL_LEFT,
|
||||||
"drop_unit", Input.SHIFT_LEFT,
|
"drop_unit", Input.SHIFT_LEFT,
|
||||||
new Category("view"),
|
new Category("view"),
|
||||||
"zoom_hold", Input.CONTROL_LEFT,
|
"zoom_hold", Input.CONTROL_LEFT,
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package io.anuke.mindustry.type;
|
|||||||
import com.badlogic.gdx.graphics.Color;
|
import com.badlogic.gdx.graphics.Color;
|
||||||
import com.badlogic.gdx.graphics.g2d.TextureRegion;
|
import com.badlogic.gdx.graphics.g2d.TextureRegion;
|
||||||
import io.anuke.mindustry.content.Weapons;
|
import io.anuke.mindustry.content.Weapons;
|
||||||
|
import io.anuke.mindustry.entities.Player;
|
||||||
import io.anuke.mindustry.game.UnlockableContent;
|
import io.anuke.mindustry.game.UnlockableContent;
|
||||||
import io.anuke.mindustry.graphics.Palette;
|
import io.anuke.mindustry.graphics.Palette;
|
||||||
import io.anuke.mindustry.ui.ContentDisplay;
|
import io.anuke.mindustry.ui.ContentDisplay;
|
||||||
@@ -21,6 +22,7 @@ public class Mech extends Upgrade implements UnlockableContent{
|
|||||||
public float shake = 0f;
|
public float shake = 0f;
|
||||||
public float armor = 1f;
|
public float armor = 1f;
|
||||||
|
|
||||||
|
public float altChargeAlpha = 0.1f;
|
||||||
public float mineSpeed = 1f;
|
public float mineSpeed = 1f;
|
||||||
public int drillPower = -1;
|
public int drillPower = -1;
|
||||||
public float carryWeight = 10f;
|
public float carryWeight = 10f;
|
||||||
@@ -30,7 +32,6 @@ public class Mech extends Upgrade implements UnlockableContent{
|
|||||||
public int itemCapacity = 30;
|
public int itemCapacity = 30;
|
||||||
|
|
||||||
public float weaponOffsetX, weaponOffsetY;
|
public float weaponOffsetX, weaponOffsetY;
|
||||||
|
|
||||||
public Weapon weapon = Weapons.blaster;
|
public Weapon weapon = Weapons.blaster;
|
||||||
|
|
||||||
public TextureRegion baseRegion, legRegion, region, iconRegion;
|
public TextureRegion baseRegion, legRegion, region, iconRegion;
|
||||||
@@ -40,6 +41,18 @@ public class Mech extends Upgrade implements UnlockableContent{
|
|||||||
this.flying = flying;
|
this.flying = flying;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateAlt(Player player){}
|
||||||
|
|
||||||
|
public void draw(Player player){}
|
||||||
|
|
||||||
|
public float getExtraArmor(Player player){
|
||||||
|
return 0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float spreadX(Player player){
|
||||||
|
return 0f;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void displayInfo(Table table){
|
public void displayInfo(Table table){
|
||||||
ContentDisplay.displayMech(table, this);
|
ContentDisplay.displayMech(table, this);
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package io.anuke.mindustry.world.blocks.storage;
|
package io.anuke.mindustry.world.blocks.storage;
|
||||||
|
|
||||||
import com.badlogic.gdx.graphics.g2d.TextureRegion;
|
import com.badlogic.gdx.graphics.g2d.TextureRegion;
|
||||||
import com.badlogic.gdx.math.Rectangle;
|
|
||||||
import io.anuke.annotations.Annotations.Loc;
|
import io.anuke.annotations.Annotations.Loc;
|
||||||
import io.anuke.annotations.Annotations.Remote;
|
import io.anuke.annotations.Annotations.Remote;
|
||||||
import io.anuke.mindustry.Vars;
|
import io.anuke.mindustry.Vars;
|
||||||
@@ -38,12 +37,6 @@ import java.io.IOException;
|
|||||||
import static io.anuke.mindustry.Vars.*;
|
import static io.anuke.mindustry.Vars.*;
|
||||||
|
|
||||||
public class CoreBlock extends StorageBlock{
|
public class CoreBlock extends StorageBlock{
|
||||||
private static Rectangle rect = new Rectangle();
|
|
||||||
|
|
||||||
protected int timerSupply = timers++;
|
|
||||||
|
|
||||||
protected float supplyRadius = 50f;
|
|
||||||
protected float supplyInterval = 5f;
|
|
||||||
protected float droneRespawnDuration = 60 * 6;
|
protected float droneRespawnDuration = 60 * 6;
|
||||||
protected UnitType droneType = UnitTypes.drone;
|
protected UnitType droneType = UnitTypes.drone;
|
||||||
|
|
||||||
@@ -164,13 +157,6 @@ public class CoreBlock extends StorageBlock{
|
|||||||
return tile.entity.items.get(item) < itemCapacity && item.type == ItemType.material;
|
return tile.entity.items.get(item) < itemCapacity && item.type == ItemType.material;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void drawSelect(Tile tile){
|
|
||||||
Draw.color(Palette.accent);
|
|
||||||
Lines.dashCircle(tile.drawx(), tile.drawy(), supplyRadius);
|
|
||||||
Draw.color();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyed(Tile tile){
|
public void onDestroyed(Tile tile){
|
||||||
//TODO more dramatic effects
|
//TODO more dramatic effects
|
||||||
|
|||||||
Reference in New Issue
Block a user