Rebrand power infinite as power source (#4088)
This commit is contained in:
committed by
GitHub
parent
054e2337ff
commit
9d740e1e37
@@ -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;
|
||||
}};
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user