Added new crafters, pumps and conduits
This commit is contained in:
@@ -79,7 +79,7 @@ project(":core") {
|
|||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.github.anuken:ucore:e8865d2b26'
|
//compile 'com.github.anuken:ucore:99b9102221'
|
||||||
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
|
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
|
||||||
compile "com.badlogicgames.gdx:gdx-ai:1.8.1"
|
compile "com.badlogicgames.gdx:gdx-ai:1.8.1"
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
core/assets-raw/sprites/blocks/fluxpump.png
Normal file
BIN
core/assets-raw/sprites/blocks/fluxpump.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 322 B |
BIN
core/assets-raw/sprites/blocks/pulseconduit.png
Normal file
BIN
core/assets-raw/sprites/blocks/pulseconduit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 257 B |
BIN
core/assets-raw/sprites/blocks/pulseconduitbottom.png
Normal file
BIN
core/assets-raw/sprites/blocks/pulseconduitbottom.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 216 B |
BIN
core/assets-raw/sprites/blocks/pulseconduittop.png
Normal file
BIN
core/assets-raw/sprites/blocks/pulseconduittop.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 270 B |
@@ -256,41 +256,48 @@ blocks/flameturret
|
|||||||
orig: 10, 10
|
orig: 10, 10
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/grass1
|
blocks/fluxpump
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 395, 215
|
xy: 395, 215
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/grass2
|
blocks/grass1
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 385, 210
|
xy: 385, 210
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/grass3
|
blocks/grass2
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 395, 205
|
xy: 395, 205
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/grassblock
|
blocks/grass3
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 385, 200
|
xy: 385, 200
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/grassblock2
|
blocks/grassblock
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 385, 190
|
xy: 385, 190
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
|
blocks/grassblock2
|
||||||
|
rotate: false
|
||||||
|
xy: 395, 195
|
||||||
|
size: 8, 8
|
||||||
|
orig: 8, 8
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
blocks/grassedge
|
blocks/grassedge
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 450, 491
|
xy: 450, 491
|
||||||
@@ -300,42 +307,42 @@ blocks/grassedge
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/iron1
|
blocks/iron1
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 390, 160
|
xy: 390, 150
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/iron2
|
blocks/iron2
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 390, 150
|
xy: 401, 358
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/iron3
|
blocks/iron3
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 358
|
xy: 401, 348
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/irondrill
|
blocks/irondrill
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 348
|
xy: 401, 338
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/ironwall
|
blocks/ironwall
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 338
|
xy: 401, 328
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/junction
|
blocks/junction
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 328
|
xy: 401, 318
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -349,7 +356,7 @@ blocks/laserturret
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/lava
|
blocks/lava
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 318
|
xy: 401, 308
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -363,21 +370,21 @@ blocks/lavaedge
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/liquiditemjunction
|
blocks/liquiditemjunction
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 308
|
xy: 401, 298
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/liquidjunction
|
blocks/liquidjunction
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 298
|
xy: 401, 288
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/liquidrouter
|
blocks/liquidrouter
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 288
|
xy: 401, 278
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -405,14 +412,14 @@ blocks/mortarturret
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/mossblock
|
blocks/mossblock
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 268
|
xy: 401, 258
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/mossstone
|
blocks/mossstone
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 268
|
xy: 401, 258
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -426,7 +433,7 @@ blocks/nuclearreactor
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/nuclearreactor-icon
|
blocks/nuclearreactor-icon
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 360
|
xy: 411, 350
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -440,7 +447,7 @@ blocks/nuclearreactor-small
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/oil
|
blocks/oil
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 350
|
xy: 411, 340
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -454,14 +461,14 @@ blocks/oiledge
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/oilrefinery
|
blocks/oilrefinery
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 340
|
xy: 411, 330
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/omnidrill
|
blocks/omnidrill
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 330
|
xy: 411, 320
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -475,42 +482,63 @@ blocks/plasmaturret
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/powerbooster
|
blocks/powerbooster
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 320
|
xy: 411, 310
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/poweredconveyor
|
blocks/poweredconveyor
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 310
|
xy: 411, 300
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/poweredconveyormove
|
blocks/poweredconveyormove
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 300
|
xy: 411, 290
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/powerlaser
|
blocks/powerlaser
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 290
|
xy: 411, 280
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/powerlaserrouter
|
blocks/powerlaserrouter
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 280
|
xy: 411, 270
|
||||||
|
size: 8, 8
|
||||||
|
orig: 8, 8
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
blocks/pulseconduit
|
||||||
|
rotate: false
|
||||||
|
xy: 411, 260
|
||||||
|
size: 8, 8
|
||||||
|
orig: 8, 8
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
blocks/pulseconduitbottom
|
||||||
|
rotate: false
|
||||||
|
xy: 405, 234
|
||||||
|
size: 8, 8
|
||||||
|
orig: 8, 8
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
blocks/pulseconduittop
|
||||||
|
rotate: false
|
||||||
|
xy: 405, 224
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/pump
|
blocks/pump
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 270
|
xy: 405, 214
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -524,35 +552,35 @@ blocks/repairturret
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/rock
|
blocks/rock
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 405, 234
|
xy: 405, 194
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/rock2
|
blocks/rock2
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 405, 224
|
xy: 405, 184
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/rock2shadow
|
blocks/rock2shadow
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 405, 214
|
xy: 405, 174
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/rockshadow
|
blocks/rockshadow
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 405, 204
|
xy: 230, 119
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/router
|
blocks/router
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 405, 194
|
xy: 230, 109
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -566,7 +594,7 @@ blocks/shadow
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/shieldgenerator
|
blocks/shieldgenerator
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 405, 174
|
xy: 230, 99
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -580,21 +608,21 @@ blocks/shotgunturret
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/shrub
|
blocks/shrub
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 240, 119
|
xy: 240, 99
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/shrubshadow
|
blocks/shrubshadow
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 230, 99
|
xy: 230, 79
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/smelter
|
blocks/smelter
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 240, 109
|
xy: 240, 89
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -608,28 +636,28 @@ blocks/sniperturret
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/sorter
|
blocks/sorter
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 230, 89
|
xy: 230, 69
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/steelconveyor
|
blocks/steelconveyor
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 240, 99
|
xy: 240, 79
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/steelconveyormove
|
blocks/steelconveyormove
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 230, 79
|
xy: 230, 59
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/steelwall
|
blocks/steelwall
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 240, 89
|
xy: 240, 69
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -643,49 +671,49 @@ blocks/stone
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/stone1
|
blocks/stone1
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 230, 69
|
xy: 230, 49
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/stone2
|
blocks/stone2
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 240, 79
|
xy: 240, 59
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/stone3
|
blocks/stone3
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 230, 59
|
xy: 230, 39
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/stoneblock
|
blocks/stoneblock
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 240, 69
|
xy: 240, 49
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/stoneblock2
|
blocks/stoneblock2
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 230, 49
|
xy: 240, 39
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/stoneblock3
|
blocks/stoneblock3
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 240, 59
|
xy: 250, 115
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/stonedrill
|
blocks/stonedrill
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 230, 39
|
xy: 260, 115
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -699,28 +727,28 @@ blocks/stoneedge
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/stonewall
|
blocks/stonewall
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 240, 49
|
xy: 250, 105
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/teleporter
|
blocks/teleporter
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 240, 39
|
xy: 250, 95
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/teleporter-top
|
blocks/teleporter-top
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 250, 115
|
xy: 260, 105
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/thermalgenerator
|
blocks/thermalgenerator
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 260, 115
|
xy: 250, 85
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -741,49 +769,49 @@ blocks/titancannon-icon
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/titanium1
|
blocks/titanium1
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 250, 105
|
xy: 260, 95
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/titanium2
|
blocks/titanium2
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 250, 95
|
xy: 250, 75
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/titanium3
|
blocks/titanium3
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 260, 105
|
xy: 260, 85
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/titaniumdrill
|
blocks/titaniumdrill
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 250, 85
|
xy: 250, 65
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/titaniumpurifier
|
blocks/titaniumpurifier
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 260, 95
|
xy: 260, 75
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/titaniumshieldwall
|
blocks/titaniumshieldwall
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 250, 75
|
xy: 250, 55
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/titaniumwall
|
blocks/titaniumwall
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 260, 85
|
xy: 260, 65
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -797,7 +825,7 @@ blocks/titaniumwall-large
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/titaniumwall-large-icon
|
blocks/titaniumwall-large-icon
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 250, 65
|
xy: 250, 45
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -811,35 +839,35 @@ blocks/turret
|
|||||||
index: -1
|
index: -1
|
||||||
blocks/uranium1
|
blocks/uranium1
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 260, 65
|
xy: 250, 35
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/uranium2
|
blocks/uranium2
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 250, 45
|
xy: 260, 35
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/uranium3
|
blocks/uranium3
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 260, 55
|
xy: 270, 109
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/uraniumdrill
|
blocks/uraniumdrill
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 260, 45
|
xy: 270, 99
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
blocks/water
|
blocks/water
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 250, 35
|
xy: 280, 109
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -1112,49 +1140,49 @@ enemyarrow
|
|||||||
index: -1
|
index: -1
|
||||||
icon-coal
|
icon-coal
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 395, 195
|
xy: 385, 180
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
icon-dirium
|
icon-dirium
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 385, 180
|
xy: 395, 185
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
icon-iron
|
icon-iron
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 395, 185
|
xy: 383, 170
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
icon-steel
|
icon-steel
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 383, 170
|
xy: 380, 160
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
icon-stone
|
icon-stone
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 380, 160
|
xy: 380, 150
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
icon-titanium
|
icon-titanium
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 380, 150
|
xy: 395, 175
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
icon-uranium
|
icon-uranium
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 395, 175
|
xy: 390, 160
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -1182,28 +1210,28 @@ mechs/player
|
|||||||
index: -1
|
index: -1
|
||||||
shell
|
shell
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 405, 184
|
xy: 240, 119
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
shot
|
shot
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 230, 119
|
xy: 240, 109
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
shot-long
|
shot-long
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 230, 109
|
xy: 230, 89
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
titanshell
|
titanshell
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 260, 75
|
xy: 260, 55
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@@ -1657,28 +1685,28 @@ weapons/flamer
|
|||||||
index: -1
|
index: -1
|
||||||
weapons/mortar
|
weapons/mortar
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 278
|
xy: 401, 268
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
weapons/multigun
|
weapons/multigun
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 401, 258
|
xy: 411, 360
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
weapons/railgun
|
weapons/railgun
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 411, 260
|
xy: 405, 204
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
weapons/triblaster
|
weapons/triblaster
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 250, 55
|
xy: 260, 45
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 47 KiB |
@@ -151,6 +151,13 @@ public class Fx{
|
|||||||
Draw.reset();
|
Draw.reset();
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
purifystone = new Effect(10, e -> {
|
||||||
|
Draw.color(Color.ORANGE, Color.GRAY, e.ifract());
|
||||||
|
Draw.thickness(2f);
|
||||||
|
Draw.spikes(e.x, e.y, e.ifract() * 4f, 2, 6);
|
||||||
|
Draw.reset();
|
||||||
|
}),
|
||||||
|
|
||||||
generate = new Effect(11, e -> {
|
generate = new Effect(11, e -> {
|
||||||
Draw.color(Color.ORANGE, Color.YELLOW, e.ifract());
|
Draw.color(Color.ORANGE, Color.YELLOW, e.ifract());
|
||||||
Draw.thickness(1f);
|
Draw.thickness(1f);
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ public class UI extends SceneModule{
|
|||||||
|
|
||||||
int rows = 4;
|
int rows = 4;
|
||||||
int maxcol = 0;
|
int maxcol = 0;
|
||||||
float size = 46;
|
float size = 48;
|
||||||
|
|
||||||
Stack stack = new Stack();
|
Stack stack = new Stack();
|
||||||
ButtonGroup<ImageButton> group = new ButtonGroup<>();
|
ButtonGroup<ImageButton> group = new ButtonGroup<>();
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ public abstract class BulletType extends BaseBulletType<Bullet>{
|
|||||||
lifetime = 65f;
|
lifetime = 65f;
|
||||||
}
|
}
|
||||||
public void draw(Bullet b){
|
public void draw(Bullet b){
|
||||||
Draw.color(Color.valueOf("c2efd7"), Color.valueOf("72deaf"), b.time/lifetime);
|
Draw.color(Color.valueOf("efa66c"), Color.valueOf("72deaf"), b.time/lifetime);
|
||||||
float size = 7f-b.time/lifetime*6f;
|
float size = 7f-b.time/lifetime*6f;
|
||||||
Draw.rect("circle", b.x, b.y, size, size);
|
Draw.rect("circle", b.x, b.y, size, size);
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ public class EMP extends TimedEntity{
|
|||||||
}
|
}
|
||||||
|
|
||||||
Draw.thick(fract()*2f);
|
Draw.thick(fract()*2f);
|
||||||
Draw.circle(x, y, radius * Vars.tilesize);
|
Draw.polygon(34, x, y, radius * Vars.tilesize);
|
||||||
|
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,17 +16,16 @@ public enum Recipe{
|
|||||||
//compositewall(defense, DefenseBlocks.compositewall, stack(Item.dirium, 2), stack(Item.titanium, 2), stack(Item.steel, 2), stack(Item.iron, 2)),
|
//compositewall(defense, DefenseBlocks.compositewall, stack(Item.dirium, 2), stack(Item.titanium, 2), stack(Item.steel, 2), stack(Item.iron, 2)),
|
||||||
titaniumwalllarge(defense, DefenseBlocks.titaniumwalllarge, stack(Item.titanium, 8)),
|
titaniumwalllarge(defense, DefenseBlocks.titaniumwalllarge, stack(Item.titanium, 8)),
|
||||||
duriumwalllarge(defense, DefenseBlocks.diriumwalllarge, stack(Item.dirium, 8)),
|
duriumwalllarge(defense, DefenseBlocks.diriumwalllarge, stack(Item.dirium, 8)),
|
||||||
healturret(defense, DefenseBlocks.repairturret, stack(Item.iron, 30)),
|
|
||||||
megahealturret(defense, DefenseBlocks.megarepairturret, stack(Item.iron, 20), stack(Item.steel, 30)),
|
|
||||||
titaniumshieldwall(defense, DefenseBlocks.titaniumshieldwall, stack(Item.titanium, 2)),
|
titaniumshieldwall(defense, DefenseBlocks.titaniumshieldwall, stack(Item.titanium, 2)),
|
||||||
shieldgenerator(defense, DefenseBlocks.shieldgenerator, stack(Item.titanium, 10), stack(Item.dirium, 10)),
|
shieldgenerator(defense, DefenseBlocks.shieldgenerator, stack(Item.titanium, 10), stack(Item.dirium, 10)),
|
||||||
|
|
||||||
conveyor(distribution, DistributionBlocks.conveyor, stack(Item.stone, 1)),
|
conveyor(distribution, DistributionBlocks.conveyor, stack(Item.stone, 1)),
|
||||||
steelconveyor(distribution, DistributionBlocks.steelconveyor, stack(Item.steel, 1)),
|
steelconveyor(distribution, DistributionBlocks.steelconveyor, stack(Item.steel, 1)),
|
||||||
poweredconveyor(distribution, DistributionBlocks.poweredconveyor, stack(Item.dirium, 1)),
|
poweredconveyor(distribution, DistributionBlocks.pulseconveyor, stack(Item.dirium, 1)),
|
||||||
router(distribution, DistributionBlocks.router, stack(Item.stone, 2)),
|
router(distribution, DistributionBlocks.router, stack(Item.stone, 2)),
|
||||||
junction(distribution, DistributionBlocks.junction, stack(Item.iron, 2)),
|
junction(distribution, DistributionBlocks.junction, stack(Item.iron, 2)),
|
||||||
conduit(distribution, DistributionBlocks.conduit, stack(Item.steel, 1)),
|
conduit(distribution, DistributionBlocks.conduit, stack(Item.steel, 1)),
|
||||||
|
pulseconduit(distribution, DistributionBlocks.pulseconduit, stack(Item.titanium, 1), stack(Item.steel, 1)),
|
||||||
liquidrouter(distribution, DistributionBlocks.liquidrouter, stack(Item.steel, 2)),
|
liquidrouter(distribution, DistributionBlocks.liquidrouter, stack(Item.steel, 2)),
|
||||||
liquidjunction(distribution, DistributionBlocks.liquidjunction, stack(Item.steel, 2)),
|
liquidjunction(distribution, DistributionBlocks.liquidjunction, stack(Item.steel, 2)),
|
||||||
liquiditemjunction(distribution, DistributionBlocks.liquiditemjunction, stack(Item.steel, 1), stack(Item.iron, 1)),
|
liquiditemjunction(distribution, DistributionBlocks.liquiditemjunction, stack(Item.steel, 1), stack(Item.iron, 1)),
|
||||||
@@ -67,7 +66,11 @@ public enum Recipe{
|
|||||||
powerlaserrouter(power, DistributionBlocks.powerlaserrouter, stack(Item.titanium, 10), stack(Item.dirium, 10)),
|
powerlaserrouter(power, DistributionBlocks.powerlaserrouter, stack(Item.titanium, 10), stack(Item.dirium, 10)),
|
||||||
teleporter(power, DistributionBlocks.teleporter, stack(Item.titanium, 10), stack(Item.dirium, 10)),
|
teleporter(power, DistributionBlocks.teleporter, stack(Item.titanium, 10), stack(Item.dirium, 10)),
|
||||||
|
|
||||||
pump(production, ProductionBlocks.pump, stack(Item.steel, 10));
|
healturret(power, DefenseBlocks.repairturret, stack(Item.iron, 30)),
|
||||||
|
megahealturret(power, DefenseBlocks.megarepairturret, stack(Item.iron, 20), stack(Item.steel, 30)),
|
||||||
|
|
||||||
|
pump(production, ProductionBlocks.pump, stack(Item.steel, 10)),
|
||||||
|
fluxpump(production, ProductionBlocks.fluxpump, stack(Item.steel, 10), stack(Item.dirium, 5));
|
||||||
|
|
||||||
public Block result;
|
public Block result;
|
||||||
public ItemStack[] requirements;
|
public ItemStack[] requirements;
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ public class Block{
|
|||||||
public Liquid liquidDrop = null;
|
public Liquid liquidDrop = null;
|
||||||
/**multiblock width/height*/
|
/**multiblock width/height*/
|
||||||
public int width = 1, height = 1;
|
public int width = 1, height = 1;
|
||||||
|
/**Detailed description of the block. Can be as long as necesary.*/
|
||||||
|
public String fullDescription; //TODO show this
|
||||||
|
|
||||||
public Block(String name) {
|
public Block(String name) {
|
||||||
blocks.add(this);
|
blocks.add(this);
|
||||||
|
|||||||
@@ -9,7 +9,13 @@ public class DistributionBlocks{
|
|||||||
public static final Block
|
public static final Block
|
||||||
|
|
||||||
conduit = new LiquidBlock("conduit"){{
|
conduit = new LiquidBlock("conduit"){{
|
||||||
|
health = 45;
|
||||||
|
}},
|
||||||
|
|
||||||
|
pulseconduit = new LiquidBlock("pulseconduit"){{
|
||||||
|
liquidCapacity = 16f;
|
||||||
|
flowfactor = 4.9f;
|
||||||
|
health = 65;
|
||||||
}},
|
}},
|
||||||
|
|
||||||
liquidrouter = new LiquidRouter("liquidrouter"){{
|
liquidrouter = new LiquidRouter("liquidrouter"){{
|
||||||
@@ -27,7 +33,7 @@ public class DistributionBlocks{
|
|||||||
}},
|
}},
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
poweredconveyor = new Conveyor("poweredconveyor"){{
|
pulseconveyor = new Conveyor("poweredconveyor"){{
|
||||||
health = 90;
|
health = 90;
|
||||||
speed = 0.09f;
|
speed = 0.09f;
|
||||||
formalName = "pulse conveyor";
|
formalName = "pulse conveyor";
|
||||||
|
|||||||
@@ -42,6 +42,10 @@ public class ProductionBlocks{
|
|||||||
|
|
||||||
}},
|
}},
|
||||||
|
|
||||||
|
fluxpump = new Pump("fluxpump"){{
|
||||||
|
pumpspeed = 3f;
|
||||||
|
}},
|
||||||
|
|
||||||
smelter = new Crafter("smelter"){
|
smelter = new Crafter("smelter"){
|
||||||
{
|
{
|
||||||
health = 70;
|
health = 70;
|
||||||
@@ -51,7 +55,7 @@ public class ProductionBlocks{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String description(){
|
public String description(){
|
||||||
return "Takes in coal + iron, outputs steel.";
|
return "Converts coal + iron to steel.";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -64,7 +68,7 @@ public class ProductionBlocks{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String description(){
|
public String description(){
|
||||||
return "Takes in steel + titanium, outputs dirium.";
|
return "Converts steel + titanium to dirium.";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -82,7 +86,7 @@ public class ProductionBlocks{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String description(){
|
public String description(){
|
||||||
return "Takes in stone + water, outputs coal.";
|
return "Converts stone + water to coal.";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -101,7 +105,7 @@ public class ProductionBlocks{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String description(){
|
public String description(){
|
||||||
return "Takes in iron + water, outputs titanium.";
|
return "Converts iron + water to titanium.";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -119,7 +123,45 @@ public class ProductionBlocks{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String description(){
|
public String description(){
|
||||||
return "Takes in oil, outputs coal.";
|
return "Converts oil to coal.";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
stoneformer = new LiquidCrafter("stoneformer"){
|
||||||
|
{
|
||||||
|
formalName = "stone former";
|
||||||
|
input = Item.iron;
|
||||||
|
inputAmount = 2;
|
||||||
|
inputLiquid = Liquid.lava;
|
||||||
|
liquidAmount = 20f;
|
||||||
|
liquidCapacity = 21f;
|
||||||
|
purifyTime = 10;
|
||||||
|
output = Item.stone;
|
||||||
|
health = 80;
|
||||||
|
craftEffect = Fx.purifystone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String description(){
|
||||||
|
return "Converts lava to stone.";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
lavasmelter = new LiquidCrafter("lavasmelter"){
|
||||||
|
{
|
||||||
|
formalName = "lava smelter";
|
||||||
|
inputLiquid = Liquid.lava;
|
||||||
|
liquidAmount = 40f;
|
||||||
|
liquidCapacity = 41f;
|
||||||
|
purifyTime = 25;
|
||||||
|
output = Item.stone;
|
||||||
|
health = 80;
|
||||||
|
craftEffect = Fx.purifystone;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String description(){
|
||||||
|
return "Converts iron + lava to steel.";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -156,7 +198,7 @@ public class ProductionBlocks{
|
|||||||
|
|
||||||
omnidrill = new Drill("omnidrill"){
|
omnidrill = new Drill("omnidrill"){
|
||||||
{
|
{
|
||||||
time = 2;
|
time = 3;
|
||||||
formalName = "omnidrill";
|
formalName = "omnidrill";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ public class LiquidBlock extends Block implements LiquidAcceptor{
|
|||||||
if(next != null && next.block() instanceof LiquidAcceptor && entity.liquidAmount > 0.01f){
|
if(next != null && next.block() instanceof LiquidAcceptor && entity.liquidAmount > 0.01f){
|
||||||
LiquidAcceptor other = (LiquidAcceptor)next.block();
|
LiquidAcceptor other = (LiquidAcceptor)next.block();
|
||||||
|
|
||||||
float flow = Math.min(other.getLiquidCapacity(next) - other.getLiquid(next) - 0.001f, Math.min(entity.liquidAmount/flowfactor, entity.liquidAmount));
|
float flow = Math.min(other.getLiquidCapacity(next) - other.getLiquid(next) - 0.001f,
|
||||||
|
Math.min(entity.liquidAmount/flowfactor, entity.liquidAmount));
|
||||||
|
|
||||||
if(flow <= 0f || entity.liquidAmount < flow) return;
|
if(flow <= 0f || entity.liquidAmount < flow) return;
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ public class RepairTurret extends Turret{
|
|||||||
|
|
||||||
if(entity.blockTarget.health > entity.blockTarget.health)
|
if(entity.blockTarget.health > entity.blockTarget.health)
|
||||||
entity.blockTarget.health = entity.blockTarget.maxhealth;
|
entity.blockTarget.health = entity.blockTarget.maxhealth;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ import io.anuke.ucore.util.Angles;
|
|||||||
import io.anuke.ucore.util.Mathf;
|
import io.anuke.ucore.util.Mathf;
|
||||||
|
|
||||||
public class Turret extends Block{
|
public class Turret extends Block{
|
||||||
public static final int targetInterval = 15;
|
static final int targetInterval = 15;
|
||||||
private static boolean drawDebug = false;
|
static boolean drawDebug = false;
|
||||||
|
|
||||||
protected float range = 50f;
|
protected float range = 50f;
|
||||||
protected float reload = 10f;
|
protected float reload = 10f;
|
||||||
@@ -118,7 +118,7 @@ public class Turret extends Block{
|
|||||||
if(entity.target != null && entity.target.isDead())
|
if(entity.target != null && entity.target.isDead())
|
||||||
entity.target = null;
|
entity.target = null;
|
||||||
|
|
||||||
if(hasAmmo(tile)){
|
if(hasAmmo(tile) || (Vars.debug && Vars.infiniteAmmo)){
|
||||||
|
|
||||||
if(Timers.get(entity, "target", targetInterval)){
|
if(Timers.get(entity, "target", targetInterval)){
|
||||||
entity.target = (Enemy)Entities.getClosest(tile.worldx(), tile.worldy(), range, e->{
|
entity.target = (Enemy)Entities.getClosest(tile.worldx(), tile.worldy(), range, e->{
|
||||||
|
|||||||
@@ -29,6 +29,15 @@ public class Pump extends LiquidBlock{
|
|||||||
@Override
|
@Override
|
||||||
public void draw(Tile tile){
|
public void draw(Tile tile){
|
||||||
Draw.rect(name(), tile.worldx(), tile.worldy());
|
Draw.rect(name(), tile.worldx(), tile.worldy());
|
||||||
|
|
||||||
|
LiquidEntity entity = tile.entity();
|
||||||
|
|
||||||
|
if(entity.liquid == null) return;
|
||||||
|
|
||||||
|
Draw.color(entity.liquid.color);
|
||||||
|
Draw.alpha(entity.liquidAmount / liquidCapacity);
|
||||||
|
Draw.rect("blank", tile.worldx(), tile.worldy(), 2, 2);
|
||||||
|
Draw.color();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -47,7 +56,7 @@ public class Pump extends LiquidBlock{
|
|||||||
if(tile.floor().liquidDrop != null &&
|
if(tile.floor().liquidDrop != null &&
|
||||||
Timers.get(tile, "pump", 8) && entity.liquidAmount < liquidCapacity){
|
Timers.get(tile, "pump", 8) && entity.liquidAmount < liquidCapacity){
|
||||||
entity.liquid = tile.floor().liquidDrop;
|
entity.liquid = tile.floor().liquidDrop;
|
||||||
entity.liquidAmount += pumpspeed;
|
entity.liquidAmount += Math.min(pumpspeed, this.liquidCapacity - entity.liquidAmount);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Timers.get(tile, "dump", 1)){
|
if(Timers.get(tile, "dump", 1)){
|
||||||
|
|||||||
Reference in New Issue
Block a user