Make impact reactor warmup sensable as heat (#4399)
* Make impact reactor warmup sensable as heat * Update ImpactReactor.java
This commit is contained in:
committed by
GitHub
parent
56b87a2141
commit
1fb608220f
@@ -12,6 +12,7 @@ import mindustry.entities.*;
|
||||
import mindustry.game.EventType.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.graphics.*;
|
||||
import mindustry.logic.*;
|
||||
import mindustry.ui.*;
|
||||
import mindustry.world.meta.*;
|
||||
|
||||
@@ -121,6 +122,12 @@ public class ImpactReactor extends PowerGenerator{
|
||||
public void drawLight(){
|
||||
Drawf.light(team, x, y, (110f + Mathf.absin(5, 5f)) * warmup, Tmp.c1.set(plasma2).lerp(plasma1, Mathf.absin(7f, 0.2f)), 0.8f * warmup);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double sense(LAccess sensor){
|
||||
if(sensor == LAccess.heat) return warmup;
|
||||
return super.sense(sensor);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyed(){
|
||||
|
||||
Reference in New Issue
Block a user