More achievement cleanup
This commit is contained in:
@@ -102,6 +102,14 @@ public class EventType{
|
||||
}
|
||||
}
|
||||
|
||||
public static class SchematicCreateEvent{
|
||||
public final Schematic schematic;
|
||||
|
||||
public SchematicCreateEvent(Schematic schematic){
|
||||
this.schematic = schematic;
|
||||
}
|
||||
}
|
||||
|
||||
public static class CommandIssueEvent{
|
||||
public final Building tile;
|
||||
public final UnitCommand command;
|
||||
@@ -193,6 +201,34 @@ public class EventType{
|
||||
}
|
||||
}
|
||||
|
||||
public static class PickupEvent{
|
||||
public final Unit carrier;
|
||||
public final @Nullable Unit unit;
|
||||
public final @Nullable Building build;
|
||||
|
||||
public PickupEvent(Unit carrier, Unit unit){
|
||||
this.carrier = carrier;
|
||||
this.unit = unit;
|
||||
this.build = null;
|
||||
}
|
||||
|
||||
public PickupEvent(Unit carrier, Building build){
|
||||
this.carrier = carrier;
|
||||
this.build = build;
|
||||
this.unit = null;
|
||||
}
|
||||
}
|
||||
|
||||
public static class UnitControlEvent{
|
||||
public final Player player;
|
||||
public final @Nullable Unit unit;
|
||||
|
||||
public UnitControlEvent(Player player, @Nullable Unit unit){
|
||||
this.player = player;
|
||||
this.unit = unit;
|
||||
}
|
||||
}
|
||||
|
||||
public static class GameOverEvent{
|
||||
public final Team winner;
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ public class Schematics implements Loadable{
|
||||
}
|
||||
|
||||
private void loadLoadouts(){
|
||||
Seq.with(Loadouts.basicShard, Loadouts.basicFoundation, Loadouts.basicNucleus).each(s -> checkLoadout(s,false));
|
||||
Seq.with(Loadouts.basicShard, Loadouts.basicFoundation, Loadouts.basicNucleus).each(s -> checkLoadout(s, false));
|
||||
}
|
||||
|
||||
public void overwrite(Schematic target, Schematic newSchematic){
|
||||
@@ -354,7 +354,7 @@ public class Schematics implements Loadable{
|
||||
for(int cy = y; cy <= y2; cy++){
|
||||
Building linked = world.build(cx, cy);
|
||||
|
||||
if(linked != null && linked.block.isVisible() && !(linked.block instanceof ConstructBlock)){
|
||||
if(linked != null && (linked.block.isVisible() || linked.block() instanceof CoreBlock) && !(linked.block instanceof ConstructBlock)){
|
||||
int top = linked.block.size/2;
|
||||
int bot = linked.block.size % 2 == 1 ? -linked.block.size/2 : -(linked.block.size - 1)/2;
|
||||
minx = Math.min(linked.tileX() + bot, minx);
|
||||
|
||||
Reference in New Issue
Block a user