Cleanup
This commit is contained in:
@@ -508,6 +508,13 @@ error.io = Network I/O error.
|
|||||||
error.any = Unknown network error.
|
error.any = Unknown network error.
|
||||||
error.bloom = Failed to initialize bloom.\nYour device may not support it.
|
error.bloom = Failed to initialize bloom.\nYour device may not support it.
|
||||||
|
|
||||||
|
sectors.unexplored = [lightgray]Unexplored
|
||||||
|
sectors.resources = Resources:
|
||||||
|
sectors.production = Production:
|
||||||
|
sectors.stored = Stored:
|
||||||
|
sectors.resume = Resume
|
||||||
|
sectors.launch = Launch
|
||||||
|
|
||||||
#NOTE TO TRANSLATORS: don't bother editing these, they'll be removed and/or rewritten anyway
|
#NOTE TO TRANSLATORS: don't bother editing these, they'll be removed and/or rewritten anyway
|
||||||
sector.groundZero.name = Ground Zero
|
sector.groundZero.name = Ground Zero
|
||||||
sector.craters.name = The Craters
|
sector.craters.name = The Craters
|
||||||
@@ -644,6 +651,7 @@ unit.powerunits = power units
|
|||||||
unit.degrees = degrees
|
unit.degrees = degrees
|
||||||
unit.seconds = seconds
|
unit.seconds = seconds
|
||||||
unit.persecond = /sec
|
unit.persecond = /sec
|
||||||
|
unit.perminute = /min
|
||||||
unit.timesspeed = x speed
|
unit.timesspeed = x speed
|
||||||
unit.percent = %
|
unit.percent = %
|
||||||
unit.items = items
|
unit.items = items
|
||||||
|
|||||||
@@ -222,12 +222,12 @@ public class Blocks implements ContentList{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
ignarock = new Floor("ignarock"){{
|
ignarock = new Floor("ignarock"){{
|
||||||
attributes.set(Attribute.water, -0.1f);
|
attributes.set(Attribute.water, -0.25f);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
hotrock = new Floor("hotrock"){{
|
hotrock = new Floor("hotrock"){{
|
||||||
attributes.set(Attribute.heat, 0.5f);
|
attributes.set(Attribute.heat, 0.5f);
|
||||||
attributes.set(Attribute.water, -0.2f);
|
attributes.set(Attribute.water, -0.5f);
|
||||||
blendGroup = ignarock;
|
blendGroup = ignarock;
|
||||||
|
|
||||||
emitLight = true;
|
emitLight = true;
|
||||||
@@ -237,7 +237,7 @@ public class Blocks implements ContentList{
|
|||||||
|
|
||||||
magmarock = new Floor("magmarock"){{
|
magmarock = new Floor("magmarock"){{
|
||||||
attributes.set(Attribute.heat, 0.75f);
|
attributes.set(Attribute.heat, 0.75f);
|
||||||
attributes.set(Attribute.water, -0.5f);
|
attributes.set(Attribute.water, -0.75f);
|
||||||
updateEffect = Fx.magmasmoke;
|
updateEffect = Fx.magmasmoke;
|
||||||
blendGroup = ignarock;
|
blendGroup = ignarock;
|
||||||
|
|
||||||
@@ -1679,7 +1679,7 @@ public class Blocks implements ContentList{
|
|||||||
activeSoundVolume = 2f;
|
activeSoundVolume = 2f;
|
||||||
|
|
||||||
shootType = new ContinuousLaserBulletType(70){{
|
shootType = new ContinuousLaserBulletType(70){{
|
||||||
length = 220f;
|
length = 200f;
|
||||||
hitEffect = Fx.hitMeltdown;
|
hitEffect = Fx.hitMeltdown;
|
||||||
drawSize = 420f;
|
drawSize = 420f;
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,8 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
|
|||||||
transient @Nullable NetConnection con;
|
transient @Nullable NetConnection con;
|
||||||
|
|
||||||
@ReadOnly Team team = Team.sharded;
|
@ReadOnly Team team = Team.sharded;
|
||||||
@SyncLocal boolean admin, typing, shooting, boosting;
|
@SyncLocal boolean typing, shooting, boosting;
|
||||||
|
boolean admin;
|
||||||
@SyncLocal float mouseX, mouseY;
|
@SyncLocal float mouseX, mouseY;
|
||||||
String name = "noname";
|
String name = "noname";
|
||||||
Color color = new Color();
|
Color color = new Color();
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
|||||||
}
|
}
|
||||||
|
|
||||||
//simulate falling down
|
//simulate falling down
|
||||||
if(dead){
|
if(dead || health <= 0){
|
||||||
//less drag when dead
|
//less drag when dead
|
||||||
drag = 0.01f;
|
drag = 0.01f;
|
||||||
|
|
||||||
|
|||||||
@@ -340,8 +340,6 @@ public class DesktopInput extends InputHandler{
|
|||||||
table.row();
|
table.row();
|
||||||
table.left().margin(0f).defaults().size(48f).left();
|
table.left().margin(0f).defaults().size(48f).left();
|
||||||
|
|
||||||
//TODO localize these
|
|
||||||
|
|
||||||
table.button(Icon.paste, Styles.clearPartiali, () -> {
|
table.button(Icon.paste, Styles.clearPartiali, () -> {
|
||||||
ui.schematics.show();
|
ui.schematics.show();
|
||||||
}).tooltip("@schematics");
|
}).tooltip("@schematics");
|
||||||
|
|||||||
@@ -290,7 +290,6 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
selectAlpha = Mathf.lerpDelta(selectAlpha, Mathf.num(planets.zoom < 1.9f), 0.1f);
|
selectAlpha = Mathf.lerpDelta(selectAlpha, Mathf.num(planets.zoom < 1.9f), 0.1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO localize
|
|
||||||
void updateSelected(){
|
void updateSelected(){
|
||||||
Sector sector = selected;
|
Sector sector = selected;
|
||||||
|
|
||||||
@@ -305,16 +304,18 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
|
|
||||||
stable.add("[accent]" + (sector.preset == null ? sector.id : sector.preset.localizedName)).row();
|
stable.add("[accent]" + (sector.preset == null ? sector.id : sector.preset.localizedName)).row();
|
||||||
stable.image().color(Pal.accent).fillX().height(3f).pad(3f).row();
|
stable.image().color(Pal.accent).fillX().height(3f).pad(3f).row();
|
||||||
stable.add(sector.save != null ? sector.save.getPlayTime() : "[lightgray]Unexplored").row();
|
stable.add(sector.save != null ? sector.save.getPlayTime() : "@sectors.unexplored").row();
|
||||||
|
|
||||||
if(sector.hasBase() && sector.hasWaves()){
|
if(sector.hasBase() && sector.hasWaves()){
|
||||||
|
//TODO localize when finalized
|
||||||
|
//these mechanics are likely to change and as such are not added to the bundle
|
||||||
stable.add("[scarlet]Under attack!");
|
stable.add("[scarlet]Under attack!");
|
||||||
stable.row();
|
stable.row();
|
||||||
stable.add("[accent]" + Mathf.ceil(sectorDestructionTurns - (sector.getSecondsPassed() * 60) / turnDuration) + " turn(s)\nuntil destruction");
|
stable.add("[accent]" + Mathf.ceil(sectorDestructionTurns - (sector.getSecondsPassed() * 60) / turnDuration) + " turn(s)\nuntil destruction");
|
||||||
stable.row();
|
stable.row();
|
||||||
}
|
}
|
||||||
|
|
||||||
stable.add("Resources:").row();
|
stable.add("@sectors.resources").row();
|
||||||
stable.table(t -> {
|
stable.table(t -> {
|
||||||
t.left();
|
t.left();
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
@@ -327,7 +328,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
|
|
||||||
//production
|
//production
|
||||||
if(sector.hasBase() && sector.save.meta.hasProduction){
|
if(sector.hasBase() && sector.save.meta.hasProduction){
|
||||||
stable.add("Production:").row();
|
stable.add("@sectors.production").row();
|
||||||
stable.table(t -> {
|
stable.table(t -> {
|
||||||
t.left();
|
t.left();
|
||||||
|
|
||||||
@@ -335,7 +336,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
int total = (int)(stat.mean * 60);
|
int total = (int)(stat.mean * 60);
|
||||||
if(total > 1){
|
if(total > 1){
|
||||||
t.image(item.icon(Cicon.small)).padRight(3);
|
t.image(item.icon(Cicon.small)).padRight(3);
|
||||||
t.add(UI.formatAmount(total) + " /min").color(Color.lightGray);
|
t.add(UI.formatAmount(total) + " " + Core.bundle.get("unit.perminute")).color(Color.lightGray);
|
||||||
t.row();
|
t.row();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -344,7 +345,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
|
|
||||||
//stored resources
|
//stored resources
|
||||||
if(sector.hasBase() && sector.save.meta.secinfo.coreItems.size > 0){
|
if(sector.hasBase() && sector.save.meta.secinfo.coreItems.size > 0){
|
||||||
stable.add("Stored:").row();
|
stable.add("@sectors.stored").row();
|
||||||
stable.table(t -> {
|
stable.table(t -> {
|
||||||
t.left();
|
t.left();
|
||||||
|
|
||||||
@@ -367,7 +368,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
stable.row();
|
stable.row();
|
||||||
|
|
||||||
if((sector.hasBase() && mode == look) || canLaunch(sector) || (sector.preset != null && sector.preset.alwaysUnlocked)){
|
if((sector.hasBase() && mode == look) || canLaunch(sector) || (sector.preset != null && sector.preset.alwaysUnlocked)){
|
||||||
stable.button(sector.hasBase() ? "Resume" : "Launch", Styles.transt, () -> {
|
stable.button(sector.hasBase() ? "@sectors.resume" : "@sectors.launch", Styles.transt, () -> {
|
||||||
|
|
||||||
boolean shouldHide = true;
|
boolean shouldHide = true;
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ public enum StatUnit{
|
|||||||
degrees,
|
degrees,
|
||||||
seconds,
|
seconds,
|
||||||
perSecond,
|
perSecond,
|
||||||
|
perMinute,
|
||||||
timesSpeed(false),
|
timesSpeed(false),
|
||||||
percent(false),
|
percent(false),
|
||||||
none,
|
none,
|
||||||
|
|||||||
@@ -749,7 +749,7 @@ public class ServerControl implements ApplicationListener{
|
|||||||
boolean add = arg[0].equals("add");
|
boolean add = arg[0].equals("add");
|
||||||
|
|
||||||
PlayerInfo target;
|
PlayerInfo target;
|
||||||
Player playert = Groups.player.find(p -> p.name().equalsIgnoreCase(arg[1]));
|
Player playert = Groups.player.find(p -> p.name.equalsIgnoreCase(arg[1]));
|
||||||
if(playert != null){
|
if(playert != null){
|
||||||
target = playert.getInfo();
|
target = playert.getInfo();
|
||||||
}else{
|
}else{
|
||||||
@@ -763,7 +763,7 @@ public class ServerControl implements ApplicationListener{
|
|||||||
}else{
|
}else{
|
||||||
netServer.admins.unAdminPlayer(target.id);
|
netServer.admins.unAdminPlayer(target.id);
|
||||||
}
|
}
|
||||||
if(playert != null) playert.admin(add);
|
if(playert != null) playert.admin = add;
|
||||||
info("Changed admin status of player: &ly@", target.lastName);
|
info("Changed admin status of player: &ly@", target.lastName);
|
||||||
}else{
|
}else{
|
||||||
err("Nobody with that name or ID could be found. If adding an admin by name, make sure they're online; otherwise, use their UUID.");
|
err("Nobody with that name or ID could be found. If adding an admin by name, make sure they're online; otherwise, use their UUID.");
|
||||||
|
|||||||
Reference in New Issue
Block a user