Rebrand power infinite as power source (#4088)

This commit is contained in:
Patrick 'Quezler' Mounier
2020-12-23 15:39:04 +01:00
committed by GitHub
parent 054e2337ff
commit 9d740e1e37
3 changed files with 5 additions and 2 deletions

View File

@@ -1992,6 +1992,7 @@ public class Blocks implements ContentList{
powerSource = new PowerSource("power-source"){{
requirements(Category.power, BuildVisibility.sandboxOnly, with());
powerProduction = 10000f / 60f;
alwaysUnlocked = true;
}};

View File

@@ -4,6 +4,8 @@ import mindustry.world.blocks.power.*;
public class PowerSource extends PowerNode{
public float powerProduction = 10000f;
public PowerSource(String name){
super(name);
maxNodes = 100;
@@ -14,7 +16,7 @@ public class PowerSource extends PowerNode{
public class PowerSourceBuild extends PowerNodeBuild{
@Override
public float getPowerProduction(){
return enabled ? 10000f : 0f;
return enabled ? powerProduction : 0f;
}
}