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