mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-06 07:30:35 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
eb6c0ebfb5
BIN
core/assets-raw/sprites/blocks/production/slag-heater-bottom.png
Normal file
BIN
core/assets-raw/sprites/blocks/production/slag-heater-bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 307 B |
BIN
core/assets-raw/sprites/blocks/production/slag-heater-heat.png
Normal file
BIN
core/assets-raw/sprites/blocks/production/slag-heater-heat.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
BIN
core/assets-raw/sprites/blocks/production/slag-heater-top1.png
Normal file
BIN
core/assets-raw/sprites/blocks/production/slag-heater-top1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 635 B |
BIN
core/assets-raw/sprites/blocks/production/slag-heater-top2.png
Normal file
BIN
core/assets-raw/sprites/blocks/production/slag-heater-top2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 640 B |
BIN
core/assets-raw/sprites/blocks/production/slag-heater.png
Normal file
BIN
core/assets-raw/sprites/blocks/production/slag-heater.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
@ -1945,6 +1945,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1930,6 +1930,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1938,6 +1938,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1899,6 +1899,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1937,6 +1937,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidationskammer
|
||||
block.electric-heater.name = Elektrisches Heizelement
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1939,6 +1939,7 @@ block.electrolyzer.name = Electrolizador
|
||||
block.atmospheric-concentrator.name = Concentrador atmosférico
|
||||
block.oxidation-chamber.name = Cámara de Oxidación
|
||||
block.electric-heater.name = Radiador Eléctrico
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Radiador de Fase
|
||||
block.heat-redirector.name = Redirector de Calor
|
||||
block.slag-incinerator.name = Incinerador de Chatarra
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1948,6 +1948,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1912,6 +1912,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1938,6 +1938,7 @@ block.electrolyzer.name = Elektroliser
|
||||
block.atmospheric-concentrator.name = Konsentrator Atmosfer
|
||||
block.oxidation-chamber.name = Ruangan Oksidasi
|
||||
block.electric-heater.name = Penghangat Listrik
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Penghangat Phase
|
||||
block.heat-redirector.name = Pengatur Panas
|
||||
block.slag-incinerator.name = Insinerator Terak
|
||||
|
@ -1910,6 +1910,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1918,6 +1918,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1938,6 +1938,7 @@ block.electrolyzer.name = 전해조
|
||||
block.atmospheric-concentrator.name = 대기 농축기
|
||||
block.oxidation-chamber.name = 산화실
|
||||
block.electric-heater.name = 전기 가열기
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = 메타 가열기
|
||||
block.heat-redirector.name = 열 전송기
|
||||
block.slag-incinerator.name = 광재 소각로
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1932,6 +1932,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Koncentrator Atmosferyczny
|
||||
block.oxidation-chamber.name = Komora Utleniająca
|
||||
block.electric-heater.name = Elektryczny Podgrzewacz
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Podgrzewacz Fazowy
|
||||
block.heat-redirector.name = Spalarnia Żużla
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1910,6 +1910,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1938,6 +1938,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1937,6 +1937,7 @@ block.electrolyzer.name = Электролизер
|
||||
block.atmospheric-concentrator.name = Атмосферный концентратор
|
||||
block.oxidation-chamber.name = Окислительная камера
|
||||
block.electric-heater.name = Электрический нагреватель
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Фазовый нагреватель
|
||||
block.heat-redirector.name = Тепловой перенаправитель
|
||||
block.slag-incinerator.name = Мусоросжигательная печь
|
||||
|
@ -1938,6 +1938,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1938,6 +1938,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1901,6 +1901,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1939,6 +1939,7 @@ block.electrolyzer.name = Elektrolizör
|
||||
block.atmospheric-concentrator.name = Atmosferik Yoğunlaştırıcı
|
||||
block.oxidation-chamber.name = Oksitleme Odası
|
||||
block.electric-heater.name = Elektrikli Isıtıcı
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Faz Isıtıcı
|
||||
block.heat-redirector.name = Isı Aktarıcı
|
||||
block.slag-incinerator.name = Cürüf Yakıcı
|
||||
|
@ -1894,6 +1894,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1938,6 +1938,7 @@ block.electrolyzer.name = Electrolyzer
|
||||
block.atmospheric-concentrator.name = Atmospheric Concentrator
|
||||
block.oxidation-chamber.name = Oxidation Chamber
|
||||
block.electric-heater.name = Electric Heater
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = Phase Heater
|
||||
block.heat-redirector.name = Heat Redirector
|
||||
block.slag-incinerator.name = Slag Incinerator
|
||||
|
@ -1937,6 +1937,7 @@ block.electrolyzer.name = 电解器
|
||||
block.atmospheric-concentrator.name = 氮气浓缩器
|
||||
block.oxidation-chamber.name = 氧化机
|
||||
block.electric-heater.name = 电能加热器
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = 相位物加热器
|
||||
block.heat-redirector.name = 热重定向器
|
||||
block.slag-incinerator.name = 矿渣焚化炉
|
||||
|
@ -1938,6 +1938,7 @@ block.electrolyzer.name = 電解槽
|
||||
block.atmospheric-concentrator.name = 氮氣富集器
|
||||
block.oxidation-chamber.name = 氧化室
|
||||
block.electric-heater.name = 電加熱器
|
||||
block.slag-heater.name = Slag Heater
|
||||
block.phase-heater.name = 相織布加熱器
|
||||
block.heat-redirector.name = 熱重定向器
|
||||
block.slag-incinerator.name = 熔渣焚化爐
|
||||
|
@ -138,4 +138,6 @@ Jerzy Paciorkiewicz
|
||||
YozoZChomutova
|
||||
Qendolin
|
||||
Goobrr
|
||||
xem8k5小恶魔
|
||||
BlueWolf
|
||||
[Error_27]
|
||||
|
@ -563,3 +563,4 @@
|
||||
63121=tank-refabricator|block-tank-refabricator-ui
|
||||
63120=mech-refabricator|block-mech-refabricator-ui
|
||||
63119=ship-refabricator|block-ship-refabricator-ui
|
||||
63118=slag-heater|block-slag-heater-ui
|
||||
|
@ -71,7 +71,7 @@ public class Blocks{
|
||||
melter, separator, disassembler, sporePress, pulverizer, incinerator, coalCentrifuge,
|
||||
|
||||
//erekir
|
||||
siliconArcFurnace, electrolyzer, oxidationChamber, atmosphericConcentrator, electricHeater, phaseHeater, heatRedirector, slagIncinerator,
|
||||
siliconArcFurnace, electrolyzer, oxidationChamber, atmosphericConcentrator, electricHeater, slagHeater, phaseHeater, heatRedirector, slagIncinerator,
|
||||
carbideCrucible, slagCentrifuge, surgeCrucible, cyanogenSynthesizer, phaseSynthesizer, heatReactor,
|
||||
|
||||
//sandbox
|
||||
@ -1251,6 +1251,20 @@ public class Blocks{
|
||||
regionRotated1 = 1;
|
||||
consumePower(50f / 60f);
|
||||
}};
|
||||
|
||||
slagHeater = new HeatProducer("slag-heater"){{
|
||||
requirements(Category.crafting, with(Items.tungsten, 50, Items.oxide, 20, Items.beryllium, 20));
|
||||
|
||||
researchCostMultiplier = 4f;
|
||||
|
||||
drawer = new DrawMulti(new DrawRegion("-bottom"), new DrawLiquidTile(Liquids.slag), new DrawDefault(), new DrawHeatOutput());
|
||||
size = 3;
|
||||
liquidCapacity = 40f;
|
||||
rotateDraw = false;
|
||||
regionRotated1 = 1;
|
||||
consumeLiquid(Liquids.slag, 40f / 60f);
|
||||
heatOutput = 6f;
|
||||
}};
|
||||
|
||||
phaseHeater = new HeatProducer("phase-heater"){{
|
||||
requirements(Category.crafting, with(Items.oxide, 30, Items.carbide, 30, Items.beryllium, 30));
|
||||
|
@ -197,6 +197,10 @@ public class ErekirTechTree{
|
||||
});
|
||||
});
|
||||
|
||||
node(slagHeater, () -> {
|
||||
|
||||
});
|
||||
|
||||
node(atmosphericConcentrator, Seq.with(new OnSector(four)), () -> {
|
||||
node(cyanogenSynthesizer, Seq.with(new OnSector(four)), () -> {
|
||||
|
||||
|
@ -148,7 +148,7 @@ public class SectorPresets{
|
||||
new TextMarker("Use [accent]cliff crushers[] to mine sand.", 262f * 8f, 88f * 8f)
|
||||
),
|
||||
new BuildCountObjective(Blocks.tankFabricator, 1).withMarkers(
|
||||
new TextMarker("Use [accent]units[] to explore the map, defend buildings, and go on the offensive.\n Research and place a [accent]fabricator[]", 258f * 8f, 116f * 8f)
|
||||
new TextMarker("Use [accent]units[] to explore the map, defend buildings, and go on the offensive.\n Research and place a [accent]tank fabricator[].", 258f * 8f, 116f * 8f)
|
||||
),
|
||||
new UnitCountObjective(UnitTypes.stell, 1).withMarkers(
|
||||
new TextMarker("Produce a unit.\nUse the \"?\" button to see selected factory requirements.", 258f * 8f, 116f * 8f)
|
||||
@ -160,7 +160,7 @@ public class SectorPresets{
|
||||
new TextMarker("Units are effective, but [accent]turrets[] provide better defensive capabilities if used effectively.\n Place a [accent]Breach[] turret.\nTurrets require [accent]ammo[].", 258f * 8f, 114f * 8f)
|
||||
),
|
||||
new BuildCountObjective(Blocks.berylliumWall, 6).withMarkers(
|
||||
new TextMarker("[accent]Walls[] can prevent oncoming damage from reaching buildings\nPlace some [accent]beryllium walls[] around the turret.", 276f * 8f, 133f * 8f)
|
||||
new TextMarker("[accent]Walls[] can prevent oncoming damage from reaching buildings.\nPlace some [accent]beryllium walls[] around the turret.", 276f * 8f, 133f * 8f)
|
||||
),
|
||||
new TimerObjective("@objective.enemiesapproaching",30 * 60).withMarkers(
|
||||
new TextMarker("Enemy incoming, prepare to defend.", 276f * 8f, 133f * 8f)
|
||||
|
@ -613,6 +613,10 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
Fx.unitDrop.at(unit);
|
||||
}
|
||||
|
||||
public boolean canWithdraw(){
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean canUnload(){
|
||||
return block.unloadable;
|
||||
}
|
||||
@ -1342,11 +1346,6 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
public ItemModule flowItems(){
|
||||
return items;
|
||||
}
|
||||
|
||||
public boolean displayable(){
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void display(Table table){
|
||||
//display the block stuff
|
||||
|
@ -4,5 +4,9 @@ import arc.scene.ui.layout.*;
|
||||
|
||||
/** An interface for things that can be displayed when hovered over. */
|
||||
public interface Displayable{
|
||||
default boolean displayable(){
|
||||
return true;
|
||||
}
|
||||
|
||||
void display(Table table);
|
||||
}
|
||||
|
@ -70,6 +70,8 @@ public class BlockInventoryFragment{
|
||||
}
|
||||
|
||||
private void takeItem(int requested){
|
||||
if(!build.canWithdraw()) return;
|
||||
|
||||
//take everything
|
||||
int amount = Math.min(requested, player.unit().maxAccepted(lastItem));
|
||||
|
||||
|
@ -577,7 +577,7 @@ public class PlacementFragment{
|
||||
if(Core.scene.hasMouse() || topTable.hit(v.x, v.y, false) != null) return null;
|
||||
|
||||
//check for a unit
|
||||
Unit unit = Units.closestOverlap(player.team(), Core.input.mouseWorldX(), Core.input.mouseWorldY(), 5f, u -> !u.isLocal());
|
||||
Unit unit = Units.closestOverlap(player.team(), Core.input.mouseWorldX(), Core.input.mouseWorldY(), 5f, u -> !u.isLocal() && u.displayable());
|
||||
//if cursor has a unit, display it
|
||||
if(unit != null) return unit;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user