mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-12 10:59:22 +07:00
Minor rendering & AI tweaks
This commit is contained in:
parent
baf6bdf6a5
commit
514aa26054
@ -44,7 +44,7 @@ public class MinerAI extends AIController{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(ore != null){
|
if(ore != null){
|
||||||
moveTo(ore, unit.type.range / 2f);
|
moveTo(ore, unit.type.range / 2f, 20f);
|
||||||
|
|
||||||
if(unit.within(ore, unit.type.range)){
|
if(unit.within(ore, unit.type.range)){
|
||||||
miner.mineTile(ore);
|
miner.mineTile(ore);
|
||||||
|
@ -1137,7 +1137,7 @@ public class UnitTypes implements ContentList{
|
|||||||
ammoType = AmmoTypes.powerLow;
|
ammoType = AmmoTypes.powerLow;
|
||||||
|
|
||||||
mineTier = 1;
|
mineTier = 1;
|
||||||
mineSpeed = 2.5f;
|
mineSpeed = 2.6f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
poly = new UnitType("poly"){{
|
poly = new UnitType("poly"){{
|
||||||
@ -1735,7 +1735,7 @@ public class UnitTypes implements ContentList{
|
|||||||
itemCapacity = 70;
|
itemCapacity = 70;
|
||||||
health = 220f;
|
health = 220f;
|
||||||
engineOffset = 6f;
|
engineOffset = 6f;
|
||||||
hitSize = 10f;
|
hitSize = 11f;
|
||||||
commandLimit = 7;
|
commandLimit = 7;
|
||||||
|
|
||||||
weapons.add(new Weapon("small-mount-weapon"){{
|
weapons.add(new Weapon("small-mount-weapon"){{
|
||||||
|
@ -95,7 +95,7 @@ abstract class MinerComp implements Itemsc, Posc, Teamc, Rotc, Drawc, Unitc{
|
|||||||
@Override
|
@Override
|
||||||
public void draw(){
|
public void draw(){
|
||||||
if(!mining()) return;
|
if(!mining()) return;
|
||||||
float focusLen = 4f + Mathf.absin(Time.time(), 1.1f, 0.5f);
|
float focusLen = hitSize() / 2f + Mathf.absin(Time.time(), 1.1f, 0.5f);
|
||||||
float swingScl = 12f, swingMag = tilesize / 8f;
|
float swingScl = 12f, swingMag = tilesize / 8f;
|
||||||
float flashScl = 0.3f;
|
float flashScl = 0.3f;
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ abstract class MinerComp implements Itemsc, Posc, Teamc, Rotc, Drawc, Unitc{
|
|||||||
float ex = mineTile.worldx() + Mathf.sin(Time.time() + 48, swingScl, swingMag);
|
float ex = mineTile.worldx() + Mathf.sin(Time.time() + 48, swingScl, swingMag);
|
||||||
float ey = mineTile.worldy() + Mathf.sin(Time.time() + 48, swingScl + 2f, swingMag);
|
float ey = mineTile.worldy() + Mathf.sin(Time.time() + 48, swingScl + 2f, swingMag);
|
||||||
|
|
||||||
Draw.z(Layer.flyingUnit + 0.1f);
|
Draw.z(Layer.flyingUnit - 0.1f);
|
||||||
|
|
||||||
Draw.color(Color.lightGray, Color.white, 1f - flashScl + Mathf.absin(Time.time(), 0.5f, flashScl));
|
Draw.color(Color.lightGray, Color.white, 1f - flashScl + Mathf.absin(Time.time(), 0.5f, flashScl));
|
||||||
|
|
||||||
|
9
fastlane/metadata/android/en-US/changelogs/29678.txt
Normal file
9
fastlane/metadata/android/en-US/changelogs/29678.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
- Fixed several issues related to the locate logic instruction
|
||||||
|
- Fixed enemy water spawns not appearing
|
||||||
|
- Fixed many various issues related to the campaign
|
||||||
|
- Fixed player camera not resetting its position on new game
|
||||||
|
- Fixed illuminator being unplaceable in campaign in daylight
|
||||||
|
- Improved item sprites slightly
|
||||||
|
- Balancing of campaign waves
|
||||||
|
- Logic: Added configure instruction for controlling certain blocks
|
||||||
|
- Added extra starting items to ground zero
|
Loading…
Reference in New Issue
Block a user