Bugfixes
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package mindustry.entities.comp;
|
package mindustry.entities.comp;
|
||||||
|
|
||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
import arc.math.*;
|
|
||||||
import arc.struct.*;
|
import arc.struct.*;
|
||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
import arc.util.pooling.*;
|
import arc.util.pooling.*;
|
||||||
@@ -24,11 +23,6 @@ abstract class StatusComp implements Posc, Flyingc{
|
|||||||
|
|
||||||
@Import UnitType type;
|
@Import UnitType type;
|
||||||
|
|
||||||
/** @return damage taken based on status armor multipliers */
|
|
||||||
float getShieldDamage(float amount){
|
|
||||||
return amount * Mathf.clamp(1f - armorMultiplier / 100f);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Apply a status effect for 1 tick (for permanent effects) **/
|
/** Apply a status effect for 1 tick (for permanent effects) **/
|
||||||
void apply(StatusEffect effect){
|
void apply(StatusEffect effect){
|
||||||
apply(effect, 1);
|
apply(effect, 1);
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ public class DesktopInput extends InputHandler{
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean panCam = false;
|
boolean panCam = false;
|
||||||
float camSpeed = !Core.input.keyDown(Binding.boost) ? panSpeed : panBoostSpeed;
|
float camSpeed = (!Core.input.keyDown(Binding.boost) ? panSpeed : panBoostSpeed) * Time.delta;
|
||||||
|
|
||||||
if(input.keyDown(Binding.pan)){
|
if(input.keyDown(Binding.pan)){
|
||||||
panCam = true;
|
panCam = true;
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ public class SettingsMenuDialog extends SettingsDialog{
|
|||||||
dataDialog.addCloseButton();
|
dataDialog.addCloseButton();
|
||||||
|
|
||||||
dataDialog.cont.table(Tex.button, t -> {
|
dataDialog.cont.table(Tex.button, t -> {
|
||||||
t.defaults().size(270f, 60f).left();
|
t.defaults().size(280f, 60f).left();
|
||||||
TextButtonStyle style = Styles.cleart;
|
TextButtonStyle style = Styles.cleart;
|
||||||
|
|
||||||
t.button("@settings.cleardata", Icon.trash, style, () -> ui.showConfirm("@confirm", "@settings.clearall.confirm", () -> {
|
t.button("@settings.cleardata", Icon.trash, style, () -> ui.showConfirm("@confirm", "@settings.clearall.confirm", () -> {
|
||||||
@@ -419,6 +419,9 @@ public class SettingsMenuDialog extends SettingsDialog{
|
|||||||
|
|
||||||
zipped.walk(f -> f.copyTo(base.child(f.path())));
|
zipped.walk(f -> f.copyTo(base.child(f.path())));
|
||||||
dest.delete();
|
dest.delete();
|
||||||
|
|
||||||
|
//load data so it's saved on exit
|
||||||
|
settings.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void back(){
|
private void back(){
|
||||||
|
|||||||
Reference in New Issue
Block a user