Achievement work, cleanup
This commit is contained in:
@@ -25,7 +25,8 @@ public class EventType{
|
||||
enablePixelation,
|
||||
drown,
|
||||
exclusionDeath,
|
||||
suicideBomb
|
||||
suicideBomb,
|
||||
openWiki
|
||||
}
|
||||
|
||||
public static class WinEvent{}
|
||||
|
||||
@@ -6,6 +6,7 @@ import io.anuke.arc.graphics.*;
|
||||
import io.anuke.arc.scene.ui.*;
|
||||
import io.anuke.arc.scene.ui.layout.*;
|
||||
import io.anuke.arc.util.*;
|
||||
import io.anuke.mindustry.game.EventType.*;
|
||||
import io.anuke.mindustry.gen.*;
|
||||
import io.anuke.mindustry.graphics.*;
|
||||
import io.anuke.mindustry.ui.*;
|
||||
@@ -64,6 +65,8 @@ public class AboutDialog extends FloatingDialog{
|
||||
}).padLeft(8);
|
||||
|
||||
table.addImageButton(Icon.link, () -> {
|
||||
if(link.name.equals("wiki")) Events.fire(Trigger.openWiki);
|
||||
|
||||
if(!Core.net.openURI(link.link)){
|
||||
ui.showErrorMessage("$linkfail");
|
||||
Core.app.setClipboardText(link.link);
|
||||
|
||||
@@ -79,7 +79,7 @@ public class ImpactReactor extends PowerGenerator{
|
||||
entity.warmup = 1f;
|
||||
}
|
||||
|
||||
if(!prevOut && (getPowerProduction(tile) <= consumes.getPower().requestedPower(entity))){
|
||||
if(!prevOut && (getPowerProduction(tile) > consumes.getPower().requestedPower(entity))){
|
||||
Events.fire(Trigger.impactPower);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user