mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-27 16:00:51 -07:00
Cleanup
This commit is contained in:
parent
405d6cf33f
commit
89aec3ac51
4 changed files with 6 additions and 5 deletions
|
|
@ -530,7 +530,7 @@ public class UnitTypes implements ContentList{
|
|||
range = 70f;
|
||||
itemCapacity = 70;
|
||||
health = 400;
|
||||
buildSpeed = 0.6f;
|
||||
buildSpeed = 0.5f;
|
||||
engineOffset = 6.5f;
|
||||
hitsize = 8f;
|
||||
}};
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ abstract class BuilderComp implements Unitc{
|
|||
@Import float x, y, rotation;
|
||||
|
||||
Queue<BuildPlan> plans = new Queue<>();
|
||||
transient float buildSpeed = 1f;
|
||||
transient boolean building = true;
|
||||
|
||||
@Override
|
||||
|
|
@ -115,9 +114,9 @@ abstract class BuilderComp implements Unitc{
|
|||
BuildEntity entity = tile.ent();
|
||||
|
||||
if(current.breaking){
|
||||
entity.deconstruct(this, core, 1f / entity.buildCost * Time.delta() * buildSpeed * state.rules.buildSpeedMultiplier);
|
||||
entity.deconstruct(this, core, 1f / entity.buildCost * Time.delta() * type().buildSpeed * state.rules.buildSpeedMultiplier);
|
||||
}else{
|
||||
if(entity.construct(this, core, 1f / entity.buildCost * Time.delta() * buildSpeed * state.rules.buildSpeedMultiplier, current.hasConfig)){
|
||||
if(entity.construct(this, core, 1f / entity.buildCost * Time.delta() * type().buildSpeed * state.rules.buildSpeedMultiplier, current.hasConfig)){
|
||||
if(current.hasConfig){
|
||||
Call.onTileConfig(null, tile.entity, current.config);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public enum Gamemode{
|
|||
rules.attackMode = true;
|
||||
rules.waves = true;
|
||||
rules.waveTimer = true;
|
||||
}, map -> map.teams.contains(state.rules.waveTeam.id) && !map.rules().pvp),
|
||||
}, map -> map.teams.contains(state.rules.waveTeam.id)),
|
||||
pvp(rules -> {
|
||||
rules.pvp = true;
|
||||
rules.enemyCoreBuildRadius = 600f;
|
||||
|
|
|
|||
|
|
@ -97,6 +97,8 @@ public class Rules{
|
|||
public static class TeamRule{
|
||||
/** Whether to use building AI. */
|
||||
public boolean ai;
|
||||
/** TODO Tier of blocks/designs that the AI uses for building. [0, 1]*/
|
||||
public float aiTier = 0f;
|
||||
/** If true, blocks don't require power or resources. */
|
||||
public boolean cheat;
|
||||
/** If true, resources are not consumed when building. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue