Balancing

This commit is contained in:
Anuken 2019-02-04 21:24:12 -05:00
parent eb5b50b3e9
commit 6e7514491c
9 changed files with 11 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 B

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -21,7 +21,8 @@ public class Zones implements ContentList{
deployCost = ItemStack.with(Items.copper, 60);
startingItems = ItemStack.with(Items.copper, 50);
alwaysUnlocked = true;
conditionWave = 10;
conditionWave = 5;
launchPeriod = 5;
rules = () -> new Rules(){{
waves = true;
waveTimer = true;
@ -109,7 +110,6 @@ public class Zones implements ContentList{
frozenForest = new Zone("frozenForest", new MapGenerator("frozenForest", 2)
.decor(new Decoration(Blocks.snow, Blocks.sporeCluster, 0.02))){{
alwaysUnlocked = true;
deployCost = ItemStack.with(Items.copper, 500);
startingItems = ItemStack.with(Items.copper, 400);
conditionWave = 15;

View File

@ -284,7 +284,7 @@ public class Player extends Unit implements BuilderTrait, ShooterTrait{
if(dead) return;
if(!movement.isZero() && moved && !state.isPaused()){
walktime += movement.len() / 0.7f * getFloorOn().speedMultiplier;
walktime += movement.len() / 1f * getFloorOn().speedMultiplier;
baseRotation = Mathf.slerpDelta(baseRotation, movement.angle(), 0.13f);
}

View File

@ -33,7 +33,7 @@ public class Mech extends UnlockableContent{
public boolean turnCursor = true;
public boolean canHeal = false;
public float weaponOffsetX, weaponOffsetY, engineOffset = 6f, engineSize = 2f;
public float weaponOffsetX, weaponOffsetY, engineOffset = 5f, engineSize = 2.5f;
public Weapon weapon;
public TextureRegion baseRegion, legRegion, region, iconRegion;

View File

@ -38,8 +38,8 @@ public class DatabaseDialog extends FloatingDialog{
for(int j = 0; j < allContent.length; j ++){
ContentType type = ContentType.values()[j];
Array<Content> array = allContent[j];
if(array.size == 0 || !(array.first() instanceof UnlockableContent)) continue;
Array<Content> array = allContent[j].select(c -> c instanceof UnlockableContent && !((UnlockableContent)c).isHidden());
if(array.size == 0) continue;
table.add("$content." + type.name() + ".name").growX().left().color(Palette.accent);
table.row();
@ -49,15 +49,13 @@ public class DatabaseDialog extends FloatingDialog{
list.left();
int maxWidth = UIUtils.portrait() ? 7 : 13;
int size = 8 * 6;
int size = 8 * 4;
int count = 0;
for(int i = 0; i < array.size; i++){
UnlockableContent unlock = (UnlockableContent) array.get(i);
if(unlock.isHidden()) continue;
Image image = data.isUnlocked(unlock) ? new Image(unlock.getContentIcon()) : new Image("icon-tree-locked");
image.addListener(new HandCursorListener());
list.add(image).size(size).pad(3);

View File

@ -48,12 +48,6 @@ public class DeployDialog extends FloatingDialog{
}
public void setup(){
if(!System.getProperty("mindustry.debug", "false").equals("true")){
ui.showInfo("This is not ready for testing. Play custom games instead.");
Core.app.post(this::hide);
return;
}
cont.clear();
titleTable.remove();
marginTop(0f);

View File

@ -259,7 +259,7 @@ public class Block extends BlockStorage{
@Override
public TextureRegion getContentIcon(){
return icon(Icon.large);
return icon(Icon.medium);
}
@Override

View File

@ -124,8 +124,10 @@ public class BuildBlock extends Block{
if(entity.previous == null) return;
if(Core.atlas.isFound(entity.previous.icon(Icon.full))){
Draw.rect(entity.previous.icon(Icon.full), tile.drawx(), tile.drawy(), entity.previous.rotate ? tile.getRotation() * 90 : 0);
}
}
@Override
public void drawLayer(Tile tile){