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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -1166,7 +1166,7 @@ block.item-void.name = Item Void
block.liquid-source.name = Liquid Source
block.liquid-void.name = Liquid Void
block.power-void.name = Power Void
block.power-source.name = Power Infinite
block.power-source.name = Power Source
block.unloader.name = Unloader
block.vault.name = Vault
block.wave.name = Wave

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;
}
}