Minor bugfixes
This commit is contained in:
@@ -1157,6 +1157,7 @@ public class Blocks{
|
|||||||
researchCostMultiplier = 1.2f;
|
researchCostMultiplier = 1.2f;
|
||||||
craftTime = 10f;
|
craftTime = 10f;
|
||||||
rotate = true;
|
rotate = true;
|
||||||
|
invertFlip = true;
|
||||||
|
|
||||||
liquidCapacity = 50f;
|
liquidCapacity = 50f;
|
||||||
|
|
||||||
@@ -3591,7 +3592,7 @@ public class Blocks{
|
|||||||
reloadMultiplier = 1.7f;
|
reloadMultiplier = 1.7f;
|
||||||
knockback = 0.3f;
|
knockback = 0.3f;
|
||||||
}},
|
}},
|
||||||
Items.pyratite, new BasicBulletType(8f, 80){{
|
Items.thorium, new BasicBulletType(8f, 80){{
|
||||||
hitSize = 5;
|
hitSize = 5;
|
||||||
width = 16f;
|
width = 16f;
|
||||||
height = 23f;
|
height = 23f;
|
||||||
@@ -3600,7 +3601,7 @@ public class Blocks{
|
|||||||
pierceBuilding = true;
|
pierceBuilding = true;
|
||||||
knockback = 0.7f;
|
knockback = 0.7f;
|
||||||
}},
|
}},
|
||||||
Items.thorium, new BasicBulletType(7f, 70){{
|
Items.pyratite, new BasicBulletType(7f, 70){{
|
||||||
hitSize = 5;
|
hitSize = 5;
|
||||||
width = 16f;
|
width = 16f;
|
||||||
height = 21f;
|
height = 21f;
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
package mindustry.entities.effect;
|
package mindustry.entities.effect;
|
||||||
|
|
||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
|
import mindustry.content.*;
|
||||||
import mindustry.entities.*;
|
import mindustry.entities.*;
|
||||||
|
|
||||||
/** Wraps an effect with some parameters. */
|
/** Wraps an effect with some parameters. */
|
||||||
public class WrapEffect extends Effect{
|
public class WrapEffect extends Effect{
|
||||||
public Effect effect;
|
public Effect effect = Fx.none;
|
||||||
public Color color = Color.white.cpy();
|
public Color color = Color.white.cpy();
|
||||||
public float rotation = Float.NaN;
|
public float rotation = Float.NaN;
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,8 @@ public class Block extends UnlockableContent implements Senseable{
|
|||||||
public boolean rotate;
|
public boolean rotate;
|
||||||
/** if rotate is true and this is false, the region won't rotate when drawing */
|
/** if rotate is true and this is false, the region won't rotate when drawing */
|
||||||
public boolean rotateDraw = true;
|
public boolean rotateDraw = true;
|
||||||
|
/** if true, schematic flips with this block are inverted. */
|
||||||
|
public boolean invertFlip = false;
|
||||||
/** number of different variant regions to use */
|
/** number of different variant regions to use */
|
||||||
public int variants = 0;
|
public int variants = 0;
|
||||||
/** whether to draw a rotation arrow - this does not apply to lines of blocks */
|
/** whether to draw a rotation arrow - this does not apply to lines of blocks */
|
||||||
@@ -1276,7 +1278,7 @@ public class Block extends UnlockableContent implements Senseable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void flipRotation(BuildPlan req, boolean x){
|
public void flipRotation(BuildPlan req, boolean x){
|
||||||
if(x == (req.rotation % 2 == 0)){
|
if((x == (req.rotation % 2 == 0)) != invertFlip){
|
||||||
req.rotation = Mathf.mod(req.rotation + 2, 4);
|
req.rotation = Mathf.mod(req.rotation + 2, 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user