mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-11 07:39:39 +07:00
Merge pull request #2892 from DeltaNedas/storage
make storageblock instantiable
This commit is contained in:
commit
a4306431f0
@ -1358,14 +1358,12 @@ public class Blocks implements ContentList{
|
||||
requirements(Category.effect, with(Items.titanium, 250, Items.thorium, 125));
|
||||
size = 3;
|
||||
itemCapacity = 1000;
|
||||
group = BlockGroup.storage;
|
||||
}};
|
||||
|
||||
container = new StorageBlock("container"){{
|
||||
requirements(Category.effect, with(Items.titanium, 100));
|
||||
size = 2;
|
||||
itemCapacity = 300;
|
||||
group = BlockGroup.storage;
|
||||
}};
|
||||
|
||||
unloader = new Unloader("unloader"){{
|
||||
|
@ -50,6 +50,7 @@ public class CoreBlock extends StorageBlock{
|
||||
unitCapModifier = 10;
|
||||
activeSound = Sounds.respawning;
|
||||
activeSoundVolume = 1f;
|
||||
group = BlockGroup.none;
|
||||
}
|
||||
|
||||
@Remote(called = Loc.server)
|
||||
|
@ -5,15 +5,16 @@ import arc.util.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.world.*;
|
||||
import mindustry.world.meta.*;
|
||||
|
||||
public abstract class StorageBlock extends Block{
|
||||
|
||||
public class StorageBlock extends Block{
|
||||
public StorageBlock(String name){
|
||||
super(name);
|
||||
hasItems = true;
|
||||
solid = true;
|
||||
update = false;
|
||||
destructible = true;
|
||||
group = BlockGroup.storage;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user