Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -1306,6 +1306,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
case health -> health;
|
case health -> health;
|
||||||
case maxHealth -> maxHealth;
|
case maxHealth -> maxHealth;
|
||||||
case efficiency -> efficiency();
|
case efficiency -> efficiency();
|
||||||
|
case range -> this instanceof Ranged r ? r.range() / tilesize : 0;
|
||||||
case rotation -> rotation;
|
case rotation -> rotation;
|
||||||
case totalItems -> items == null ? 0 : items.total();
|
case totalItems -> items == null ? 0 : items.total();
|
||||||
case totalLiquids -> liquids == null ? 0 : liquids.total();
|
case totalLiquids -> liquids == null ? 0 : liquids.total();
|
||||||
|
|||||||
@@ -130,6 +130,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
|||||||
case y -> World.conv(y);
|
case y -> World.conv(y);
|
||||||
case team -> team.id;
|
case team -> team.id;
|
||||||
case shooting -> isShooting() ? 1 : 0;
|
case shooting -> isShooting() ? 1 : 0;
|
||||||
|
case range -> range() / tilesize;
|
||||||
case shootX -> World.conv(aimX());
|
case shootX -> World.conv(aimX());
|
||||||
case shootY -> World.conv(aimY());
|
case shootY -> World.conv(aimY());
|
||||||
case mining -> mining() ? 1 : 0;
|
case mining -> mining() ? 1 : 0;
|
||||||
|
|||||||
@@ -221,9 +221,13 @@ public class Drawf{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void construct(float x, float y, TextureRegion region, float rotation, float progress, float speed, float time){
|
public static void construct(float x, float y, TextureRegion region, float rotation, float progress, float speed, float time){
|
||||||
|
construct(x, y, region, Pal.accent, rotation, progress, speed, time);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void construct(float x, float y, TextureRegion region, Color color, float rotation, float progress, float speed, float time){
|
||||||
Shaders.build.region = region;
|
Shaders.build.region = region;
|
||||||
Shaders.build.progress = progress;
|
Shaders.build.progress = progress;
|
||||||
Shaders.build.color.set(Pal.accent);
|
Shaders.build.color.set(color);
|
||||||
Shaders.build.color.a = speed;
|
Shaders.build.color.a = speed;
|
||||||
Shaders.build.time = -time / 20f;
|
Shaders.build.time = -time / 20f;
|
||||||
|
|
||||||
@@ -235,9 +239,13 @@ public class Drawf{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void construct(Building t, TextureRegion region, float rotation, float progress, float speed, float time){
|
public static void construct(Building t, TextureRegion region, float rotation, float progress, float speed, float time){
|
||||||
|
construct(t, region, Pal.accent, rotation, progress, speed, time);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void construct(Building t, TextureRegion region, Color color, float rotation, float progress, float speed, float time){
|
||||||
Shaders.build.region = region;
|
Shaders.build.region = region;
|
||||||
Shaders.build.progress = progress;
|
Shaders.build.progress = progress;
|
||||||
Shaders.build.color.set(Pal.accent);
|
Shaders.build.color.set(color);
|
||||||
Shaders.build.color.a = speed;
|
Shaders.build.color.a = speed;
|
||||||
Shaders.build.time = -time / 20f;
|
Shaders.build.time = -time / 20f;
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ public enum LAccess{
|
|||||||
y,
|
y,
|
||||||
shootX,
|
shootX,
|
||||||
shootY,
|
shootY,
|
||||||
|
range,
|
||||||
shooting,
|
shooting,
|
||||||
mineX,
|
mineX,
|
||||||
mineY,
|
mineY,
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Minigames",
|
"name": "Minigames",
|
||||||
"address": ["shizashizashiza.ml"]
|
"address": ["shizashizashiza.ml", "shizashizashiza.ml:6568"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Korea",
|
"name": "Korea",
|
||||||
|
|||||||
Reference in New Issue
Block a user