New metal floor / Selective floor attribute stats

This commit is contained in:
Anuken
2021-06-09 13:26:01 -04:00
parent adf6465029
commit b04c04f69f
9 changed files with 102 additions and 36 deletions

View File

@@ -0,0 +1,19 @@
package mindustry.world.blocks.environment;
import mindustry.world.meta.*;
/** Class for quickly defining a floor with no water and no variants. Offers no new functionality. */
public class MetalFloor extends Floor{
public MetalFloor(String name){
super(name);
variants = 0;
attributes.set(Attribute.water, -1);
}
public MetalFloor(String name, int variants){
super(name);
this.variants = variants;
attributes.set(Attribute.water, -1);
}
}