mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-08 23:07:33 +07:00
Minor campaign tweaks
This commit is contained in:
Binary file not shown.
@ -36,7 +36,7 @@ public class BaseAI{
|
|||||||
private static int correct = 0, incorrect = 0;
|
private static int correct = 0, incorrect = 0;
|
||||||
|
|
||||||
private int lastX, lastY, lastW, lastH;
|
private int lastX, lastY, lastW, lastH;
|
||||||
private boolean triedWalls;
|
private boolean triedWalls, foundPath;
|
||||||
|
|
||||||
TeamData data;
|
TeamData data;
|
||||||
Interval timer = new Interval(4);
|
Interval timer = new Interval(4);
|
||||||
@ -125,6 +125,7 @@ public class BaseAI{
|
|||||||
calcPath.clear();
|
calcPath.clear();
|
||||||
calcTile = null;
|
calcTile = null;
|
||||||
totalCalcs ++;
|
totalCalcs ++;
|
||||||
|
foundPath = true;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -135,7 +136,7 @@ public class BaseAI{
|
|||||||
}
|
}
|
||||||
|
|
||||||
//only schedule when there's something to build.
|
//only schedule when there's something to build.
|
||||||
if(totalCalcs > 0 && data.blocks.isEmpty() && timer.get(timerStep, Mathf.lerp(20f, 4f, data.team.rules().aiTier))){
|
if(foundPath && data.blocks.isEmpty() && timer.get(timerStep, Mathf.lerp(20f, 4f, data.team.rules().aiTier))){
|
||||||
if(!triedWalls){
|
if(!triedWalls){
|
||||||
tryWalls();
|
tryWalls();
|
||||||
triedWalls = true;
|
triedWalls = true;
|
||||||
|
@ -462,10 +462,11 @@ public class TechTree implements ContentList{
|
|||||||
new Research(conduit),
|
new Research(conduit),
|
||||||
new Research(wave)
|
new Research(wave)
|
||||||
), () -> {
|
), () -> {
|
||||||
//TODO change positions?
|
|
||||||
node(impact0078, Seq.with(
|
node(impact0078, Seq.with(
|
||||||
new SectorComplete(tarFields),
|
new SectorComplete(tarFields),
|
||||||
new Research(Items.thorium),
|
new Research(Items.thorium),
|
||||||
|
new Research(lancer),
|
||||||
|
new Research(salvo),
|
||||||
new Research(coreFoundation)
|
new Research(coreFoundation)
|
||||||
), () -> {
|
), () -> {
|
||||||
node(desolateRift, Seq.with(
|
node(desolateRift, Seq.with(
|
||||||
|
@ -84,7 +84,7 @@ public class Universe{
|
|||||||
if(state.hasSector()){
|
if(state.hasSector()){
|
||||||
//update sector light
|
//update sector light
|
||||||
float light = state.getSector().getLight();
|
float light = state.getSector().getLight();
|
||||||
float alpha = Mathf.clamp(Mathf.map(light, 0f, 0.8f, 0.2f, 1f));
|
float alpha = Mathf.clamp(Mathf.map(light, 0f, 0.8f, 0.3f, 1f));
|
||||||
|
|
||||||
//assign and map so darkness is not 100% dark
|
//assign and map so darkness is not 100% dark
|
||||||
state.rules.ambientLight.a = 1f - alpha;
|
state.rules.ambientLight.a = 1f - alpha;
|
||||||
|
6
fastlane/metadata/android/en-US/changelogs/29750.txt
Normal file
6
fastlane/metadata/android/en-US/changelogs/29750.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[This is a truncated changelog, see Github for full notes]
|
||||||
|
- Leaving sectors while guardians are present is now heavily penalized
|
||||||
|
- Made community servers sort by ping
|
||||||
|
- Changed "global items" to "total items"
|
||||||
|
- Added hint about core item incineration
|
||||||
|
- Made sector landing zones display on map when visible but not unlocked
|
@ -85,8 +85,6 @@ public class ApplicationTests{
|
|||||||
}catch(Throwable r){
|
}catch(Throwable r){
|
||||||
fail(r);
|
fail(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.info("init app");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
|
@ -25,7 +25,6 @@ public class PowerTestFixture{
|
|||||||
|
|
||||||
@BeforeAll
|
@BeforeAll
|
||||||
static void initializeDependencies(){
|
static void initializeDependencies(){
|
||||||
Log.info("init power test fixture");
|
|
||||||
headless = true;
|
headless = true;
|
||||||
Core.graphics = new FakeGraphics();
|
Core.graphics = new FakeGraphics();
|
||||||
Core.files = new MockFiles();
|
Core.files = new MockFiles();
|
||||||
|
Reference in New Issue
Block a user