Added massive amount of partially-unfinished content to recipe menu
This commit is contained in:
@@ -35,13 +35,13 @@ public class UnitType implements UnlockableContent{
|
||||
public boolean isFlying;
|
||||
public float drag = 0.1f;
|
||||
public float maxVelocity = 5f;
|
||||
public float reload = 40f;
|
||||
public float retreatPercent = 0.2f;
|
||||
public float armor = 0f;
|
||||
public float carryWeight = 1f;
|
||||
public int ammoCapacity = 100;
|
||||
public int itemCapacity = 30;
|
||||
public int mineLevel = 2;
|
||||
public float buildPower = 0.3f, minePower = 0.7f, healSpeed = 0.1f;
|
||||
public Weapon weapon = Weapons.blaster;
|
||||
public float weaponOffsetX, weaponOffsetY;
|
||||
|
||||
|
||||
@@ -41,7 +41,6 @@ import static io.anuke.mindustry.Vars.*;
|
||||
|
||||
public class Drone extends FlyingUnit implements BuilderTrait {
|
||||
protected static ObjectSet<Item> toMine;
|
||||
protected static float healSpeed = 0.1f;
|
||||
protected static float discoverRange = 120f;
|
||||
protected static boolean initialized;
|
||||
|
||||
@@ -89,12 +88,12 @@ public class Drone extends FlyingUnit implements BuilderTrait {
|
||||
|
||||
@Override
|
||||
public float getBuildPower(Tile tile) {
|
||||
return 0.3f;
|
||||
return type.buildPower;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMinePower() {
|
||||
return 0.7f;
|
||||
return type.minePower;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -292,7 +291,7 @@ public class Drone extends FlyingUnit implements BuilderTrait {
|
||||
circle(type.range);
|
||||
}else{
|
||||
TileEntity entity = (TileEntity) target;
|
||||
entity.health += healSpeed * Timers.delta();
|
||||
entity.health += type.healSpeed * Timers.delta();
|
||||
entity.health = Mathf.clamp(entity.health, 0, entity.tile.block().health);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
package io.anuke.mindustry.entities.units.types;
|
||||
|
||||
public class Fabricator extends Drone {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user