This commit is contained in:
Anuken
2020-10-12 10:06:34 -04:00
parent 66ecf96be2
commit 378e81cd90
5 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ gameover = Game Over
gameover.pvp = The[accent] {0}[] team is victorious! gameover.pvp = The[accent] {0}[] team is victorious!
highscore = [accent]New highscore! highscore = [accent]New highscore!
copied = Copied. copied = Copied.
indev.popup = [accent]v6[] is currently in [accent]alpha[].\n[lightgray]This means:[]\n[scarlet]- The campaign is completely unfinished[]\n- Content is missing\n - Most [scarlet]Unit AI[] does not work properly\n- Many units are unfinished\n- Everything you see is subject to change or removal.\n\nReport bugs or crashes on [accent]Github[]. indev.popup = [accent]v6[] is currently in [accent]alpha[].\n[lightgray]This means:[]\n[scarlet]- The campaign is completely unfinished[]\n- SFX and music are unfinished/missing\n- Everything you see is subject to change or removal.\n\nReport bugs or crashes on [accent]Github[].
indev.notready = This part of the game isn't ready yet indev.notready = This part of the game isn't ready yet
load.sound = Sounds load.sound = Sounds
+3 -3
View File
@@ -1544,7 +1544,7 @@ public class UnitTypes implements ContentList{
xRand = 8f; xRand = 8f;
shotDelay = 1f; shotDelay = 1f;
bullet = new MissileBulletType(4.2f, 25){{ bullet = new MissileBulletType(4.2f, 30){{
homingPower = 0.12f; homingPower = 0.12f;
width = 8f; width = 8f;
height = 8f; height = 8f;
@@ -1552,8 +1552,8 @@ public class UnitTypes implements ContentList{
drag = -0.003f; drag = -0.003f;
homingRange = 80f; homingRange = 80f;
keepVelocity = false; keepVelocity = false;
splashDamageRadius = 25f; splashDamageRadius = 30f;
splashDamage = 25f; splashDamage = 35f;
lifetime = 56f; lifetime = 56f;
trailColor = Pal.bulletYellowBack; trailColor = Pal.bulletYellowBack;
backColor = Pal.bulletYellowBack; backColor = Pal.bulletYellowBack;
@@ -22,7 +22,7 @@ public abstract class UnlockableContent extends MappableContent{
/** Whether this content is always unlocked in the tech tree. */ /** Whether this content is always unlocked in the tech tree. */
public boolean alwaysUnlocked = false; public boolean alwaysUnlocked = false;
/** Icons by Cicon ID.*/ /** Icons by Cicon ID.*/
protected TextureRegion[] cicons = new TextureRegion[mindustry.ui.Cicon.all.length]; protected TextureRegion[] cicons = new TextureRegion[Cicon.all.length];
/** Unlock state. Loaded from settings. Do not modify outside of the constructor. */ /** Unlock state. Loaded from settings. Do not modify outside of the constructor. */
protected boolean unlocked; protected boolean unlocked;
@@ -339,6 +339,14 @@ public class DefaultWaves{
shieldScaling = shieldsPerWave; shieldScaling = shieldsPerWave;
}}); }});
//shift back waves on higher difficulty for a harder start
int shift = Math.max((int)(difficulty * 15 - 5), 0);
for(SpawnGroup group : out){
group.begin -= shift;
group.end -= shift;
}
return out; return out;
} }
} }
@@ -400,7 +400,8 @@ public class ResearchDialog extends BaseDialog{
} }
} }
return false; //can always spend when locked
return node.content.locked();
} }
void spend(TechNode node){ void spend(TechNode node){
@@ -414,7 +415,7 @@ public class ResearchDialog extends BaseDialog{
ItemStack completed = node.finishedRequirements[i]; ItemStack completed = node.finishedRequirements[i];
//amount actually taken from inventory //amount actually taken from inventory
int used = Math.min(req.amount - completed.amount, items.get(req.item)); int used = Math.max(Math.min(req.amount - completed.amount, items.get(req.item)), 0);
items.remove(req.item, used); items.remove(req.item, used);
completed.amount += used; completed.amount += used;