mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-04 06:31:42 +07:00
Save fixes
This commit is contained in:
parent
8d39ba69ee
commit
8ab584c33b
@ -162,6 +162,11 @@ public class TypeIO{
|
|||||||
read.b(bytes);
|
read.b(bytes);
|
||||||
yield bytes;
|
yield bytes;
|
||||||
}
|
}
|
||||||
|
//unit command
|
||||||
|
case 15 -> {
|
||||||
|
read.b();
|
||||||
|
yield null;
|
||||||
|
}
|
||||||
case 16 -> {
|
case 16 -> {
|
||||||
int boollen = read.i();
|
int boollen = read.i();
|
||||||
boolean[] bools = new boolean[boollen];
|
boolean[] bools = new boolean[boollen];
|
||||||
@ -467,6 +472,9 @@ public class TypeIO{
|
|||||||
//make sure player exists
|
//make sure player exists
|
||||||
if(player == null) return prev;
|
if(player == null) return prev;
|
||||||
return player;
|
return player;
|
||||||
|
}else if(type == 1){ //formation controller (ignored)
|
||||||
|
read.i();
|
||||||
|
return prev;
|
||||||
}else if(type == 3){
|
}else if(type == 3){
|
||||||
int pos = read.i();
|
int pos = read.i();
|
||||||
if(prev instanceof LogicAI pai){
|
if(prev instanceof LogicAI pai){
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package mindustry.io.versions;
|
package mindustry.io.versions;
|
||||||
|
|
||||||
import arc.func.*;
|
import arc.func.*;
|
||||||
|
import arc.util.*;
|
||||||
import arc.util.io.*;
|
import arc.util.io.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ public class NuclearReactor extends PowerGenerator{
|
|||||||
public int explosionDamage = 1250;
|
public int explosionDamage = 1250;
|
||||||
/** heat removed per unit of coolant */
|
/** heat removed per unit of coolant */
|
||||||
public float coolantPower = 0.5f;
|
public float coolantPower = 0.5f;
|
||||||
|
public float smoothLight;
|
||||||
|
|
||||||
public Item fuelItem = Items.thorium;
|
public Item fuelItem = Items.thorium;
|
||||||
|
|
||||||
@ -143,7 +144,8 @@ public class NuclearReactor extends PowerGenerator{
|
|||||||
@Override
|
@Override
|
||||||
public void drawLight(){
|
public void drawLight(){
|
||||||
float fract = productionEfficiency;
|
float fract = productionEfficiency;
|
||||||
Drawf.light(x, y, (90f + Mathf.absin(5, 5f)) * fract, Tmp.c1.set(lightColor).lerp(Color.scarlet, heat), 0.6f * fract);
|
smoothLight = Mathf.lerpDelta(smoothLight, fract, 0.08f);
|
||||||
|
Drawf.light(x, y, (90f + Mathf.absin(5, 5f)) * smoothLight, Tmp.c1.set(lightColor).lerp(Color.scarlet, heat), 0.6f * smoothLight);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user