diff --git a/README.md b/README.md
index 555f3b3e09..2f0cab8ff3 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ See [CONTRIBUTING](CONTRIBUTING.md).
Bleeding-edge live builds are generated automatically for every commit. You can see them [here](https://github.com/Anuken/MindustryBuilds/releases). Old builds might still be on [jenkins](https://jenkins.hellomouse.net/job/mindustry/).
If you'd rather compile on your own, follow these instructions.
-First, make sure you have [Java 8](https://www.java.com/en/download/) and [JDK 8](https://adoptopenjdk.net/) installed. Open a terminal in the root directory, `cd` to the Mindustry folder and run the following commands:
+First, make sure you have [JDK 8](https://adoptopenjdk.net/) installed. Open a terminal in the root directory, `cd` to the Mindustry folder and run the following commands:
#### Windows
@@ -49,11 +49,6 @@ If the terminal returns `Permission denied` or `Command not found` on Mac/Linux,
Gradle may take up to several minutes to download files. Be patient.
After building, the output .JAR file should be in `/desktop/build/libs/Mindustry.jar` for desktop builds, and in `/server/build/libs/server-release.jar` for server builds.
-### Feature Requests
-
-[](https://feathub.com/Anuken/Mindustry)
-
-
### Downloads
[
](https://f-droid.org/packages/io.anuke.mindustry/)
+
+### Feature Requests
+
+[](https://feathub.com/Anuken/Mindustry)
diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties
index 81a7bea005..08769a7ba8 100644
--- a/core/assets/bundles/bundle.properties
+++ b/core/assets/bundles/bundle.properties
@@ -29,6 +29,13 @@ load.system = System
load.mod = Mods
load.scripts = Scripts
+be.update = A new Bleeding Edge build is available:
+be.update.confirm = Download it and restart now?
+be.updating = Updating...
+be.ignore = Ignore
+be.noupdates = No updates found.
+be.check = Check for updates
+
schematic = Schematic
schematic.add = Save Schematic...
schematics = Schematics
@@ -148,6 +155,7 @@ server.kicked.nameEmpty = Your chosen name is invalid.
server.kicked.idInUse = You are already on this server! Connecting with two accounts is not permitted.
server.kicked.customClient = This server does not support custom builds. Download an official version.
server.kicked.gameover = Game over!
+server.kicked.serverRestarting = The server is restarting.
server.versions = Your version:[accent] {0}[]\nServer version:[accent] {1}[]
host.info = The [accent]host[] button hosts a server on port [scarlet]6567[]. \nAnybody on the same [lightgray]wifi or local network[] should be able to see your server in their server list.\n\nIf you want people to be able to connect from anywhere by IP, [accent]port forwarding[] is required.\n\n[lightgray]Note: If someone is experiencing trouble connecting to your LAN game, make sure you have allowed Mindustry access to your local network in your firewall settings. Note that public networks sometimes do not allow server discovery.
join.info = Here, you can enter a [accent]server IP[] to connect to, or discover [accent]local network[] servers to connect to.\nBoth LAN and WAN multiplayer is supported.\n\n[lightgray]Note: There is no automatic global server list; if you want to connect to someone by IP, you would need to ask the host for their IP.
@@ -638,6 +646,7 @@ setting.screenshake.name = Screen Shake
setting.effects.name = Display Effects
setting.destroyedblocks.name = Display Destroyed Blocks
setting.conveyorpathfinding.name = Conveyor Placement Pathfinding
+setting.coreselect.name = Allow Schematic Cores
setting.sensitivity.name = Controller Sensitivity
setting.saveinterval.name = Save Interval
setting.seconds = {0} seconds
@@ -749,6 +758,7 @@ rules.enemyCheat = Infinite AI (Red Team) Resources
rules.unitdrops = Unit Drops
rules.unitbuildspeedmultiplier = Unit Production Speed Multiplier
rules.unithealthmultiplier = Unit Health Multiplier
+rules.blockhealthmultiplier = Block Health Multiplier
rules.playerhealthmultiplier = Player Health Multiplier
rules.playerdamagemultiplier = Player Damage Multiplier
rules.unitdamagemultiplier = Unit Damage Multiplier
diff --git a/core/assets/bundles/bundle_cs.properties b/core/assets/bundles/bundle_cs.properties
index 2160901318..e2154fc185 100644
--- a/core/assets/bundles/bundle_cs.properties
+++ b/core/assets/bundles/bundle_cs.properties
@@ -1,241 +1,257 @@
credits.text = Vytvořil [ROYAL]Anuken[] - [SKY]anukendev@gmail.com[]
-credits = Kredity
-contributors = Překladatelé a Sponzoři
-discord = Připoj se k Mindustry na Discordu!
-link.discord.description = Oficiální Mindustry chatroom na Discordu!
-link.reddit.description = The Mindustry subreddit
+credits = Titulky
+contributors = Překladatelé a sponzoři
+discord = Připoj se k Mindustry na Discord serveru!
+link.discord.description = Oficiální kanál Mindustry na serveru Discord
+link.reddit.description = Mindustry na Redditu
link.github.description = Zdrojový kód hry
link.changelog.description = Seznam úprav
-link.dev-builds.description = Nestabilní verze vývoje hry
-link.trello.description = Oficiální Trello board pro plánované funkce
-link.itch.io.description = itch.io stránka pro stažení PC nebo webové verze
-link.google-play.description = Google Play store
-link.wiki.description = Oficiální Mindustry wiki
-linkfail = Nepodařilo se otevřít odkaz!\nURL byla zkopírována do schránky.
+link.dev-builds.description = Nestabilní vývojová verze hry
+link.trello.description = Oficiální Trello nástěnka s plánovanými novinkami
+link.itch.io.description = Stránka na itch.io s odkazy na stažení hry
+link.google-play.description = Obchod Google Play
+link.f-droid.description = Katalog F-Droid
+link.wiki.description = Oficiální Wiki Mindustry
+link.feathub.description = Navrhni něco nového do hry!
+linkfail = Nepodařilo se otevřít odkaz!\nAdresa URL byla zkopírována do schránky.
screenshot = Snímek obrazovky uložen {0}
-screenshot.invalid = Mapa je moc velká, nemusí být dost paměti pro snímek obrazovky.
+screenshot.invalid = Mapa je moc velká, nemusí být dost paměti pro získání snímku obrazovky.
gameover = Konec hry
-gameover.pvp = [accent] {0}[] Tým Vyhrál!
+gameover.pvp = [accent]{0}[] tým vyhrál!
highscore = [accent]Nový rekord!
-copied = Copied.
+copied = Zkopírováno.
+
load.sound = Zvuky
load.map = Mapy
load.image = Obrázky
load.content = Obsah
-load.system = System
-load.mod = Módy
-schematic = Schematic
-schematic.add = Save Schematic...
-schematics = Schematics
-schematic.replace = A schematic by that name already exists. Replace it?
-schematic.import = Import Schematic...
-schematic.exportfile = Export File
-schematic.importfile = Import File
-schematic.browseworkshop = Browse Workshop
-schematic.copy = Copy to Clipboard
-schematic.copy.import = Import from Clipboard
-schematic.shareworkshop = Share on Workshop
-schematic.flip = [accent][[{0}][]/[accent][[{1}][]: Flip Schematic
-schematic.saved = Schematic saved.
-schematic.delete.confirm = This schematic will be utterly eradicated.
-schematic.rename = Rename Schematic
-schematic.info = {0}x{1}, {2} blocks
+load.system = Systém
+load.mod = Modifikace
+load.scripts = Skripty
+
+schematic = Šablona
+schematic.add = Uložit šablonu...
+schematics = Šablony
+schematic.replace = Šablona tohoto jména již existuje. Chceš ji nahradit?
+schematic.import = Importovat šablonu...
+schematic.exportfile = Exportovat soubor
+schematic.importfile = Importovat soubor
+schematic.browseworkshop = Procházet dílnu
+schematic.copy = Zkopírovat do schránky
+schematic.copy.import = Importovat ze schránky
+schematic.shareworkshop = Sdílet skrze Steam Workshop
+schematic.flip = [accent][[{0}][]/[accent][[{1}][]: Převrátit šablonu
+schematic.saved = Šablona byla uložena.
+schematic.delete.confirm = Šablona bude kompletně vyhlazena.
+schematic.rename = Přejmenovat šablonu
+schematic.info = {0}x{1}, {2} bloků
+
stat.wave = Vln poraženo:[accent] {0}
stat.enemiesDestroyed = Nepřátel zničeno:[accent] {0}
stat.built = Budov postaveno:[accent] {0}
stat.destroyed = Budov zničeno:[accent] {0}
stat.deconstructed = Budov rozebráno:[accent] {0}
-stat.delivered = Materiálu odesláno:
-stat.rank = Závěrečné hodnocení: [accent]{0}
-launcheditems = [accent]Odeslané předměty
-launchinfo = [unlaunched][[LAUNCH] your core to obtain the items indicated in blue.
-map.delete = Jsi si jistý že chceš smazat mapu "[accent]{0}[]"?
-level.highscore = Nejvyšší skóre: [accent]{0}
-level.select = Výběr levelu
+stat.delivered = Materiálu vysláno:
+stat.rank = Celková známka: [accent]{0}
+
+launcheditems = [accent]Vyslané předměty[]
+launchinfo = [unlaunched][Je třeba [LAUNCH] Tvé jádro, abys získal věci vyznačené modře.
+map.delete = Jsi si jistý, že chceš smazat mapu "[accent]{0}[]"?
+level.highscore = Nejvyšší skóre: [accent]{0}[]
+level.select = Výběr úrovně
level.mode = Herní mód:
-showagain = Znovu neukazovat !
+showagain = Znovu neukazovat
coreattack = < Jádro je pod útokem! >
-nearpoint = [[ [scarlet]IHNED OPUSŤTE PROSTOR VÝSADKŮ[] ]\nNebezpečí okamžité smrti
-database = Databáze objektů
+nearpoint = [ [scarlet]IHNED OPUSŤTE PROSTOR VÝSADKU[] ]\nNebezpečí okamžité smrti!
+database = Databáze objektů ve hře
savegame = Uložit hru
loadgame = Načíst hru
joingame = Připojit se ke hře
customgame = Vlastní hra
newgame = Nová hra
none = <žádný>
-minimap = Minimapa
-position = Position
+minimap = Mapička
+position = Pozice
close = Zavřít
-website = Web. stránky
+website = Webové stránky
quit = Ukončit
save.quit = Uložit a ukončit
maps = Mapy
maps.browse = Procházet mapy
continue = Pokračovat
-maps.none = [LIGHT_GRAY]Žádné mapy nebyly nalezeny!
+maps.none = [LIGHT_GRAY]Mapy nebyly nalezeny.
invalid = Neplatné
-preparingconfig = Připravuji Config
-preparingcontent = Připravuji obsah
-uploadingcontent = Nahrávám obsah
-uploadingpreviewfile = Nahrávám prohlížecí soubor
+pickcolor = Vyber barvu
+preparingconfig = Připravuji konfiguraci
+preparingcontent = Připravuji obsah hry
+uploadingcontent = Nahrávám obsah hry
+uploadingpreviewfile = Nahrávám soubor s náhledem
committingchanges = Provádím změny
done = Hotovo
-feature.unsupported = Your device does not support this feature.
-mods.alphainfo = Keep in mind that mods are in alpha, and[scarlet] may be very buggy[].\nReport any issues you find to the Mindustry GitHub or Discord.
-mods.alpha = [accent](Alpha)
-mods = Mods
-mods.none = [LIGHT_GRAY]No mods found!
-mods.guide = Modding Guide
-mods.report = Report Bug
-mods.openfolder = Open Mod Folder
-mod.enabled = [lightgray]Enabled
-mod.disabled = [scarlet]Disabled
-mod.disable = Disable
-mod.delete.error = Unable to delete mod. File may be in use.
-mod.missingdependencies = [scarlet]Missing dependencies: {0}
-mod.nowdisabled = [scarlet]Mod '{0}' is missing dependencies:[accent] {1}\n[lightgray]These mods need to be downloaded first.\nThis mod will be automatically disabled.
-mod.enable = Enable
-mod.requiresrestart = The game will now close to apply the mod changes.
-mod.reloadrequired = [scarlet]Reload Required
-mod.import = Import Mod
-mod.import.github = Import GitHub Mod
-mod.remove.confirm = This mod will be deleted.
-mod.author = [LIGHT_GRAY]Author:[] {0}
-mod.missing = This save contains mods that you have recently updated or no longer have installed. Save corruption may occur. Are you sure you want to load it?\n[lightgray]Mods:\n{0}
-mod.preview.missing = Before publishing this mod in the workshop, you must add an image preview.\nPlace an image named[accent] preview.png[] into the mod's folder and try again.
-mod.folder.missing = Only mods in folder form can be published on the workshop.\nTo convert any mod into a folder, simply unzip its file into a folder and delete the old zip, then restart your game or reload your mods.
+feature.unsupported = Tvoje zařízení nepodporuje tuto vlastnost hry.
+
+mods.alphainfo = Měj na paměti, že modifikace jsou stále v alfa fázi vývoje a mohou být [scarlet]velmi chybové[].\nNahlaš, prosím, jakékoliv závady na GitHub nebo Discord serveru Mindustry. Děkujeme!
+mods.alpha = [accent](Alfa)[]
+mods = Modifikace
+mods.none = [LIGHT_GRAY]Modifikace nebyly nalezeny.[]
+mods.guide = Průvodce modifikacemi
+mods.report = Nahlásit závadu
+mods.openfolder = Otevřít složku s modifikacemi
+mod.enabled = [lightgray]Povoleno[]
+mod.disabled = [scarlet]Zakázáno[]
+mod.disable = Zakázat
+mod.delete.error = Nebylo možnost smazat modifikaci. Soubor může být používán.
+mod.requiresversion = [scarlet]Minimální požadovaná verze hry:: [accent]{0}[]
+mod.missingdependencies = [scarlet]Chybějící závislosti: {0}
+mod.erroredcontent = [scarlet]Chyby v obsahu
+mod.errors = Při načítání obsahu hry se vyskytly problémy.
+mod.noerrorplay = [scarlet]Máš modifikace s chybami.[] Buď zakaž dotčené modifikace, nebo oprav chyby před tím, než začneš hrát.
+mod.nowdisabled = [scarlet]Modifikaci '{0}' chybí tyto závislosti: [accent]{1}\n[lightgray]Tyto modifikace je třeba nejprve stáhnout.\nTato modifikace bude nyní automaticky zakázána.
+mod.enable = Povolit
+mod.requiresrestart = Hra bude ukončena, aby bylo možné nasadit modifikace.
+mod.reloadrequired = [scarlet]Je vyžadováno znovuspuštění hry.
+mod.import = Importovat modifikaci
+mod.import.github = Import modifikaci z GitHubu
+mod.item.remove = Tato položka je součástí [accent]'{0}'[] modifikace. Pokud ji chcete odstranit, odinstalujte tuto modifikaci.
+mod.remove.confirm = Tato modifikace bude odstraněna.
+mod.author = [LIGHT_GRAY]Autor:[] {0}
+mod.missing = Toto uložení hra obsahuje modifikace, které byly nedávno aktualizovány, nebo již nejsou nainstalovány. Použití tohoto uložení může vést k chybám. Jsi si jist, že chceš nahrát toto uložení hry?\n[lightgray]Modifikace:\n{0}
+mod.preview.missing = Než vystavíš svou modifikaci v dílně, musíš přidat obrázek pro náhled.\nUmísti obrázek pojmenovaný [accent]preview.png[] do složky modifikace a zkus to znovu.
+mod.folder.missing = V dílně mohou být publikovány pouze modifikace ve formě složky.\nAbys převedl modifikaci na formu složky, jednoduše rozbal zip soubor do složky a smaž starý zip soubor. Potom znovu spusť hru nebo znovu načti modifikace.
+mod.scripts.unsupported = Tvoje zařízení nepodporuje skripty. Některé modifikace nemusí správně fungovat.
+
about.button = O hře
name = Jméno:
-noname = Nejdřív si vyber[accent] herní jméno[].
-filename = Jméno složky:
-unlocked = Nový blok odemčen!
+noname = Nejdřív si vyber [accent]jméno ve hře[].
+filename = Název souboru:
+unlocked = Byl odemmknut nový blok!
completed = [accent]Dokončeno
techtree = Technologie
research.list = [LIGHT_GRAY]Výzkum:
research = Výzkum
-researched = [LIGHT_GRAY]{0} vyzkoumán(o).
-players = {0} hráčů online
-players.single = {0} hráč online
-server.closing = [accent]Zavírám server...
+researched = Výzkumu dokončeno: [LIGHT_GRAY]{0}[].
+players = Hráčů: {0}
+players.single = Hráč: {0}
+server.closing = [accent]Ukončuji server...
server.kicked.kick = Byl jsi vykopnut ze serveru!
-server.kicked.whitelist = Na server ti nebyl udělen přístup.
-server.kicked.serverClose = Server je zavřený.
-server.kicked.vote = Byl jsi odhlasován a vykopnut. Sbohem.
-server.kicked.clientOutdated = Zastaralý klient hry! Aktualizuj si hru!
-server.kicked.serverOutdated = Zastaralý server! Řekni hostiteli o aktualizaci!
-server.kicked.banned = Jsi zabanován na tomto serveru.
-server.kicked.typeMismatch = Tento server není kompatibilní s verzí tvého klienta
-server.kicked.playerLimit = Tento server je plný, vyčkej na volné místo.
-server.kicked.recentKick = Před nedávnem jsi byl vykopnut.\nPočkej než se znovu připojíš.
-server.kicked.nameInUse = Někdo se stejným jménem\nje aktuálně na serveru.
-server.kicked.nameEmpty = Tvé jméno je neplatné.
-server.kicked.idInUse = Již jsi na tomhle serveru připojen! Připojování se dvěma účty není povoleno.
-server.kicked.customClient = Tento server nepodporuje vlastní verze hry. Stáhni si oficiální verzi.
+server.kicked.whitelist = Na server Ti nebyl udělen přístup.
+server.kicked.serverClose = Server není otevřený.
+server.kicked.vote = Bylo odhlasováno, že budeš vykopnut ze serveru. Tak čau.
+server.kicked.clientOutdated = Byl detekována zastaralá verze klienta hry. Aktualizuj si hru!
+server.kicked.serverOutdated = Byl detekována zastaralá verze serveru. Požádej hostitele o aktualizaci!
+server.kicked.banned = Byl Ti zakázán přístup na tento server.
+server.kicked.typeMismatch = Tento server není kompatibilní s verzí Tvého klienta.
+server.kicked.playerLimit = Tento server je plný, vyčkej prosím, až se uvolní místo.
+server.kicked.recentKick = Před nedávnem jsi byl vykopnut z tohoto serveru.\nPočkej proto chvíli, než se zkusíš znovu připojit.
+server.kicked.nameInUse = Někdo se stejným jménem jako Ty\nje aktuálně přihlášen na serveru.
+server.kicked.nameEmpty = Tvé jméno není platné. Možná je prostě jen není nastaveno?
+server.kicked.idInUse = Na tomhle serveru jsi již připojen. Připojování se pod dvěma účty není dovoleno!
+server.kicked.customClient = Tento server nepodporuje upravené verze hry. Stáhni si, prosím. oficiální verzi.
server.kicked.gameover = Konec hry!
-server.versions = Verze klienta:[accent] {0}[]\nVerze serveru:[accent] {1}[]
-host.info = [accent]hostitel[] hostuje server na portu [scarlet]6567[]. \nKdokoliv na stejné [LIGHT_GRAY]wifi nebo místní síti[] by měl vidět server ve svém listu serverů.\n\nJestli chcete aby se uživatelé připojovali odkudkoliv pomocí IP, [accent]přesměrování portů[] je nutné.\n\n[LIGHT_GRAY]Poznámka: Jestli někdo má problém s připojením ke své LAN hře, ujistěte se že má Mindustry povolený přístup k místní síti v nastavení Firewallu.
-join.info = Tady můžeš vložit [accent]IP serveru[] ke kterému se chceš připojit, nebo objevit [accent]Servery Místní sítě[] ke kterým se chceš připojit.\nLAN i Multiplayer jsou podporovány.\n\n[LIGHT_GRAY]Poznámka: Není žádný globální seznam serverů; Pokud se budeš chtít připojit k někomu pomocí IP, budeš jí muset znát od hostitele.
-hostserver = Hostovat hru
+server.versions = Verze klienta: [accent]{0}[]\nVerze serveru: [accent]{1}[]
+host.info = Tento [accent]hostitel[] hostuje server na portu [scarlet]6567[]. \nKdokoliv na stejné [LIGHT_GRAY]síti Wifi nebo LAN (místní)[] by měl vidět server ve svém listu serverů.\n\nJestliže chcete, aby se uživatelé připojovali odkudkoliv pomocí adresy IP, může být nezbytné nastavit [accent]přesměrování portů[].\n\n[LIGHT_GRAY]Poznámka: Jestliže má někdo problém s připojením k LAN hře, ujisti se, že má program Mindustry povolený přístup k místní síti v nastavení místního firewallu.
+join.info = Zde můžeš vložit [accent]adresu IP serveru[], ke kterému se chceš připojit, nebo zkusit nalézt [accent]servery v místní síti[], ke kterým se můžeš připojit.\nJsou podporovány režimy hry více hráčů přes LAN i WAN.\n\n[LIGHT_GRAY]Poznámka: Neexistuje automatický globální seznam serverů Mindustry. Pokud se chceš k někomu připojit pomocí adresy IP, budeš ji muset znát od hostitele.
+hostserver = Hostovat hru více hráčů
invitefriends = Pozvat přátele
-hostserver.mobile = Hostovat\nHru
+hostserver.mobile = Hostovat\nhru
host = Hostitel
hosting = [accent]Otevírám server...
hosts.refresh = Obnovit
-hosts.discovering = Hledám hry LAN
+hosts.discovering = Hledám hry v místní síti (LAN)
hosts.discovering.any = Hledám hry
-server.refreshing = Obnovuji servery
-hosts.none = [lightgray]Žádné místní hry nebyly nalezeny!
-host.invalid = [scarlet]Nejde se připojit k hostiteli.
+server.refreshing = Aktualizuji stav serverů
+hosts.none = [lightgray]Žádné místní hry nebyly nalezeny![]
+host.invalid = [scarlet]Nejde se připojit k hostiteli.[]
trace = Vystopovat hráče
-trace.playername = Jméno hráče: [accent]{0}
-trace.ip = IP: [accent]{0}
-trace.id = Unikátní ID: [accent]{0}
-trace.mobile = Mobilní klient: [accent]{0}
-trace.modclient = Vlastní Klient: [accent]{0}
-invalidid = Neplatná IP klienta! Poslat zprávu o chybě.
-server.bans = Bany.
-server.bans.none = Žádní hráči s banem nebyli nalezeni.
-server.admins = Admini
-server.admins.none = Žádní admini nebyli nalezeni.
+trace.playername = Jméno hráče: [accent]{0}[]
+trace.ip = Adresa IP: [accent]{0}[]
+trace.id = Unikátní ID: [accent]{0}[]
+trace.mobile = Mobilní klient hry: [accent]{0}[]
+trace.modclient = Upravený klient hry: [accent]{0}[]
+invalidid = Neplatná adresa IP klienta! Zašli prosím zprávu o chybě.
+server.bans = Zákazy
+server.bans.none = Žádní hráči se zákazem nebyli nalezeni.
+server.admins = Správci
+server.admins.none = Žádní správci nebyli nalezeni.
server.add = Přidat server
-server.delete = Jsi si jistý že chceš smazat tento server?
+server.delete = Jsi si jistý, že chceš smazat tento server?
server.edit = Upravit server
-server.outdated = [crimson]Zastaralý server![]
-server.outdated.client = [crimson]Zastaralý klient![]
-server.version = [lightgray]Verze: {0} {1}
-server.custombuild = [yellow]Vlastní verze
-confirmban = Jsi si jistý že chceš zabanovat tohoto hráče?
-confirmkick = Jsi si jistý že chceš vykopnout tohoto hráče?
-confirmvotekick = Jsi si jistý že chceš hlasovat pro vykopnutí tohoto hráče?
-confirmunban = Jsi si jistý že chceš odbanovat tohoto hráče
-confirmadmin = Jsi si jistý že chceš tohoto hráče pasovat na admina?
-confirmunadmin = Jsi si jistý že chceš odebrat práva tomuto hráči?
+server.outdated = [crimson]Zastaralá verze serveru![]
+server.outdated.client = [crimson]Zastaralá verze klienta![]
+server.version = [lightgray]Verze: {0} {1}[]
+server.custombuild = [yellow]Upravená verze hry[]
+confirmban = Jsi si jistý, že chceš zakázat tohoto hráče?
+confirmkick = Jsi si jistý, že chceš vykopnout tohoto hráče?
+confirmvotekick = Jsi si jistý, že chceš hlasovat pro vykopnutí tohoto hráče?
+confirmunban = Jsi si jistý, že chceš zrušit zákaz pro tohoto hráče?
+confirmadmin = Jsi si jistý, že chceš tohoto hráče povýšit na admina?
+confirmunadmin = Jsi si jistý, že chceš odebrat správcovská práva tomuto hráči?
joingame.title = Připojit se ke hře
-joingame.ip = Adresa:
-disconnect = Odpojen.
+joingame.ip = Adresa IP:
+disconnect = Odpojeno.
disconnect.error = Chyba připojení.
disconnect.closed = Připojení bylo uzavřeno.
disconnect.timeout = Vypršel čas pro připojení.
-disconnect.data = Chyba načtení dat světa!
-cantconnect = Není možno připojit se ke hře ([accent]{0}[]).
+disconnect.data = Chyba načtení dat ze serveru!
+cantconnect = Není možno se připojit ke hře ([accent]{0}[]).
connecting = [accent]Připojuji se...
-connecting.data = [accent]Načítám data světa...
+connecting.data = [accent]Načítám data ze serveru...
server.port = Port:
server.addressinuse = Adresu již někdo používá!
server.invalidport = Neplatné číslo portu!
-server.error = [crimson]Chyba při hostování serveru: [accent]{0}
-save.new = Nové uložení
-save.overwrite = Jsi si jistý že chceš přepsat\ntento ukládaci slot?
+server.error = [crimson]Chyba při hostování serveru.[]
+save.new = Nové uložení hry
+save.overwrite = Jsi si jistý, že chceš přepsat\ntuto pozici pro uložení hry?
overwrite = Přepsat
-save.none = Žádné uložené pozice nebyly nalezeny
-saveload = [accent]Ukládám...
+save.none = Žádné uložené pozice nebyly nalezeny.
+saveload = [accent]Ukládám...[]
savefail = Nepodařilo se uložit hru!
-save.delete.confirm = Jsi si jistý že chceš smazat toto uložení?
+save.delete.confirm = Jsi si jistý, že chceš smazat toto uložení hry?
save.delete = Smazat
-save.export = Exportovat uložení
-save.import.invalid = [accent]Toto uložení je neplatné!
-save.import.fail = [crimson]Nepodařilo se importovat uložení: [accent]{0}
-save.export.fail = [crimson]Nepodařilo se exportovat uložení: [accent]{0}
-save.import = Importovat uložení
+save.export = Exportovat uložení hry
+save.import.invalid = [accent]Toto uložení není v pořádku![]
+save.import.fail = [crimson]Nepodařilo se importovat uložení hry: [accent]{0}[]
+save.export.fail = [crimson]Nepodařilo se exportovat uložení hry: [accent]{0}[]
+save.import = Importovat uložení hry
save.newslot = Uložit hru:
save.rename = Přejmenovat
save.rename.text = Nové jméno:
-selectslot = Vyber uložení.
-slot = [accent]Slot {0}
+selectslot = Vyber pozici pro uložení hry.
+slot = [accent]Pozice {0}[]
editmessage = Upravit zprávu
-save.corrupted = [accent]Uložení je poškozené nebo neplatné\nPokud jsi právě aktualizoval svou hru, je to možná změnou formátu pro ukládání a [scarlet]NE[] chyba hry.
+save.corrupted = [accent]Uložení je poškozené nebo neplatné.
empty =
on = On
off = Off
save.autosave = Automatické uložení: {0}
save.map = Mapa: {0}
-save.wave = Vlna {0}
+save.wave = Vlna: {0}
save.mode = Herní mod: {0}
save.date = Naposledy uloženo: {0}
save.playtime = Herní čas: {0}
warning = Varování.
confirm = Potvrdit
delete = Smazat
-view.workshop = Prohlédnout ve workshopu
-workshop.listing = Edit Workshop Listing
+view.workshop = Prohlédnout v dílně
+workshop.listing = Upravit popis v dílně
ok = OK
open = Otevřít
-customize = Přizpůsobit
+customize = Přizpůsobit pravidla
cancel = Zrušit
-openlink = Otevřít Odkaz
-copylink = Zkopírovat Odkaz
+openlink = Otevřít odkaz
+copylink = Zkopírovat odkaz
back = Zpět
-data.export = Exportuj Data
-data.import = Importuj Data
+data.export = Exportuj data
+data.import = Importuj data
data.exported = Data exportována.
-data.invalid = Neplatná herní data.
-data.import.confirm = Import externích dat smaže[scarlet] všechna[] vaše současná herní data.\n[accent]To nelze vrátit zpět![]\n\nPo importu data se hra ukončí.
-classic.export = Exportovat klasická data
-classic.export.text = [accent]Mindustry[] právě mělo významně velkou aktualizaci.\nKlasické (v3.5 build 40) uložení nebo mapa byly detekovány. Chtěl by jsi exportovat toto uložení do domácího adresáře tvého zařízení , pro pozdější použití v klasické verzi Mindustry ?
-quit.confirm = Jsi si jistý že chceš ukončit ?
-quit.confirm.tutorial = Jste si vážně jist?\nTutoriál se dá znovu spustit v[accent] Nastavení->Hra->Spusť Tutoriál.[]
+data.invalid = Herní data nejsou v pořádku.
+data.import.confirm = Import externích dat smaže [scarlet]všechna[] Tvoje současná herní data.\n[accent]Toto nelze vrátit zpět![]\n\nPo importu dat se hra bezprostředně sama ukončí.
+classic.export = Exportovat data pro verzi Classic
+classic.export.text = [accent]Mindustry[] mělo významnou aktualizaci.\nByly detekovány uložení hry nebo mapy pro předchozí verzi Classic (v3.5 build 40). Chtěl bys exportovat tato uložení do domovského zařízení Tvého telefonu, pro pozdější použití v této verzi Mindustry Classic?
+quit.confirm = Jsi si jistý, že chceš ukončit hru?
+quit.confirm.tutorial = Jsi si jistý?\nTutoriál je možné znovu spustit v [accent]Nastavení->Hra->Zopáknout si výuku[].
loading = [accent]Načítám...
-reloading = [accent]načítám módy ...
+reloading = [accent]Načítám modifikace...
saving = [accent]Ukládám...
cancelbuilding = [accent][[{0}][] to clear plan
selectschematic = [accent][[{0}][] to select+copy
@@ -246,8 +262,8 @@ wave.waiting = [LIGHT_GRAY]Vlna za {0}
wave.waveInProgress = [LIGHT_GRAY]Vlna v pohybu
waiting = [LIGHT_GRAY]Čekám...
waiting.players = Čekání na hráče...
-wave.enemies = [LIGHT_GRAY]{0} Nepřátel zbývá
-wave.enemy = [LIGHT_GRAY]{0} Nepřítel zbývá
+wave.enemies = [LIGHT_GRAY]{0} zbývajících nepřátel
+wave.enemy = [LIGHT_GRAY]{0} zbývající nepřítel
loadimage = Nahrát obrázek
saveimage = Uložit obrázek
unknown = Neznámý
@@ -420,12 +436,12 @@ launch = Vyslat
launch.title = Vyslání úspěšné
launch.next = [LIGHT_GRAY]další možnost až ve vlně {0}
launch.unable2 = [scarlet]Není možno vyslat.[]
-launch.confirm = Toto vyšle veškeré suroviny ve tvém jádru .\nJiž se na tuto základnu nebudeš moci vrátit.
-launch.skip.confirm = Jestli teď zůstaneš, budeš moci odejít až v pozdější fázi.
+launch.confirm = Chystáš se opustit tuto základnu. Kliknutím na OK vyšleš veškeré suroviny ve tvém jádře.\nJiž se na tuto základnu nebudeš moci vrátit.
+launch.skip.confirm = Jestli teď zůstaneš, budeš moci odejít až v pozdější vlně.
uncover = Odkrýt
configure = Přizpůsobit vybavení
-bannedblocks = Banned Blocks
-addall = Add All
+bannedblocks = Zakázané bloky
+addall = Přidat vše
configure.locked = [LIGHT_GRAY]Dosáhni vlny {0}\nk nastavení svého vybavení.
configure.invalid = Hodnota musí být mezi 0 a{0}.
zone.unlocked = [LIGHT_GRAY]{0} odemčeno.
@@ -642,9 +658,9 @@ keybind.screenshot.name = Sníměk mapy
keybind.move_x.name = Pohyb na X
keybind.move_y.name = Pohyb na Y
keybind.schematic_select.name = Select Region
-keybind.schematic_menu.name = Schematic Menu
-keybind.schematic_flip_x.name = Flip Schematic X
-keybind.schematic_flip_y.name = Flip Schematic Y
+keybind.schematic_menu.name = Šablona Menu
+keybind.schematic_flip_x.name = Flip Šablona X
+keybind.schematic_flip_y.name = Flip Šablona Y
keybind.fullscreen.name = Toggle Fullscreen
keybind.select.name = Vybrat/Střílet
keybind.diagonal_placement.name = Diagonal Placement
@@ -671,18 +687,18 @@ keybind.drop_unit.name = Zahodit jednotku
keybind.zoom_minimap.name = Přiblížit minimapu
mode.help.title = Popis módů
mode.survival.name = Survival
-mode.survival.description = Normální mód .Limitované suroviny a automatické přepínání vln.
+mode.survival.description = Normální mód. Limitované suroviny a automatické přepínání vln.
mode.sandbox.name = Sandbox
mode.sandbox.description = Nekonečné zdroje a žádný čas pro vlny nepřátel.
mode.editor.name = Editor
mode.pvp.name = PvP
mode.pvp.description = Bojuj proti ostatním hráčům v lokální síti.
mode.attack.name = Útok
-mode.attack.description = Bez vln znič nepř@telsou základnu.
+mode.attack.description = Bez vln znič nepřátelskou základnu.
mode.custom = Custom Rules
rules.infiniteresources = Nekonečno surovin
rules.wavetimer = Časovač vln
-rules.waves = Wlny
+rules.waves = Vlny
rules.attack = Attack Mode
rules.enemyCheat = Infinite AI Resources
rules.unitdrops = Unit Drops
@@ -708,7 +724,7 @@ rules.title.enemy = Nepřátelé
rules.title.unit = Jednotky
content.item.name = Předměty
content.liquid.name = Tekutiny
-content.unit.name = jednotky
+content.unit.name = Jednotky
content.block.name = Blocks
content.mech.name = Mechy
item.copper.name = Měď
@@ -726,7 +742,7 @@ item.sand.name = Písek
item.blast-compound.name = Výbušná směs
item.pyratite.name = Pyratite
item.metaglass.name = Tvrzené sklo
-item.scrap.name = Scrap
+item.scrap.name = Šrot
liquid.water.name = Voda
liquid.slag.name = Rostavené železo
liquid.oil.name = Ropa
@@ -738,20 +754,20 @@ mech.delta-mech.name = Delta
mech.delta-mech.weapon = Obloukový generátor
mech.delta-mech.ability = Průtok
mech.tau-mech.name = Tau
-mech.tau-mech.weapon = Restruktní Laser
+mech.tau-mech.weapon = Restruktní laser
mech.tau-mech.ability = Opravná dávka
mech.omega-mech.name = Omega
mech.omega-mech.weapon = Rojové střely
-mech.omega-mech.ability = Obrněná Konfigurace
+mech.omega-mech.ability = Obrněná konfigurace
mech.dart-ship.name = Šipka
mech.dart-ship.weapon = Opakovač
mech.javelin-ship.name = Oštěp
-mech.javelin-ship.weapon = Dávka Raket
-mech.javelin-ship.ability = Výbojový Posilovač
+mech.javelin-ship.weapon = Dávka raket
+mech.javelin-ship.ability = Výbojový posilovač
mech.trident-ship.name = Trojzubec
mech.trident-ship.weapon = Bombová zátoka
mech.glaive-ship.name = Glaiva
-mech.glaive-ship.weapon = Plamenný Opakovač
+mech.glaive-ship.weapon = Plamenný opakovač
item.explosiveness = [LIGHT_GRAY]Výbušnost: {0}%
item.flammability = [LIGHT_GRAY]Zápalnost: {0}%
item.radioactivity = [LIGHT_GRAY]Radioaktivita: {0}%
@@ -767,34 +783,35 @@ mech.buildspeed = [LIGHT_GRAY]Rychlost stavění: {0}%
liquid.heatcapacity = [LIGHT_GRAY]Kapacita teploty: {0}
liquid.viscosity = [LIGHT_GRAY]Viskozita: {0}
liquid.temperature = [LIGHT_GRAY]Teplota: {0}
-block.sand-boulder.name = Sand Boulder
+
+block.sand-boulder.name = Balvan písku
block.grass.name = Tráva
-block.salt.name = sůl
+block.salt.name = Sůl
block.saltrocks.name = Solný kámen
-block.pebbles.name = Pebbles
+block.pebbles.name = Oblázky
block.tendrils.name = Tendrils
block.sandrocks.name = Písečný kámen
-block.spore-pine.name = Spore Pine
-block.sporerocks.name = Spore Rocks
-block.rock.name = Rock
+block.spore-pine.name = Spórová borovice
+block.sporerocks.name = Spórové kamení
+block.rock.name = Kámen
block.snowrock.name = Sněhový kámen
-block.snow-pine.name = Snow Pine
-block.shale.name = Shale
-block.shale-boulder.name = Shale Boulder
+block.snow-pine.name = Sněžná borovice
+block.shale.name = Břidlice
+block.shale-boulder.name = Břidličný balvan
block.moss.name = Mech
-block.shrubs.name = Shrubs
-block.spore-moss.name = Spore Moss
-block.shalerocks.name = Shale Rocks
+block.shrubs.name = Křoví
+block.spore-moss.name = Spórový mech
+block.shalerocks.name = Břidlicové kamení
block.scrap-wall.name = Stará zeď
block.scrap-wall-large.name = Velá stará zeď
-block.scrap-wall-huge.name = obří stará zeď
+block.scrap-wall-huge.name = Obří stará zeď
block.scrap-wall-gigantic.name = Gigantická stará zeď
block.thruster.name = Thruster
-block.kiln.name = Kiln
+block.kiln.name = Pec
block.graphite-press.name = Graphitový lis
-block.multi-press.name = Všětraný lys
-block.constructing = {0} [LIGHT_GRAY](Constructing)
-block.spawn.name = Nepřátelský Spawn
+block.multi-press.name = Všětraný lis
+block.constructing = {0} [LIGHT_GRAY](Ve výstavbě)
+block.spawn.name = Nepřátelský spawn
block.core-shard.name = Core: Shard
block.core-foundation.name = Core: Foundation
block.core-nucleus.name = Core: Nucleus
@@ -836,14 +853,14 @@ block.dark-panel-6.name = Dark Panel 6
block.dark-metal.name = Dark Metal
block.ignarock.name = Igna Rock
block.hotrock.name = Hot Rock
-block.magmarock.name = Magma Rock
-block.cliffs.name = Cliffs
+block.magmarock.name = Magmatický kámen
+block.cliffs.name = Útesy
block.copper-wall.name = Měděná zeď
block.copper-wall-large.name = Velká měděná zeď
-block.titanium-wall.name = Titanium Zeď
-block.titanium-wall-large.name = Velká Titanium Zeď
-block.plastanium-wall.name = Plastanium Zeď
-block.plastanium-wall-large.name = Velká Plastanium Zeď
+block.titanium-wall.name = Titaniová zeď
+block.titanium-wall-large.name = Velká titaniová zeď
+block.plastanium-wall.name = Plastaniová zeď
+block.plastanium-wall-large.name = Velká plastaniová zeď
block.phase-wall.name = Fázová stěna
block.phase-wall-large.name = Velká fázová stěna
block.thorium-wall.name = Thoriová stěna
@@ -857,14 +874,14 @@ block.hail.name = Hail
block.lancer.name = Lancer
block.conveyor.name = Dopravník
block.titanium-conveyor.name = Titániový dopravník
-block.armored-conveyor.name = Armored Conveyor
-block.armored-conveyor.description = Moves items at the same speed as titanium conveyors, but possesses more armor. Does not accept inputs from the sides from anything but other conveyors.
+block.armored-conveyor.name = Obrněný dopravník
+block.armored-conveyor.description = Přepravuje předměty stejně rychle jako titaniový přepravník. Je obrněný a déle vydrží, avšak nepřijímá předměty z boku z ničeho jiného než jiných přepravníků.
block.junction.name = Křižovatka
block.router.name = Směrovač
block.distributor.name = Distributor
block.sorter.name = Dělička
-block.inverted-sorter.name = Inverted Sorter
-block.message.name = Message
+block.inverted-sorter.name = Obrácená třídička
+block.message.name = Zpráva
block.overflow-gate.name = Brána přetečení
block.silicon-smelter.name = Silicon Smelter
block.phase-weaver.name = Tkalcovna pro fázovou tkaninu
@@ -911,24 +928,24 @@ block.salvo.name = Salva
block.ripple.name = Vlnění
block.phase-conveyor.name = Fázový přepravník
block.bridge-conveyor.name = Mostový přepravník
-block.plastanium-compressor.name = Kompresor na Plastanium
+block.plastanium-compressor.name = Kompresor na plastanium
block.pyratite-mixer.name = Pyratit mixér
block.blast-mixer.name = Výbušninový mixér
block.solar-panel.name = Solární panel
block.solar-panel-large.name = Velký solární panel
-block.oil-extractor.name = Ropný Extraktor
+block.oil-extractor.name = Ropný extraktor
block.command-center.name = Řídící středisko
block.draug-factory.name = Draug Miner Drone Factory
-block.spirit-factory.name = Továrna na Spirit Drony
-block.phantom-factory.name = Továrna na Fantom Drony
+block.spirit-factory.name = Továrna na Spirit drony
+block.phantom-factory.name = Továrna na Fantom drony
block.wraith-factory.name = Továrna na Wraithy
-block.ghoul-factory.name = Továrna na Ghůl Bombardéry
-block.dagger-factory.name = Továrna na Dagger Mechy
-block.crawler-factory.name = Crawler Mech Factory
-block.titan-factory.name = Továrna na Titán Mechy
-block.fortress-factory.name = Továrna na Fortress Mechy
+block.ghoul-factory.name = Továrna na Ghůl bombardéry
+block.dagger-factory.name = Továrna na Dagger mechy
+block.crawler-factory.name = Továrna na Crawler mechy
+block.titan-factory.name = Továrna na Titán mechy
+block.fortress-factory.name = Továrna na Fortress mechy
block.revenant-factory.name = Továrna na Revenanty
-block.repair-point.name = Opravný Bod
+block.repair-point.name = Opravný bod
block.pulse-conduit.name = Pulzní potrubí
block.phase-conduit.name = Fázové potrubí
block.liquid-router.name = Směrovač tekutin
@@ -936,23 +953,23 @@ block.liquid-tank.name = Nádrž na tekutiny
block.liquid-junction.name = Křižovatka tekutin
block.bridge-conduit.name = Mostové potrubí
block.rotary-pump.name = Rotační pumpa
-block.thorium-reactor.name = Thoriový Reaktor
-block.mass-driver.name = Hromadný Distributor
+block.thorium-reactor.name = Thoriový reaktor
+block.mass-driver.name = Hromadný distributor
block.blast-drill.name = Tlakovzdušný vrt
block.thermal-pump.name = Termální pumpa
-block.thermal-generator.name = Termální Generátor
+block.thermal-generator.name = Termální generátor
block.alloy-smelter.name = Slitinová pec
block.mender.name = Mender
block.mend-projector.name = Opravný projektor
block.surge-wall.name = Impulzní stěna
-block.surge-wall-large.name = Velká Impulzní stěna
+block.surge-wall-large.name = Velká impulzní stěna
block.cyclone.name = Cyklón
block.fuse.name = Fůze
block.shock-mine.name = Šoková mina
block.overdrive-projector.name = Vysokorychlostní projektor
block.force-projector.name = Silový projektor
block.arc.name = Oblouk
-block.rtg-generator.name = RTG Generátor
+block.rtg-generator.name = RTG generátor
block.spectre.name = Spektr
block.meltdown.name = Meltdown
block.container.name = Kontejnér
@@ -965,14 +982,14 @@ team.orange.name = oranžová
team.derelict.name = derelict
team.green.name = zelená
team.purple.name = fialová
-unit.spirit.name = Spirit Dron
+unit.spirit.name = Spirit dron
unit.draug.name = Draug Miner Drone
-unit.phantom.name = Fantom Dron
+unit.phantom.name = Fantom dron
unit.dagger.name = Dagger
unit.crawler.name = Crawler
unit.titan.name = Titán
-unit.ghoul.name = Ghůl Bombardér
-unit.wraith.name = Bojovník Wraith
+unit.ghoul.name = Ghůl bombardér
+unit.wraith.name = Wraith
unit.fortress.name = Pevnost
unit.revenant.name = Revenant
unit.eruptor.name = Eruptor
@@ -980,31 +997,31 @@ unit.chaos-array.name = Chaos Array
unit.eradicator.name = Eradicator
unit.lich.name = Lich
unit.reaper.name = Reaper
-tutorial.next = [lightgray]
-tutorial.intro = You have entered the[scarlet] Mindustry Tutorial.[]\nBegin by[accent] mining copper[]. Tap a copper ore vein near your core to do this.\n\n[accent]{0}/{1} copper
-tutorial.intro.mobile = You have entered the[scarlet] Mindustry Tutorial.[]\nSwipe the screen to move.\n[accent]Pinch with 2 fingers [] to zoom in and out.\nBegin by[accent] mining copper[]. Move close to it, then tap a copper ore vein near your core to do this.\n\n[accent]{0}/{1} copper
-tutorial.drill = Manuální těžba je neefektivní.\n[accent]Vrty []budou těžit automaticky.\npolož jeden na měděnou rudu.
-tutorial.drill.mobile = Mining manually is inefficient.\n[accent]Drills []can mine automatically.\nTap the drill tab in the bottom right.\nSelect the[accent] mechanical drill[].\nPlace it on a copper vein by tapping, then press the[accent] checkmark[] below to confirm your selection.\nPress the[accent] X button[] to cancel placement.
-tutorial.blockinfo = Each block has different stats. Each drill can only mine certain ores.\nTo check a block's info and stats,[accent] tap the "?" button while selecting it in the build menu.[]\n\n[accent]Access the Mechanical Drill's stats now.[]
+tutorial.next = [lightgray]
+tutorial.intro = Vítej v [scarlet] Mindustry Tutoriálu.[]\nZačni [accent] těžením mědi[] - klikni na měděnou žílu v blízkosti jádra.\n\n[accent]{0}/{1} copper
+tutorial.intro.mobile = Vítej v [scarlet] Mindustry Tutoriálu.[]\nPohybuj se táhnutím do stran.\nPřibližuj a oddaluj [accent]2 prsty [].\nZačni [accent] těžením mědi[] - přibliž se k měděné žíle v blízkosti jádra a klepni na ni.\n\n[accent]{0}/{1} mědi
+tutorial.drill = Manuální těžba je neefektivní.\n[accent]Vrty []budou těžit automaticky.\nPostav jeden na měděnou rudu.
+tutorial.drill.mobile = Manuální těžba je neefektivní.\n[accent]Vrty []budou těžit automaticky.\nKlepni na vrt v záložce dole vpravo.\nVyber [accent] mechanický vrt[].\nPolož ho klepnutím na měděnou žílu a následně potvrď [accent] fajfkou[] níže.\nStiskni [accent] X [] pro zrušení stavby.
+tutorial.blockinfo = Každý blok má jiné vlastnosti. Každý vrt může těžit pouze některé suroviny.\nNa tyto vlastnosti se můžeš podívat [accent] klepnutím na "?" ve stavebním menu.[]\n\n[accent] Nyní se podívej na vlastnosti mechanického vrtu.[]
tutorial.conveyor = [accent]Dopravníky[] jsou zapotřebí k dopravě materiálu k jádru.\nVytvoř řadu dopravníku od vrtu až k jádru.
-tutorial.conveyor.mobile = [accent]Conveyors[] are used to transport items to the core.\nMake a line of conveyors from the drill to the core.\n[accent] Place in a line by holding down your finger for a few seconds[] and dragging in a direction.\n\n[accent]{0}/{1} conveyors placed in line\n[accent]0/1 items delivered
+tutorial.conveyor.mobile = [accent]Dopravníky[] jsou zapotřebí k dopravě materiálu k jádru.\nVytvoř řadu dopravníku od vrtu až k jádru.\n[accent] Pokládej dopravníky v řadě dlouhým stiskem prstu[] a táhnutím v požadovaném směru.\n\n[accent]{0}/{1} přepravníků položeno v řadě\n[accent]0/1 předmětů doručeno
tutorial.turret = Defenzivní stavby musí být postaveny za účelem obrany vůči[LIGHT_GRAY] nepříteli[].\nPostav střílnu Duo blízko svého jádra.
-tutorial.drillturret = Duo střílny požadují[accent] měd jako střelivo []ke střelbě.\nPolož vrt blízko střílny pro zásobování mědí.
-tutorial.pause = During battle, you are able to[accent] pause the game.[]\nYou may queue buildings while paused.\n\n[accent]Press space to pause.
-tutorial.pause.mobile = During battle, you are able to[accent] pause the game.[]\nYou may queue buildings while paused.\n\n[accent]Press this button in the top left to pause.
-tutorial.unpause = Now press space again to unpause.
-tutorial.unpause.mobile = Now press it again to unpause.
-tutorial.breaking = Blocks frequently need to be destroyed.\n[accent]Hold down right-click[] to destroy all blocks in a selection.[]\n\n[accent]Destroy all the scrap blocks to the left of your core using area selection.
-tutorial.breaking.mobile = Blocks frequently need to be destroyed.\n[accent]Select deconstruction mode[], then tap a block to begin breaking it.\nDestroy an area by holding down your finger for a few seconds[] and dragging in a direction.\nPress the checkmark button to confirm breaking.\n\n[accent]Destroy all the scrap blocks to the left of your core using area selection.
-tutorial.withdraw = In some situations, taking items directly from blocks is necessary.\nTo do this, [accent]tap a block[] with items in it, then [accent]tap the item[] in the inventory.\nMultiple items can be withdrawn by [accent]tapping and holding[].\n\n[accent]Withdraw some copper from the core.[]
-tutorial.deposit = Deposit items into blocks by dragging from your ship to the destination block.\n\n[accent]Deposit your copper back into the core.[]
-tutorial.waves = [LIGHT_GRAY] nepřítel[] je přibližuje.\n\nBraň své jádro po dobu dvou vln, postav více střílen.
-tutorial.waves.mobile = The[lightgray] enemy[] approaches.\n\nDefend the core for 2 waves. Your ship will automatically fire at enemies.\nBuild more turrets and drills. Mine more copper.
-tutorial.launch = Once you reach a specific wave, you are able to[accent] launch the core[], leaving your defenses behind and[accent] obtaining all the resources in your core.[]\nThese resources can then be used to research new technology.\n\n[accent]Press the launch button.
+tutorial.drillturret = Duo střílny požadují[accent] měděnou munici []jako střelivo.\nPolož mechanický vrt blízko střílny pro zásobování mědí.
+tutorial.pause = Během boje můžeš[accent] pauznout hru.[]\nBěhem pauzy je možné plánovat stavbu budov.\n\n[accent]Pauzni mezerníkem.
+tutorial.pause.mobile = Během boje můžeš[accent] pauznout hru.[]\nBěhem pauzy je možné plánovat stavbu budov.\n\n[accent]Pauzu dáš tímhle tlačítkem vlevo nahoře.
+tutorial.unpause = Teď zmáčkni mezerník znova a odpauzuj hru.
+tutorial.unpause.mobile = Teď ho zmáčkni znova a odpauzuj hru.
+tutorial.breaking = Často je nutné bloky i ničit.\n[accent]Drž pravé tlačítko[] a táhni pro výběr oblasti bloků ke zničení.[]\n\n[accent]Znič všechny bloky šrotu vlevo od tvého jádra.
+tutorial.breaking.mobile = Často je nutné bloky i ničit.\n[accent]Vyber rozebírací mód[] a klepni na blok, který chceš zničit.\nZnič celou oblast delším stiskem prstu[] a táhnutím v nějakém směru.\nZmáčkni fajfku pro potvrzení zničení.\n\n[accent]Znič všechny bloky šrotu vlevo od tvého jádra.
+tutorial.withdraw = Někdy je třeba odebírat předměty přímo z bloků.\n[accent]Klikni na blok[], ve kterém jsou předměty a pak [accent]klikni na předmět[] z jeho inventáře.\nVícero předmětů může být odebráno [accent]kliknutím a držením[].\n\n[accent]Odeber nějakou měď z jádra.[]
+tutorial.deposit = Vložit předměty dovnitř bloku můžeš přetažením z tvé lodi na cílový blok.\n\n[accent]Vlož svou měď zpět do jádra.[]
+tutorial.waves = [LIGHT_GRAY] Nepřítel[] se přibližuje.\n\nUbraň své jádro po dobu 2 vln, postav více střílen.
+tutorial.waves.mobile = [lightgray] Nepřítel[] se přibližuje.\n\nUbraň své jádro po dobu 2 vln. Tvá loď bude automaticky střílet po nepřátelských jednotkách.\nPostav více střílen a vrtů. Natěž více mědi.
+tutorial.launch = Jakmile dosáhneš určité vlny, budeš moci[accent] vyslat jádro[]. Opustíš tím svou základnu a[accent] získáš suroviny uložené v jádře.[]\nZískané suroviny mohou být použity pro výzkum nových technologií.\n\n[accent]Stiskni tlačítko vyslat jádro.
item.copper.description = Užitečný strukturální materiál. Používá se rozsáhle v ostatních typech bloků.
item.lead.description = Základní počáteční materiál. Požívá se rozsáhle v elektronice a v blocích pro transport tekutin.
-item.metaglass.description = Vemi důležitá suočást všeho so se týká tekutin
-item.graphite.description = Stlačený uhlík nedílná součást většiny infrastruktur
+item.metaglass.description = Vemi důležitá součást všeho co se týká tekutin
+item.graphite.description = Stlačený uhlík, používaný jako munice a v elektronických komponentách.
item.sand.description = Běžný materiál rozšířeně používaný v spalování slitin.
item.coal.description = Běžné a snadno dostupné palivo, pochází z Ostravy.
item.titanium.description = Vzácný, velice lehký kov, používá se rozsáhle v trasportu tekutin, vrtech a letounech.
@@ -1022,29 +1039,29 @@ liquid.slag.description = Rostavený scrap pou žívá se k vírobě olova mědi
liquid.oil.description = Může být spálen, vybouchnout nebo použit jako chlazení.
liquid.cryofluid.description = Nejefektivnější tekutina pro chlazení.
mech.alpha-mech.description = Standartní mech. Má slušnou rychlost a poškození; Může vytvořit až 3 drony Pro zvýšenou ofenzivní způsobilost.
-mech.delta-mech.description = Rychlý, Lehce obrněný mech vytvořený pro udeř a uteč akce. Působí malé poškození vůči struktůrám, ale může zneškodnit velkou skupinu nepřátelských jednotek velmi rychle svýmy elektro-obloukovými zbraněmi
+mech.delta-mech.description = Rychlý, lehce obrněný mech vytvořený pro udeř a uteč akce. Působí malé poškození vůči struktůrám, ale může zneškodnit velkou skupinu nepřátelských jednotek velmi rychle svýmy elektro-obloukovými zbraněmi
mech.tau-mech.description = Podpůrný mech. Léčí spojenecké stavby a jednotky střelbou do nich. Může léčit i spojence ve svém poli působení.
mech.omega-mech.description = Objemný a velice dovře obrněný mech, určen pro útok v přední linii. Jeho schopnost obrnění blokuje až 90% příchozího poškození.
-mech.dart-ship.description = Standartní loď. Poměrně rychlý a lehký, má malou ofenzívu a pomalou rychlost těžení.
+mech.dart-ship.description = Standartní loď. Poměrně rychlá a lehká, má malou ofenzívu a pomalou rychlost těžení.
mech.javelin-ship.description = Loď stylu udeř a uteč. Zpočátku pomalý ale umí akcelerovat do obrovské rychlosti a létat u nepřátelských základen a působit značné škody svými elektrickými zbraněmi a raketami.
mech.trident-ship.description = Těžký bombardér. Docela dobře obrněný.
-mech.glaive-ship.description = Obrovská, Dobře obrněná střelecká loď. Vybavena zápalným opakovačem. Dobrá akcelerace a maximální rychlost.
-unit.draug.description = A primitive mining drone. Cheap to produce. Expendable. Automatically mines copper and lead in the vicinity. Delivers mined resources to the closest core.
+mech.glaive-ship.description = Obrovská, dobře obrněná střelecká loď. Vybavena zápalným opakovačem. Dobrá akcelerace a maximální rychlost.
+unit.draug.description = Jednoduchý těžící dron. Levný a postradatelný. Automaticky těží měď a olovo v blízkosti. Natěžené suroviny donese do nejbližšího jádra.
unit.spirit.description = Startovní dron. Standartně se objevuje u jádra. Automaticky těží rudy a opravuje stavby.
unit.phantom.description = Pokročilý dron. Automaticky těží rudy a opravuje stavby. Podstatně víc efektivní než Spirit dron.
unit.dagger.description = Základní pozemní jednotka. Efektivní ve velkém počtu.
-unit.crawler.description = A ground unit consisting of a stripped-down frame with high explosives strapped on top. Not particular durable. Explodes on contact with enemies.
+unit.crawler.description = Pozemní jednotka zkonstruovaná z okřesané železné kostry a připlácnutých výbušnin. Vydrží málo a exploduje při kontaktu.
unit.titan.description = Pokročilá, obrněná pozemní jednotka. Útočí jak na pozemní tak vzdušné nepřátelské jednotky.
unit.fortress.description = Težká, pozemní artilérní jednotka.
-unit.eruptor.description = A heavy mech designed to take down structures. Fires a stream of slag at enemy fortifications, melting them and setting volatiles on fire.
+unit.eruptor.description = Těžký protibudovní mech. Střílí proud žhavé kapaliny na nepřátelské budovy. Zapaluje a roztavuje vše v cestě.
unit.wraith.description = Rychlý, udeř a uteč stíhací letoun.
unit.ghoul.description = Těžký, kobercový bombardér.
unit.revenant.description = A heavy, hovering missile array.
-block.message.description = Stores a message. Used for communication between allies.
-block.graphite-press.description = Compresses chunks of coal into pure sheets of graphite.
-block.multi-press.description = An upgraded version of the graphite press. Employs water and power to process coal quickly and efficiently.
+block.message.description = Ukládá zprávu. Používá se pro komunikaci mezi spojenci.
+block.graphite-press.description = Přeměňuje neforemné kusy uhlí do ušlechtilých výlisků graphitu.
+block.multi-press.description = Vylepšená verze graphitového lisu. Využívá vodu a energii k rychlejšímu a efektivnějšímu zpracování uhlí.
block.silicon-smelter.description = Redukuje písek s vysoce čistým koksem za účelem výroby křemíku.
-block.kiln.description = Smelts sand and lead into metaglass. Requires small amounts of power.
+block.kiln.description = Přetavuje písek a olovo do metaskla. Vyžaduje malé množství energie.
block.plastanium-compressor.description = Produkuje plastánium za pomocí titánia a ropy.
block.phase-weaver.description = Produkuje fázovou tkaninu z radioaktivního thoria a velkého množství písku.
block.alloy-smelter.description = Produkuje impulzní slitinu z titánia, olova, křemíku a mědi.
@@ -1053,7 +1070,7 @@ block.blast-mixer.description = Používá ropu k přeměně pyratitu do méně
block.pyratite-mixer.description = Míchá uhlí, olovo a písek do velice hořlavého pyratitu.
block.melter.description = Taví kámen při velice vysokých teplotách na lávu.
block.separator.description = Vystaví kámen velkému tlaku vody k získání různých materiálů obsažené v kameni.
-block.spore-press.description = Compresses spore pods into oil.
+block.spore-press.description = Vylisuje ze spórů ropu.
block.pulverizer.description = Drtí kámen na písek. Užitečné když se v oblasti nenalézá písek.
block.coal-centrifuge.description = Solidifes oil into chunks of coal.
block.incinerator.description = Zbaví tě přebytku předmětů.
@@ -1064,10 +1081,10 @@ block.item-void.description = Likviduje jakéhokoliv vstupní předmět bež pou
block.liquid-source.description = Nekonečný zdroj tekutin. Jen pro Sandbox.
block.copper-wall.description = Levný defenzivní blok.\nUžitečný k obraně tvého jádra a střílen v prvotních vlnách nepřátel.
block.copper-wall-large.description = Levný defenzivní blok.\nUžitečný k obraně tvého jádra a střílen v prvotních vlnách nepřátel.\nZabírá více polí.
-block.titanium-wall.description = A moderately strong defensive block.\nProvides moderate protection from enemies.
-block.titanium-wall-large.description = A moderately strong defensive block.\nProvides moderate protection from enemies.\nSpans multiple tiles.
-block.plastanium-wall.description = A special type of wall that absorbs electric arcs and blocks automatic power node connections.
-block.plastanium-wall-large.description = A special type of wall that absorbs electric arcs and blocks automatic power node connections.\nSpans multiple tiles.
+block.titanium-wall.description = Středně dobrý obranný blok.\nPoskytuje středně dobrou obranu proti nepřátelům.
+block.titanium-wall-large.description = Středně dobrý obranný blok.\nPoskytuje středně dobrou obranu proti nepřátelům.\nZabírá více polí.
+block.plastanium-wall.description = Speciální typ zdi, která je schopná absorbovat elektrické oblouky a blokuje energetické připojení.
+block.plastanium-wall-large.description = Speciální typ zdi, která je schopná absorbovat elektrické oblouky a blokuje energetické připojení.\nZabírá více polí.
block.thorium-wall.description = Sílný defenzivní blok.\nDobrá obrana vůči nepřátelům.
block.thorium-wall-large.description = Sílný defenzivní blok.\nDobrá obrana vůči nepřátelům..\nZabírá více polí.
block.phase-wall.description = Né tak silná jako zeď Thoria ale odráží nepřátelské projektily dokud nejsou moc silné.
@@ -1076,7 +1093,7 @@ block.surge-wall.description = Nejsilnější defenzivní blok.\nMá malou šanc
block.surge-wall-large.description = Nejsilnější defenzivní blok.\nMá malou šanci vystřelit elektrický paprsek vůči útočníkovi.\nZabírá více polí.
block.door.description = Malé dveře, které se dají otevřít nebo zavřít kliknutím na ně.\nKdyž otevřené nepřátelé mohou střílet a dostat se skrz.
block.door-large.description = Velké dveře, které se dají otevřít nebo zavřít kliknutím na ně.\nKdyž otevřené nepřátelé mohou střílet a dostat se skrz.\nZabírá více polí.
-block.mender.description = Periodically repairs blocks in its vicinity. Keeps defenses repaired in-between waves.\nOptionally uses silicon to boost range and efficiency.
+block.mender.description = Pravidelně opravuje bloky ve svém okolí. Mezi vlnami opraví zátarasy.\nVolitelně lze využít křemíku pro posílení dosahu a efektivity.
block.mend-projector.description = Kontinuálně léčí bloky v poli svého působení.
block.overdrive-projector.description = Zrychluje funkce blízkých struktůr jako jsou vrty a dopravníky.
block.force-projector.description = Vytvoří okolo sebe šestihrané silové pole, chrání jednotky a budovy uvnitř sebe vůči střelám.
@@ -1104,13 +1121,13 @@ block.bridge-conduit.description = Pokročilý blok přepravy tekutin. Dovoluje
block.phase-conduit.description = Pokročilý blok přepravy tekutin. Používá energii k teleportu tekutin do druhého bodu přez několik polí.
block.power-node.description = Vysílá energii mezi propojenými uzly. Dokáže se propojit až se čtyřmi uzly či stavbami najednou. Uzel bude dostávat zásobu energie a bude ji distribuovat mezi připojené bloky.
block.power-node-large.description = Má větší dosah než standartní energetický uzel and a dokáže propojit až 6 staveb nebo uzly.
-block.surge-tower.description = An extremely long-range power node with fewer available connections.
+block.surge-tower.description = Energetický uzel s extrémním dosahem, ale méně dostupnými přípojkami.
block.battery.description = Ukládá energii kdykoliv kdy je nadbytek ,poskytuje energii kdykolik když je pokles energie v síti, tak dlouho doku zbývá kapacita.
block.battery-large.description = Uloží více energie než standartní baterie.
block.combustion-generator.description = Generuje energii spalováním ropy nebo jinných hořlavých materiálů.
block.thermal-generator.description = Generuje obrovské množství energie z lávy.
block.turbine-generator.description = Více efektivní než spalovací generátor, ale vyžaduje dodatečný přísun vody.
-block.differential-generator.description = Generates large amounts of energy. Utilizes the temperature difference between cryofluid and burning pyratite.
+block.differential-generator.description = Generuje velké množství energie. Využívá teplotního rozdílu mezi chladící kapalinou a hořícím pyratitem.
block.rtg-generator.description = Rádioizotopní Termoelektrický Generátor nevyžaduje chlazení, za to generuje méně energie než Thoriový generátor.
block.solar-panel.description = Poskytuje malé množství energie ze slunce.
block.solar-panel-large.description = Poskytuje mnohem lepší zdroj energie než standartní solární panel, za to je mnohem nákladnější na stavbu.
@@ -1123,17 +1140,17 @@ block.blast-drill.description = Ultimátní vrt, vyžaduje velké množství ene
block.water-extractor.description = Extrahuje vodu ze země. Vhodný k použití když se v oblasti nenachází zdroj vody.
block.cultivator.description = Kultivuje půdu vodou za účelem získání biohmoty.
block.oil-extractor.description = Vyžaduje velké množství energie na extrakci ropy z písku. Použíj ho když se v oblasti nenachází žádný zdroj ropy.
-block.core-shard.description = The first iteration of the core capsule. Once destroyed, all contact to the region is lost. Do not let this happen.
-block.core-foundation.description = The second version of the core. Better armored. Stores more resources.
-block.core-nucleus.description = The third and final iteration of the core capsule. Extremely well armored. Stores massive amounts of resources.
-block.vault.description = Ukládá velké množství předmětů každého typu. Připojené kontejnéry, trezory nebo jádra se budou chovat jako samostatné skladovací jednotky. [LIGHT_GRAY] Odbavovač[] lže použít pro odbavení předmětů z trezoru.
+block.core-shard.description = První verze jádra. V případě, že je zničeno, veškerý kontakt s regionem je ztracen. Nedopusťte aby se to stalo.
+block.core-foundation.description = Druhá, lépe obrněná verze jádra. Pojme více surovin.
+block.core-nucleus.description = Třetí a finální iterace vývoje jádra. Extrémně obrněná, extrémně prostorná.
+block.vault.description = Ukládá velké množství předmětů každého typu. Připojené kontejnéry, trezory nebo jádra se budou chovat jako samostatné skladovací jednotky. [LIGHT_GRAY] Odbavovač[] lze použít pro odbavení předmětů z trezoru.
block.container.description = Ukládá malé množství předmětů každého typu. Připojené kontejnéry, trezory nebo jádra se budou chovat jako samostatné skladovací jednotky. [LIGHT_GRAY] Odbavovač[] lze použít pro odbavení předmětů z kontejnéru.
-block.unloader.description = Vykládá předměty z kontejnéru, trezoru nebo jádra na dopravník nebo přímo do produktivních bloků. Druh předmětu pro vykládání lze měti kliknutím na odbavovač.
-block.launch-pad.description = Launches batches of items without any need for a core launch. Unfinished.
-block.launch-pad-large.description = An improved version of the launch pad. Stores more items. Launches more frequently.
+block.unloader.description = Vykládá předměty z kontejnéru, trezoru nebo jádra na dopravník nebo přímo do produktivních bloků. Druh předmětu pro vykládání lze změnit kliknutím na odbavovač.
+block.launch-pad.description = Posílá dávky předmětů do vesmíru bez nutnosti vysílat jádro. Nedokončený.
+block.launch-pad-large.description = Vylepšený Launch Pad. Větší úložný prostor, častěji vysílán do vesmíru.
block.duo.description = Malá, levná střílna.
-block.scatter.description = A medium-sized anti-air turret. Sprays clumps of lead or scrap flak at enemy units.
-block.scorch.description = Burns any ground enemies close to it. Highly effective at close range.
+block.scatter.description = Protivzdušná střílna střední velikosti. Střílí hrstky olova nebo šrotu.
+block.scorch.description = Spálí nepřátele v blízkosti na prach. Velmi efektivní na malé vzdálenosti.
block.hail.description = Malá artilérní střílna.
block.wave.description = Středně vělká, rychle pálící střílna, která střílí krystalizované bubliny.
block.lancer.description = Středně velká střílna, která střílí nabité elektrické paprsky.
@@ -1145,22 +1162,22 @@ block.ripple.description = Velká artilérní střílna, která vystřelí něko
block.cyclone.description = Velká rychle pálící střílna.
block.spectre.description = Velká střílna, která vystřelí dva mocné projektily naráz.
block.meltdown.description = Velká střílna, která vystřelí mocný paprsek dalekého dosahu.
-block.command-center.description = Issues movement commands to allied units across the map.\nCauses units to patrol, attack an enemy core or retreat to the core/factory. When no enemy core is present, units will default to patrolling under the attack command.
-block.draug-factory.description = Produces Draug mining drones.
+block.command-center.description = Umožňuje zadávat příkazy k pohybu spojeneckých jednotek po mapě.\nUmožňuje výběr mezi patrolováním, útokem na nepřítele, či návratem k jádru nebo továrně. Pokud se na mapě nenachází nepřátelské jádro, jednotky budou patrolovat v útočném režimu.
+block.draug-factory.description = Produkuje těžící Draug drony.
block.spirit-factory.description = Produkuje lehké drony, kteří teží minerály a opravují budovy
block.phantom-factory.description = Produkuje pokročilé drony kteří jsou podstatně efektivnější jak spirit droni.
block.wraith-factory.description = Produkuje rychlé, udeř a uteč stíhače.
block.ghoul-factory.description = Produkuje těžké kobercové bombardéry.
block.revenant-factory.description = Produkuje vzdušné, težké laserové stíhače..
-block.dagger-factory.description = Produkuje standartní pozemní jednotky.
+block.dagger-factory.description = Produkuje standardní pozemní jednotky.
block.crawler-factory.description = Produces fast self-destructing swarm units.
block.titan-factory.description = Produkuje pokročilé, orněné pozemní jednotky.
block.fortress-factory.description = Produkuje těžké artilérní, pozmení jednotky.
block.repair-point.description = Kontinuálně léčí nejbližší budovy a jednotky.
-block.dart-mech-pad.description = Provides transformation into a basic attack mech.\nUse by tapping while standing on it.
-block.delta-mech-pad.description = Zanech zde své aktuální plavidlo a změn ho na rychlého, lehce obrněného mecha určeného pro udeř a uteč operace.\nPoužíj ho poklikáním když se nacházíš nad ním.
-block.tau-mech-pad.description = Zanech zde své aktuální plavidlo a změn ho na na podpůrného mecha, který léčí spojenecké budovy a jednotky.\nPoužíj ho poklikáním když se nacházíš nad ním.
-block.omega-mech-pad.description = Zanech zde své aktuální plavidlo a změn ho na objemného dobře obrněného mecha, určeného pro útok v přední linii.\nPoužíj ho poklikáním když se nacházíš nad ním.
-block.javelin-ship-pad.description = Zanech zde své aktuální plavidlo a změn ho na silný a rychlý stíhač s bleskovými zbraněmi.\nPoužíj ho poklikáním když se nacházíš nad ním.
-block.trident-ship-pad.description = Zanech zde své aktuální plavidlo a změň ho do docela dobře obrněného těžkého bombardéru.\nPoužíj ho poklikáním když se nacházíš nad ním.
-block.glaive-ship-pad.description = Zanech zde své aktuální plavidlo a změn ho na velkou, dobře obrněnou střeleckou loď.\nPoužíj ho poklikáním když se nacházíš nad ním.
+block.dart-mech-pad.description = Zanech zde své aktuální plavidlo a vyměň ho za základního útočného mecha.\nAktivuj kliknutím, když se nacházíš nad platformou.
+block.delta-mech-pad.description = Zanech zde své aktuální plavidlo a vyměň ho za rychlého, lehce obrněného mecha určeného pro udeř a uteč operace.\nAktivuj kliknutím, když se nacházíš nad platformou.
+block.tau-mech-pad.description = Zanech zde své aktuální plavidlo a vyměň ho za na podpůrného mecha, který léčí spojenecké budovy a jednotky.\nAktivuj kliknutím, když se nacházíš nad platformou.
+block.omega-mech-pad.description = Zanech zde své aktuální plavidlo a vyměň ho za objemného dobře obrněného mecha, určeného pro útok v přední linii.\nAktivuj kliknutím, když se nacházíš nad platformou.
+block.javelin-ship-pad.description = Zanech zde své aktuální plavidlo a vyměň ho za silný a rychlý stíhač s bleskovými zbraněmi.\nAktivuj kliknutím, když se nacházíš nad platformou.
+block.trident-ship-pad.description = Zanech zde své aktuální plavidlo a vyměň ho za docela dobře obrněného těžkého bombardéru.\nAktivuj kliknutím, když se nacházíš nad platformou.
+block.glaive-ship-pad.description = Zanech zde své aktuální plavidlo a vyměň ho za velkou, dobře obrněnou střeleckou loď.\nAktivuj kliknutím, když se nacházíš nad platformou.
diff --git a/core/assets/bundles/bundle_it.properties b/core/assets/bundles/bundle_it.properties
index 75351ad9a8..ef97566b90 100644
--- a/core/assets/bundles/bundle_it.properties
+++ b/core/assets/bundles/bundle_it.properties
@@ -12,11 +12,12 @@ link.itch.io.description = Pagina di itch.io con download per PC e versione web
link.google-play.description = Elenco di Google Play Store
link.f-droid.description = Catalogo F-Droid
link.wiki.description = Wiki ufficiale di Mindustry
+link.feathub.description = Suggerisci nuove funzionalità
linkfail = Impossibile aprire il link! L'URL è stato copiato.
screenshot = Screenshot salvato a {0}
-screenshot.invalid = Mappa troppo grossa, probabilmente non c'è abbastanza memoria libera.
+screenshot.invalid = Mappa troppo pesante, probabilmente non c'è abbastanza spazio sul disco.
gameover = Il Nucleo è stato distrutto.
-gameover.pvp = La squadra [accent] {0}[] ha vinto!
+gameover.pvp = La squadra[accent] {0}[] ha vinto!
highscore = [YELLOW]Nuovo record!
copied = Copiato.
@@ -26,7 +27,7 @@ load.image = Immagini
load.content = Contenuti
load.system = Sistema
load.mod = Mods
-load.scripts = Testi
+load.scripts = Scripts
schematic = Schematica
schematic.add = Salva Schematica...
@@ -54,7 +55,7 @@ stat.delivered = Riorse lanciate:
stat.rank = Livello finale: [accent]{0}
launcheditems = [accent]Oggetti Lanciati
-launchinfo = [unlaunched][[LAUNCH] il tuo Nucleo per ottenere gli oggetti indicati in blu.
+launchinfo = [unlaunched][LANCIA] il tuo Nucleo per ottenere gli oggetti indicati in blu.
map.delete = Sei sicuro di voler eliminare la mappa"[accent]{0}[]"?
level.highscore = Miglior Punteggio: [accent]{0}
level.select = Selezione del Livello
@@ -68,7 +69,7 @@ loadgame = Carica
joingame = Unisciti al Gioco
customgame = Gioco Personalizzato
newgame = Nuova partita
-none =
+none = < niente >
minimap = Minimappa
position = Posizione
close = Chiuso
@@ -88,30 +89,32 @@ committingchanges = Applico le modifiche
done = Fatto
feature.unsupported = Il tuo dispositivo non supporta questa funzione.
-mods.alphainfo = Tieni a mente che queste Mod sono in alpha, e[scarlet] possono contenere molti bug[].\Segnala tutti i problemi che trovi su GitHub o Discord di Mindustry.
+mods.alphainfo = Tieni a mente che queste mods sono in alpha, e[scarlet] possono contenere molti bug[].\Segnala tutti i problemi che trovi su GitHub o Discord di Mindustry.
mods.alpha = [accent](Alpha)
mods = Mods
-mods.none = [LIGHT_GRAY]Nessuna Mod trovata!
+mods.none = [LIGHT_GRAY]Nessuna mod trovata!
mods.guide = Guida per il modding!
mods.report = Segnala un Bug
-mods.openfolder = Apri Cartella Mod
+mods.openfolder = Apri Cartella Mods
mod.enabled = [lightgray]Abilitato
mod.disabled = [scarlet]Disabilitato
mod.disable = Disabilita
-mod.delete.error = Impossibile eliminare questa Mod. Il file potrebbe essere in uso.
+mod.delete.error = Impossibile eliminare questa mod. Il file potrebbe essere in uso.
+mod.requiresversion = [scarlet]Versione minima richiesta: [accent]{0}
mod.missingdependencies = [scarlet]Dipendenze mancanti: {0}
-mod.nowdisabled = [scarlet]Alla Mod '{0}' mancano delle dipendenze:[accent] {1}\n[lightgray]Queste Mod devono essere scaricate prima.\nQuesta Mod verrà disabilitata automaticamente.
+mod.nowdisabled = [scarlet]Alla mod '{0}' mancano delle dipendenze:[accent] {1}\n[lightgray]Queste mods devono essere scaricate prima.\nQuesta mod verrà disabilitata automaticamente.
mod.enable = Abilita
mod.requiresrestart = Il gioco verrà chiuso per applicare i cambiamenti.
mod.reloadrequired = [scarlet]Riavvio necessario
-mod.import = Importa una Mod
-mod.import.github = Importa una Mod da GitHub
-mod.item.remove = Questo item fa parte della Mod[accent] '{0}'[]. Per rimuoverlo, disinstalla questa Mod.
-mod.remove.confirm = Questa Mod verrà eliminata.
+mod.import = Importa una mod
+mod.import.github = Importa una mod da GitHub
+mod.item.remove = Questo item fa parte della mod[accent] '{0}'[]. Per rimuoverlo, disinstalla questa mod.
+mod.remove.confirm = Questa mod verrà eliminata.
mod.author = [LIGHT_GRAY]Autore:[] {0}
-mod.missing = Questo salvataggio contiene Mod che hai recentemente aggiornato o non hai più installate. Il salvataggio potrebbe corrompersi. Sei sicuro di volerlo caricare?\n[lightgray]Mods:\n{0}
-mod.preview.missing = Prima di pubblicare questa Mod nel Workshop, devi aggiungere un immagine di copertina.\nMetti un immagine[accent] con nome preview.png[] nella cartella della Mod e riprova.
-mod.folder.missing = Solo le Mod in una cartella possono essere pubblicate nel Workshop.\nPer convertire una Mod in una cartella, decomprimi i suoi file in una cartella ed elimina il vecchio zip, quindi riavvia il gioco o ricarica le tue mods.
+mod.missing = Questo salvataggio contiene delle mods che hai recentemente aggiornato o non hai più installate. Il salvataggio potrebbe corrompersi. Sei sicuro di volerlo caricare?\n[lightgray]Mods:\n{0}
+mod.preview.missing = Prima di pubblicare questa mod nel Workshop, devi aggiungere un immagine di copertina.\nMetti un immagine[accent] con nome preview.png[] nella cartella della mods e riprova.
+mod.folder.missing = Solo le mods in una cartella possono essere pubblicate nel Workshop.\nPer convertire una mod in una cartella, decomprimi i suoi file in una cartella ed elimina il vecchio zip, quindi riavvia il gioco o ricarica le tue mods.
+mod.scripts.unsupported = Il tuo dispositivo non supporta gli script per le mods. Alcune mods non funzioneranno correttamente.
about.button = Info
name = Nome:
@@ -142,12 +145,12 @@ server.kicked.idInUse = Sei già su questo server! Non è permesso connettersi c
server.kicked.customClient = Questo server non supporta i client personalizzati. Scarica la versione ufficiale dal sito.
server.kicked.gameover = Game over!
server.versions = Your version:[accent] {0}[]\nVersione server:[accent] {1}[]
-host.info = Il pulsante [accent]host [] ospita un server sulla porta [scarlet]6567[].[] Chiunque sulla stessa [LIGHT_GRAY]rete wifi o locale[] dovrebbe essere in grado di vedere il server nell'elenco server.\n\n Se vuoi che le persone siano in grado di connettersi ovunque tramite il tuo IP, è richiesto il [accent]port forwarding[]. \n\n[LIGHT_GRAY]Nota: se qualcuno sta riscontrando problemi durante la connessione al gioco LAN, assicurati di aver consentito a Mindustry di accedere alla rete locale nelle impostazioni del firewall.
-join.info = Qui è possibile inserire l'[accent]IP del server[] a cui connettersi, o scoprire [accent]un server sulla rete locale[] disponibile.\nSono supportati sia il multiplayer LAN che WAN. \n\n[LIGHT_GRAY]Nota: non esiste un elenco automatico dei server globali; se desideri connetterti a qualcuno tramite il suo IP, è necessario chiedere all'host il proprio IP.
+host.info = Il pulsante [accent]host[] ospita un server sulla porta [scarlet]6567[].[] Chiunque sulla stessa [LIGHT_GRAY]rete wifi o locale[] dovrebbe essere in grado di vedere il server nell'elenco server.\nSe vuoi che le persone siano in grado di connettersi ovunque tramite il tuo IP, è richiesto il [accent]port forwarding[].\n\n[LIGHT_GRAY]Nota: se qualcuno sta riscontrando problemi durante la connessione al gioco LAN, assicurati di aver consentito a Mindustry di accedere alla rete locale nelle impostazioni del firewall.
+join.info = Qui è possibile inserire l'[accent]IP del server[] a cui connettersi, o scoprire [accent]un server sulla rete locale[] disponibile.\nSono supportati sia il multiplayer LAN che WAN.\n\n[LIGHT_GRAY]Nota: non esiste un elenco automatico dei server globali; se desideri connetterti a qualcuno tramite il suo IP, è necessario chiedere all'host il proprio IP.
hostserver = Ospita Server
invitefriends = Invita amici
hostserver.mobile = Ospita\nServer
-host = Host
+host = Ospita
hosting = [accent] Apertura del server...
hosts.refresh = Aggiorna
hosts.discovering = Ricerca partite LAN
@@ -213,7 +216,7 @@ selectslot = Seleziona un salvataggio.
slot = [accent]Slot {0}
editmessage = Modifica Messaggio
save.corrupted = [orang]Salvataggio corrotto o non valido!
-empty =
+empty = < vuoto >
on = On
off = Off
save.autosave = Salvataggio Automatico: {0}
@@ -280,7 +283,7 @@ publishing = [accent]Pubblicazione...
publish.confirm = Are you sure you want to publish this?\n\n[lightgray]Make sure you agree to the Workshop EULA first, or your items will not show up!
publish.error = Error publishing item: {0}
steam.error = Failed to initialize Steam services.\nError: {0}
-editor.brush = Pennello
+editor.brush = Dimensioni Pennello
editor.openin = Apri nell'editor
editor.oregen = Generazione dei minerali
editor.oregen.info = Generazione dei minerali:
@@ -297,7 +300,7 @@ editor.newmap = Nuova mappa
workshop = Workshop
waves.title = Ondate
waves.remove = Rimuovi
-waves.never =
+waves.never = < mai >
waves.every = sempre
waves.waves = ondata/e
waves.perspawn = per spawn
@@ -309,14 +312,14 @@ waves.copy = Copia negli appunti
waves.load = Carica dagli appunti
waves.invalid = Onde dagli appunti non valide.
waves.copied = Onde copiate.
-waves.none = Nessun nemico definiti.\n Nota che le disposizioni di ondate vuote verranno automaticamente rimpiazzate con la disposizione predefinita.
-editor.default = [LIGHT_GRAY]
+waves.none = Nessun nemico definiti.\nNota che le disposizioni di ondate vuote verranno automaticamente rimpiazzate con la disposizione predefinita.
+editor.default = [LIGHT_GRAY]< Predefinito >
details = Dettagli...
edit = Modifica...
editor.name = Nome:
editor.spawn = Piazza un'unità
editor.removeunit = Rimuovi un'unità
-editor.teams = Squadre
+editor.teams = Colore Squadre
editor.errorload = Errore nel caricamento di:\n[accent]{0}
editor.errorsave = Errore nel salvataggio di:\n[accent]{0}
editor.errorimage = Quella è un'immagine, non una mappa.\n\nSe vuoi importare una mappa vecchia clicca su "Importa una mappa vecchia" nell'editor.
@@ -335,14 +338,14 @@ editor.saved = Salvato!
editor.save.noname = La tua mappa non ha un nome! Impostane uno nelle informazioni della mappa.
editor.save.overwrite = La tua mappa sovrascrive quelle incluse! Imposta un nome diverso nelle informazioni della mappa.
editor.import.exists = [scarlet]Impossibile importare:[] esiste già una mappa chiamata '{0}' che non può essere sovrascritta!
-editor.import = Importando...
+editor.import = Importa
editor.importmap = Importa mappa
editor.importmap.description = Importa mappa preesistente
editor.importfile = Importa file
editor.importfile.description = Importa un file mappa esterno
editor.importimage = Importa mappa terreno
editor.importimage.description = Importa immagine esterna terreno
-editor.export = Esportazione...
+editor.export = Esporta
editor.exportfile = Esporta file
editor.exportfile.description = Esporta file mappa
editor.exportimage = Esporta immagine
@@ -437,8 +440,8 @@ launch.confirm = Questo trasporterà tutte le risorse nel tuo Nucleo.\nNon riusc
launch.skip.confirm = Se salti adesso non riuscirai a decollare fino alle ondate successive
uncover = Scopri
configure = Configura l'equipaggiamento
-bannedblocks = Blocchi banditi
-addall = Aggiungi tutti
+bannedblocks = Blocchi Banditi
+addall = Aggiungi Tutti
configure.locked = [LIGHT_GRAY]Arriva all'ondata {0}\nper configurare l'equipaggiamento.
configure.invalid = Il valore dev'essere un numero compresto tra 0 e {0}.
zone.unlocked = [LIGHT_GRAY]{0} sbloccata.
@@ -448,14 +451,14 @@ zone.resources = Risorse Trovate:
zone.objective = [lightgray]Obiettivo: [accent]{0}
zone.objective.survival = Sopravvivere
zone.objective.attack = Distruggere il Nucleo Nemico
-add = Aggiungi...
+add = Aggiungi
boss.health = Vita del Boss
-connectfail = [crimson] Impossibile connettersi al server: [accent] {0}
+connectfail = [crimson]Impossibile connettersi al server:[accent] {0}
error.unreachable = Server irraggiungibile. L'indirizzo è scritto correttamente?
-error.invalidaddress = Indirizzo invalido.
-error.timedout = Timeout!\n Assicurati che l'host abbia il port forwarding impostato e che l'indirizzo sia corretto!
-error.mismatch = Errore pacchetti:\nPossibile discordanza della versione client / server.\n Assicurati che tu e l'host possiediate l'ultima versione di Mindustry!
+error.invalidaddress = Indirizzo non valido.
+error.timedout = Timeout!\nAssicurati che l'host abbia il port forwarding impostato e che l'indirizzo sia corretto!
+error.mismatch = Errore pacchetti:\nPossibile discordanza della versione client/server.\nAssicurati che tu e l'host possiediate l'ultima versione di Mindustry!
error.alreadyconnected = Già connesso.
error.mapnotfound = Mappa non trovata
error.io = Errore I/O di rete.
@@ -478,7 +481,7 @@ zone.crags.name = Dirupi
zone.fungalPass.name = Passaggio Fungoso
zone.groundZero.description = La posizione ottimale per cominciare. Bassa minaccia nemica. Poche risorse.\nRaccogli quanto più piombo e rame possibile.\nProcedi.
-zone.frozenForest.description = Anche qui, più vicino alle montagne, le spore si sono diffuse. Le temperature rigide non possono contenerle per sempre.\n Inizia la scoperta dell'energia. Costruisci generatori a combustione. Impara a usare i riparatori.
+zone.frozenForest.description = Anche qui, più vicino alle montagne, le spore si sono diffuse. Le temperature rigide non possono contenerle per sempre.\nInizia la scoperta dell'energia. Costruisci generatori a combustione. Impara a usare i riparatori.
zone.desertWastes.description = Questi rifiuti sono vasti, imprevedibili ed attraversati da strutture settoriali abbandonate.\n\nIl carbone è presente nella regione. Bruciatelo per ottenere energia o sintetizzate la grafite.\n\n[lightgray]Questa posizione di atterraggio non può essere garantita.
zone.saltFlats.description = Alle periferie del deserto si trovano le saline. Poche risorse possono essere trovate in questa posizione.\n\nIl nemico ha eretto un complesso di archiviazione delle risorse qui. Sradicare il loro Nucleo. Non lasciare nulla in piedi.
zone.craters.description = L'acqua si è accumulata in questo cratere, reliquia delle vecchie guerre. Recupera l'area. Raccogli la sabbia. Fondi il vetro metallico. Pompa l'acqua per raffreddare torrette e trivelle.
@@ -487,20 +490,21 @@ zone.stainedMountains.description = Più nell'entroterra si trovano le montagne,
zone.overgrowth.description = Quest'area è invasa, più vicina alla fonte delle spore.\nIl nemico ha stabilito qui un avamposto. Costruisci unità col pugnale. Distruggilo. Riprenditi ciò che è stato perso.
zone.tarFields.description = La periferia di una zona di produzione di petrolio, tra le montagne e il deserto. Una delle poche aree con riserve di catrame utilizzabili.\nAnche se abbandonata, questa zona ha alcune pericolose forze nemiche nelle vicinanze. Non sottovalutarlo.\n\n[lightgray]Ricerca la tecnologia di lavorazione del petrolio, se possibile.
zone.desolateRift.description = Una zona estremamente pericolosa. Risorse abbondanti, ma poco spazio. Alto rischio di distruzione. Lascia il prima possibile. Non lasciarti ingannare dalla lunga distanza tra gli attacchi nemici.
-zone.nuclearComplex.description = Un ex impianto per la produzione e la lavorazione del torio, ridotto in rovina.\n[lightgray] Ricerca il torio ed i suoi numerosi usi.\n\nIl nemico è presente qui in gran numero, alla costante ricerca di aggressori.
+zone.nuclearComplex.description = Un ex impianto per la produzione e la lavorazione del torio, ridotto in rovina.\n[lightgray]Ricerca il torio ed i suoi numerosi usi.\n\nIl nemico è presente qui in gran numero, alla costante ricerca di aggressori.
zone.fungalPass.description = Un'area di transizione tra alte montagne e terre più basse, piene di spore. Qui si trova una piccola base di ricognizione nemica.\nDistruggila.\nUsa le unità Pugnale e Strisciatore. Elimina i due nuclei.
-zone.impact0078.description =
-zone.crags.description =
+zone.impact0078.description = < inserisci descrizione >
+zone.crags.description = < inserisci descrizione >
settings.language = Lingua
settings.data = Importa/Esporta salvataggio
settings.reset = Ripristina Impostazioni
settings.rebind = Modifica
+settings.resetKey = Ripristina
settings.controls = Controlli
settings.game = Gioco
settings.sound = Suoni
settings.graphics = Grafica
-settings.cleardata = Elimina Dati di Gioco...
+settings.cleardata = Elimina Dati di Gioco
settings.clear.confirm = Sei sicuro di voler cancellare i dati?\nQuesta operazione non può essere annullata!
settings.clearall.confirm = [scarlet]ATTENZIONE![]\nQuesto cancellerà tutti i dati, inclusi salvataggi, mappe, oggetti sbloccati ed impostazioni.\nDopo aver premuto su 'ok' il gioco eliminerà i dati e si chiuderà automaticamente.
paused = [accent]< In Pausa >
@@ -513,7 +517,7 @@ error.title = [crimson]Si è verificato un errore
error.crashtitle = Si è verificato un errore
blocks.input = Ingresso
blocks.output = Uscita
-blocks.booster = Booster
+blocks.booster = Potenziamenti
block.unknown = [LIGHT_GRAY]???
blocks.powercapacity = Capacità Energetica
blocks.powershot = Danno/Colpo
@@ -675,23 +679,23 @@ keybind.dash.name = Scatto
keybind.schematic_select.name = Seleziona Regione
keybind.schematic_menu.name = Menu Schematica
keybind.schematic_flip_x.name = Ruota Schematica Orizzontalmente
-keybind.schematic_flip_y.name = Flip Schematic Verticalmente
+keybind.schematic_flip_y.name = Ruota Schematica Verticalmente
keybind.category_prev.name = Categoria Precedente
keybind.category_next.name = Categoria Successiva
keybind.block_select_left.name = Seleziona Blocco Sinistra
keybind.block_select_right.name = Seleziona Blocco Destra
keybind.block_select_up.name = Seleziona Blocco Su
keybind.block_select_down.name = Seleziona Blocco Giù
-keybind.block_select_01.name = Categoria/Seleziona Blocco 1
-keybind.block_select_02.name = Categoria/Seleziona Blocco 2
-keybind.block_select_03.name = Categoria/Seleziona Blocco 3
-keybind.block_select_04.name = Categoria/Seleziona Blocco 4
-keybind.block_select_05.name = Categoria/Seleziona Blocco 5
-keybind.block_select_06.name = Categoria/Seleziona Blocco 6
-keybind.block_select_07.name = Categoria/Seleziona Blocco 7
-keybind.block_select_08.name = Categoria/Seleziona Blocco 8
-keybind.block_select_09.name = Categoria/Seleziona Blocco 9
-keybind.block_select_10.name = Categoria/Seleziona Blocco 10
+keybind.block_select_01.name = Seleziona Categoria/Blocco 1
+keybind.block_select_02.name = Seleziona Categoria/Blocco 2
+keybind.block_select_03.name = Seleziona Categoria/Blocco 3
+keybind.block_select_04.name = Seleziona Categoria/Blocco 4
+keybind.block_select_05.name = Seleziona Categoria/Blocco 5
+keybind.block_select_06.name = Seleziona Categoria/Blocco 6
+keybind.block_select_07.name = Seleziona Categoria/Blocco 7
+keybind.block_select_08.name = Seleziona Categoria/Blocco 8
+keybind.block_select_09.name = Seleziona Categoria/Blocco 9
+keybind.block_select_10.name = Seleziona Categoria/Blocco 10
keybind.fullscreen.name = Schermo Intero
keybind.select.name = Seleziona/Spara
keybind.diagonal_placement.name = Posizionamento Diagonale
@@ -708,7 +712,7 @@ keybind.chat.name = Chat
keybind.player_list.name = Lista dei Giocatori
keybind.console.name = Console
keybind.rotate.name = Ruota
-keybind.rotateplaced.name = Ruota Blocco Esistente (Premuto)
+keybind.rotateplaced.name = Ruota Blocco Esistente (premuto)
keybind.toggle_menus.name = Mostra/Nascondi HUD
keybind.chat_history_prev.name = Scorri Chat vero l'alto
keybind.chat_history_next.name = Scorri Chat verso il basso
@@ -987,12 +991,13 @@ block.titan-factory.name = Fabbrica Mech Titano
block.fortress-factory.name = Fabbrica Mech Fortezza
block.revenant-factory.name = Fabbrica Combattenti Superstiti
block.repair-point.name = Punto di Riparazione
-block.pulse-conduit.name = Condotto Attiva
-block.phase-conduit.name = Condotta di Fase
+block.pulse-conduit.name = Condotto a Impulsi
+block.plated-conduit.name = Condotto Placcato
+block.phase-conduit.name = Condotto di Fase
block.liquid-router.name = Distributore di Liquidi
block.liquid-tank.name = Serbatoio
block.liquid-junction.name = Giunzione Liquida
-block.bridge-conduit.name = Condotta Sopraelevata
+block.bridge-conduit.name = Condotto Sopraelevato
block.rotary-pump.name = Pompa a Turbina
block.thorium-reactor.name = Reattore al Torio
block.mass-driver.name = Lancia Materiali
@@ -1038,31 +1043,31 @@ unit.chaos-array.name = Matrice del Caos
unit.eradicator.name = Estirpatore
unit.lich.name = Lich
unit.reaper.name = Mietitore
-tutorial.next = [lightgray]
-tutorial.intro = Sei entrato nel[scarlet] Tutorial di Mindustry.[]\nInizia[accent] scavando rame[]. Clicca un minerale di rame vicino al tuo Nucleo per farlo.\n\n[accent]{0}/{1} rame
-tutorial.intro.mobile = You have entered the[scarlet] Mindustry Tutorial.[]\nSwipe the screen to move.\n[accent]Pinch with 2 fingers [] to zoom in and out.\nBegin by[accent] mining copper[]. Move close to it, then tap a copper ore vein near your core to do this.\n\n[accent]{0}/{1} copper
+tutorial.next = [lightgray]< Clicca per continuare >
+tutorial.intro = Sei entrato nel[scarlet] Tutorial di Mindustry.[]\nInizia[accent] scavando del rame[]. Clicca un minerale di rame vicino al tuo Nucleo per farlo.\n\n[accent]{0}/{1} rame
+tutorial.intro.mobile = Sei entrato nel[scarlet] Tutorial di Mindustry.[]\nScorri sullo schermo per muoverti.\n[accent]Avvicina due dita[] per eseguire lo zoom in/out.\nInizia [accent] scavando del rame[]. Clicca un minerale di rame vicino al tuo Nucleo per farlo.\n\n[accent]{0}/{1} rame
tutorial.drill = Ora crea una trivella.\n[accent]Le trivelle []scavano da sole e sono più efficienti. Piazzane una su un minerale di rame.
-tutorial.drill.mobile = Ora crea una trivella. \n[accent] Le trivelle []scavano da sole e sono più efficienti. \n Toccare la scheda della trivella in basso a destra. \n Selezionare la trivella meccanica [accent] []. \n Posizionarlo su una vena di rame toccando, quindi premere il segno di spunta [accent] [] in basso per confermare la selezione. \n Premere il tasto X [accent] [] per annullare il posizionamento.
+tutorial.drill.mobile = Ora crea una trivella.\n[accent] Le trivelle []scavano da sole e sono più efficienti.\nTocca la scheda della trivella in basso a destra.\nSeleziona la [accent]Trivella Meccanica[].\nPiazzala su una vena di rame toccando, quindi premi il [accent]segno di spunta[] in basso per confermare la selezione.\nCon il tasto [accent]X[] puoi annullare il posizionamento.
tutorial.blockinfo = Ogni blocco ha statistiche diverse. Alcuni minerali richiedono trivelle specifiche.\nPer controllare le informazioni e le statistiche di un blocco, [accent] tocca "?" mentre lo selezioni nel database. []\n\n[accent]Accedi ora alle statistiche della trivella meccanica. []
-tutorial.conveyor = [accent]I nastri trasportatori []sono usati per trasportare oggetti al Nucleo. \nCrea una linea di nastri dalla trivella al Nucleo.
-tutorial.conveyor.mobile = [accent] I nastri trasportatori [] sono usati per trasportare oggetti nel nocciolo. \nCrea una linea di nastri trasportatori dalla trivella al nocciolo. \n[accent] Posizionati in una linea tenendo premuto il dito per alcuni secondi [] e trascinando in una direzione. \n\n [accent] {0} / {1} nastri trasportatori disposti in linea \n [accent] 0/1 oggetti consegnati
-tutorial.turret = Costruisci delle torrette per respingere il nemico [LIGHT_GRAY] []. \nCostruisci una torretta Duo vicino alla tua base.
+tutorial.conveyor = [accent]I nastri trasportatori []sono usati per trasportare oggetti al Nucleo.\nCrea una linea di nastri dalla trivella al Nucleo.
+tutorial.conveyor.mobile = [accent]I nastri trasportatori[] sono usati per trasportare oggetti nel Nucleo.\nCrea una linea di nastri trasportatori dalla trivella al Nucleo.\n[accent]Piazzali in linea tenendo premuto per qualche secondo e trascinando il dito in una direzione.\n\n[accent]Piazza 2 nastri trasportatori con lo strumento linea, quindi trasporta un oggetto fino al Nucleo.
+tutorial.turret = Costruisci delle torrette per respingere il nemico [LIGHT_GRAY] [].\nCostruisci una torretta Duo vicino alla tua base.
tutorial.drillturret = La Torretta Duo richiede[accent] munizioni di rame[] per sparare.\nPosiziona una trivella e collega un nastro alla torretta per rifornirla di munizioni con il rame estratto.
-tutorial.pause = Durante la battaglia, puoi mettere in pausa il gioco [accent]. []\nPuoi disporre gli edifici mentre sei in pausa. \n\n[accent]Premi spazio per mettere in pausa.
-tutorial.pause.mobile = Durante la battaglia, puoi mettere in pausa il gioco [accent]. []\nPuoi disporre gli edifici mentre sei in pausa. \n\n[accent] Premi questo pulsante in alto a sinistra per mettere in pausa.
+tutorial.pause = Durante la battaglia puoi[accent] mettere in pausa il gioco.[]\nPuoi disporre gli edifici mentre il gioco è in pausa.\n\nPer mettere in pausa, premi [accent]spazio[].
+tutorial.pause.mobile = Durante la battaglia puoi[accent] mettere in pausa il gioco.[]\nPuoi disporre gli edifici mentre il gioco è in pausa.\n\nPer mettere in pausa, premi il bottone in alto a sinistra.
tutorial.unpause = Ora premi di nuovo spazio per annullare la pausa.
tutorial.unpause.mobile = Ora premilo di nuovo per annullare la pausa.
-tutorial.breaking = I blocchi spesso devono essere distrutti. \n [accent]Tieni premuto il tasto destro del mouse [] per distruggere tutti i blocchi in una selezione. []\n[accent]Distruggi tutti i blocchi di scarto a sinistra del tuo Nucleo usando la selezione dell'area .
-tutorial.breaking.mobile = I blocchi spesso devono essere distrutti. \n [accent] Seleziona la modalità di decostruzione [], quindi tocca un blocco per iniziare a smantellarlo. \n Distruggi un'area tenendo premuto il dito per alcuni secondi [] e trascinando in una direzione.\nPremi il pulsante con il segno di spunta per confermare la rimozione. \n\n [accent] Distruggi tutti i blocchi di scarto a sinistra del tuo Nucleo usando la selezione dell'area.
-tutorial.withdraw = In alcune situazioni, è necessario prendere gli oggetti direttamente dai blocchi.\nPer fare ciò, [accent] tocca un blocco []con oggetti al suo interno, quindi [accent] tocca l'oggetto [] nell'inventario. \nPuoi prelevare più oggetti insieme[accent]tenendo premuto il tasto sinistro del mouse[].\n[accent]Preleva un po' di rame dal Nucleo. []
-tutorial.deposit = Deposita tutti gli oggetti che trasporti trascinandoli dalla tua nave al blocco di destinazione. \n[accent]Rimetti il rame nel Nucleo. []
+tutorial.breaking = I blocchi spesso devono essere distrutti.\n[accent]Tieni premuto il tasto destro del mouse [] per distruggere tutti i blocchi in una selezione.[]\n[accent]Distruggi tutti i blocchi di scarto a sinistra del tuo Nucleo usando la selezione dell'area.
+tutorial.breaking.mobile = I blocchi spesso devono essere distrutti.\n[accent]Seleziona la modalità di decostruzione[], quindi tocca un blocco per iniziare a smantellarlo.\nDistruggi un'area tenendo premuto il dito per alcuni secondi[] e trascinando in una direzione.\nPremi il pulsante con il segno di spunta per confermare la rimozione.\n\n[accent]Distruggi tutti i blocchi di scarto a sinistra del tuo Nucleo usando la selezione dell'area.
+tutorial.withdraw = In alcune situazioni, è necessario prendere gli oggetti direttamente dai blocchi.\nPer fare ciò, [accent] tocca un blocco []con oggetti al suo interno, quindi [accent] tocca l'oggetto [] nell'inventario.\nPuoi prelevare più oggetti insieme[accent]tenendo premuto il tasto sinistro del mouse[].\n[accent]Preleva un po' di rame dal Nucleo. []
+tutorial.deposit = Deposita tutti gli oggetti che trasporti trascinandoli dalla tua nave al blocco di destinazione.\n[accent]Rimetti il rame nel Nucleo. []
tutorial.waves = Il nemico [LIGHT_GRAY] si avvicina.\nDifendi il tuo Nucleo per 2 ondate. Costruisci più torrette. Puoi sparare tenendo premuto il tasto sinistro del mouse.
-tutorial.waves.mobile = Il [lightgray] nemico si avvicina.\n\n Difendi il Nucleo per 2 ondate. La tua nave sparerà automaticamente contro i nemici.\nCostruisci più torrette.
-tutorial.launch = Una volta raggiunta un'ondata specifica, sarai in grado di [accent] decollare con il Nucleo [], lasciando la zona e abbandonando le tue difese e le tue strutture\nOtterrai [accent]tutte le risorse nel tuo Nucleo[] e potrai quindi usarle per ricercare nuove tecnologie.\n\n [accent]Decolla e conferma per terminare il tutorial.
+tutorial.waves.mobile = Il [lightgray]nemico si avvicina.\n\nDifendi il Nucleo per 2 ondate. La tua nave sparerà automaticamente contro i nemici.\nCostruisci più torrette.
+tutorial.launch = Una volta raggiunta un'ondata specifica, sarai in grado di [accent] decollare con il Nucleo [], lasciando la zona e abbandonando le tue difese e le tue strutture\nOtterrai [accent]tutte le risorse nel tuo Nucleo[] e potrai quindi usarle per ricercare nuove tecnologie.\n\n[accent]Decolla e conferma per terminare il tutorial.
-item.copper.description = Un utile materiale, usato dappertutto
-item.lead.description = Un materiale di base, molto usato nei blocchi di trasporto.
-item.metaglass.description = Un durissimo composto di vetro. Estensivamente usato per trasporto di liquidi ed immagazzinamento.
+item.copper.description = Un materiale utile, usato dappertutto.
+item.lead.description = Un materiale di base, molto usato nei blocchi per il trasporto.
+item.metaglass.description = Un durissimo composto di vetro. Ampiamente usato per trasporto di liquidi ed immagazzinamento.
item.graphite.description = Carbone mineralizzato, utilizzato per munizioni ed isolamento elettrico.
item.sand.description = Un materiale di base che viene usato molto nei processi di fusione, sia come lega che come reagente.
item.coal.description = Un combustibile comune facilmente ottenibile.
@@ -1079,7 +1084,7 @@ item.pyratite.description = Una sostanza molto infiammabile che viene utilizzata
liquid.water.description = Il liquido più utile. Comunemente usato per il raffreddamento di macchinari ed il trattamento dei rifiuti.
liquid.slag.description = Diversi tipi di metalli fusi, mescolati insieme. Può essere separato nei suoi minerali costituenti o spruzzato sulle unità nemiche come un'arma.
liquid.oil.description = Un liquido usato nella produzione avanzata.\nPuò essere convertito in carbone per uso combustibile o spruzzato ed incendiato come arma.
-liquid.cryofluid.description = Un liquido inerte e non corrosivo creato da acqua e titanio.\nIl liquido più efficiente per il raffreddamento.
+liquid.cryofluid.description = Un liquido inerte e non corrosivo creato da acqua e titanio.\nÈ il liquido più efficiente per il raffreddamento.
mech.alpha-mech.description = Il mech standard. È abbastanza veloce e produce abbastanza danni, può anche generare 3 droni per aumentare il suo danno complessivo.
mech.delta-mech.description = Un mech veloce, poco armato fatto per giocare a tocca e fuga con il nemico. Fa poco danno alle strutture, ma può uccidere un gran nummero di nemici grazie alle sue armi ad alto voltaggio.
mech.tau-mech.description = Un mech di supporto. Cura i blocchi danneggiati sparandogli contro. Può spegnere fuochi e curare i compagni di squadra.
@@ -1099,7 +1104,7 @@ unit.eruptor.description = Un mech pesante progettato per abbattere le strutture
unit.wraith.description = Un'unità d'intercezione rapida ed efficiente.
unit.ghoul.description = Un bombardiere pesante. Utilizza composti esplosivi o pirite come munizioni.
unit.revenant.description = Un pesante lanciamissili volante.
-block.message.description = Stores a message. Used for communication between allies.
+block.message.description = Memorizza un messaggio. Utilizzato per la comunicazione tra alleati.
block.graphite-press.description = Comprime pezzi di carbone in fogli di grafite puri.
block.multi-press.description = Una versione aggiornata della pressa per grafite. Impiega acqua ed energia per elaborare il carbone in modo rapido ed efficiente.
block.silicon-smelter.description = Fonde sabbia e carbone riscaldati per ottenere silicio.
@@ -1108,7 +1113,7 @@ block.plastanium-compressor.description = Produce plastanio da petrolio e titani
block.phase-weaver.description = Produce tessuto di fase da torio radioattivo ed elevate quantità di sabbia.
block.alloy-smelter.description = Produce leghe di sovratensione da titanio, piombo, silicio e rame.
block.cryofluidmixer.description = Combina acqua e titanio in criofluido che è molto più efficiente per il raffreddamento.
-block.blast-mixer.description = Frantuma e mescola le spore con la pirite per produrre Composto Esplosivo.
+block.blast-mixer.description = Frantuma e mescola le spore con la pirite per produrre composto esplosivo.
block.pyratite-mixer.description = Mescola carbone, piombo e sabbia in pirite altamente infiammabile.
block.melter.description = Riscalda la pietra a temperature molto elevate per ottenere scoria liquida.
block.separator.description = Sottopone le scoria a centrifugazione per ottenere i vari minerali contenuti.
@@ -1122,23 +1127,23 @@ block.item-source.description = Produce oggetti infiniti, esiste solo nella moda
block.item-void.description = Elimina gli oggetti che vi entrano senza bisogno di energia, esiste solo nella modalità creativa.
block.liquid-source.description = Emette continuamente liquidi. Esiste solo nella modalità creativa.
block.copper-wall.description = Un blocco difensivo economico.\nUtile per proteggere il Nucleo e le torrette nelle prime ondate.
-block.copper-wall-large.description = Un blocco difensivo economico.\nUtile per proteggere il Nucleo e le torrette nelle prime ondate. \nOccupa più tessere.
+block.copper-wall-large.description = Un blocco difensivo economico.\nUtile per proteggere il Nucleo e le torrette nelle prime ondate.\nOccupa più tessere.
block.titanium-wall.description = Un blocco difensivo moderatamente forte.\nFornisce una protezione moderata dai nemici.
-block.titanium-wall-large.description = Un blocco difensivo moderatamente forte.\nFornisce una protezione moderata dai nemici. \nOccupa più blocchi
+block.titanium-wall-large.description = Un blocco difensivo moderatamente forte.\nFornisce una protezione moderata dai nemici.\nOccupa più tessere
block.plastanium-wall.description = Un tipo speciale di muro che assorbe gli archi elettrici e blocca le connessioni automatiche del nodo d'energia.
-block.plastanium-wall-large.description = Un tipo speciale di muro che assorbe gli archi elettrici e blocca le connessioni automatiche dei nodi d'energia.\nSi estende su più blocchi.
+block.plastanium-wall-large.description = Un tipo speciale di muro che assorbe gli archi elettrici e blocca le connessioni automatiche dei nodi d'energia.\nSi estende su più tessere.
block.thorium-wall.description = Un forte blocco difensivo.\nBuona protezione dai nemici.
-block.thorium-wall-large.description = Un forte blocco difensivo.\nBuona protezione dai nemici.\nOccupa più blocchi
+block.thorium-wall-large.description = Un forte blocco difensivo.\nBuona protezione dai nemici.\nOccupa più tessere.
block.phase-wall.description = Non è forte come un muro di torio, ma devia i proiettili a meno che non siano troppo potenti.
-block.phase-wall-large.description = Non è forte come un muro di torio, ma devia i proiettili a meno che non siano troppo potenti.\nOccupa più blocchi
-block.surge-wall.description = Il blocco difensivo più forte. \nHa una piccola possibilità di innescare un fulmine verso l'attaccante.
-block.surge-wall-large.description = Il blocco difensivo più forte. \n Ha una piccola possibilità di innescare un fulmine verso l'attaccante.\nOccupa più blocchi
-block.door.description = Una piccola porta che può essere aperta e chiusa toccandola. \nSe aperta, i nemici possono sparare ed attraversare.
-block.door-large.description = Una grande porta che può essere aperta e chiusa toccandola. \nSe aperta, i nemici possono sparare ed attraversare. \nOccupa più blocchi
+block.phase-wall-large.description = Non è forte come un muro di torio, ma devia i proiettili a meno che non siano troppo potenti.\nOccupa più tessere.
+block.surge-wall.description = Il blocco difensivo più forte.\nHa una piccola possibilità di innescare un fulmine verso l'attaccante.
+block.surge-wall-large.description = Il blocco difensivo più forte.\nHa una piccola possibilità di innescare un fulmine verso l'attaccante.\nOccupa più tessere.
+block.door.description = Una piccola porta che può essere aperta e chiusa toccandola.\nSe aperta, i nemici possono sparare ed attraversare.
+block.door-large.description = Una grande porta che può essere aperta e chiusa toccandola.\nSe aperta, i nemici possono sparare ed attraversare.\nOccupa più tessere.
block.mender.description = Ripara periodicamente blocchi nelle vicinanze.\nUtilizza del silicio per aumentarne portata ed efficienza.
block.mend-projector.description = Ripara periodicamente blocchi nelle vicinanze.\nUtilizza del tessuto di fase per aumentarne portata ed efficienza.
block.overdrive-projector.description = Aumenta la velocità di edifici vicini come trivelle e nastri trasportatori.
-block.force-projector.description = Crea un campo di forza esagonale attorno a sé, proteggendo gli edifici e le unità all'interno da danni causati da proiettili
+block.force-projector.description = Crea un campo di forza esagonale attorno a sé, proteggendo gli edifici e le unità all'interno da danni causati da proiettili.
block.shock-mine.description = Danneggia i nemici che la calpestano. Quasi invisibile al nemico.
block.conveyor.description = Nastro di base. Sposta gli oggetti in avanti e li deposita automaticamente in altri blocchi. Ruotabile.
block.titanium-conveyor.description = Nastro avanzato. Sposta gli oggetti più velocemente dei nastri standard.
@@ -1149,22 +1154,24 @@ block.sorter.description = Divide gli oggetti. Se l'oggetto corrisponde a quello
block.inverted-sorter.description = Elabora gli oggetti come uno smistatore standard, ma in uscita dà gli elementi selezionati ai lati.
block.router.description = Accetta gli elementi da una direzione e li emette fino a 3 altre direzioni allo stesso modo. Utile per suddividere i materiali da una fonte a più destinazioni.
block.distributor.description = Un distributore avanzato che divide gli oggetti in altre 7 direzioni allo stesso modo.
-block.overflow-gate.description = Una combinazione di un incrocio e di un distributore , che distribuisce sui suoi lati se in nastro difronte si satura.
-block.mass-driver.description = Ultimo blocco di trasporto di oggetti. Raccoglie diversi oggetti e poi li spara su un'altra Lancia Materiali a lungo raggio.
-block.mechanical-pump.description = Una pompa economica con potenza lenta, ma nessun consumo di energia.
+block.overflow-gate.description = Una combinazione di un incrocio e di un distributore, che distribuisce sui suoi lati se in nastro difronte si satura.
+block.mass-driver.description = Ultimo blocco di trasporto di oggetti. Raccoglie diversi oggetti e poi li spara su un'altra Lìlancia materiali a lungo raggio.
+block.mechanical-pump.description = Una pompa economica a bassa efficienza, ma nessun consumo di energia.
block.rotary-pump.description = Una pompa avanzata che raddoppia la velocità consumando energia.
block.thermal-pump.description = La pompa migliore. Tre volte più veloce di una pompa meccanica e l'unica pompa in grado di recuperare la lava.
block.conduit.description = Condotto di base. Funziona come un nastro trasportatore, ma per i liquidi. Ideale per estrattori, pompe o altri condotti.
block.pulse-conduit.description = Condotto avanzato. Trasporta più liquido e più velocemente dei condotti standard.
+block.plated-conduit.description = Trasferisce i liquidi alla stessa velocità del Condotto a Impulsi, ma è più resistente. Non accetta liquidi dai lati da parte di condotti diversi.\nMeno perdite.
block.liquid-router.description = Accetta i liquidi da una direzione e li emette fino a 3 altre direzioni allo stesso modo. Può anche immagazzinare una certa quantità di liquido. Utile per suddividere i liquidi da una fonte verso più destinazioni.
block.liquid-tank.description = Conserva una grande quantità di liquidi. Usalo per creare zone cuscinetto quando c'è una domanda non costante di materiali o come protezione per il raffreddamento di blocchi vitali.
block.liquid-junction.description = Permette di incrociare condotti che trasportano liquidi diversi in posizioni diverse.
block.bridge-conduit.description = Consente il trasporto di liquidi fino a 3 tessere da un altro condotto sopraelevato.\nPuò passare sopra ad altri blocchi od edifici.
block.phase-conduit.description = Condotto avanzato. Consuma energia per teletrasportare i liquidi in un altro condotto di fase collegato.
block.power-node.description = Trasmette energia tra i nodi collegati. È possibile creare fino a quattro collegamenti.\nClicca sul nodo per configurare i collegamenti.
-block.power-node-large.description = Ha un raggio maggiore rispetto al nodo energetico e si possono creare un massimo di sei collegamenti.\nClicca sul nodo per configurare i collegamenti.
+block.power-node-large.description = Ha un raggio maggiore rispetto al Nodo Energetico e si possono creare un massimo di sei collegamenti.\nClicca sul nodo per configurare i collegamenti.
block.surge-tower.description = Un nodo di alimentazione a lungo raggio solo due connessioni disponibili.\nClicca sul nodo per configurare i collegamenti.
-block.battery.description = Accumula energia ogni volta che c'è abbondanza e fornisce energia ogni volta che c'è carenza, purché rimanga carica.
+block.diode.description = L'energia della batteria può attraversare questo blocco in una sola direzione, ma solo se l'altra parte ha meno energia.
+block.battery.description = Accumula energia ogni volta che c'è abbondanza e fornisce energia ogni volta che c'è carenza, purché sia carica.
block.battery-large.description = Immagazzina molta più energia di una normale batteria.
block.combustion-generator.description = Genera energia bruciando combustibile.
block.thermal-generator.description = Genera una grande quantità di energia dalla lava.
@@ -1172,10 +1179,10 @@ block.turbine-generator.description = Più efficiente di un generatore a combust
block.differential-generator.description = Genera grandi quantità di energia. Utilizza la differenza di temperatura tra criofluido e pirite in combustione.
block.rtg-generator.description = Un generatore che sfrutta il calore del decadimento di materiale radioattivo per produrre energia.\nNon richiede raffreddamento ma fornisce meno energia di un reattore al torio.
block.solar-panel.description = Fornisce una piccola quantità di energia dal sole.
-block.solar-panel-large.description = Fornisce un'alimentazione molto migliore rispetto a un pannello solare standard, ma è anche molto più costoso da costruire.
+block.solar-panel-large.description = Fornisce un'alimentazione migliore rispetto a un pannello solare standard, ma è anche molto più costoso da costruire.
block.thorium-reactor.description = Genera enormi quantità di energia dal torio altamente radioattivo. Richiede un raffreddamento costante. Esploderà violentemente se vengono fornite quantità insufficienti di refrigerante.
block.impact-reactor.description = Un generatore avanzato, in grado di creare enormi quantità di energia alla massima efficienza. Richiede un significativo apporto di energia per avviare il processo.
-block.mechanical-drill.description = Una trivella economica. Se posizionato su riquadri appropriati, estrae minerali a un ritmo lento e costante.
+block.mechanical-drill.description = Una trivella economica. Se posizionata su slot appropriati, estrae minerali a un ritmo lento e costante.
block.pneumatic-drill.description = Una trivella migliorata più veloce ed in grado di elaborare materiali più duri sfruttando la pressione dell'aria.
block.laser-drill.description = Consente di perforare ancora più velocemente attraverso la tecnologia laser, ma richiede energia. Inoltre, con questa trivella è possibile recuperare il torio radioattivo.
block.blast-drill.description = La trivella migliore. Richiede grandi quantità di energia.
@@ -1187,7 +1194,7 @@ block.core-foundation.description = La seconda versione del Nucleo. Meglio coraz
block.core-nucleus.description = La terza ed ultima versione del Nucleo. Estremamente ben corazzato. Immagazzina enormi quantità di risorse.
block.vault.description = Immagazzina una grande quantità di oggetti. Usalo per creare zone cuscinetto quando c'è una domanda non costante di materiali. Uno [LIGHT_GRAY]scaricatore[] può essere utilizzato per recuperare elementi dal deposito.
block.container.description = Immagazzina una piccola quantità di oggetti. Usalo per creare zone cuscinetto quando c'è una domanda non costante di materiali. Uno [LIGHT_GRAY]scaricatore[] può essere utilizzato per recuperare elementi dal contenitore.
-block.unloader.description = Scarica gli oggetti da un contenitore, caveau o Nucleo su un trasportatore o direttamente in un blocco adiacente. L'oggetto da scaricare può essere scelto toccando lo scaricatore.
+block.unloader.description = Scarica gli oggetti da un contenitore, deposito o Nucleo su un nastro trasportatore o direttamente in un blocco adiacente. L'oggetto da scaricare può essere scelto toccando lo scaricatore.
block.launch-pad.description = Lancia oggetti nel tuo Nucleo senza necessità di un lasciare la zona.
block.launch-pad-large.description = Una versione migliore dell'Ascensore Spaziale, immagazzina più oggetti. Lancia oggetti più frequentemente.
block.duo.description = Una torretta piccola ed economica.
@@ -1204,7 +1211,7 @@ block.ripple.description = Una grande torretta di artiglieria che spara più col
block.cyclone.description = Una grande torretta a fuoco rapido.
block.spectre.description = Una grande torretta che spara due potenti proiettili contemporaneamente.
block.meltdown.description = Una grande torretta che spara un potente laser a lungo raggio.
-block.command-center.description = Da istruzioni alle unità alleate nella mappa. Comanda la ricongizione, l'attacco del Nucleo nemico o la ritirata verso il proprio Nucleo o fabbrica.\nQuando non è presente un Nucleo nemico, le unità pattuglieranno anche se viene ordinato un attacco.
+block.command-center.description = Dà istruzioni alle unità alleate nella mappa. Comanda la ricongizione, l'attacco del Nucleo nemico o la ritirata verso il proprio Nucleo o fabbrica.\nQuando non è presente un Nucleo nemico, le unità pattuglieranno anche se viene ordinato un attacco.
block.draug-factory.description = Produce droni per la raccolta mineraria.
block.spirit-factory.description = Produce droni che riparano blocchi.
block.phantom-factory.description = Produce droni avanzati che seguono il giocatore e lo assistono nella costruzione.
@@ -1216,10 +1223,10 @@ block.crawler-factory.description = Produce unità di sciame veloci ed autodistr
block.titan-factory.description = Produce unità terrestri avanzate e corazzate.
block.fortress-factory.description = Produce unità di terra di artiglieria pesante.
block.repair-point.description = Cura continuamente l'unità danneggiata più vicina.
-block.dart-mech-pad.description = Trasforma la tua nave in un mech di attacco di base. \nUsa il blocco toccando due volte mentre ti trovi su di esso.
-block.delta-mech-pad.description = Trasforma la tua nave in un mech veloce e leggermente corazzato, ideale per colpire e scappare. \nUsa il blocco toccando due volte mentre ti ci trovi sopra.
-block.tau-mech-pad.description = Trasforma la tua nave in un mech di supporto in grado di curare edifici ed unità alleate. \n Usa il blocco toccando due volte mentre sei in piedi su di esso.
-block.omega-mech-pad.description = Trasforma la tua nave in un mech voluminoso e ben corazzato, creato per gli assalti in prima linea. \nUsa il blocco toccando due volte mentre sei in piedi su di esso.
+block.dart-mech-pad.description = Trasforma la tua nave in un mech di attacco di base.\nUsa il blocco toccando due volte mentre ti trovi su di esso.
+block.delta-mech-pad.description = Trasforma la tua nave in un mech veloce e leggermente corazzato, ideale per colpire e scappare.\nUsa il blocco toccando due volte mentre ti trovi su di esso.
+block.tau-mech-pad.description = Trasforma la tua nave in un mech di supporto in grado di curare edifici ed unità alleate.\nUsa il blocco toccando due volte mentre ti trovi su di esso.
+block.omega-mech-pad.description = Trasforma la tua nave in un mech voluminoso e ben corazzato, creato per gli assalti in prima linea.\nUsa il blocco toccando due volte mentre ti trovi su di esso.
block.javelin-ship-pad.description = Trasforma la tua nave in un intercettore forte e veloce con armi elettriche.\nUsa il blocco toccando due volte mentre ti trovi su di esso.
-block.trident-ship-pad.description = Trasforma la tua nave in un bombardiere pesante e ben corazzato. \nUsa il blocco toccando due volte mentre ti trovi su di esso.
-block.glaive-ship-pad.description = Trasforma la tua nave in una nave grande e ben corazzata. \nUsa il blocco toccando due volte mentre ti trovi su di esso.
+block.trident-ship-pad.description = Trasforma la tua nave in un bombardiere pesante e ben corazzato.\nUsa il blocco toccando due volte mentre ti trovi su di esso.
+block.glaive-ship-pad.description = Trasforma la tua nave in una nave grande e ben corazzata.\nUsa il blocco toccando due volte mentre ti trovi su di esso.
diff --git a/core/assets/bundles/bundle_ko.properties b/core/assets/bundles/bundle_ko.properties
index 71a44a6bff..3d9c8e0475 100644
--- a/core/assets/bundles/bundle_ko.properties
+++ b/core/assets/bundles/bundle_ko.properties
@@ -7,14 +7,15 @@ link.reddit.description = Mindustry 레딧
link.github.description = 게임 소스코드
link.changelog.description = 새로 추가된 것들
link.dev-builds.description = 불안정한 개발 빌드들
-link.trello.description = 다음 출시될 기능들을 게시한 공식 Trello 보드
+link.trello.description = 출시 예정중인 기능들을 게시한 공식 Trello 보드
link.itch.io.description = PC 버전 다운로드와 HTML5 버전이 있는 itch.io 사이트
link.google-play.description = Google Play 스토어 정보
link.f-droid.description = F-Droid 카탈로그
link.wiki.description = 공식 Mindustry 위키
+link.feathub.description = 기능 아이디어 건의하기
linkfail = 링크를 여는 데 실패했습니다!\nURL이 기기의 클립보드에 복사되었습니다.
-screenshot = 스크린샷이 {0} 경로에 저장되었습니다.
-screenshot.invalid = 맵이 너무 커서 스크린샷을 찍을 메모리가 충분하지 않습니다.
+screenshot = 스크린 샷이 {0} 경로에 저장되었습니다.
+screenshot.invalid = 맵이 너무 커서 스크린 샷을 찍을 메모리가 충분하지 않습니다.
gameover = 게임 오버
gameover.pvp = [accent]{0}[] 팀이 승리했습니다!
highscore = [accent]최고점수 달성!
@@ -35,11 +36,11 @@ schematic.replace = 이 설계도와 같은 이름의 설계도가 이미 존재
schematic.import = 설계도 불러오기
schematic.exportfile = 파일 내보내기
schematic.importfile = 파일 불러오기
-schematic.browseworkshop = 워크샵 탐색
+schematic.browseworkshop = Workshop 탐색
schematic.copy = 클립보드에 복사하기
schematic.copy.import = 클립보드에서 붙여넣기
schematic.shareworkshop = 워크샵에 공유
-schematic.flip = 좌우 뒤집기 :[accent][[{0}][] / 상하 뒤집기 : [accent][[{1}][]
+schematic.flip = 좌우 뒤집기 : [accent][[{0}][] / 상하 뒤집기 : [accent][[{1}][]
schematic.saved = 설계도 저장됨.
schematic.delete.confirm = 삭제된 설계도는 복구할 수 없습니다. 정말로 삭제하시겠습니까?
schematic.rename = 설계도명 변경
@@ -94,7 +95,7 @@ mods.alpha = [scarlet](Alpha)
mods = 모드
mods.none = [LIGHT_GRAY]추가한 모드가 없습니다!
mods.guide = 모드 가이드
-mods.report = 버그 신고
+mods.report = 문제 신고
mods.openfolder = 모드 폴더 열기
mod.enabled = [lightgray]활성화
mod.disabled = [scarlet]비활성화
@@ -102,7 +103,10 @@ mod.disable = 비활성화
mod.delete.error = 모드를 삭제할 수 없습니다. 아마도 해당 모드가 사용중인 것 같습니다.
mod.requiresversion = [scarlet]게임의 버전이 낮아 모드를 활성화할 수 없습니다!\n[scarlet]요구되는 게임 버전 : [accent]{0}
mod.missingdependencies = [scarlet]의존되는 모드: {0}
-mod.nowdisabled = [scarlet]모드 '{0}'는 다음의 모드에 의존합니다 :[accent] {1}\n[lightgray]이 모드를 먼저 다운로드해야합니다.\n이 모드는 자동으로 비활성화됩니다.
+mod.erroredcontent = [scarlet]컨텐츠 오류
+mod.errors = 컨텐츠를 불러오는 중 오류가 발생하였습니다.
+mod.noerrorplay = [scarlet]모드에 오류가 존재합니다.[] 해당 오류가 발생하는 모드를 비활성화하거나 모드의 오류를 고친 후 플레이가 가능합니다.
+mod.nowdisabled = [scarlet]모드 '{0}'는 다음의 모드에 의존합니다 : [accent] {1}\n[lightgray]이 모드를 먼저 다운로드해야합니다.\n이 모드는 자동으로 비활성화됩니다.
mod.enable = 활성화
mod.requiresrestart = 모드 변경사항을 적용하기 위해 게임을 종료합니다.
mod.reloadrequired = [scarlet]새로고침 예정됨
@@ -111,7 +115,7 @@ mod.import.github = 깃허브 모드 추가
mod.item.remove = 이것은 모드[accent] '{0}'[]의 자원입니다. 이 자원을 삭제하려면, 이 모드를 제거해야합니다.
mod.remove.confirm = 이 모드를 삭제하시겠습니까?
mod.author = [LIGHT_GRAY]제작자 : [] {0}
-mod.missing = 이 세이브파일에는 설치하지 않은 모드 혹은 이 버전에 속해있지 않은 데이터가 포함되어 있습니다. 이 파일을 불러올 경우 세이브파일의 데이터가 손상될 수 있습니다. 정말로 이 파일을 불러오시겠습니까?\n[lightgray]모드 :\n{0}
+mod.missing = 이 세이브파일에는 설치하지 않은 모드 혹은 현재 버전에 속해있지 않은 데이터가 포함되어 있습니다. 이 파일을 불러올 경우 세이브파일의 데이터가 손상될 수 있습니다. 정말로 이 파일을 불러오시겠습니까?\n[lightgray]모드 :\n{0}
mod.preview.missing = 워크샵에 당신의 모드를 업로드하기 전에 미리보기 이미지를 먼저 추가해야합니다.\n[accent] preview.png[]라는 이름으로 미리보기 이미지를 당신의 모드 폴더안에 준비한 후 다시 시도해주세요.
mod.folder.missing = 워크샵에는 폴더 형태의 모드만 게시할 수 있습니다.\n모드를 폴더 형태로 바꾸려면 파일을 폴더에 압축 해제하고 이전 압축파일을 제거한 후, 게임을 재시작하거나 모드를 다시 로드하십시오.
mod.scripts.unsupported = 당신의 기기는 모드스크립트를 지원하지 않습니다. 모드의 일부 기능이 작동하지 않을 수 있습니다.
@@ -594,8 +598,8 @@ unit.persecond = /초
unit.timesspeed = x 배
unit.percent = %
unit.items = 자원
-unit.thousands = 천
-unit.millions = 백만
+unit.thousands = k
+unit.millions = mil
category.general = 일반
category.power = 전력
category.liquids = 액체
@@ -635,7 +639,7 @@ setting.sensitivity.name = 컨트롤러 감도
setting.saveinterval.name = 저장 간격
setting.seconds = {0} 초
setting.blockselecttimeout.name = 블록 선택 시간 초과
-setting.milliseconds = {0} 밀리초
+setting.milliseconds = {0} ms
setting.fullscreen.name = 전체 화면
setting.borderlesswindow.name = 테두리 없는 창모드[LIGHT_GRAY] (재시작이 필요할 수 있습니다)
setting.fps.name = FPS 표시
@@ -683,20 +687,20 @@ keybind.schematic_flip_x.name = 설계도 X축 뒤집기
keybind.schematic_flip_y.name = 설계도 Y축 뒤집기
keybind.category_prev.name = 이전 목록
keybind.category_next.name = 다음 목록
-keybind.block_select_left.name = 블럭 왼쪽 선택
-keybind.block_select_right.name = 블럭 오른쪽 선택
-keybind.block_select_up.name = 블럭 위쪽 선택
-keybind.block_select_down.name = 블럭 아래쪽 선택
-keybind.block_select_01.name = 카테고리/블럭 선택 1
-keybind.block_select_02.name = 카테고리/블럭 선택 2
-keybind.block_select_03.name = 카테고리/블럭 선택 3
-keybind.block_select_04.name = 카테고리/블럭 선택 4
-keybind.block_select_05.name = 카테고리/블럭 선택 5
-keybind.block_select_06.name = 카테고리/블럭 선택 6
-keybind.block_select_07.name = 카테고리/블럭 선택 7
-keybind.block_select_08.name = 카테고리/블럭 선택 8
-keybind.block_select_09.name = 카테고리/블럭 선택 9
-keybind.block_select_10.name = 카테고리/블럭 선택 10
+keybind.block_select_left.name = 블록 왼쪽 선택
+keybind.block_select_right.name = 블록 오른쪽 선택
+keybind.block_select_up.name = 블록 위쪽 선택
+keybind.block_select_down.name = 블록 아래쪽 선택
+keybind.block_select_01.name = 카테고리/블록 선택 1
+keybind.block_select_02.name = 카테고리/블록 선택 2
+keybind.block_select_03.name = 카테고리/블록 선택 3
+keybind.block_select_04.name = 카테고리/블록 선택 4
+keybind.block_select_05.name = 카테고리/블록 선택 5
+keybind.block_select_06.name = 카테고리/블록 선택 6
+keybind.block_select_07.name = 카테고리/블록 선택 7
+keybind.block_select_08.name = 카테고리/블록 선택 8
+keybind.block_select_09.name = 카테고리/블록 선택 9
+keybind.block_select_10.name = 카테고리/블록 선택 10
keybind.fullscreen.name = 전체 화면
keybind.select.name = 선택/공격
keybind.diagonal_placement.name = 대각선 설치
@@ -716,8 +720,8 @@ keybind.console.name = 콘솔
keybind.rotate.name = 회전
keybind.rotateplaced.name = 기존 회전 (고정)
keybind.toggle_menus.name = 메뉴 보이기/숨기기
-keybind.chat_history_prev.name = 이전 채팅기록
-keybind.chat_history_next.name = 다음 채팅기록
+keybind.chat_history_prev.name = 이전 채팅 기록
+keybind.chat_history_next.name = 다음 채팅 기록
keybind.chat_scroll.name = 채팅 스크롤
keybind.drop_unit.name = 유닛 처치 시 자원획득
keybind.zoom_minimap.name = 미니맵 확대
@@ -730,11 +734,11 @@ mode.editor.name = 편집기
mode.pvp.name = PvP
mode.pvp.description = 실제 플레이어와 PvP를 합니다. 맵에 적어도 2개의 다른 색상 코어가 있어야 합니다.
mode.attack.name = 공격
-mode.attack.description = 적 기지를 파괴하세요. 맵에 빨간팀 코어가 있어야 플레이 가능합니다.
+mode.attack.description = 적 기지를 파괴하세요. 맵에 빨간 팀 코어가 있어야 플레이 가능합니다.
mode.custom = 사용자 정의 규칙
rules.infiniteresources = 무한 자원
-rules.reactorexplosions = 원자로 폭발 허가여부
+rules.reactorexplosions = 원자로 폭발 허가 여부
rules.wavetimer = 단계 대기시간
rules.waves = 단계 활성화
rules.attack = 공격 모드
@@ -750,7 +754,7 @@ rules.respawntime = 플레이어 부활 대기 시간 : [LIGHT_GRAY] (초)
rules.wavespacing = 단계 간격 : [LIGHT_GRAY] (초)
rules.buildcostmultiplier = 건설 소모 배수
rules.buildspeedmultiplier = 건설 속도 배수
-rules.waitForWaveToEnd = 단계가 끝날때까지 기다리는중
+rules.waitForWaveToEnd = 단계가 끝날때까지 기다리는 중
rules.dropzoneradius = 소환 충격파 범위 : [LIGHT_GRAY] (타일)
rules.respawns = 단계당 최대 플레이어 부활 횟수
rules.limitedRespawns = 플레이어 부활 제한
@@ -810,7 +814,7 @@ mech.trident-ship.name = 트라이던트
mech.trident-ship.weapon = 폭탄 저장고
mech.glaive-ship.name = 글레이브
mech.glaive-ship.weapon = 중무장 인화성 소총
-item.corestorable = [lightgray]코어 잔여 저장공간: {0}
+item.corestorable = [lightgray]코어 저장 가능 여부 : {0}
item.explosiveness = [LIGHT_GRAY]폭발성 : {0}
item.flammability = [LIGHT_GRAY]인화성 : {0}
item.radioactivity = [LIGHT_GRAY]방사능 : {0}
@@ -1117,7 +1121,7 @@ block.cryofluidmixer.description = 물과 티타늄을 냉각에 훨씬 더 효
block.blast-mixer.description = 포자를 사용하여 파이라타이트를 폭발성 화합물로 변환시킵니다.
block.pyratite-mixer.description = 석탄, 납, 모래를 가연성이 높은 파이라타이트로 만듭니다.
block.melter.description = 고철을 녹여 파도의 탄약 혹은 원심 분리기에 사용할 수 있는 액체인 광재로 만듭니다.
-block.separator.description = 광재룰 각종 자원으로 재활용 할 수 있게 해 주는 건물입니다.
+block.separator.description = 광재를 각종 자원으로 재활용 할 수 있게 해 주는 건물입니다.
block.spore-press.description = 포자를 압축해 기름을 추출합니다.
block.pulverizer.description = 고철을 갈아 모래로 만듭니다. 맵에 모래가 부족할 때 유용합니다.
block.coal-centrifuge.description = 석유로 석탄을 만듭니다.
diff --git a/core/assets/bundles/bundle_pl.properties b/core/assets/bundles/bundle_pl.properties
index fd97dca25f..ceef56533a 100644
--- a/core/assets/bundles/bundle_pl.properties
+++ b/core/assets/bundles/bundle_pl.properties
@@ -12,13 +12,14 @@ link.itch.io.description = Strona itch.io z oficjanymi wersjami do pobrania
link.google-play.description = Strona na sklepie Google Play
link.f-droid.description = F-Droid catalogue listing
link.wiki.description = Oficjana Wiki Mindustry
+link.feathub.description = Zaproponuj nowe funkcje
linkfail = Nie udało się otworzyć linku!\nURL został skopiowany.
screenshot = Zapisano zdjęcie w {0}
screenshot.invalid = Zrzut ekranu jest zbyt duży. Najprawdopodobniej brakuje miejsca w pamięci urządzenia.
gameover = Koniec Gry
gameover.pvp = Zwyciężyła drużyna [accent]{0}[]!
highscore = [YELLOW] Nowy rekord!
-copied = Copied.
+copied = Skopiowano.
load.sound = Dźwięki
load.map = Mapy
@@ -26,6 +27,14 @@ load.image = Obrazy
load.content = Treść
load.system = System
load.mod = Mody
+load.scripts = Skrypty
+
+be.update = Nowa wersja Bleeding Edge jest dostępna:
+be.update.confirm = Pobrać i zainstalować teraz?
+be.updating = Aktualizowanie...
+be.ignore = Zignoruj
+be.noupdates = Nie znaleziono aktualizacji.
+be.check = Sprawdź aktualizacje
schematic = Schemat
schematic.add = Zapisz schemat...
@@ -80,7 +89,6 @@ continue = Kontynuuj
maps.none = [lightgray]Nie znaleziono żadnych map!
invalid = Nieprawidłowy
pickcolor = Wybierz kolor
-
preparingconfig = Przygotowywanie Konfiguracji
preparingcontent = Przygotowywanie Zawartości
uploadingcontent = Przesyłanie Zawartości
@@ -100,22 +108,28 @@ mod.enabled = [lightgray]Włączony
mod.disabled = [scarlet]Wyłączony
mod.disable = Wyłącz
mod.delete.error = Nie udało się usunąć moda. Plik może być w użyciu.
+mod.requiresversion = [scarlet]Wymaga gry w wersji co najmniej: [accent]{0}
mod.missingdependencies = [scarlet]Brakujące zależności: {0}
+mod.erroredcontent = [scarlet]Content Errors
+mod.errors = Wystąpił błąd podczas ładowania treści.
+mod.noerrorplay = [scarlet]Twoje mody zawierają błędy.[] Wyłącz je lub napraw błędy przed rozpoczęciem gry.
mod.nowdisabled = [scarlet]Brakuje zależności dla moda '{0}':[accent] {1}\n[lightgray]Najpierw trzeba ściągnąć te mody.\nMod zostanie automatycznie wyłączony.
mod.enable = Włącz
mod.requiresrestart = Gra się wyłączy aby wprowadzić zmiany moda.
mod.reloadrequired = [scarlet]Wymagany restart
mod.import = Importuj Mod
mod.import.github = Importuj mod z GitHuba
+mod.item.remove = Ten przedmiot jest częścią moda[accent] '{0}'[]. Aby usunąć go, odinstaluj modyfikację.
mod.remove.confirm = Ten mod zostanie usunięty.
mod.author = [LIGHT_GRAY]Autor:[] {0}
mod.missing = Ten zapis zawiera mody, które zostały niedawno zaktualizowane, bądź nie są już zainstalowane. Zapis może zostać uszkodzony. Czy jesteś pewien, że chcesz go załadować?\n[lightgray]Mody:\n{0}
mod.preview.missing = Przed opublikowaniem tego moda na Warsztacie musisz dodać zdjęcie podglądowe.\nDodaj zdjęcie o nazwie[accent] preview.png[] do folderu moda i spróbuj jeszcze raz.
-mod.folder.missing = Jedynie mody w formie folderów mogą się znaleźć na Warsztacie.\nBy zamienić moda w folder, wyciągnij go z archiwum, umieść w folderze i usuń archiwum. Później uruchom ponownie grę bądź załaduj ponownie mody.
+mod.folder.missing = Jedynie mody w formie folderów mogą się znaleźć na Warsztacie.\nBy zamienić moda w folder, wyciągnij go z archiwum, umieść w folderze i usuń archiwum. Później uruchom ponownie grę lub załaduj ponownie mody.
+mod.scripts.unsupported = Twoje urządzenie nie wspiera skryptów. Niektóre mody mogą nie działać poprawnie.
about.button = O Grze
name = Nazwa:
-noname = Najpierw wybierz[accent] nazwę gracza[]
+noname = Najpierw wybierz[accent] nazwę gracza[].
filename = Nazwa Pliku:
unlocked = Odblokowano nową zawartość!
completed = [accent]Ukończony
@@ -123,8 +137,8 @@ techtree = Drzewo Technologiczne
research.list = [lightgray]Badania:
research = Badaj
researched = [lightgray]{0} zbadane.
-players = {0} graczy online
-players.single = {0} gracz online
+players = {0} graczy
+players.single = {0} gracz
server.closing = [accent] Zamykanie serwera...
server.kicked.kick = Zostałeś wyrzucony z serwera!
server.kicked.whitelist = Nie ma cię tu na białej liście.
@@ -141,6 +155,7 @@ server.kicked.nameEmpty = Wybrana przez Ciebie nazwa jest nieprawidłowa.
server.kicked.idInUse = Jesteś już na serwerze! Łączenie się z dwóch kont nie jest dozwolone.
server.kicked.customClient = Ten serwer nie wspomaga wersji deweloperskich. Pobierz oficjalną wersję.
server.kicked.gameover = Koniec gry!
+server.kicked.serverRestarting = Restart serwera.
server.versions = Twoja wersja gry:[accent] {0}[]\nWersja gry serwera:[accent] {1}[]
host.info = Przycisk [accent]host[] hostuje serwer na porcie [scarlet]6567[]. \nKażdy w tej samej sieci [lightgray]wifi lub hotspocie[] powinien zobaczyć twój serwer.\n\nJeśli chcesz, aby każdy z twoim IP mógł dołączyć, musisz wykonać [accent]przekierowywanie portów[].\n\n[lightgray]Notka: Jeśli ktokolwiek ma problem z dołączeniem do gry lokalnej, upewnij się, że udostępniłeś Mindustry dostęp do sieci w ustawieniach zapory (firewall). Zauważ, że niektóre sieci publiczne mogą nie zezwalać na wykrycie serwerów.
join.info = Tutaj możesz wpisać [accent]adres IP serwera[], aby dołączyć lub wyszukać [accent]serwerów w lokalnej sieci[], do których możesz dołączyć .\nGra wieloosobowa na LAN i WAN jest wspomagana.\n\n[lightgray]Notka: Nie ma automatycznej listy wszystkich serwerów; jeśli chcesz dołączyć przez IP, musisz zapytać hosta o IP.
@@ -240,7 +255,7 @@ data.exported = Dane wyeksportowane.
data.invalid = Nieprawidłowe dane gry.
data.import.confirm = Zaimportowanie zewnętrznych danych usunie[scarlet] wszystkie[] obecne dane gry.\n[accent]Nie można tego cofnąć![]\n\nGdy dane zostaną zimportowane, gra automatycznie się wyłączy.
classic.export = Eksportuj Dane Wersji Klasycznej
-classic.export.text = [accent]Mindustry[] otrzymało ostatnio ważną aktualizację.\nWykryto zapis lub mapę z wersji classic (v3.5 build 40) - czy chciałbyś eksportować te zapisy do katalogu domowego swojego telefonu, do użycia w aplikacji Mindustry Classic?
+classic.export.text = [accent]Mindustry[] otrzymało ostatnio ważną aktualizację.\nWykryto zapis lub mapę z wersji classic (v3.5 build 40) - czy chciałbyś eksportować te zapisy do katalogu domowego swojego telefonu, aby móc używać ich w Mindustry Classic?
quit.confirm = Czy na pewno chcesz wyjść?
quit.confirm.tutorial = Czy jesteś pewien tego co robisz?\nSamouczek może zostać powtórzony w[accent] Ustawienia->Gra->Ponów samouczek.[]
loading = [accent]Ładowanie...
@@ -248,7 +263,7 @@ reloading = [accent]Przeładowywanie Modów...
saving = [accent]Zapisywanie...
cancelbuilding = [accent][[{0}][] by wyczyścić plan
selectschematic = [accent][[{0}][] by wybrać+skopiować
-pausebuilding = [accent][[{0}][] by wtrzymać budowę
+pausebuilding = [accent][[{0}][] by wstrzymać budowę
resumebuilding = [scarlet][[{0}][] by kontynuować budowę
wave = [accent]Fala {0}
wave.waiting = Fala za {0}
@@ -414,7 +429,6 @@ load = Wczytaj
save = Zapisz
fps = FPS: {0}
ping = Ping: {0}ms
-
language.restart = Uruchom grę ponownie, aby ustawiony język zaczął funkcjonować.
settings = Ustawienia
tutorial = Poradnik
@@ -456,7 +470,7 @@ boss.health = Zdrowie Bossa
connectfail = [crimson]Nie można połączyć się z serwerem:\n\n[accent]{0}
error.unreachable = Serwer niedostępny.\nCzy adres jest wpisany poprawnie?
error.invalidaddress = Niepoprawny adres.
-error.timedout = Przekroczono limit czasu!/nUpewnij się, że host ma ustawione przekierowanie portu oraz poprawność wpisanego adresu!
+error.timedout = Przekroczono limit czasu!\nUpewnij się, że host ma ustawione przekierowanie portu oraz poprawność wpisanego adresu!
error.mismatch = Błąd pakietu:\nprawdopodobne niedopasowanie klienta/serwera.\nUpewnij się, że ty i host macie najnowszą wersję Mindustry!
error.alreadyconnected = Jesteś już połączony.
error.mapnotfound = Plik mapy nie został znaleziony!
@@ -493,10 +507,12 @@ zone.nuclearComplex.description = Dawny zakład produkcji i przetwarzania toru,
zone.fungalPass.description = Przejściowy obszar pomiędzy wysokimi górami a nisko znajdującymi się, ogarniętymi przez zarodniki równinami. Znajduje się tu mała postawiona przez wrogów baza zwiadowcza.\nZniszcz ją.\nUżyj jednostek Nóż i Pełzak. Zniszcz oba rdzenie.
zone.impact0078.description =
zone.crags.description =
+
settings.language = Język
settings.data = Dane Gry
settings.reset = Przywróć Domyślne
settings.rebind = Zmień
+settings.resetKey = Resetuj
settings.controls = Sterowanie
settings.game = Gra
settings.sound = Dźwięk
@@ -563,8 +579,8 @@ bar.heat = Ciepło
bar.power = Prąd
bar.progress = Postęp Budowy
bar.spawned = Jednostki: {0}/{1}
-bar.input = Input
-bar.output = Output
+bar.input = Wejście
+bar.output = Wyjście
bullet.damage = [stat]{0}[lightgray] Obrażenia
bullet.splashdamage = [stat]{0}[lightgray] Obrażenia obszarowe ~[stat] {1}[lightgray] kratki
@@ -590,6 +606,8 @@ unit.persecond = /sekundę
unit.timesspeed = x prędkość
unit.percent = %
unit.items = przedmioty
+unit.thousands = tys.
+unit.millions = mln
category.general = Główne
category.power = Prąd
category.liquids = Płyny
@@ -621,19 +639,20 @@ setting.difficulty.normal = Normalny
setting.difficulty.hard = Trudny
setting.difficulty.insane = Szalony
setting.difficulty.name = Poziom trudności
-setting.screenshake.name = Wstrząsy ekranu
+setting.screenshake.name = Siła wstrząsów ekranu
setting.effects.name = Wyświetlanie efektów
setting.destroyedblocks.name = Wyświetl zniszczone bloki
-setting.conveyorpathfinding.name = Conveyor Placement Pathfinding
+setting.conveyorpathfinding.name = Ustalanie ścieżki przenośników
+setting.coreselect.name = Zezwalaj na schematyczne rdzenie
setting.sensitivity.name = Czułość kontrolera
setting.saveinterval.name = Interwał automatycznego zapisywania
setting.seconds = {0} sekund
setting.blockselecttimeout.name = Block Select Timeout
-setting.milliseconds = {0} millisekund
+setting.milliseconds = {0} milisekund
setting.fullscreen.name = Pełny ekran
setting.borderlesswindow.name = Bezramkowe okno[lightgray] (może wymagać restartu)
setting.fps.name = Pokazuj FPS oraz ping
-setting.blockselectkeys.name = Show Block Select Keys
+setting.blockselectkeys.name = Pokazuj skróty klawiszowe bloków
setting.vsync.name = Synchronizacja pionowa
setting.pixelate.name = Pikselacja [lightgray](wyłącza animacje)
setting.minimap.name = Pokaż Minimapę
@@ -653,7 +672,7 @@ public.confirm = Czy chcesz ustawić swoją grę jako publiczną?\n[accent]Każd
public.beta = Wersje beta gry nie mogą tworzyć publicznych pokoi.
uiscale.reset = Skala interfejsu uległa zmianie.\nNaciśnij "OK" by potwierdzić zmiany.\n[scarlet]Cofanie zmian i wyjście z gry za[accent] {0}[]
uiscale.cancel = Anuluj i Wyjdź
-setting.bloom.name = Bloom
+setting.bloom.name = Efekt Bloom
keybind.title = Zmień
keybinds.mobile = [scarlet]Większość skrótów klawiszowych nie funkcjonuje w wersji mobilnej. Tylko podstawowe poruszanie się jest wspierane.
category.general.name = Ogólne
@@ -662,15 +681,15 @@ category.multiplayer.name = Wielu graczy
command.attack = Atakuj
command.rally = Zbierz
command.retreat = Wycofaj
-placement.blockselectkeys = \n[lightgray]Key: [{0},
+placement.blockselectkeys = \n[lightgray]Klawisz: [{0},
keybind.clear_building.name = Wyczyść budynek
keybind.press = Naciśnij wybrany klawisz...
keybind.press.axis = Naciśnij oś lub klawisz...
keybind.screenshot.name = Zrzut ekranu mapy
-keybind.toggle_power_lines.name = Toggle Power Lines
+keybind.toggle_power_lines.name = Zmień widoczność linii energetycznych
keybind.move_x.name = Poruszanie w poziomie
keybind.move_y.name = Poruszanie w pionie
-keybind.mouse_move.name = Follow Mouse
+keybind.mouse_move.name = Podążaj Za Myszą
keybind.dash.name = Dash
keybind.schematic_select.name = Wybierz region
keybind.schematic_menu.name = Menu schematów
@@ -682,16 +701,16 @@ keybind.block_select_left.name = Block Select Left
keybind.block_select_right.name = Block Select Right
keybind.block_select_up.name = Block Select Up
keybind.block_select_down.name = Block Select Down
-keybind.block_select_01.name = Category/Block Select 1
-keybind.block_select_02.name = Category/Block Select 2
-keybind.block_select_03.name = Category/Block Select 3
-keybind.block_select_04.name = Category/Block Select 4
-keybind.block_select_05.name = Category/Block Select 5
-keybind.block_select_06.name = Category/Block Select 6
-keybind.block_select_07.name = Category/Block Select 7
-keybind.block_select_08.name = Category/Block Select 8
-keybind.block_select_09.name = Category/Block Select 9
-keybind.block_select_10.name = Category/Block Select 10
+keybind.block_select_01.name = Wybór bloku/kategorii 1
+keybind.block_select_02.name = Wybór bloku/kategorii 2
+keybind.block_select_03.name = Wybór bloku/kategorii 3
+keybind.block_select_04.name = Wybór bloku/kategorii 4
+keybind.block_select_05.name = Wybór bloku/kategorii 5
+keybind.block_select_06.name = Wybór bloku/kategorii 6
+keybind.block_select_07.name = Wybór bloku/kategorii 7
+keybind.block_select_08.name = Wybór bloku/kategorii 8
+keybind.block_select_09.name = Wybór bloku/kategorii 9
+keybind.block_select_10.name = Wybór bloku/kategorii 10
keybind.fullscreen.name = Przełącz Pełny Ekran
keybind.select.name = Zaznacz
keybind.diagonal_placement.name = Budowa po skosie
@@ -736,6 +755,7 @@ rules.enemyCheat = Nieskończone zasoby komputera-przeciwnika (czerwonego zespo
rules.unitdrops = Surowce ze zniszczonych jednostek
rules.unitbuildspeedmultiplier = Mnożnik prędkości tworzenia jednostek
rules.unithealthmultiplier = Mnożnik życia jednostek
+rules.blockhealthmultiplier = Mnożnik życia bloków
rules.playerhealthmultiplier = Mnożnik życia gracza
rules.playerdamagemultiplier = Mnożnik obrażeń gracza
rules.unitdamagemultiplier = Mnożnik obrażeń jednostek
@@ -804,6 +824,7 @@ mech.trident-ship.name = Trójząb
mech.trident-ship.weapon = Wnęka bombowa
mech.glaive-ship.name = Glewia
mech.glaive-ship.weapon = Zapalający Karabin
+item.corestorable = [lightgray]Przechowywalne w rdzeniu: {0}
item.explosiveness = [lightgray]Wybuchowość: {0}
item.flammability = [lightgray]Palność: {0}
item.radioactivity = [lightgray]Promieniotwórczość: {0}
@@ -1124,8 +1145,8 @@ block.copper-wall.description = Tani blok obronny.\nPrzydatny do ochrony rdzenia
block.copper-wall-large.description = Tani blok obronny.\nPrzydatny do ochrony rdzenia i wieżyczek w pierwszych kilku falach.\nObejmuje wiele kratek.
block.titanium-wall.description = Umiarkowanie silny blok obronny.\nZapewnia umiarkowaną ochronę przed wrogami.
block.titanium-wall-large.description = Umiarkowanie silny blok obronny.\nZapewnia umiarkowaną ochronę przed wrogami.\nObejmuje wiele kratek.
-block.plastanium-wall.description = A special type of wall that absorbs electric arcs and blocks automatic power node connections.
-block.plastanium-wall-large.description = A special type of wall that absorbs electric arcs and blocks automatic power node connections.\nSpans multiple tiles.
+block.plastanium-wall.description = Specjajny typ ściany, który pochłania łuki elektryczne oraz blokuje automatyczne łączenie węzłów.
+block.plastanium-wall-large.description = Specjajny typ ściany, który pochłania łuki elektryczne oraz blokuje automatyczne łączenie węzłów.\nObejmuje wiele kratek.
block.thorium-wall.description = Silny blok obronny.\nDobra ochrona przed wrogami.
block.thorium-wall-large.description = Silny blok obronny.\nDobra ochrona przed wrogami.\nObejmuje wiele kratek.
block.phase-wall.description = Ściana pokryta specjalną mieszanką opartą o Włókna Fazowe, która odbija większość pocisków.
@@ -1164,7 +1185,7 @@ block.phase-conduit.description = Zaawansowany blok do przenoszenia cieczy. Uży
block.power-node.description = Przesyła moc do połączonych węzłów. Można podłączyć do czterech źródeł zasilania, zlewów lub węzłów. Zasila też bloki które go dotykają.
block.power-node-large.description = Posiada większy zasięg niż zwykły węzeł prądu. Można podłączyć do sześciu źródeł zasilania, zlewów lub węzłów.
block.surge-tower.description = Węzęł prądu z bardzo dużym zasięgiem, posiadający mniej możliwych podłączeń.
-block.diode.description = Battery power can flow through this block in only one direction, but only if the other side has less power stored.
+block.diode.description = Energia może przepływać przez ten blok tylko w jednym kierunku, ale tylko kiedy inne strony mają zmagazynowane mniej energii.
block.battery.description = Przechowuje energię przy nadwyżce produkcji oraz dostarcza energię kiedy jest jej brak, dopóki jest w niej miejsce.
block.battery-large.description = Przechowuje o wiele wiecej prądu niż standardowa bateria.
block.combustion-generator.description = Wytwarza energię poprzez spalanie łatwopalnych materiałów.
@@ -1205,7 +1226,7 @@ block.ripple.description = Duża wieża artyleryjska, która strzela jednocześn
block.cyclone.description = Duża szybkostrzelna wieża.
block.spectre.description = Duże działo dwulufowe, które strzela potężnymi pociskami przebijającymi pancerz w jednostki naziemne i powietrzne.
block.meltdown.description = Duże działo laserowe, które strzela potężnymi wiązkami dalekiego zasięgu. Wymaga chłodzenia.
-block.command-center.description = Wydaje polecenia ruchu sojuszniczym jednostkom na całej mapie.\nPowoduje patrolowanie jednostek, atakowanie wrogiego rdzenia lub wycofanie się do rdzenia / fabryki. Gdy nie ma rdzenia wroga, jednostki będą domyślnie patrolować pod dowództwem ataku.
+block.command-center.description = Wydaje polecenia ruchu sojuszniczym jednostkom na całej mapie.\nPowoduje patrolowanie jednostek, atakowanie wrogiego rdzenia lub wycofanie się do rdzenia/fabryki. Gdy nie ma rdzenia wroga, jednostki będą domyślnie patrolować pod dowództwem ataku.
block.draug-factory.description = Produkuje drony wydobywcze Draug.
block.spirit-factory.description = Produkuje lekkie drony, które naprawiają bloki.
block.phantom-factory.description = Produkuje zaawansowane drony które pomagają przy budowie.
@@ -1217,7 +1238,7 @@ block.crawler-factory.description = Produkuje szybkie jednostki lądowe typu "ka
block.titan-factory.description = Produkuje zaawansowane, opancerzone jednostki lądowe.
block.fortress-factory.description = Produkuje naziemne jednostki ciężkiej artylerii.
block.repair-point.description = Bez przerw ulecza najbliższą zniszczoną jednostkę w jego zasięgu.
-block.dart-mech-pad.description = Umożliwia transformacje w podstawowego mecha bojowego.\nUżyj klikając podczas stania na nim.
+block.dart-mech-pad.description = Umożliwia transformację w podstawowego mecha bojowego.\nUżyj klikając podczas stania na nim.
block.delta-mech-pad.description = Opuść swój obecny statek i zamień go na szybki, lekko opancerzony mech stworzony do ataków typu uderz-uciekaj.\nUżyj, klikając dwukrotnie podczas stania na lądowisku.
block.tau-mech-pad.description = Opuść swój obecny statek i zamień go na mech wsparcia który może leczyć sojusznicze struktury i jednostki.\nUżyj, klikając dwukrotnie podczas stania na lądowisku.
block.omega-mech-pad.description = Opuść swój obecny statek i zamień go na masywny, dobrze opancerzony mech, przeznaczony do ataków na froncie.\nUżyj, klikając dwukrotnie podczas stania na lądowisku.
diff --git a/core/assets/bundles/bundle_pt_BR.properties b/core/assets/bundles/bundle_pt_BR.properties
index 1e05466d91..49d4681ea2 100644
--- a/core/assets/bundles/bundle_pt_BR.properties
+++ b/core/assets/bundles/bundle_pt_BR.properties
@@ -10,11 +10,11 @@ link.dev-builds.description = Desenvolvimentos instáveis
link.trello.description = Trello oficial para atualizações planejadas
link.itch.io.description = Página da Itch.io com os downloads
link.google-play.description = Página da google play store
-link.f-droid.description = F-Droid catalogue listing
+link.f-droid.description = Listamento de catalogo do F-Droide
link.wiki.description = Wiki oficial do Mindustry
linkfail = Falha ao abrir o link\nO Url foi copiado para a área de transferência.
screenshot = Screenshot salvo para {0}
-screenshot.invalid = Mapa grande demais, Potencialmente sem memória suficiente para captura de tela.
+screenshot.invalid = Mapa grande demais, Voce pode estar potencialmente sem memória suficiente para captura de tela.
gameover = O núcleo foi destruído.
gameover.pvp = O time[accent] {0}[] ganhou!
highscore = [YELLOW]Novo recorde!
@@ -26,6 +26,7 @@ load.image = Imagens
load.content = Conteúdo
load.system = Sistema
load.mod = Mods
+load.scripts = Scripts
schematic = Esquema
schematic.add = Salvar Esquema...
@@ -41,8 +42,8 @@ schematic.shareworkshop = Compartilhar na Oficina
schematic.flip = [accent][[{0}][]/[accent][[{1}][]: Virar o Esquema
schematic.saved = Esquema salvo.
schematic.delete.confirm = Esse Esquema será totalmente erradicado.
-schematic.rename = Rename Schematic
-schematic.info = {0}x{1}, {2} blocks
+schematic.rename = Renomear esquema
+schematic.info = {0}x{1}, {2} blocos
stat.wave = Hordas derrotadas:[accent] {0}
stat.enemiesDestroyed = Inimigos Destruídos:[accent] {0}
@@ -99,19 +100,24 @@ mod.enabled = [lightgray]Ativado
mod.disabled = [scarlet]Desativado
mod.disable = Desati-\nvar
mod.delete.error = Incapaz de deletar o Mod. O arquivo talvez esteja em uso.
-mod.requiresversion = [scarlet]Requer versão [accent]{0} [scarlet]do jogo.
+mod.requiresversion = [scarlet]Requer no mínimo versão [accent]{0} [scarlet]do jogo.
mod.missingdependencies = [scarlet]Dependências ausentes: {0}
+mod.erroredcontent = [scarlet]Erros no Conteúdo
+mod.errors = Erros ocorreram ao carregar o conteúdo.
+mod.noerrorplay = [scarlet]Você tem mods com erros.[] Desative os mods afetados ou conserte os erros antes de jogar.
mod.nowdisabled = [scarlet]O Mod '{0}' está com dependências ausentes:[accent] {1}\n[lightgray]Esses Mods precisam ser baixados primeiro.\nEsse Mod será desativado automaticamente.
mod.enable = Ativar
mod.requiresrestart = O jogo irá fechar para aplicar as mudanças do Mod.
mod.reloadrequired = [scarlet]Recarregamento necessário
mod.import = Importar Mod
mod.import.github = Importar Mod do GitHub
-mod.remove.confirm = Esse Mod será deletado.
+mod.item.remove = Este item é parte do mod[accent] '{0}'[]. Para removê-lo, desinstale esse mod.
+mod.remove.confirm = Este mod será deletado.
mod.author = [LIGHT_GRAY]Author:[] {0}
-mod.missing = Esse jogo salvo foi criado antes de você atualizar ou desinstalar um mod. O jogo salvo pode se corromper. Você tem certeza que quer carregar?\n[lightgray]Mods:\n{0}
+mod.missing = Esse jogo salvo foi criado antes de você atualizar ou desinstalar um mod. Pode ocorrer uma corrupção no salvamento. Você tem certeza que quer carregar?\n[lightgray]Mods:\n{0}
mod.preview.missing = Antes de publicar esse mod na Oficina, você deve adicionar uma imagem de pré-visualização.\nColoque uma imagem com o nome[accent] preview.png[] na pasta do Mod e tente novamente.
mod.folder.missing = Somente Mods no formato de pasta serão publicados na Oficina.\nPara converter qualquer Mod em uma pasta, Simplesmente descompacte seu arquivo numa pasta e delete a compactação antiga, então reinicie seu jogo ou recarregue os Mods.
+mod.scripts.unsupported = Seu dispositivo não suporta scripts de mods. Alguns mods não funcionarão corretamente.
about.button = Sobre
name = Nome:
@@ -189,9 +195,9 @@ disconnect.data = Falha ao abrir os dados do mundo!
cantconnect = Impossível conectar ([accent]{0}[]).
connecting = [accent]Conectando...
connecting.data = [accent]Carregando dados do mundo...
-server.port = Porte:
+server.port = Port:
server.addressinuse = Senha em uso!
-server.invalidport = Numero de porta invalido!
+server.invalidport = Numero de port inválido!
server.error = [crimson]Erro ao hospedar o servidor: [accent]{0}
save.new = Novo salvamento
save.overwrite = Você tem certeza que quer sobrescrever este salvamento?
@@ -273,11 +279,11 @@ workshop.error = Erro buscando os detalhes da Oficina: {0}
map.publish.confirm = Você tem certeza de que quer publicar este mapa?\n\n[lightgray]Tenha certeza de que você concorda com o EULA da oficina primeiro, ou seus mapas não serão mostrados!
workshop.menu = Selecione oquê você gostaria de fazer com esse Item.
workshop.info = Informação do Item
-changelog = Changelog (optional):
+changelog = Mudanças (opcional):
eula = EULA da Steam
-missing = This item has been deleted or moved.\n[lightgray]The workshop listing has now been automatically un-linked.
-publishing = [accent]Publishing...
-publish.confirm = você tem certeza de que quer publicar isso?\n\n[lightgray]Primeiramente tenha certeza de que você concorda com o EULA da Oficina, ou seus itens não irão aparecer!
+missing = Este item foi deletado ou movido.\n[lightgray]O listamento da oficina foi automaticamente des-ligado.
+publishing = [accent]Publicando...
+publish.confirm = Você tem certeza de que quer publicar isso?\n\n[lightgray]Primeiramente tenha certeza de que você concorda com o EULA da Oficina, ou seus itens não irão aparecer!
publish.error = Erro publicando o Item: {0}
steam.error = Falha em iniciar os serviços da Steam.\nError: {0}
@@ -364,11 +370,11 @@ toolmode.replaceall = Substituir tudo
toolmode.replaceall.description = Substituir todos os blocos no mapa
toolmode.orthogonal = Linha reta
toolmode.orthogonal.description = Desenha apenas linhas retas.
-toolmode.square = Square
+toolmode.square = Quadrado
toolmode.square.description = Pincel quadrado.
toolmode.eraseores = Apagar minérios
toolmode.eraseores.description = Apaga apenas minérios.
-toolmode.fillteams = Encher times
+toolmode.fillteams = Preencher times
toolmode.fillteams.description = Muda o time do qual todos os blocos pertencem.
toolmode.drawteams = Desenhar times
toolmode.drawteams.description = Muda o time do qual o bloco pertence.
@@ -490,8 +496,8 @@ zone.tarFields.description = Nos arredores de uma zona de produção de petróle
zone.desolateRift.description = Uma zona extremamente perigosa. Recursos abundantes, porém pouco espaço. Alto risco de destruição. Saia o mais rápido possível. Não seja enganado pelo longo espaço de tempo entre os ataques inimigos.
zone.nuclearComplex.description = Uma antiga instalação para produção e processamento de tório, reduzido a ruínas.\n[lightgray]Pesquise o tório e seus muitos usos.\n\nO inimigo está presente aqui em grandes números, constantemente à procura de atacantes.
zone.fungalPass.description = Uma area de transição entre montanhas altas e baixas, terras cheias de esporos. Uma pequena base de reconhecimento inimiga está localizada aqui.\nDestrua-a.\nUse as unidades crawler e dagger. Destrua os dois núcleos.
-zone.impact0078.description =
-zone.crags.description =
+zone.impact0078.description =
+zone.crags.description =
settings.language = Idioma
settings.data = Dados do jogo
@@ -506,7 +512,7 @@ settings.cleardata = Apagar dados...
settings.clear.confirm = Certeza que quer limpar a os dados?\nOque é feito não pode ser desfeito!
settings.clearall.confirm = [scarlet]Aviso![]\nIsso vai limpar todo os arquivos, incluindo jogos salvos, mapas, teclas personalizadas e desbloqueados.\nQuando apertar 'ok' todos os arquivos serão apagados e o jogo irá sair automaticamente.
paused = Pausado
-clear = Clear
+clear = Limpo
banned = [scarlet]Banido
yes = Sim
no = Não
@@ -515,7 +521,7 @@ error.title = [crimson]Ocorreu um Erro.
error.crashtitle = Ocorreu um Erro
blocks.input = Entrada
blocks.output = Saída
-blocks.booster = Booster
+blocks.booster = Apoio
block.unknown = [LIGHT_GRAY]???
blocks.powercapacity = Capacidade de Energia
blocks.powershot = Energia/tiro
@@ -591,12 +597,14 @@ unit.persecond = por segundo
unit.timesspeed = x Velocidade
unit.percent = %
unit.items = itens
+unit.thousands = k
+unit.millions = m
category.general = Geral
-category.power = Poder
+category.power = Energia
category.liquids = Líquidos
category.items = Itens
-category.crafting = Construindo
-category.shooting = Atirando
+category.crafting = Entrada/Saída
+category.shooting = Atiradores
category.optional = Melhoras opcionais
setting.landscape.name = Travar panorama
setting.shadows.name = Sombras
@@ -651,7 +659,7 @@ setting.chatopacity.name = Opacidade do chat
setting.lasersopacity.name = Opacidade do laser
setting.playerchat.name = Mostrar chat em jogo
public.confirm = Você quer fazer sua partida pública?\n[accent]Qualquer um será capaz de entrar na sua partida.\n[lightgray]Isso pode ser mudado depois em Configurações->Jogo->Visibilidade da partida pública.
-public.beta = Note that beta versions of the game cannot make public lobbies.
+public.beta = Note que as versões beta do jogo não podem fazer salas publicas.
uiscale.reset = A escala da IU foi mudada.\nPressione "OK" para confirmar esta escala.\n[scarlet]Revertendo e saindo em[accent] {0}[] settings...
uiscale.cancel = Cancelar e sair
setting.bloom.name = Bloom
@@ -719,10 +727,10 @@ keybind.zoom_minimap.name = Zoom do minimapa
mode.help.title = Descrição dos modos
mode.survival.name = Sobrevivência
mode.survival.description = O modo normal. Recursos limitados e hordas automáticas.
-mode.sandbox.name = Sandbox
+mode.sandbox.name = Caixa de areia
mode.sandbox.description = Recursos infinitos e sem tempo para ataques.
mode.editor.name = Editor
-mode.pvp.name = JXJ
+mode.pvp.name = JxJ
mode.pvp.description = Lutar contra outros jogadores locais.
mode.attack.name = Ataque
mode.attack.description = Sem hordas, com o objetivo de destruir a base inimiga.
@@ -805,6 +813,7 @@ mech.trident-ship.name = Tridente
mech.trident-ship.weapon = Carga de bombas
mech.glaive-ship.name = Glaive
mech.glaive-ship.weapon = Repetidor de fogo
+item.corestorable = [lightgray]Armazenável no núcleo: {0}
item.explosiveness = [LIGHT_GRAY]Explosibilidade: {0}
item.flammability = [LIGHT_GRAY]Inflamabilidade: {0}
item.radioactivity = [LIGHT_GRAY]Radioatividade: {0}
@@ -980,9 +989,9 @@ block.spirit-factory.name = Fábrica de drone de reparo Spirit
block.phantom-factory.name = Fábrica de drone de construção Phantom
block.wraith-factory.name = Fábrica de lutadores Wraith
block.ghoul-factory.name = Fábrica de Bombardeiros Ghoul
-block.dagger-factory.name = Fábrica de mech Dagger
-block.crawler-factory.name = Fábrica de mech Crawler
-block.titan-factory.name = Fábrica de mech titan
+block.dagger-factory.name = Fábrica de Mecas Dagger
+block.crawler-factory.name = Fábrica de Mecas Crawler
+block.titan-factory.name = Fábrica de Mecas Titan
block.fortress-factory.name = Fábrica de mech Fortress
block.revenant-factory.name = Fábrica de lutadores Revenant
block.repair-point.name = Ponto de Reparo
@@ -1039,7 +1048,7 @@ unit.eradicator.name = Erradicador
unit.lich.name = Lich
unit.reaper.name = Ceifador
tutorial.next = [lightgray]
-tutorial.intro = Você entrou no[scarlet] Tutorial do Mindustry.[]\nComeçe[accent] minerando cobre[]. Toque em um veio de minério de cobre para fazer isso.\n\n[accent]{0}/{1} copper
+tutorial.intro = Você entrou no[scarlet] Tutorial do Mindustry.[]\nUse[accent] [[WASD][] para se mover.\n[accent]Roda do mouse[] para aumentar e diminuir o zoom.\nComece[accent] minerando cobre[]. Toque em um veio de minério de cobre para fazer isso.\n\n[accent]{0}/{1} copper
tutorial.intro.mobile = You have entered the[scarlet] Mindustry Tutorial.[]\nSwipe the screen to move.\n[accent]Pinch with 2 fingers [] to zoom in and out.\nBegin by[accent] mining copper[]. Move close to it, then tap a copper ore vein near your core to do this.\n\n[accent]{0}/{1} copper
tutorial.drill = Minerar manualmente é ineficiente.\n[accent]Brocas []podem minerar automaticamente.\nColoque uma num veio de cobre.
tutorial.drill.mobile = Minerar manualmente é ineficiente.\n[accent]Brocas []podem minerar automaticamente.\nToque na aba de brocas no canto inferior direito.\nSelecione a[accent] broca mecânica[].\nToque em um veio de cobre para colocá-la, então pressione a[accent] marca de verificação[] abaixo para confirmar sua seleção.\nPressione o[accent] botão "X"[] para cancelar o posicionamento.
@@ -1047,7 +1056,7 @@ tutorial.blockinfo = Cada bloco tem diferentes status. Cada broca pode extrair c
tutorial.conveyor = [accent]Esteiras[] São usadas para transportar itens até o núcleo.\nFaça uma linha de Esteiras da mineradora até o núcleo.
tutorial.conveyor.mobile = [accent]Esteiras[] são usadas para transportar itens até o núcleo.\nFaça uma linha de esteiras da broca até o núcleo.\n[accent] Coloque uma linha segurando por alguns segundos[] e arrastando em uma direção.\n\n[accent]{0}/{1} esteiras colocadas em linha\n[accent]0/1 itens entregues
tutorial.turret = Estruturas defensivas devem ser construidas para repelir[LIGHT_GRAY] o inimigo[].\nConstrua uma torre dupla perto de sua base.
-tutorial.drillturret = Torretas duplas precisam de[accent] cobre[] como munição para atirar.\nColoque uma broca próxima à torre para carregá-la com o cobre minerado.
+tutorial.drillturret = Torres duplas precisam de[accent] cobre[] como munição para atirar.\nColoque uma broca próxima à torre para carregá-la com o cobre minerado.
tutorial.pause = Durante uma batalha, você pode[accent] pausar o jogo.[]\nVocê pode enfileirar construções enquanto o jogo está pausado.\n\n[accent]Pressione a barra de espaço para pausar.
tutorial.pause.mobile = Durante uma batalha, você pode[accent] pausar o jogo.[]\nVocê pode enfileirar construções enquanto o jogo está pausado.\n\n[accent]Pressione este botão no canto superior direito para pausar.
tutorial.unpause = Agora pressione novamente a barra de espaço para despausar.
@@ -1102,7 +1111,7 @@ unit.revenant.description = Uma matriz de mísseis pesada e flutuante.
block.message.description = Armazena uma mensagem. Usado para comunicação entre aliados.
block.graphite-press.description = Comprime pedaços de carvão em lâminas de grafite puro.
block.multi-press.description = Uma versão melhorada da prensa de grafite. Usa água e energia para processar carvão rápida e eficientemente.
-block.silicon-smelter.description = Reduz areia com carvão puro. Produz silício silicio.
+block.silicon-smelter.description = Reduz areia a silicio usando carvão puro. Produz silício.
block.kiln.description = Derrete chumbo e areia no composto conhecido como metavidro. Requer pequenas quantidades de energia.
block.plastanium-compressor.description = Produz plastânio usando petróleo e titânio.
block.phase-weaver.description = Produz tecido de fase usando tório radioativo e areia. Requer massivas quantidades de energia para funcionar.
@@ -1138,9 +1147,9 @@ block.door-large.description = Uma grande porta. Pode ser aberta e fechada ao to
block.mender.description = Periodicamente repara blocos vizinhos. Mantem as defesas reparadas em e entre ondas.\nPode usar silício para aumentar o alcance e a eficiência.
block.mend-projector.description = Uma versão melhorada do reparador. Repara blocos vizinhos.\nPode usar tecido de fase para aumentar o alcance e a eficiência.
block.overdrive-projector.description = Aumenta a velocidade de construções vizinhas.\nPode usar tecido de fase para aumentar o alcance e a eficiência.
-block.force-projector.description = Cria um campo de forca hexagonal em volta de si mesmo, Protegendo construções e unidades dentro de dano por balas.
+block.force-projector.description = Cria um campo de força hexagonal ao redor de si, protegendo construções e unidades.\nSuperaquece se suportar muito dano. Pode usar líquidos para evitar superaquecimento. Pode-se usar tecido de fase para aumentar o tamanho do escudo.
block.shock-mine.description = Danifica inimigos em cima da mina. Quase invisivel ao inimigo.
-block.conveyor.description = Bloco de transporte de item basico. Move os itens a frente e os deposita automaticamente em torretas ou construtores. Rotacionavel.
+block.conveyor.description = Bloco de transporte de item basico. Move os itens a frente e os deposita automaticamente em torretas ou construtores. Rotacionável.
block.titanium-conveyor.description = Bloco de transporte de item avançado. Move itens mais rapidos que esteiras padrões.
block.junction.description = Funciona como uma ponte Para duas esteiras que estejam se cruzando. Util em situações que tenha duas esteiras diferentes carregando materiais diferentes para lugares diferentes.
block.bridge-conveyor.description = Bloco de transporte de itens avancado. Possibilita o transporte de itens acima de 3 blocos de construção ou paredes.
@@ -1176,7 +1185,7 @@ block.rtg-generator.description = Um Gerador termoelétrico de radioisótopos qu
block.solar-panel.description = Gera pequenas quantidades de energia do sol.
block.solar-panel-large.description = Uma versão significantemente mais eficiente que o painel solar padrão.
block.thorium-reactor.description = Gera altas quantidades de energia do torio radioativo. Requer resfriamento constante. Vai explodir violentamente Se resfriamento insuficiente for fornecido.
-block.impact-reactor.description = An advanced generator, capable of creating massive amounts of power at peak efficiency. Requires a significant power input to kickstart the process.
+block.impact-reactor.description = Um gerador avançado, capaz de criar quantidades enormes de energia em seu poder total. Requer uma entrada significativa de energia ao iniciar.
block.mechanical-drill.description = Uma broca barata. Quando colocado em blocos apropriados, retira itens em um ritmo lento e indefinitavamente.
block.pneumatic-drill.description = Uma broca improvisada que é mais rápida e capaz de processar materiais mais duros usando a pressão do ar
block.laser-drill.description = Possibilita a mineração ainda mais rapida usando tecnologia a laser, Mas requer poder adcionalmente torio radioativo pode ser recuperado com essa mineradora
diff --git a/core/assets/bundles/bundle_th.properties b/core/assets/bundles/bundle_th.properties
index 90b72d7312..6be91f3bad 100644
--- a/core/assets/bundles/bundle_th.properties
+++ b/core/assets/bundles/bundle_th.properties
@@ -29,7 +29,7 @@ load.mod = มอด
schematic = Schematic
schematic.add = กำลังบันทึก Schematic...
schematics = Schematics
-schematic.replace = มี schematic ที่ใช้ชื่อนี้แล้ว. แทนที่มัน?
+schematic.replace = มี schematic ที่ใช้ชื่อนี้แล้ว. แทนที่เลยไม?
schematic.import = นำเข้า Schematic...
schematic.exportfile = ส่งออก File
schematic.importfile = นำเข้า File
@@ -60,7 +60,7 @@ level.mode = เกมโหมด:
showagain = ไม่แสดงอีกในครั้งต่อไป
coreattack = < Core กำลังถูกโจมตี! >
nearpoint = [[ [scarlet]ออกจากดรอปพอยท์ด่วน IMMEDIATELY[] ]\nการทำลายล้างกำลังใกล้เข้ามา
-database = Core Database
+database = ฐานข้อมูหลัง
savegame = เซฟเกม
loadgame = โหลดเกม
joingame = เข้าร่วมเกม
@@ -116,7 +116,7 @@ noname = ใส่ชื่อ[accent] ผู้เล่น[] ก่อน.
filename = ชื่อไฟล์:
unlocked = content ใหม่ปลดล็อค!
completed = [accent]สำเร็จ
-techtree = สายวิจัย
+techtree = ความคืบหน้าในการวิจัย
research.list = [lightgray]วิจัย:
research = วิจัย
researched = [lightgray]{0} วิจัยแล้ว.
@@ -126,9 +126,9 @@ server.closing = [accent]กำลังปิดเซิฟเวอร์...
server.kicked.kick = คุณถูกเตะออกจากเซิฟเวอร์!
server.kicked.whitelist = คุณไม่ได้อยู่ใน whitelisted
server.kicked.serverClose = เซิฟเวอร์ถูกปิด.
-server.kicked.vote = คุณถูกโหวตเตะออก. บายบาย.
-server.kicked.clientOutdated = client ล่าสมัย! กรุณาอัปเดตเกมของคุณ!
-server.kicked.serverOutdated = server ล่าสมัย! โปรดถามเจ้าของเซิฟเพื่ออัปเดต!
+server.kicked.vote = คุณถูกโหวตเตะออก. บัยบาย.
+server.kicked.clientOutdated = client เก่า! กรุณาอัปเดตเกมของคุณ!
+server.kicked.serverOutdated = server เก่า! โปรดถามเจ้าของเซิฟเพื่ออัปเดต!
server.kicked.banned = คุณถูกแบนในเซิฟเวอร์นี้
server.kicked.typeMismatch = เซิฟเวอร์นี้ไม่เข้ากับ build type ของคุณ.
server.kicked.playerLimit = เซิฟเวอร์เต็ม. กรุณารอให้เซิฟเวอร์ว่างก่อน.
@@ -598,7 +598,7 @@ category.items = ไอเท็ม
category.crafting = นำเข้า/ส่งออก
category.shooting = การยิง
category.optional = การเพิ่มประสิทธิภาพทางเลือก
-setting.landscape.name = ล็อค Landscape
+setting.landscape.name = ล็อค Landscape แนวนอน
setting.shadows.name = เงา
setting.blockreplace.name = แนะนำบล็อคโดยอัตโนมัติ
setting.linear.name = การกรองเชิงเส้น
@@ -761,26 +761,26 @@ item.scrap.name = เศษเหล็ก
liquid.water.name = น้ำ
liquid.slag.name = กากแร่
liquid.oil.name = น้ำมัน
-liquid.cryofluid.name = ไครโยฟลูอิด
+liquid.cryofluid.name = โครโรฟิวล์
mech.alpha-mech.name = อัลฟ้า
mech.alpha-mech.weapon = เฮฟวี้รีพีทเตอร์
mech.alpha-mech.ability = รีเจเนเรชั่น
mech.delta-mech.name = เดลต้า
mech.delta-mech.weapon = เครื่องกำเนิดประกายไฟฟ้า
-mech.delta-mech.ability = ปล่อย
+mech.delta-mech.ability = ปล่อยสายฟ้า
mech.tau-mech.name = เทา
mech.tau-mech.weapon = รีสตัคเลเซอร์
mech.tau-mech.ability = เบิสต์ซ่อมแซม
mech.omega-mech.name = โอเมก้า
-mech.omega-mech.weapon = ฝูงขีปนาวุธ
+mech.omega-mech.weapon = ขีปนาวุธมหาปลัย
mech.omega-mech.ability = ตัวเสริมเกราะ
mech.dart-ship.name = ลูกดอก (Dart)
mech.dart-ship.weapon = รีพีตเตอร์
-mech.javelin-ship.name = หอก (Javelin)
+mech.javelin-ship.name = จาวาลีน (Javelin)
mech.javelin-ship.weapon = ขีปนาวุธเบิสต์
mech.javelin-ship.ability = ดิสชาร์จบูสเตอร์
mech.trident-ship.name = ตรีศูล (Trident)
-mech.trident-ship.weapon = ห้องเก็บระเบิด
+mech.trident-ship.weapon = ตัวปล่อยระเบิด
mech.glaive-ship.name = เกลฟว์
mech.glaive-ship.weapon = รีพีตเตอร์ไฟ
item.explosiveness = [lightgray]ค่าการระเบิด: {0}%
@@ -809,8 +809,8 @@ block.sandrocks.name = หินทราย
block.spore-pine.name = ต้นสนสปอร์
block.sporerocks.name = หินสปอร์
block.rock.name = หิน
-block.snowrock.name = หินหิมะ
-block.snow-pine.name = ต้นสนหิมะ
+block.snowrock.name = ก้อนหิมะ
+block.snow-pine.name = ต้นสนที่คลุมหิมะ
block.shale.name = หินดินดาน
block.shale-boulder.name = ก้อนหินดินดาน
block.moss.name = ตะไคร่น้ำ
@@ -905,9 +905,8 @@ block.cryofluidmixer.name = เครื่องผสมไครโยฟล
block.melter.name = เตาหลอม
block.incinerator.name = เตาเผาขยะ
block.spore-press.name = เครื่องอัดสปอร์
-block.separator.name =
-เครื่องแยก
-block.coal-centrifuge.name = เครื่องปั่นเหวี่งถ่านหิน
+block.separator.name = เครื่องแยก
+block.coal-centrifuge.name = เครื่องผลิตถ่านหิน
block.power-node.name = โหนดพลังงาน
block.power-node-large.name = โหนดพลังงานขนาดใหญ่
block.surge-tower.name = เสาเสิร์จ
@@ -916,7 +915,7 @@ block.battery.name = แบตเตอรี่
block.battery-large.name = แบตเตอรี่ขนาดใหญ่
block.combustion-generator.name = เครื่องกำเนิดไฟฟ้าเผาไหม้
block.turbine-generator.name = เครื่องกำเนิดไฟฟ้าไอน้ำ
-block.differential-generator.name = เครื่องกำเนิดไฟฟ้าดิฟเฟอเร่นเชี่ยว
+block.differential-generator.name = เครื่องกำเนิดไฟฟ้าดิฟเฟอเร่นเตอร์
block.impact-reactor.name = เตาปฏิกรณ์อิมแพ็ค
block.mechanical-drill.name = เครื่องขุดเชิงกล
block.pneumatic-drill.name = เครื่องขุดนิวมาติก
@@ -930,7 +929,7 @@ block.trident-ship-pad.name = ฐานปล่อยยานตรีศู
block.glaive-ship-pad.name = ฐานปล่อยยานเกลฟว์
block.omega-mech-pad.name = ฐานปล่อยเม็คโอเมก้า
block.tau-mech-pad.name = ฐานปล่อยเม็คเทา (Tau)
-block.conduit.name = รางน้ำ
+block.conduit.name = ท่อน้ำ
block.mechanical-pump.name = ปั๊มเชิงกล
block.item-source.name = จุดกำเนิดไอเท็ม
block.item-void.name = จุดลบไอเท็ม
@@ -943,8 +942,8 @@ block.wave.name = เวฟ
block.swarmer.name = สวอร์มเมอร์
block.salvo.name = ซาวโว
block.ripple.name = ริปเปิ้ล
-block.phase-conveyor.name = สายพานเฟส
-block.bridge-conveyor.name = สะพานสายพาน
+block.phase-conveyor.name = สายพานความเร็วแสง
+block.bridge-conveyor.name = สะพาน
block.plastanium-compressor.name = เครื่องอัดพลาสตาเนียม
block.pyratite-mixer.name = เครื่องผสมไพราไทต์
block.blast-mixer.name = เครื่องผสมสารประกอบระเบิด
@@ -964,11 +963,11 @@ block.fortress-factory.name = โรงงานผลิตฟอร์เท
block.revenant-factory.name = โรงงานผลิตยานไฟต์เตอร์เรเวแนนท์
block.repair-point.name = จุดซ่อมแซม
block.pulse-conduit.name = รางน้ำโพวส์
-block.phase-conduit.name = รางน้ำเฟส
+block.phase-conduit.name = ท่อน้ำความเร็วแสง
block.liquid-router.name = เร้าเตอร์ของเหลว
-block.liquid-tank.name = แทงค์เก็บของเหลว
+block.liquid-tank.name = แทงค์น้ำ
block.liquid-junction.name = ทางแยกของเหลว
-block.bridge-conduit.name = สะพานรางน้ำ
+block.bridge-conduit.name = ท่อน้ำยกระดับ
block.rotary-pump.name = ปั๊มโรตารี้
block.thorium-reactor.name = เตาปฏิกรณ์ทอเรี่ยม
block.mass-driver.name = แมสไดรฟ์เวอร์
@@ -982,8 +981,8 @@ block.surge-wall.name = กำแพงเสิร์จ
block.surge-wall-large.name = กำแพงเสิร์จขนาดใหญ่
block.cyclone.name = ไซโคลน
block.fuse.name = ฟิวส์
-block.shock-mine.name = กับระเบิดไฟฟ้าซ็อต
-block.overdrive-projector.name = โอเวอร์ไดรฟ์โปรเจ็คเตอร์
+block.shock-mine.name = กับระเบิดไฟฟ้า
+block.overdrive-projector.name = เครื่องเร่งประสิทธิภาพ
block.force-projector.name = ฟอร์สโปรเจ็คเตอร์
block.arc.name = อาร์ค
block.rtg-generator.name = เครื่องกำเนิดไฟฟ้า อาร์ทีจี
@@ -1013,7 +1012,7 @@ unit.eruptor.name = อีรัฟเตอร์
unit.chaos-array.name = เคออสอาเรย์
unit.eradicator.name = อีเรดิเคเตอร์
unit.lich.name = ลิช
-unit.reaper.name = รีฟเฟอร์
+unit.reaper.name = รีฟเปอร์
tutorial.next = [lightgray]<กดเพื่อดำเนินการต่อ>
tutorial.intro = คุณได้เข้าสู่[scarlet] การสอนเล่นของ Mindustry.[]\nใช้ [[WASD] เพื่อเคลื่อนที่.\n[accent]กด [[Ctrl] ค้างระหว่างกลิ้งลูกกลิ้งเม้าส์[] เพื่อซูมเข้าและออก.\nเริ่มด้วยการ[accent] ขุดทองแดง[]. เคลื่อนที่ไปใกล้มัน, แล้วกดที่สายแร่ทองแดงใกล้ๆกับ core ของคุณ\n\n[accent]ทองแดง {0}/{1} ชิ้น
tutorial.intro.mobile = คุณได้เข้าสู่[scarlet] การสอนเล่นของ Mindustry.[]\nเลื่อนหน้าจอเพื่อเคลื่อนที่.\n[accent]ใส่สองนิ้ว []เพื่อซูมเข้าและออก.\nเริ่มด้วยการ[accent] ขุดทองแดง[]. เคลื่อนที่ไปใกล้มัน, แล้วกดที่สายแร่ทองแดงใกล้ๆกับ core ของคุณ\n\n[accent]ทองแดง {0}/{1} ชิ้น
@@ -1110,7 +1109,7 @@ block.phase-wall-large.description = A wall coated with special phase-based refl
block.surge-wall.description = บล็อคป้องกันที่มีทนทานสูง.\nสะสมพลังงานจากกระสุน, แล้วปล่อยออกมาแบบสุ่ม.
block.surge-wall-large.description = บล็อคป้องกันที่มีทนทานสูง.\nสะสมพลังงานจากกระสุน, แล้วปล่อยออกมาแบบสุ่ม.\nคลอบคลุมหลายช่อง.
block.door.description = ประตูขนาดเล็ก. สามารถเปิดได้โดยการกด.
-block.door-large.description = ประตูขนาดใหญ่. สามารถเปิดได้โดยการกด.\nคลอบคลุมหลายช่อง.
+block.door-large.description = ประตูขนาดใหญ่. สามารถเปิดและปิดได้โดยการกด.\nคลอบคลุมหลายช่อง.
block.mender.description = ซ่อมแซมบล็อคในวงของมันเป็นระยะๆ. ช่วยซ่อมแซมแนวป้องกันระหว่าง wave.\nสามารถใช้ซิลิก้อนเพื่อเพิ่มรัศมีและประสิทธิภาพได้
block.mend-projector.description = เมนเดอร์ที่ได้รับการอัปเกรด. ซ่อมแซมบล็อคในระยะของมัน.\nสามารถใช้ใยเฟสเพื่อเพิ่มระยะและประสิทธิภาพได้.
block.overdrive-projector.description = เพิ่มความเร็วของสิ่งก่อสร้างรอบๆ.\nสามารถใช้ใยเฟสเพื่อเพิ่มระยะและประสิทธิภาพ.
@@ -1123,7 +1122,7 @@ block.bridge-conveyor.description = บล็อคขนส่งไอเท
block.phase-conveyor.description = บล็อคขนส่งไอเท็มขั้นสูง. ใช้พลังงานเพื่อส่งไอเท็มไปยังสายพานเฟสอีกอัน ข้ามได้หลายช่อง.
block.sorter.description = แยกไอเท็ม. ถ้าไอเท็มตรงกับที่เลือกไว้, จะผ่านได้. แต่ถ้าไม่ตรง, ไอเท็มจะออกทางซ้ายหรือขวา (ใช้ทางที่ไอเท็มเข้าเป็นหลัก)
block.inverted-sorter.description = แยกไอเท็มคล้ายเครื่องแยกธรรมดา, แต่ไอเท็มที่เลือกจะออกข้างแทน.
-block.router.description = รับไอเท็มแล้วส่งออก 3 ทางเท่ากัน. มีประโยชน์สำหรับแยกไอเท็มจากแหล่งเดียวไปหลายที่.\n\n[scarlet]อย่าวางไว้ติดกับทางส่งไอเท็มเข้าเพราะของออกจะไปอุดตันได้.[]
+block.router.description = รับไอเท็มแล้วส่งออก 3 ทางเท่าๆกัน. มีประโยชน์สำหรับแยกไอเท็มจากแหล่งเดียวไปหลายที่.\n\n[scarlet]อย่าวางไว้ติดกับทางส่งไอเท็มเข้าเพราะของออกจะไปอุดตันได้.[]
block.distributor.description = เร้าเตอร์ขั้นสูง. แยกไอเท็มออก 7 ทางอย่างเท่าๆกัน.
block.overflow-gate.description = ของจะออกจากข้างๆเมื่อทางข้างหน้ถูกบล็อคเท่านั้น.
block.mass-driver.description = บล็อคขนส่งไอเท็มขั้นสุดยอด. รวบรวมไอเท็มจำนวนหนึ่งแล้วยิงไปหาแมสไดรเวอร์อีกอันที่อยู่ไกลออกไป. ต้องใช้พลังงานในการใช้งาน.
@@ -1150,7 +1149,7 @@ block.differential-generator.description = ผลิตไฟฟ้าจำน
block.rtg-generator.description = เครื่องกำเนิดไฟฟ้าที่ใช้ง่ายและไว้ใจได้. ใช้ความร้อนจากการสลายของสารกัมมัตภาพรังสีเพื่อใช้ผลิตพลังงานอย่างช้าๆ.
block.solar-panel.description = ให้พลังงานจากแสงอาทิตย์จำนวนน้อย.
block.solar-panel-large.description = เวอร์ชั่นของแผงโซล่าเซลล์ที่มีประสิทธิภาพมากขึ้นกว่าแผงโซล่าเซลล์ธรรมดา.
-block.thorium-reactor.description = ผลิตพลังงานจำนวนมากจากทอเรี่ยม. ตำเป็นต้องใช้สารหล่อเย็นตลอดเวลา. จะระเบิดอย่างรุนแรงหากไม่ได้รับสารหล่อเย็นในจำนวนที่ต้องการ. จำนวนพลังงานที่ผลิตขึ้นอยู่กับความเต็ม และผลิตพลังงานเริ่มต้นที่ความสามารถสูงสุด.
+block.thorium-reactor.description = ผลิตพลังงานจำนวนมากจากทอเรี่ยม. จำเป็นต้องใช้สารหล่อเย็นตลอดเวลา. จะระเบิดอย่างรุนแรงหากไม่ได้รับสารหล่อเย็นในจำนวนที่ต้องการ. จำนวนพลังงานที่ผลิตขึ้นอยู่กับความเต็ม และผลิตพลังงานเริ่มต้นที่ความสามารถสูงสุด.
block.impact-reactor.description = เครื่องกำเนิดไฟฟ้าขั้นสูง, สามารถผลิตไฟฟ้าได้จำนวนมหาศาลที่ประสิทธิภาพสูงสุด. จำเป็นต้องใช้พลังงานจำนวนมากในการสตาร์ทเครื่อง.
block.mechanical-drill.description = เครื่องขุดราคาถูก. เมื่อวางบนบล็อคที่ถูกต้อง, จะส่งไอเท็มของมันออกมาเรื่อยๆแบบไม่มีที่สิ้นสุด. ขุดได้แค่ทรัพยากรพื้นฐาน.
block.pneumatic-drill.description = เครื่องขุดได้รับการปรับปรุง, สามารถขุดไทเทเนี่ยมได้. ขุดไวกว่าเครื่องขุดเชิงกล.
@@ -1186,16 +1185,16 @@ block.draug-factory.description = ผลิตโดรนขุดเจาะ
block.spirit-factory.description = ผลิตโดรนซ่อมแซมสปิริต.
block.phantom-factory.description = ผลิตโดรนก่อสร้างขั้นสูง.
block.wraith-factory.description = ผลิตยูนิตเร็ว โจมตีแบบ hit-and-run (จู่โจมแล้วหนี)
-block.ghoul-factory.description = ผลิตยานทิ้งระเบิดปูพรมหนัก (heavy carpet bomber)
+block.ghoul-factory.description = ผลิตยานทิ้งระเบิดแบบโหดๆ (heavy carpet bomber)
block.revenant-factory.description = ผลิตยูนิตที่ใช้ขีปนาวุธเป็นหลัก.
block.dagger-factory.description = ผลิตยูนิตภาคพื้นดินพื้นฐาน.
-block.crawler-factory.description = ผลิตยูนิตพลีชีพเร็ว.
+block.crawler-factory.description = ผลิตยูนิตที่ระเบิดตัวเอง.
block.titan-factory.description = ผลิตยูนิตภาคพื้นดินเสริมเกราะขั้นสูง.
-block.fortress-factory.description = ผลิตยูนิตหนักติดปืนใหญ่.
+block.fortress-factory.description = ผลิตยูนิตที่ถึกและติดปืนใหญ่.
block.repair-point.description = ซ่อมแซมยูนิตที่อยู่ในรัศมีอย่างต่อเนื่อง.
block.dart-mech-pad.description = ใช้เปลี่ยนร่างเป็นเป็นเม็คโจมตีพื้นฐาน.\nใช้โดยการกดเมื่อยืนทับมัน.
-block.delta-mech-pad.description = ใช้เปลี่ยนร่างเป็นเป็นเม็คเกราะบางโจมตีแบบ hit-and-run (จู่โจมแล้วหนี).\nใช้โดยการกดเมื่อยืนทับมัน.
-block.tau-mech-pad.description = ใช้เปลี่ยนร่างเป็นเป็นเม็คสนับสนุนขั้นสูง.\nใช้โดยการกดเมื่อยืนทับมัน.
+block.delta-mech-pad.description = ใช้เปลี่ยนร่างเป็นเป็นเม็คเกราะบางโจมตีแบบ hit-and-run (จูค).\nใช้โดยการกดเมื่อยืนทับมัน.
+block.tau-mech-pad.description = ใช้เปลี่ยนร่างเป็นตัวที่ฮีลได้ดีมาก.\nใช้โดยการกดเมื่อยืนทับมัน.
block.omega-mech-pad.description = ใช้เปลี่ยนร่างเป็นเป็นเม็คใช้ขีปนาวุธเกราะหนา.\nใช้โดยการกดเมื่อยืนทับมัน.
block.javelin-ship-pad.description = ใช้เปลี่ยนร่างเป็นเป็นอินเทอร์เซ็ปเตอร์เร็วแบะเกราะบาง.\nใช้โดยการกดเมื่อยืนทับมัน.
block.trident-ship-pad.description = ใช้เปลี่ยนร่างเป็นเป็นยานทิ้งระเบิดสนับสนุน.\nใช้โดยการกดเมื่อยืนทับมัน.
diff --git a/core/assets/bundles/bundle_uk_UA.properties b/core/assets/bundles/bundle_uk_UA.properties
index a0c1edf720..8decca67f5 100644
--- a/core/assets/bundles/bundle_uk_UA.properties
+++ b/core/assets/bundles/bundle_uk_UA.properties
@@ -10,8 +10,9 @@ link.dev-builds.description = Нестабільні версії
link.trello.description = Офіційна дошка Trello для запланованих функцій
link.itch.io.description = Itch.io сторінка, на якій можна завантажити гру
link.google-play.description = Завантажити для Android з Google Play
-link.f-droid.description = Перелік каталогу F-Droid
+link.f-droid.description = Завантажити для Android з F-Droid
link.wiki.description = Офіційна Mindustry wiki
+link.feathub.description = Запропонувати нові функції
linkfail = Не вдалося відкрити посилання!\nURL-адреса скопійована в буфер обміну.
screenshot = Зняток мапи збережено в {0}
screenshot.invalid = Мапа занадто велика, тому, мабуть, не вистачає пам’яті для знятку мапи.
@@ -27,6 +28,13 @@ load.system = Система
load.mod = Модифікації
load.scripts = Скрипти
+be.update = Доступна нова збірка Bleeding Edge:
+be.update.confirm = Завантажити і перезавантажити зараз?
+be.updating = Оновлення…
+be.ignore = Ігнорувати
+be.noupdates = Оновлень не знайдено.
+be.check = Перевірити на наявність оновлень
+
schematic = Схема
schematic.add = Зберегти схему…
schematics = Схеми
@@ -37,7 +45,7 @@ schematic.importfile = Імпортувати файл
schematic.browseworkshop = Переглянути в Майстерні
schematic.copy = Копіювати в буфер обміну
schematic.copy.import = Імпортувати з клавіатури
-schematic.shareworkshop = Поширити в Майстерні
+schematic.shareworkshop = Поширити в Майстерню
schematic.flip = [accent][[{0}][]/[accent][[{1}][]: Відобразити схему
schematic.saved = Схема збережена.
schematic.delete.confirm = Ця схема буде повністю випалена.
@@ -67,7 +75,7 @@ customgame = Користувацька гра
newgame = Нова гра
none = <нічого>
minimap = Мінімапа
-position = Позиція
+position = Місцерозташування
close = Закрити
website = Веб-сайт
quit = Вихід
@@ -97,22 +105,25 @@ mod.author = [LIGHT_GRAY]Автор:[] {0}
mods.alpha = [scarlet](Альфа)
mods = Модифікації
mods.none = [LIGHT_GRAY]Модифікацій не знайдено!
-mods.guide = Посібник зі створення модифицій
+mods.guide = Посібник з модифицій
mods.report = Повідомити про ваду
mods.openfolder = Відкрити теку модифікацій
mod.enabled = [lightgray]Увімкнено
mod.disabled = [scarlet]Вимкнено
-mod.disable = Вимкнути
+mod.disable = Вимкн.
mod.delete.error = Неможливо видалити модифікацію. Файл, можливо, використовується.
-mod.requiresversion = [scarlet]Необхідна версія гри: [accent]{0}
+mod.requiresversion = [scarlet]Необхідна мінімальна версія гри: [accent]{0}
+mod.erroredcontent = [scarlet]Помилки при завантаженнні
+mod.errors = Сталася помилка при завантаження змісту.
+mod.noerrorplay = [scarlet]Ви маєте модифікації з помилками.[] Або вимкніть проблемні модифікації, або виправте їх.
mod.missingdependencies = [scarlet]Відсутні залежності: {0}
mod.nowdisabled = [scarlet]Модифікації «{0}» не вистачає залежних модифікацій:[accent] {1}\n[lightgray]Ці модифікації потрібно завантажити спочатку.\nЦя модифікація буде автоматично вимкнена.
-mod.enable = Увімкнути
+mod.enable = Увімк.
mod.requiresrestart = А тепер гра закриється, щоб застосувати зміни модифікацій.
mod.reloadrequired = [scarlet]Потрібно перезавантаження
mod.import = Імпортувати модифікацію
-mod.import.github = Імпортувати модификацію з GitHub
-mod.item.remove =Цей предмет є частиною модифікації [accent] '«{0}»[]. Щоб видалити його, видаліть цю модифікацію.
+mod.import.github = Завантажити мод з GitHub
+mod.item.remove = Цей предмет є частиною модифікації [accent] «{0}»[]. Щоб видалити його, видаліть цю модифікацію.
mod.remove.confirm = Цю модифікацію буде видалено.
mod.author = [LIGHT_GRAY]Автор:[] {0}
mod.missing = Це збереження містить модифікації, які ви нещодавно оновили або більше не встановлювали. Збереження може зіпсуватися. Ви впевнені, що хочете завантажити його?\n[lightgray]Модифікації:\n{0}
@@ -133,7 +144,7 @@ players = Гравців: {0}
players.single = {0} гравець на сервері
server.closing = [accent]Закриття сервера…
server.kicked.kick = Ви були вигнані з сервера!
-server.kicked.whitelist = Ви не в білому спискі сервері.
+server.kicked.whitelist = Ви не в білому спискі сервера!
server.kicked.serverClose = Сервер закрито.
server.kicked.vote = Вас було вигнано із сервера за допомогою голосування. Прощавайте.
server.kicked.clientOutdated = Застарілий клієнт! Оновіть свою гру!
@@ -147,6 +158,7 @@ server.kicked.nameEmpty = Ваше ім’я має містити принай
server.kicked.idInUse = Ви вже на цьому сервері! Підключення двох облікових записів не дозволяється.
server.kicked.customClient = Цей сервер не підтримує користувацькі збірки. Завантажте офіційну версію.
server.kicked.gameover = Гра завершена!
+server.kicked.serverRestarting = Сервер перезавантажується
server.versions = Ваша версія:[accent] {0}[]\nВерсія на сервері:[accent] {1}[]
host.info = Кнопка [accent]Сервер[] розміщує сервер на порті [scarlet]6567[]. \nКористувачі, які знаходяться у тій же [lightgray]WiFi або локальній мережі[], повинні бачити ваш сервер у своєму списку серверів.\n\nЯкщо ви хочете, щоб люди могли приєднуватися з будь-якої точки через IP, то[accent] переадресація порту []обов’язкова.\n\n[lightgray]Примітка. Якщо у вас виникли проблеми з підключенням до вашої локальної гри, переконайтеся, що ви дозволили Mindustry доступ до вашої локальної мережі в налаштуваннях брандмауера. Зауважте, що публічні мережі іноді не дозволяють виявити сервер.
join.info = Тут ви можете ввести [accent]IP сервера[] для підключення або знайти сервери у [accent]локальній мережі[] для підключення до них.\nПідтримується локальна мережа(LAN) і широкосмугова мережа(WAN).\n\n[lightgray] Примітка. Тут немає автоматичного глобального списку серверів; якщо ви хочете підключитися до когось через IP, вам доведеться попросити створювача сервера дати свій ip.
@@ -209,8 +221,8 @@ save.delete.confirm = Ви дійсно хочете видалити це зб
save.delete = Видалити
save.export = Експортувати збереження
save.import.invalid = [accent]Це збереження недійсне!
-save.import.fail = [crimson]Не вдалося імпортувати збереження: [accent]{0}
-save.export.fail = [crimson]Не вдалося експортувати збереження: [accent]{0}
+save.import.fail = [crimson]Не вдалося завантажити збереження: [accent]{0}
+save.export.fail = [crimson]Не вдалося вивантажити збереження: [accent]{0}
save.import = Імпортувати збереження
save.newslot = Ім’я збереження:
save.rename = Перейменувати
@@ -240,12 +252,12 @@ cancel = Скасувати
openlink = Відкрити посилання
copylink = Скопіювати посилання
back = Назад
-data.export = Експортувати дані
-data.import = Импортувати дані
-data.exported = Дані імпортовано.
+data.export = Вивантажити дані
+data.import = Завантажити дані
+data.exported = Дані вивантажено.
data.invalid = Це не дійсні ігрові дані.
-data.import.confirm = Імпорт зовнішніх даних перезапише[scarlet] ВСІ[] ваші поточні ігрові дані.\n[accent]Це неможливо скасувати![]\n\nЩойно дані імпортуються, гра негайно закриється.
-classic.export = Експортувати класичні дані
+data.import.confirm = Вивантаження зовнішніх даних перезапише[scarlet] ВСІ[] ваші поточні ігрові дані.\n[accent]Це неможливо скасувати![]\n\nЩойно дані імпортуються, гра негайно закриється.
+classic.export = Вивантажити класичні дані
classic.export.text = Класичне (версія 3.5 збірка 40) збереження або мапа були знайдені. Ви хочете експортувати ці дані в домашню теку телефону, для використання у застосунку Mindustry Classic?
quit.confirm = Ви впевнені, що хочете вийти?
quit.confirm.tutorial = Ви впевнені, що хочете вийти з навчання?
@@ -317,7 +329,7 @@ waves.invalid = Недійсні хвилі у буфері обміну.
waves.copied = Хвилі скопійовані.
waves.none = Вороги не були встановлені.\nЗазначимо, що пусті хвилі будуть автоматично замінені звичайною хвилею.
editor.default = [lightgray]<За замовчуванням>
-details = Деталі…
+details = Подробиці…
edit = Редагувати…
editor.name = Назва:
editor.spawn = Створити бойову одиницю
@@ -325,7 +337,7 @@ editor.removeunit = Видалити бойову одиницю
editor.teams = Команди
editor.errorload = Помилка завантаження зображення:\n[accent] {0}
editor.errorsave = Помилка збереження зображення:\n[accent]{0}
-editor.errorimage = Це зображення, а не мапа. Не змінюйте розширення, очікуючи, що це запрацює.\n\nЯкщо Ви хочете імпортувати застарілку мапу, то використовуйте кнопку «Імпортувати застаріле зображення» у редакторі.
+editor.errorimage = Це зображення, а не мапа. Не змінюйте розширення, очікуючи, що це запрацює.\n\nЯкщо ви хочете імпортувати застарілку мапу, то використовуйте кнопку «Імпортувати застаріле зображення» у редакторі.
editor.errorlegacy = Ця мапа занадто стара і використовує попередній формат мапи, який більше не підтримується.
editor.errornot = Це не мапа.
editor.errorheader = Цей файл мапи недійсний або пошкоджений.
@@ -426,8 +438,8 @@ abandon = Покинути
abandon.text = Ця зона і всі її ресурси будуть втрачені.
locked = Заблоковано
complete = [lightgray]Досягнута:
-requirement.wave = Досягніть хвилі {0} у {1}
-requirement.core = Знишьте вороже ядро у {0}
+requirement.wave = Досягніть хвилі {0} у зоні «{1}»
+requirement.core = Знищьте вороже ядро у {0}
requirement.unlock = Розблокуйте {0}
resume = Відновити зону:\n[lightgray]{0}
bestwave = [lightgray]Найкраща хвиля: {0}
@@ -436,16 +448,16 @@ launch.title = Запуск вдалий
launch.next = [lightgray]наступна можливість на {0}-тій хвилі
launch.unable2 = [scarlet]ЗАПУСК неможливий.[]
launch.confirm = Це видалить всі ресурси у Вашому ядрі.\nВи не зможете повернутися до цієї бази.
-launch.skip.confirm = Якщо Ви пропустите зараз, Ви не зможете не запускати до більш пізніх хвиль.
+launch.skip.confirm = Якщо ви пропустите зараз, Ви не зможете не запускати до більш пізніх хвиль.
uncover = Розкрити
configure = Вивантажити конфігурацію
bannedblocks = Заборонені блоки
addall = Додати все
-configure.locked = [lightgray]Можливість розблокувати вивантаження ресурсів буде доступна на {0}-тій хвилі.
+configure.locked = {0}[lightgray]Тільки після цього можливість розблокувати вивантаження ресурсів буде доступна.
configure.invalid = Кількість повинна бути числом між 0 та {0}.
zone.unlocked = Зона «[lightgray]{0}» тепер розблокована.
-zone.requirement.complete = Ви досягли {0}-тої хвилі,\nВимоги до зони «{1}» виконані.
-zone.config.unlocked = Loadout unlocked:[lightgray]\n{0}
+zone.requirement.complete = Ви досягли {0}-тої хвилі. \nВимоги до зони «{1}» виконані.
+zone.config.unlocked = Вивантаження розблоковано:[lightgray]\n{0}
zone.resources = Виявлені ресурси:
zone.objective = [lightgray]Мета: [accent]{0}
zone.objective.survival = Вижити
@@ -462,7 +474,7 @@ error.mapnotfound = Файл мапи не знайдено
error.io = Мережева помилка введення-виведення
error.any = Невідома мережева помилка
error.bloom = Не вдалося ініціалізувати цвітіння.\nВаш пристрій, мабуть, не підтримує це.
-zone.groundZero.name = Нульова земля
+zone.groundZero.name = Відправний пункт
zone.desertWastes.name = Пустельні відходи
zone.craters.name = Кратери
zone.frozenForest.name = Крижаний ліс
@@ -493,7 +505,7 @@ zone.crags.description = <вставити опис тут>
settings.language = Мова
settings.data = Ігрові дані
settings.reset = Скинути за замовчуванням
-settings.rebind = Зміна
+settings.rebind = Змінити
settings.resetKey = Скинути
settings.controls = Керування
settings.game = Гра
@@ -515,7 +527,7 @@ blocks.output = Вихід
blocks.booster = Прискорювач
block.unknown = [lightgray]???
blocks.powercapacity = Місткість енергії
-blocks.powershot = Енергія/постріл
+blocks.powershot = Енергія за постріл
blocks.damage = Шкода
blocks.targetsair = Повітряні мішені
blocks.targetsground = Наземні мішені
@@ -527,7 +539,7 @@ blocks.liquidcapacity = Місткість рідини
blocks.powerrange = Діапазон передачі енергії
blocks.powerconnections = Максимальна кількість з’єднань
blocks.poweruse = Енергії використовує
-blocks.powerdamage = Енергія/урон
+blocks.powerdamage = Енергія/шкода
blocks.itemcapacity = Місткість предметів
blocks.basepowergeneration = Базова генерація енергії
blocks.productiontime = Час виробництва
@@ -622,6 +634,7 @@ setting.screenshake.name = Тряска екрану
setting.effects.name = Ефекти
setting.destroyedblocks.name = Показувати зруйновані блоки
setting.conveyorpathfinding.name = Пошук шляху для встановлення конвейерів
+setting.coreselect.name = Дозволити схематичні ядра
setting.sensitivity.name = Чутливість контролера
setting.saveinterval.name = Інтервал збереження
setting.seconds = {0} с
@@ -732,6 +745,7 @@ rules.enemyCheat = Нескінченні ресурси для ШІ
rules.unitdrops = Ресурс бойових одиниць
rules.unitbuildspeedmultiplier = Множник швидкості виробництва бойових одиниць
rules.unithealthmultiplier = Множник здоров’я бойових одиниць
+rules.blockhealthmultiplier = Множник здоров’я блоків
rules.playerhealthmultiplier = Множник здоров’я гравця
rules.playerdamagemultiplier = Множник шкоди гравця
rules.unitdamagemultiplier = Множник шкоди бойових одиниць
@@ -849,7 +863,7 @@ block.core-nucleus.name = Ядро «Атом»
block.deepwater.name = Глибоководдя
block.water.name = Вода
block.tainted-water.name = Забруднена вода
-block.darksand-tainted-water.name = Темний пісок з забрудненою водою
+block.darksand-tainted-water.name = Темний пісок із забрудненою водою
block.tar.name = Дьоготь
block.stone.name = Камінь
block.sand.name = Пісок
@@ -1033,30 +1047,29 @@ unit.eradicator.name = Випалювач
unit.lich.name = Лич
unit.reaper.name = Жнець
tutorial.next = [lightgray]<Натисніть для продовження>
-tutorial.intro = Ви розпочали[scarlet] навчання по Mindustry.[]\nРозпочніть з[accent] видобування міді[]. Використовуйте [[WASD] для руху.\n[accent] Утримуйте [[Ctrl] під час прокрутки миші[] для приближення і віддалення. Наблизьтесь, а потім натисність на мідну жилу біля вашого ядра, щоб зробити це.\n\n[accent]{0}/{1} міді
+tutorial.intro = Ви розпочали[scarlet] навчання по Mindustry.[]\nРозпочніть з [accent]видобутку міді[]. Використовуйте [[WASD] для руху.\n[accent]Прокручуйте миш[] для приближення і віддалення. Наблизьтесь до мідної жили біля вашого ядра, а потім натисніть на неї, щоб розпочати видобуток.\n\n[accent]{0}/{1} міді
tutorial.intro.mobile = Ви розпочали[scarlet] навчання по Mindustry.[]\nПроведіть екраном, щоб рухатися.\n[accent] Зведіть або розведіть 2 пальця [] для приближення і віддалення відповідно.\nз[accent] видобування міді.[] Наблизьтесь, а потім натисність на мідну жилу біля вашого ядра, щоб зробити це.\n\n[accent]{0}/{1} міді
-tutorial.drill = Добування вручну неефективне.\n[accent]Бури []можуть добувати автоматично.\nНатисніть на вкладку свердла знизу зправа.\nВиберіть[accent] механічний бур[]. Розмістіть його на мідній жилі натисканням.\nВи також можете вибрати бур, натиснувши [accent][[2][], а потім натиснути [accent][[1][] швидко, незалежно від того, яка вкладка відкрита.\n[accent]Натисніть ПКМ[], щоб зупинити будування.tutorial.drill.mobile = Добування вручну неефективне.\n[accent]Бури []можуть добувати автоматично.\nНатисність на вкладку сведла знизу зправа.\nВиберіть[accent] механічний бур[]. Розмістіть його на мідній жилі натисканням, потім натисність на [accent] галочку[] нижче, щоб підтвердити розміщення .\nНатисніть[accent] клавішу X[], щоб скасувати розміщення.
-tutorial.drill.mobile = Добування вручну неефективне.\n[accent]Бури []можуть добувати автоматично.\nНатисність на вкладку сведла знизу зправа.\nВиберіть[accent] механічний бур[]. Розмістіть його на мідній жилі натисканням, потім натисність на [accent] галочку[] нижче, щоб підтвердити розміщення.\nPress the[accent] X button[] to cancel placement.
-tutorial.blockinfo = Кожен блок має різні характеристики. Кожний бур може видобувати тільки певні руди.\nЩоб переглянути інформацію та характеристики блока,[accent] натисність на кнопку «?», коли Ви вибрали блок у меню будування.[]\n\n[accent]Перегляньте характеристику Механічного бура прямо зараз.[]
-tutorial.conveyor = [accent]Конвеєри[] використовуються для транспортування предметів до ядра.\nЗробіть лінію конвеєрів від бура до ядра.\n[accent]Утримуйте миш, щоб розмістити у лінію.[]\nУтримуйте[accent] CTRL[] під час вибору лінії для розміщення по діагоналі.\n\n[accent]{0}/{1} конвеєрів, які розміщені в лінію\n[accent]0/1 предмет доставлено
-tutorial.conveyor.mobile = [accent]Конвеєри[] використовується для транспортування предметів до ядра.\nЗробіть лінію конвеєрів від бура до ядра.\n[accent] Розмістить у лінію, утримуючи палець кілька секунд[] і тягніть у напрямку, який Ви вибрали.\nВикористовуйте колесо прокрутки, щоб обертати блоки перед їх розміщенням\n[accent]{0}/{1} конвеєрів, які розміщені в лінію\n[accent]0/1 предмет доставлено
-tutorial.turret = Оборонні споруди повинні бути побудовані для відбиття[lightgray] ворогів[].\nПобудуйте[accent] башточку «Подвійна»[] біля вашої бази.
-tutorial.drillturret = «Подвійна» потребує [accent] мідні боєприпаси []для стрільби.\nРозмістіть бур біля башточки\nПроведіть конвеєри до башточки, щоб заповнити її боєприпасами.\n\n[accent]Доставлено боєприпасів: 0/1
-tutorial.pause = Під час бою ви можете[accent] поставити на павзу гру.[]\nВи можете зробити чергу на будування під час паузи.\n\n[accent]Натисність пробіл для павзи.tutorial.launch
-tutorial.pause.mobile = Під час бою ви можете[accent] поставити на павзу гру.[]\nВи можете зробити чергу на будування під час паузи.\n\n[accent]атисніть кнопку зліва вгорі для павзи.
+tutorial.drill = Добування вручну не є ефективним.\n[accent]Бури []можуть добувати автоматично.\nНатисніть на вкладку із зображенням свердла знизу праворуч.\nВиберіть[accent] механічний бур[]. Розмістіть його на мідній жилі натисканням.\nВи також можете вибрати бур, натиснувши [accent][[2][], а потім швидко натиснути [accent][[1][], незалежно від того, яка вкладка відкрита.\n[accent]Натисніть ПКМ[], щоб зупинити будування.
+tutorial.drill.mobile = Добування вручну неефективне.\n[accent]Бури []можуть добувати автоматично.\nНатисність на вкладку із зображенням сведла знизу зправа.\nВиберіть[accent] механічний бур[]. Розмістіть його на мідній жилі натисканням, потім натисність на [accent]галочку[] нижче, щоб підтвердити розміщення .\nНатисніть [accent]кнопку X[], щоб скасувати розміщення.
+tutorial.blockinfo = Кожен блок має різні характеристики. Кожний бур може видобувати тільки певні руди.\nЩоб переглянути інформацію та характеристики блока,[accent] натисність на кнопку «?», коли ви вибрали блок у меню будування.[]\n\n[accent]Перегляньте характеристику Механічного бура прямо зараз.[]
+tutorial.conveyor = [accent]Конвеєри[] використовуються для транспортування предметів до ядра.\nЗробіть лінію конвеєрів від бура до ядра.\n[accent]Утримуйте миш, щоб розмістити у лінію.[]\nУтримуйте[accent] CTRL[] під час вибору лінії для розміщення по діагоналі.\\nПрокручуйте, щоб обертати блоки до їх установлення.\n[accent]Розмістіть 2 конвеєри у лінію, а потім доставте предмет в ядро.tutorial.conveyor.mobile = [accent]Конвеєри[] використовується для транспортування предметів до ядра.\nЗробіть лінію конвеєрів від бура до ядра.\n[accent] Розмістить у лінію, утримуючи палець кілька секунд[] і тягніть у напрямку, який Ви вибрали.\nВикористовуйте колесо прокрутки, щоб обертати блоки перед їх розміщенням\n[accent]{0}/{1} конвеєрів, які розміщені в лінію\n[accent]0/1 предмет доставлено
+tutorial.turret = Оборонні споруди повинні бути побудовані для відбиття[lightgray] ворогів[].\nПобудуйте[accent] башту «Подвійна»[] біля вашої бази.
+tutorial.drillturret = «Подвійна» потребує [accent]мідні боєприпаси[] для стрільби.\nРозмістіть бур біля башточки\nПроведіть конвеєри до башточки, щоб заповнити її боєприпасами.\n\n[accent]Доставлено боєприпасів: 0/1
+tutorial.pause = Під час бою ви можете[accent] поставити на павзу гру.[]\nВи можете зробити чергу на будування під час паузи.\n\n[accent]Натисність пробіл для павзи.
+tutorial.pause.mobile = Під час бою ви можете[accent] поставити на павзу гру.[]\nВи можете зробити чергу на будування під час паузи.\n\n[accent]Натисніть кнопку вгорі ліворуч для павзи.
tutorial.unpause = Тепер натисність пробіл, щоб зняти павзу.
tutorial.unpause.mobile = Тепер натисність туди ще раз, щоб зняти павзу.
-tutorial.breaking = Блоки часто повинні бути знищені.\n[accent]Утримуючи ПКМ[] Ви знищите всі виділені блоки.[]\n\n[accent]Необхідно знищити всі стіни з металобрухту ліворуч від вашого ядра використовуючи видалення у зоні.
+tutorial.breaking = Блоки часто повинні бути знищені.\n[accent]Утримуючи ПКМ[] ви знищите всі виділені блоки.[]\n\n[accent]Необхідно знищити всі стіни з металобрухту ліворуч від вашого ядра використовуючи видалення у зоні.
tutorial.breaking.mobile = Блоки часто повинні бути знищені.\n[accent]Виберіть режим руйнування[], потім натисніть на блок, щоб зламати його.\nЗнищіть область, утримуючи палець протягом декількох секунд [] і потягнувши в потрібному напрямку.\nНатисніть кнопку галочки, щоб підтвердити руйнування.\n\n[accent]Необхідно знищити всі стіни з металобрухту ліворуч від вашого ядра використовуючи видалення у зоні.
-tutorial.withdraw = У деяких ситуаціях потрібно брати предмети безпосередньо з блоків.\nЩоб зробити це, [accent]натисність на блок[] з предметами на ньому, і потім [accent]натисніть на предмет[] в інвентарі.\nМожна вилучити кілька предметів [accent]натискаючи та утримуючи[].\n\n[accent]Вилучіть трохи міді з ядра.[]
+tutorial.withdraw = У деяких ситуаціях потрібно брати предмети безпосередньо з блоків.\nЩоб зробити це, [accent]натисність на блок[] з предметами, і потім [accent]натисніть на предмет[] в інвентарі.\nМожна вилучити кілька предметів [accent]натискаючи та утримуючи[].\n\n[accent]Вилучіть трохи міді з ядра.[]
tutorial.deposit = Покладіть предмети в блоки, перетягнувши з вашого корабля в потрібний блок.\n\n[accent]Покладіть мідь назад у ядро.[]
-tutorial.waves = [lightgray] Ворог[] з’явився.\n\nЗахистіть ядро від двух хвиль.[accent] Натисніть[], щоб стріляти.\nСтворіть більше башточок і бурів. Добудьте більше міді.
-tutorial.waves.mobile = [lightgray] Ворог[] з’явився.\n\nЗахистіть ядро від двух хвиль. Ваш корабель буде автоматично атакувати ворогів.\nСтворіть більше башточок і бурів. Добудьте більше міді.
-tutorial.launch = Як тільки ви досягнете певної хвилі, Ви зможете[accent] запустити ядро[], залишивши захисні сили позаду та [accent]отримати всі ресурси у вашому ядрі.[]\nЦі отримані ресурси можуть бути використані для дослідження нових технологій.\n\n[accent]Натисніть кнопку запуску.
+tutorial.waves = [lightgray] Ворог[] з’явився.\n\nЗахистіть ядро від двух хвиль.[accent] Натисніть ЛКМ[], щоб стріляти.\nСтворіть більше башт і бурів. Добудьте більше міді.
+tutorial.waves.mobile = [lightgray] Ворог[] з’явився.\n\nЗахистіть ядро від двух хвиль. Ваш корабель буде автоматично атакувати ворогів.\nСтворіть більше башт і бурів. Добудьте більше міді.
+tutorial.launch = Як тільки ви досягнете певної хвилі, ви зможете[accent] запустити ядро[], залишивши захисні сили позаду та [accent]отримати всі ресурси у вашому ядрі.[]\nЦі отримані ресурси можуть бути використані для дослідження нових технологій.\n\n[accent]Натисніть кнопку запуску.
item.copper.description = Найбільш базовий будівельний матеріал. Широко використовується у всіх типах блоків.
item.lead.description = Основний стартовий матеріал. Широко застосовується в електроніці та транспортуванні рідин.
item.metaglass.description = Супер жорсткий склад скла. Широко застосовується для розподілу та зберігання рідини.
-item.graphite.description = Мінералізований вуглець, що використовується для боєприпасів та електроізоляції.
+item.graphite.description = Мінералізований вуглець, що використовується для боєприпасів та як компонент.
item.sand.description = Поширений матеріал, який широко використовується при виплавці, як при сплавленні, так і в якості відходів.
item.coal.description = Окам’янілі рослинні речовини, що утворюються задовго до посіву. Широко використовується для виробництва пального та ресурсів.
item.titanium.description = Рідкісний надлегкий метал, який широко використовується для транспортування рідини, бурів і літаків.
@@ -1074,11 +1087,11 @@ liquid.slag.description = Різні види розплавленого мет
liquid.oil.description = Рідина, яка використовується у виробництві сучасних матеріалів. Може бути перетворена в вугілля в якості палива або використана як куля.
liquid.cryofluid.description = Інертна, не роз’їдаюча рідина, створена з води та титану. Володіє надзвичайно високою пропускною спроможністю. Широко використовується в якості охолоджуючої рідини.
mech.alpha-mech.description = Стандартний керований мех. Заснований на бойовій одиниці «Кинджал», з оновленими бронею та можливостями будування. Наносить більше шкоди, ніж «Дротик».
-mech.delta-mech.description = Швидкий, легкоброньований мех, зроблений для тактики «атакуй і біжи». Наносить мало шкоди будівлям, але може дуже швидко вбити великі групи підрозділів противника своєю дуговою блискавкою.
+mech.delta-mech.description = Швидкий, легкоброньований мех, зроблений для тактики «атакуй і втікай». Наносить мало шкоди будівлям, але може дуже швидко вбити великі групи підрозділів противника своєю дуговою блискавкою.
mech.tau-mech.description = Мех підтримки. Ремонтує союзні блоки, стріляючи по них. Може зцілювати союзників у радіусі його ремонтної здатності.
mech.omega-mech.description = Об’ємний і добре броньований мех, зроблений для фронтових штурмів. Його броня може перекрити до 90% пошкоджень, що надходять.
mech.dart-ship.description = Стандартний корабель управління. Швидко видобуває ресурси. Достатньо швидкий і легкий, але має мало наступальних можливостей.
-mech.javelin-ship.description = Корабель для стратегії атакуй та біжи». Хоча спочатку він повільний, потім вже може розганятися до великих швидкостей і літати над ворожими форпостами, завдаючи великої кількості шкоди своїми блискавками та ракетами.
+mech.javelin-ship.description = Корабель, який використовується для стратегії «атакуй та втікай». Хоча спочатку він повільний, потім вже може розганятися до великих швидкостей і літати над ворожими форпостами, завдаючи великої кількості шкоди своїми блискавками та ракетами.
mech.trident-ship.description = Важкий бомбардувальник, побудований для будування та знищення ворожих укріплень. Дуже добре броньований.
mech.glaive-ship.description = Великий, добре броньований бойовий корабель. Оснащений запальним ретранслятором. Високо маневрений.
unit.draug.description = Примітивний дрон, який добуває ресурси. Дешевий для виробництва. Автоматично видобуває мідь і свинець поблизу. Доставляє видобуті ресурси до найближчого ядра.
@@ -1089,7 +1102,7 @@ unit.crawler.description = Наземна одиниця, що складаєт
unit.titan.description = Вдосконалений броньований наземний блок. Нападає як на наземні, так і повітряні цілі. Оснащений двома мініатюрними вогнеметами класу Випалювач.
unit.fortress.description = Артилерійний мех. Оснащений двома модифікованими гарматами типу «Град» для дальнього нападу на ворожі структури та підрозділи.
unit.eruptor.description = Важкий мех, призначеней для знесення конструкцій. Вистрілює потік шлаків у ворожі укріплення, розплавляючи їх і підпалюючи летючі речовини.
-unit.wraith.description = Швидкий перехоплювач, який використовується для тактики «атакуй і біжи». Пріоритет — енергетичні генератори.
+unit.wraith.description = Швидкий перехоплювач, який використовується для тактики «атакуй і втікай». Пріоритет — генератори енергії.
unit.ghoul.description = Важкий килимовий бомбардувальник. Пробиває ворожі структури, орієнтуючись на віжливу інфраструктуру.
unit.revenant.description = Важкий ракетний масив.
block.message.description = Зберігає повідомлення. Використовується для комунікаціх між союзниками.
@@ -1103,19 +1116,19 @@ block.alloy-smelter.description = Поєднує титан, свинець, к
block.cryofluidmixer.description = Змішує воду і дрібний порошок титану титану в кріогенну рідину. Основне використання у торієвому реактору.
block.blast-mixer.description = Подрібнює і змішує скупчення спор з піратитом для отримання вибухової суміші.
block.pyratite-mixer.description = Змішує вугілля, свинець та пісок у легкозаймистий піратит.
-block.melter.description = Розплавляє брухт у шлак для подальшої переробки або використання у башточках «Хвиля».
+block.melter.description = Розплавляє брухт у шлак для подальшої переробки або використання у баштах «Хвиля».
block.separator.description = Відокремлює шлак на його мінеральні компоненти. Виводить охолоджений результат.
-block.spore-press.description = Стискає спорові стручки під сильним тиском для синтезу нафти
+block.spore-press.description = Стискає спорові стручки під сильним тиском для синтезу нафти.
block.pulverizer.description = Подрібнює брухт дрібного піску.
block.coal-centrifuge.description = Нафта перетворюється у шматки вугілля.
block.incinerator.description = Випаровує будь-який зайвий предмет або рідину, які він отримує.
block.power-void.description = Знищує будь-яку енергію, до якої він під’єднаний. Тільки пісочниця
-block.power-source.description = Нескінченно виводить енергію. Тільки пісочниця
-block.item-source.description = Нескінченно виводить предмети. Тільки пісочниця
-block.item-void.description = Знищує будь-які предмети. Тільки пісочниця
-block.liquid-source.description = Нескінченно виводить рідини. Тільки пісочниця
-block.copper-wall.description = Дешевий захисний блок.\nКорисна для захисту ядра та башточок у перші кілька хвиль.
-block.copper-wall-large.description = Дешевий захисний блок.\nКорисна для захисту ядра та башточок у перші кілька хвиль.\nОхоплює кілька плиток.
+block.power-source.description = Нескінченно виводить енергію.
+block.item-source.description = Нескінченно виводить предмети.
+block.item-void.description = Знищує будь-які предмети.
+block.liquid-source.description = Нескінченно виводить рідини.
+block.copper-wall.description = Дешевий захисний блок.\nКорисна для захисту ядра та башто у перші кілька хвиль.
+block.copper-wall-large.description = Дешевий захисний блок.\nКорисна для захисту ядра та башт у перші кілька хвиль.\nОхоплює кілька плиток.
block.titanium-wall.description = Відносно сильний захисний блок.\nЗабезпечує помірний захист від ворогів.
block.titanium-wall-large.description = Відносно сильний захисний блок.\nЗабезпечує помірний захист від ворогів.\nОхоплює кілька плиток.
block.plastanium-wall.description = Особливий тип стіни, який поглинає електричні дуги і блокує автоматичні з'єднання енергетичних вузлів.
diff --git a/core/assets/bundles/bundle_zh_TW.properties b/core/assets/bundles/bundle_zh_TW.properties
index 1a50de946d..de6c8c12e1 100644
--- a/core/assets/bundles/bundle_zh_TW.properties
+++ b/core/assets/bundles/bundle_zh_TW.properties
@@ -89,6 +89,7 @@ uploadingpreviewfile = 上傳預覽文件
committingchanges = 提交變更
done = 完成
feature.unsupported = 您的設備不支持此功能。
+
mods.alphainfo = 請記住,模組仍處於Alpha狀態,[scarlet]可能會有很多BUG[].\n向Mindustry GitHub或Discord報告發現的任何問題。
mods.alpha = [accent](Alpha)
mods = 模組
@@ -98,7 +99,6 @@ mods.report = 回報錯誤
mods.openfolder = 開啟模組資料夾
mod.enabled = [lightgray]已啟用
mod.disabled = [scarlet]已禁用
-mod.enable = 啟用
mod.disable = 禁用
mod.delete.error = 無法刪除模組,檔案可能在使用中。
mod.requiresversion = [scarlet]最低遊戲版本要求:[accent]{0}
@@ -107,6 +107,7 @@ mod.erroredcontent = [scarlet]內容錯誤
mod.errors = 載入內容時發生錯誤
mod.noerrorplay = [scarlet]你使用了有錯誤的模組。[] 遊戲前請先禁用相關模組或修正錯誤。
mod.nowdisabled = [scarlet]「{0}」模組缺少必須項目:[accent] {1}\n[lightgray]必須先下載這些模組。\n此模組將被自動禁用。
+mod.enable = 啟用
mod.requiresrestart = 遊戲將立即關閉以套用模組變更。
mod.reloadrequired = [scarlet]需要重新載入
mod.import = 匯入模組
@@ -286,6 +287,7 @@ publishing = [accent]發佈中...
publish.confirm = 您確定要發布嗎?\n\n[lightgray]首先確定您同意Workshop EULA,否則您的項目將不會顯示!
publish.error = 發佈項目時出錯: {0}
steam.error = Steam 服務初始化失敗.\n錯誤: {0}
+
editor.brush = 粉刷
editor.openin = 在編輯器中開啟
editor.oregen = 礦石生成
@@ -605,7 +607,6 @@ category.items = 物品
category.crafting = 需求
category.shooting = 射擊
category.optional = 可選的強化
-
setting.landscape.name = 鎖定水平畫面
setting.shadows.name = 陰影
setting.blockreplace.name = 方塊建造建議
@@ -671,6 +672,7 @@ category.multiplayer.name = 多人
command.attack = 攻擊
command.rally = 集結
command.retreat = 撤退
+placement.blockselectkeys = \n[lightgray]按鍵:[{0},
keybind.clear_building.name = 清除建築指令
keybind.press = 按一下按鍵...
keybind.press.axis = 按一下軸向或按鍵...
@@ -678,6 +680,8 @@ keybind.screenshot.name = 地圖截圖
keybind.toggle_power_lines.name = 顯示能量激光
keybind.move_x.name = 水平移動
keybind.move_y.name = 垂直移動
+keybind.mouse_move.name = 跟隨滑鼠
+keybind.dash.name = 衝刺
keybind.schematic_select.name = 選擇區域
keybind.schematic_menu.name = 藍圖目錄
keybind.schematic_flip_x.name = X軸翻轉
@@ -710,7 +714,6 @@ keybind.menu.name = 主選單
keybind.pause.name = 暫停遊戲
keybind.pause_building.name = 暫停/恢復建造
keybind.minimap.name = 小地圖
-keybind.dash.name = 衝刺
keybind.chat.name = 聊天
keybind.player_list.name = 玩家列表
keybind.console.name = 終端機
@@ -724,7 +727,7 @@ keybind.drop_unit.name = 放下單位
keybind.zoom_minimap.name = 縮放小地圖
mode.help.title = 模式說明
mode.survival.name = 生存
-mode.survival.description = 一般模式。有限的資源與自動來襲的波次。
+mode.survival.description = 一般模式。有限的資源與自動來襲的波次。\n[gray]地圖中需要敵人生成點。
mode.sandbox.name = 沙盒
mode.sandbox.description = 無限的資源與不倒數計時的波次。
mode.editor.name = 編輯
@@ -742,11 +745,11 @@ rules.attack = 攻擊模式
rules.enemyCheat = 電腦無限資源
rules.unitdrops = 單位掉落物
rules.unitbuildspeedmultiplier = 單位建設速度倍數
-rules.unithealthmultiplier = 單位耐久度倍數
-rules.playerhealthmultiplier = 玩家耐久度倍數
+rules.unithealthmultiplier = 單位生命值倍數
+rules.playerhealthmultiplier = 玩家生命值倍數
rules.playerdamagemultiplier = 玩家傷害倍數
rules.unitdamagemultiplier = 單位傷害倍數
-rules.enemycorebuildradius = 敵人核心無建設半徑︰[lightgray](格)
+rules.enemycorebuildradius = 敵人核心禁止建設半徑︰[lightgray](格)
rules.respawntime = 重生時間︰[lightgray](秒)
rules.wavespacing = 波次間距︰[lightgray](秒)
rules.buildcostmultiplier = 建設成本倍數
@@ -790,7 +793,6 @@ liquid.water.name = 水
liquid.slag.name = 熔渣
liquid.oil.name = 原油
liquid.cryofluid.name = 冷凍液
-
mech.alpha-mech.name = 阿爾法
mech.alpha-mech.weapon = 重型機關槍
mech.alpha-mech.ability = 自修復
@@ -813,21 +815,22 @@ mech.trident-ship.weapon = 轟炸艙
mech.glaive-ship.name = 偃月刀
mech.glaive-ship.weapon = 火焰機關槍
item.corestorable = [lightgray]核心可儲存: {0}
-item.explosiveness = [lightgray]爆炸性:{0}
-item.flammability = [lightgray]易燃性:{0}
-item.radioactivity = [lightgray]放射性:{0}
-unit.health = [lightgray]耐久度:{0}
+item.explosiveness = [lightgray]爆炸性:{0}%
+item.flammability = [lightgray]易燃性:{0}%
+item.radioactivity = [lightgray]放射性:{0}%
+unit.health = [lightgray]生命值:{0}
unit.speed = [lightgray]速度:{0}
mech.weapon = [lightgray]武器:{0}
mech.health = [lightgray]血量:{0}
mech.itemcapacity = [lightgray]物品容量:{0}
-mech.minespeed = [lightgray]採礦速度:{0}
+mech.minespeed = [lightgray]採礦速度:{0}%
mech.minepower = [lightgray]採礦能力:{0}
mech.ability = [lightgray]能力:{0}
mech.buildspeed = [lightgray]建造速度: {0}%
liquid.heatcapacity = [lightgray]熱容量:{0}
liquid.viscosity = [lightgray]粘性:{0}
liquid.temperature = [lightgray]溫度:{0}
+
block.sand-boulder.name = 沙礫
block.grass.name = 草
block.salt.name = 鹽
@@ -1048,7 +1051,7 @@ unit.reaper.name = 收掠者
tutorial.next = [lightgray]<按下以繼續>
tutorial.intro = 您已進入[scarlet] Mindustry 教學。[]\n使用[[WASD鍵]來移動.\n滾動滾輪來放大縮小畫面.\n從[accent]開採銅礦[]開始吧靠近它,然後在靠近核心的位置點擊銅礦。\n\n[accent]{0}/{1}銅礦
tutorial.intro.mobile = 您已進入[scarlet] Mindustry 教學。[]\n滑動螢幕即可移動。\n[accent]用兩指捏[]來縮放畫面。\n從[accent]開採銅礦[]開始吧。靠近它,然後在靠近核心的位置點擊銅礦。\n\n[accent]{0}/{1}銅礦
-tutorial.drill = 手動挖掘礦石的效率很低。\n[accent]鑽頭[]能夠自動挖掘礦石。\n在銅礦脈上放置一個鑽頭。
+tutorial.drill = 手動挖掘礦石的效率很低。\n[accent]鑽頭[]能夠自動挖掘礦石。\n在銅礦脈上放置一個鑽頭。\n不論在哪個選單,您也可以用快速按下按鍵[accent][[2][]然後[accent][[1][]來選擇鑽頭。\n[accent]滑鼠右擊[]停止建造。
tutorial.drill.mobile = 手動挖掘礦石的效率很低。\n[accent]鑽頭[]能夠自動挖掘礦石。\n點選右下角的鑽頭選項\n選擇[accent]機械鑽頭[].\n通過點擊將其放置在銅礦上,然後按下下方的[accent]確認標誌[]確認您的選擇\n按下[accent] X 按鈕[] 取消放置.
tutorial.blockinfo = 每個方塊都有不同的屬性。每個鑽頭只能開採特定的礦石。\n查看方塊的資訊和屬性,[accent]在建造目錄時按下"?"鈕。[]\n\n[accent]立即訪問機械鑽頭的屬性資料。[]
tutorial.conveyor = [accent]輸送帶[]能夠將物品運輸到核心。\n製作一條從鑽頭開始到核心的輸送帶。
@@ -1068,7 +1071,7 @@ tutorial.launch = 一旦您達到特定的波數, 您就可以[accent] 發射
item.copper.description = 最基本的結構材料。在各種類型的方塊中廣泛使用。
item.lead.description = 一種基本的起始材料。被廣泛用於電子設備和液體運輸方塊。
item.metaglass.description = 一種超高強度的玻璃。廣泛用於液體分配和存儲。
-item.graphite.description = 礦化的碳,用於彈藥和電氣絕緣。
+item.graphite.description = 礦化的碳,用於彈藥和電氣元件。
item.sand.description = 一種常見的材料,廣泛用於冶煉,包括製作合金和作為助熔劑。
item.coal.description = 遠在「播種」事件前就形成的植物化石。一種常見並容易獲得的燃料。
item.titanium.description = 一種罕見的超輕金屬,被廣泛運用於運輸液體、鑽頭和飛行載具。
diff --git a/core/assets/contributors b/core/assets/contributors
index 09337c529a..afe1bc3b45 100644
--- a/core/assets/contributors
+++ b/core/assets/contributors
@@ -84,3 +84,4 @@ amrsoll
Draco
Quezler
Alicila
+Daniel Dusek
diff --git a/core/assets/fonts/font.ttf b/core/assets/fonts/font.ttf
index 7a32355454..6b585dcbdd 100644
Binary files a/core/assets/fonts/font.ttf and b/core/assets/fonts/font.ttf differ
diff --git a/core/assets/scripts/base.js b/core/assets/scripts/base.js
index 9b3fb5dcb4..6ce3070968 100755
--- a/core/assets/scripts/base.js
+++ b/core/assets/scripts/base.js
@@ -16,4 +16,5 @@ const boolp = method => new Boolp(){get: method}
const cons = method => new Cons(){get: method}
const prov = method => new Prov(){get: method}
const newEffect = (lifetime, renderer) => new Effects.Effect(lifetime, new Effects.EffectRenderer({render: renderer}))
-const Calls = Packages.io.anuke.mindustry.gen.Call
\ No newline at end of file
+Call = Packages.mindustry.gen.Call
+const Calls = Call //backwards compat
\ No newline at end of file
diff --git a/core/assets/scripts/global.js b/core/assets/scripts/global.js
index badba9d273..22d746b420 100755
--- a/core/assets/scripts/global.js
+++ b/core/assets/scripts/global.js
@@ -18,12 +18,14 @@ const boolp = method => new Boolp(){get: method}
const cons = method => new Cons(){get: method}
const prov = method => new Prov(){get: method}
const newEffect = (lifetime, renderer) => new Effects.Effect(lifetime, new Effects.EffectRenderer({render: renderer}))
-const Calls = Packages.io.anuke.mindustry.gen.Call
+Call = Packages.mindustry.gen.Call
+const Calls = Call //backwards compat
importPackage(Packages.arc)
importPackage(Packages.arc.func)
importPackage(Packages.arc.graphics)
importPackage(Packages.arc.graphics.g2d)
importPackage(Packages.arc.math)
+importPackage(Packages.arc.math.geom)
importPackage(Packages.arc.scene)
importPackage(Packages.arc.scene.actions)
importPackage(Packages.arc.scene.event)
diff --git a/core/src/mindustry/Vars.java b/core/src/mindustry/Vars.java
index 9537c1fc87..e643360220 100644
--- a/core/src/mindustry/Vars.java
+++ b/core/src/mindustry/Vars.java
@@ -21,6 +21,7 @@ import mindustry.gen.*;
import mindustry.input.*;
import mindustry.maps.*;
import mindustry.mod.*;
+import mindustry.net.*;
import mindustry.net.Net;
import mindustry.type.Weather.*;
import mindustry.world.blocks.defense.ForceProjector.*;
@@ -54,18 +55,16 @@ public class Vars implements Loadable{
public static final String crashReportURL = "http://192.99.169.18/report";
/** URL the links to the wiki's modding guide.*/
public static final String modGuideURL = "https://mindustrygame.github.io/wiki/modding/";
- /** URL to the JSON file containing all the global, public servers. */
+ /** URL to the JSON file containing all the global, public servers. Not queried in BE. */
public static final String serverJsonURL = "https://raw.githubusercontent.com/Anuken/Mindustry/master/servers.json";
+ /** URL to the JSON file containing all the BE servers. Only queried in BE. */
+ public static final String serverJsonBeURL = "https://raw.githubusercontent.com/Anuken/Mindustry/master/servers_be.json";
/** URL the links to the wiki's modding guide.*/
public static final String reportIssueURL = "https://github.com/Anuken/Mindustry/issues/new?template=bug_report.md";
/** list of built-in servers.*/
public static final Array defaultServers = Array.with();
/** maximum distance between mine and core that supports automatic transferring */
public static final float mineTransferRange = 220f;
- /** team of the player by default */
- public static final Team defaultTeam = Team.sharded;
- /** team of the enemy in waves/sectors */
- public static final Team waveTeam = Team.crux;
/** whether to enable editing of units in the editor */
public static final boolean enableUnitEditing = false;
/** max chat message length */
@@ -129,9 +128,9 @@ public class Vars implements Loadable{
public static Fi dataDirectory;
/** data subdirectory used for screenshots */
public static Fi screenshotDirectory;
- /** data subdirectory used for custom mmaps */
+ /** data subdirectory used for custom maps */
public static Fi customMapDirectory;
- /** data subdirectory used for custom mmaps */
+ /** data subdirectory used for custom map previews */
public static Fi mapPreviewDirectory;
/** tmp subdirectory for map conversion */
public static Fi tmpDirectory;
@@ -141,6 +140,8 @@ public class Vars implements Loadable{
public static Fi modDirectory;
/** data subdirectory used for schematics */
public static Fi schematicDirectory;
+ /** data subdirectory used for bleeding edge build versions */
+ public static Fi bebuildDirectory;
/** map file extension */
public static final String mapExtension = "msav";
/** save file extension */
@@ -162,6 +163,7 @@ public class Vars implements Loadable{
public static Platform platform = new Platform(){};
public static Mods mods;
public static Schematics schematics = new Schematics();
+ public static BeControl becontrol;
public static World world;
public static Maps maps;
@@ -186,7 +188,7 @@ public class Vars implements Loadable{
public static EntityGroup puddleGroup;
public static EntityGroup fireGroup;
public static EntityGroup weatherGroup;
- public static EntityGroup[] unitGroups;
+ public static EntityGroup unitGroup;
public static Player player;
@@ -226,6 +228,7 @@ public class Vars implements Loadable{
defaultWaves = new DefaultWaves();
collisions = new EntityCollisions();
world = new World();
+ becontrol = new BeControl();
maps = new Maps();
spawner = new WaveSpawner();
@@ -241,12 +244,8 @@ public class Vars implements Loadable{
puddleGroup = entities.add(Puddle.class).enableMapping();
shieldGroup = entities.add(ShieldEntity.class, false);
fireGroup = entities.add(Fire.class).enableMapping();
+ unitGroup = entities.add(BaseUnit.class).enableMapping();
weatherGroup = entities.add(WeatherEntity.class);
- unitGroups = new EntityGroup[Team.all.length];
-
- for(Team team : Team.all){
- unitGroups[team.ordinal()] = entities.add(BaseUnit.class).enableMapping();
- }
for(EntityGroup> group : entities.all()){
group.setRemoveListener(entity -> {
@@ -271,6 +270,7 @@ public class Vars implements Loadable{
tmpDirectory = dataDirectory.child("tmp/");
modDirectory = dataDirectory.child("mods/");
schematicDirectory = dataDirectory.child("schematics/");
+ bebuildDirectory = dataDirectory.child("be_builds/");
modDirectory.mkdirs();
diff --git a/core/src/mindustry/ai/BlockIndexer.java b/core/src/mindustry/ai/BlockIndexer.java
index e64ad48064..7a100b7778 100644
--- a/core/src/mindustry/ai/BlockIndexer.java
+++ b/core/src/mindustry/ai/BlockIndexer.java
@@ -1,15 +1,15 @@
package mindustry.ai;
import arc.*;
-import arc.struct.*;
import arc.func.*;
import arc.math.*;
import arc.math.geom.*;
+import arc.struct.*;
+import arc.util.*;
import mindustry.content.*;
import mindustry.entities.type.*;
import mindustry.game.EventType.*;
import mindustry.game.*;
-import mindustry.game.Teams.*;
import mindustry.type.*;
import mindustry.world.*;
import mindustry.world.blocks.*;
@@ -28,15 +28,17 @@ public class BlockIndexer{
private final ObjectSet- itemSet = new ObjectSet<>();
/** Stores all ore quadtrants on the map. */
private ObjectMap
- > ores = new ObjectMap<>();
- /** Tags all quadrants. */
+ /** Maps each team ID to a quarant. A quadrant is a grid of bits, where each bit is set if and only if there is a block of that team in that quadrant. */
private GridBits[] structQuadrants;
/** Stores all damaged tile entities by team. */
- private ObjectSet[] damagedTiles = new ObjectSet[Team.all.length];
+ private ObjectSet[] damagedTiles = new ObjectSet[Team.all().length];
/**All ores available on this map.*/
private ObjectSet
- allOres = new ObjectSet<>();
+ /**Stores teams that are present here as tiles.*/
+ private ObjectSet activeTeams = new ObjectSet<>();
/** Maps teams to a map of flagged tiles by type. */
- private ObjectSet[][] flagMap = new ObjectSet[Team.all.length][BlockFlag.all.length];
+ private ObjectSet[][] flagMap = new ObjectSet[Team.all().length][BlockFlag.all.length];
/** Maps tile positions to their last known tile index data. */
private IntMap typeMap = new IntMap<>();
/** Empty set used for returning. */
@@ -59,8 +61,8 @@ public class BlockIndexer{
Events.on(WorldLoadEvent.class, event -> {
scanOres.clear();
scanOres.addAll(Item.getAllOres());
- damagedTiles = new ObjectSet[Team.all.length];
- flagMap = new ObjectSet[Team.all.length][BlockFlag.all.length];
+ damagedTiles = new ObjectSet[Team.all().length];
+ flagMap = new ObjectSet[Team.all().length][BlockFlag.all.length];
for(int i = 0; i < flagMap.length; i++){
for(int j = 0; j < BlockFlag.all.length; j++){
@@ -73,10 +75,7 @@ public class BlockIndexer{
ores = null;
//create bitset for each team type that contains each quadrant
- structQuadrants = new GridBits[Team.all.length];
- for(int i = 0; i < Team.all.length; i++){
- structQuadrants[i] = new GridBits(Mathf.ceil(world.width() / (float)quadrantSize), Mathf.ceil(world.height() / (float)quadrantSize));
- }
+ structQuadrants = new GridBits[Team.all().length];
for(int x = 0; x < world.width(); x++){
for(int y = 0; y < world.height(); y++){
@@ -103,7 +102,32 @@ public class BlockIndexer{
}
private ObjectSet[] getFlagged(Team team){
- return flagMap[team.ordinal()];
+ return flagMap[team.id];
+ }
+
+ private GridBits structQuadrant(Team t){
+ int id = Pack.u(t.id);
+ if(structQuadrants[id] == null){
+ structQuadrants[id] = new GridBits(Mathf.ceil(world.width() / (float)quadrantSize), Mathf.ceil(world.height() / (float)quadrantSize));
+ }
+ return structQuadrants[id];
+ }
+
+ /** Updates all the structure quadrants for a newly activated team. */
+ public void updateTeamIndex(Team team){
+ if(structQuadrants == null) return;
+
+ //go through every tile... ouch
+ for(int x = 0; x < world.width(); x++){
+ for(int y = 0; y < world.height(); y++){
+ Tile tile = world.tile(x, y);
+ if(tile.getTeam() == team){
+ int quadrantX = tile.x / quadrantSize;
+ int quadrantY = tile.y / quadrantSize;
+ structQuadrant(team).set(quadrantX, quadrantY);
+ }
+ }
+ }
}
/** @return whether this item is present on this map.*/
@@ -115,11 +139,11 @@ public class BlockIndexer{
public ObjectSet getDamaged(Team team){
returnArray.clear();
- if(damagedTiles[team.ordinal()] == null){
- damagedTiles[team.ordinal()] = new ObjectSet<>();
+ if(damagedTiles[team.id] == null){
+ damagedTiles[team.id] = new ObjectSet<>();
}
- ObjectSet set = damagedTiles[team.ordinal()];
+ ObjectSet set = damagedTiles[team.id];
for(Tile tile : set){
if((tile.entity == null || tile.entity.getTeam() != team || !tile.entity.damaged()) || tile.block() instanceof BuildBlock){
returnArray.add(tile);
@@ -135,13 +159,13 @@ public class BlockIndexer{
/** Get all allied blocks with a flag. */
public ObjectSet getAllied(Team team, BlockFlag type){
- return flagMap[team.ordinal()][type.ordinal()];
+ return flagMap[team.id][type.ordinal()];
}
/** Get all enemy blocks with a flag. */
public Array getEnemy(Team team, BlockFlag type){
returnArray.clear();
- for(Team enemy : state.teams.enemiesOf(team)){
+ for(Team enemy : team.enemies()){
if(state.teams.isActive(enemy)){
ObjectSet set = getFlagged(enemy)[type.ordinal()];
if(set != null){
@@ -155,14 +179,27 @@ public class BlockIndexer{
}
public void notifyTileDamaged(TileEntity entity){
- if(damagedTiles[entity.getTeam().ordinal()] == null){
- damagedTiles[entity.getTeam().ordinal()] = new ObjectSet<>();
+ if(damagedTiles[(int)entity.getTeam().id] == null){
+ damagedTiles[(int)entity.getTeam().id] = new ObjectSet<>();
}
- ObjectSet set = damagedTiles[entity.getTeam().ordinal()];
+ ObjectSet set = damagedTiles[(int)entity.getTeam().id];
set.add(entity.tile);
}
+ public TileEntity findEnemyTile(Team team, float x, float y, float range, Boolf pred){
+ for(Team enemy : activeTeams){
+ if(!team.isEnemy(enemy)) continue;
+
+ TileEntity entity = indexer.findTile(enemy, x, y, range, pred, true);
+ if(entity != null){
+ return entity;
+ }
+ }
+
+ return null;
+ }
+
public TileEntity findTile(Team team, float x, float y, float range, Boolf pred){
return findTile(team, x, y, range, pred, false);
}
@@ -188,7 +225,7 @@ public class BlockIndexer{
TileEntity e = other.entity;
float ndst = Mathf.dst(x, y, e.x, e.y);
- if(ndst < range && (closest == null || ndst < dst || (usePriority && closest.block.priority.ordinal() < e.block.priority.ordinal()))){
+ if(ndst < range && (closest == null || ndst < dst || (usePriority && closest.block.priority.ordinal() <= e.block.priority.ordinal()))){
dst = ndst;
closest = e;
}
@@ -242,6 +279,7 @@ public class BlockIndexer{
}
typeMap.put(tile.pos(), new TileIndex(tile.block().flags, tile.getTeam()));
}
+ activeTeams.add(tile.getTeam());
if(ores == null) return;
@@ -280,26 +318,25 @@ public class BlockIndexer{
//this quadrant is now 'dirty', re-scan the whole thing
int quadrantX = tile.x / quadrantSize;
int quadrantY = tile.y / quadrantSize;
- int index = quadrantX + quadrantY * quadWidth();
- for(Team team : Team.all){
- TeamData data = state.teams.get(team);
+ for(Team team : activeTeams){
+ GridBits bits = structQuadrant(team);
//fast-set this quadrant to 'occupied' if the tile just placed is already of this team
- if(tile.getTeam() == data.team && tile.entity != null && tile.block().targetable){
- structQuadrants[data.team.ordinal()].set(quadrantX, quadrantY);
+ if(tile.getTeam() == team && tile.entity != null && tile.block().targetable){
+ bits.set(quadrantX, quadrantY);
continue; //no need to process futher
}
- structQuadrants[data.team.ordinal()].set(quadrantX, quadrantY, false);
+ bits.set(quadrantX, quadrantY, false);
outer:
for(int x = quadrantX * quadrantSize; x < world.width() && x < (quadrantX + 1) * quadrantSize; x++){
for(int y = quadrantY * quadrantSize; y < world.height() && y < (quadrantY + 1) * quadrantSize; y++){
Tile result = world.ltile(x, y);
//when a targetable block is found, mark this quadrant as occupied and stop searching
- if(result.entity != null && result.getTeam() == data.team){
- structQuadrants[data.team.ordinal()].set(quadrantX, quadrantY);
+ if(result.entity != null && result.getTeam() == team){
+ bits.set(quadrantX, quadrantY);
break outer;
}
}
@@ -308,7 +345,7 @@ public class BlockIndexer{
}
private boolean getQuad(Team team, int quadrantX, int quadrantY){
- return structQuadrants[team.ordinal()].get(quadrantX, quadrantY);
+ return structQuadrant(team).get(quadrantX, quadrantY);
}
private int quadWidth(){
diff --git a/core/src/mindustry/ai/Pathfinder.java b/core/src/mindustry/ai/Pathfinder.java
index 4e1212ea6a..a16ac8f410 100644
--- a/core/src/mindustry/ai/Pathfinder.java
+++ b/core/src/mindustry/ai/Pathfinder.java
@@ -27,9 +27,9 @@ public class Pathfinder implements Runnable{
/** unordered array of path data for iteration only. DO NOT iterate ot access this in the main thread.*/
private Array list = new Array<>();
/** Maps teams + flags to a valid path to get to that flag for that team. */
- private PathData[][] pathMap = new PathData[Team.all.length][PathTarget.all.length];
+ private PathData[][] pathMap = new PathData[Team.all().length][PathTarget.all.length];
/** Grid map of created path data that should not be queued again. */
- private GridBits created = new GridBits(Team.all.length, PathTarget.all.length);
+ private GridBits created = new GridBits(Team.all().length, PathTarget.all.length);
/** handles task scheduling on the update thread. */
private TaskQueue queue = new TaskQueue();
/** current pathfinding thread */
@@ -42,8 +42,8 @@ public class Pathfinder implements Runnable{
//reset and update internal tile array
tiles = new int[world.width()][world.height()];
- pathMap = new PathData[Team.all.length][PathTarget.all.length];
- created = new GridBits(Team.all.length, PathTarget.all.length);
+ pathMap = new PathData[Team.all().length][PathTarget.all.length];
+ created = new GridBits(Team.all().length, PathTarget.all.length);
list = new Array<>();
for(int x = 0; x < world.width(); x++){
@@ -53,7 +53,7 @@ public class Pathfinder implements Runnable{
}
//special preset which may help speed things up; this is optional
- preloadPath(waveTeam, PathTarget.enemyCores);
+ preloadPath(state.rules.waveTeam, PathTarget.enemyCores);
start();
});
@@ -84,8 +84,8 @@ public class Pathfinder implements Runnable{
}
public int debugValue(Team team, int x, int y){
- if(pathMap[team.ordinal()][PathTarget.enemyCores.ordinal()] == null) return 0;
- return pathMap[team.ordinal()][PathTarget.enemyCores.ordinal()].weights[x][y];
+ if(pathMap[team.id][PathTarget.enemyCores.ordinal()] == null) return 0;
+ return pathMap[team.id][PathTarget.enemyCores.ordinal()].weights[x][y];
}
/** Update a tile in the internal pathfinding grid. Causes a complete pathfinding reclaculation. */
@@ -139,7 +139,7 @@ public class Pathfinder implements Runnable{
//stop looping when interrupted externally
return;
}
- }catch(Exception e){
+ }catch(Throwable e){
e.printStackTrace();
}
}
@@ -149,12 +149,12 @@ public class Pathfinder implements Runnable{
public Tile getTargetTile(Tile tile, Team team, PathTarget target){
if(tile == null) return null;
- PathData data = pathMap[team.ordinal()][target.ordinal()];
+ PathData data = pathMap[team.id][target.ordinal()];
if(data == null){
//if this combination is not found, create it on request
- if(!created.get(team.ordinal(), target.ordinal())){
- created.set(team.ordinal(), target.ordinal());
+ if(!created.get(team.id, target.ordinal())){
+ created.set(team.id, target.ordinal());
//grab targets since this is run on main thread
IntArray targets = target.getTargets(team, new IntArray());
queue.post(() -> createPath(team, target, targets));
@@ -188,7 +188,7 @@ public class Pathfinder implements Runnable{
/** @return whether a tile can be passed through by this team. Pathfinding thread only.*/
private boolean passable(int x, int y, Team team){
int tile = tiles[x][y];
- return PathTile.passable(tile) || (PathTile.team(tile) != team.ordinal() && PathTile.team(tile) != Team.derelict.ordinal());
+ return PathTile.passable(tile) || (PathTile.team(tile) != team.id && PathTile.team(tile) != (int)Team.derelict.id);
}
/**
@@ -238,7 +238,7 @@ public class Pathfinder implements Runnable{
PathData path = new PathData(team, target, world.width(), world.height());
list.add(path);
- pathMap[team.ordinal()][target.ordinal()] = path;
+ pathMap[team.id][target.ordinal()] = path;
//grab targets from passed array
synchronized(path.targets){
@@ -303,7 +303,7 @@ public class Pathfinder implements Runnable{
}
//spawn points are also enemies.
- if(state.rules.waves && team == defaultTeam){
+ if(state.rules.waves && team == state.rules.defaultTeam){
for(Tile other : spawner.getGroundSpawns()){
out.add(other.pos());
}
diff --git a/core/src/mindustry/ai/WaveSpawner.java b/core/src/mindustry/ai/WaveSpawner.java
index ac4914a90b..3bd5bc5400 100644
--- a/core/src/mindustry/ai/WaveSpawner.java
+++ b/core/src/mindustry/ai/WaveSpawner.java
@@ -11,7 +11,7 @@ import mindustry.content.Blocks;
import mindustry.content.Fx;
import mindustry.entities.Damage;
import mindustry.entities.Effects;
-import mindustry.entities.type.BaseUnit;
+import mindustry.entities.type.*;
import mindustry.game.EventType.WorldLoadEvent;
import mindustry.game.SpawnGroup;
import mindustry.world.Tile;
@@ -53,7 +53,7 @@ public class WaveSpawner{
eachFlyerSpawn((spawnX, spawnY) -> {
for(int i = 0; i < spawned; i++){
- BaseUnit unit = group.createUnit(waveTeam);
+ BaseUnit unit = group.createUnit(state.rules.waveTeam);
unit.set(spawnX + Mathf.range(spread), spawnY + Mathf.range(spread));
unit.add();
}
@@ -66,7 +66,7 @@ public class WaveSpawner{
for(int i = 0; i < spawned; i++){
Tmp.v1.rnd(spread);
- BaseUnit unit = group.createUnit(waveTeam);
+ BaseUnit unit = group.createUnit(state.rules.waveTeam);
unit.set(spawnX + Tmp.v1.x, spawnY + Tmp.v1.y);
Time.run(Math.min(i * 5, 60 * 2), () -> spawnEffect(unit));
@@ -78,7 +78,7 @@ public class WaveSpawner{
eachGroundSpawn((spawnX, spawnY, doShockwave) -> {
if(doShockwave){
Time.run(20f, () -> Effects.effect(Fx.spawnShockwave, spawnX, spawnY, state.rules.dropZoneRadius));
- Time.run(40f, () -> Damage.damage(waveTeam, spawnX, spawnY, state.rules.dropZoneRadius, 99999999f, true));
+ Time.run(40f, () -> Damage.damage(state.rules.waveTeam, spawnX, spawnY, state.rules.dropZoneRadius, 99999999f, true));
}
});
@@ -90,11 +90,11 @@ public class WaveSpawner{
cons.accept(spawn.worldx(), spawn.worldy(), true);
}
- if(state.rules.attackMode && state.teams.isActive(waveTeam) && !state.teams.get(defaultTeam).cores.isEmpty()){
- Tile firstCore = state.teams.get(defaultTeam).cores.first();
- for(Tile core : state.teams.get(waveTeam).cores){
- Tmp.v1.set(firstCore).sub(core.worldx(), core.worldy()).limit(coreMargin + core.block().size*tilesize);
- cons.accept(core.worldx() + Tmp.v1.x, core.worldy() + Tmp.v1.y, false);
+ if(state.rules.attackMode && state.teams.isActive(state.rules.waveTeam) && !state.teams.playerCores().isEmpty()){
+ TileEntity firstCore = state.teams.playerCores().first();
+ for(TileEntity core : state.rules.waveTeam.cores()){
+ Tmp.v1.set(firstCore).sub(core.x, core.y).limit(coreMargin + core.block.size*tilesize);
+ cons.accept(core.x + Tmp.v1.x, core.y + Tmp.v1.y, false);
}
}
}
@@ -107,9 +107,9 @@ public class WaveSpawner{
cons.get(spawnX, spawnY);
}
- if(state.rules.attackMode && state.teams.isActive(waveTeam)){
- for(Tile core : state.teams.get(waveTeam).cores){
- cons.get(core.worldx(), core.worldy());
+ if(state.rules.attackMode && state.teams.isActive(state.rules.waveTeam)){
+ for(TileEntity core : state.teams.get(state.rules.waveTeam).cores){
+ cons.get(core.x, core.y);
}
}
}
diff --git a/core/src/mindustry/content/Blocks.java b/core/src/mindustry/content/Blocks.java
index a4f8a939a8..09567ae383 100644
--- a/core/src/mindustry/content/Blocks.java
+++ b/core/src/mindustry/content/Blocks.java
@@ -909,10 +909,11 @@ public class Blocks implements ContentList{
}};
junction = new Junction("junction"){{
- requirements(Category.distribution, ItemStack.with(Items.copper, 1), true);
+ requirements(Category.distribution, ItemStack.with(Items.copper, 2), true);
speed = 26;
capacity = 12;
health = 30;
+ buildCostMultiplier = 6f;
}};
itemBridge = new BufferedItemBridge("bridge-conveyor"){{
@@ -932,16 +933,18 @@ public class Blocks implements ContentList{
sorter = new Sorter("sorter"){{
requirements(Category.distribution, ItemStack.with(Items.lead, 2, Items.copper, 2));
+ buildCostMultiplier = 3f;
}};
invertedSorter = new Sorter("inverted-sorter"){{
requirements(Category.distribution, ItemStack.with(Items.lead, 2, Items.copper, 2));
+ buildCostMultiplier = 3f;
invert = true;
}};
router = new Router("router"){{
requirements(Category.distribution, ItemStack.with(Items.copper, 3));
-
+ buildCostMultiplier = 2f;
}};
distributor = new Router("distributor"){{
@@ -951,6 +954,7 @@ public class Blocks implements ContentList{
overflowGate = new OverflowGate("overflow-gate"){{
requirements(Category.distribution, ItemStack.with(Items.lead, 2, Items.copper, 4));
+ buildCostMultiplier = 3f;
}};
massDriver = new MassDriver("mass-driver"){{
@@ -1245,7 +1249,7 @@ public class Blocks implements ContentList{
//region storage
coreShard = new CoreBlock("core-shard"){{
- requirements(Category.effect, BuildVisibility.debugOnly, ItemStack.with(Items.titanium, 4000));
+ requirements(Category.effect, BuildVisibility.debugOnly, ItemStack.with());
alwaysUnlocked = true;
health = 1100;
@@ -1254,7 +1258,7 @@ public class Blocks implements ContentList{
}};
coreFoundation = new CoreBlock("core-foundation"){{
- requirements(Category.effect, BuildVisibility.debugOnly, ItemStack.with(Items.titanium, 400, Items.silicon, 3000));
+ requirements(Category.effect, BuildVisibility.debugOnly, ItemStack.with());
health = 2000;
itemCapacity = 9000;
@@ -1262,7 +1266,7 @@ public class Blocks implements ContentList{
}};
coreNucleus = new CoreBlock("core-nucleus"){{
- requirements(Category.effect, BuildVisibility.debugOnly, ItemStack.with(Items.titanium, 4000, Items.silicon, 2000, Items.surgealloy, 3000));
+ requirements(Category.effect, BuildVisibility.debugOnly, ItemStack.with());
health = 4000;
itemCapacity = 13000;
@@ -1399,15 +1403,6 @@ public class Blocks implements ContentList{
range = 110f;
health = 250 * size * size;
shootSound = Sounds.splash;
-
- drawer = (tile, entity) -> {
- Draw.rect(region, tile.drawx() + tr2.x, tile.drawy() + tr2.y, entity.rotation - 90);
-
- Draw.color(entity.liquids.current().color);
- Draw.alpha(entity.liquids.total() / liquidCapacity);
- Draw.rect(name + "-liquid", tile.drawx() + tr2.x, tile.drawy() + tr2.y, entity.rotation - 90);
- Draw.color();
- };
}};
lancer = new ChargeTurret("lancer"){{
diff --git a/core/src/mindustry/content/Fx.java b/core/src/mindustry/content/Fx.java
index 379e01f9a6..a116034e1a 100644
--- a/core/src/mindustry/content/Fx.java
+++ b/core/src/mindustry/content/Fx.java
@@ -1079,6 +1079,7 @@ public class Fx implements ContentList{
healBlockFull = new Effect(20, e -> {
Draw.color(e.color);
Draw.alpha(e.fout());
+ Fill.square(e.x, e.y, e.rotation * tilesize / 2f);
});
overdriveBlockFull = new Effect(60, e -> {
diff --git a/core/src/mindustry/content/Loadouts.java b/core/src/mindustry/content/Loadouts.java
index 16252b686f..145da6120e 100644
--- a/core/src/mindustry/content/Loadouts.java
+++ b/core/src/mindustry/content/Loadouts.java
@@ -3,8 +3,6 @@ package mindustry.content;
import mindustry.ctype.*;
import mindustry.game.*;
-import java.io.*;
-
public class Loadouts implements ContentList{
public static Schematic
basicShard,
@@ -14,13 +12,9 @@ public class Loadouts implements ContentList{
@Override
public void load(){
- try{
- basicShard = Schematics.readBase64("bXNjaAB4nD2K2wqAIBiD5ymibnoRn6YnEP1BwUMoBL19FuJ2sbFvUFgYZDaJsLeQrkinN9UJHImsNzlYE7WrIUastuSbnlKx2VJJt+8IQGGKdfO/8J5yrGJSMegLg+YUIA==");
- advancedShard = Schematics.readBase64("bXNjaAB4nD2LjQqAIAyET7OMIOhFfJqeYMxBgSkYCL199gu33fFtB4tOwUTaBCP5QpHFzwtl32DahBeKK1NwPq8hoOcUixwpY+CUxe3XIwBbB/pa6tadVCUP02hgHvp5vZq/0b7pBHPYFOQ=");
- basicFoundation = Schematics.readBase64("bXNjaAB4nD1OSQ6DMBBzFhVu8BG+0X8MQyoiJTNSukj8nlCi2Adbtg/GA4OBF8oB00rvyE/9ykafqOIw58A7SWRKy1ZiShhZ5RcOLZhYS1hefQ1gRIeptH9jq/qW2lvc1d2tgWsOfVX/tOwE86AYBA==");
- basicNucleus = Schematics.readBase64("bXNjaAB4nD2MUQqAIBBEJy0s6qOLdJXuYNtCgikYBd2+LNmdj308hkGHtkId7M4YFns4mk/yfB4a48602eDI+mlNznu0FMPFd0wYKCaewl8F0EOueqM+yKSLVfJrNKWnSw/FZGzEGXFG9sy/px4gEBW1");
- }catch(IOException e){
- throw new RuntimeException(e);
- }
+ basicShard = Schematics.readBase64("bXNjaAB4nD2K2wqAIBiD5ymibnoRn6YnEP1BwUMoBL19FuJ2sbFvUFgYZDaJsLeQrkinN9UJHImsNzlYE7WrIUastuSbnlKx2VJJt+8IQGGKdfO/8J5yrGJSMegLg+YUIA==");
+ advancedShard = Schematics.readBase64("bXNjaAB4nD2LjQqAIAyET7OMIOhFfJqeYMxBgSkYCL199gu33fFtB4tOwUTaBCP5QpHFzwtl32DahBeKK1NwPq8hoOcUixwpY+CUxe3XIwBbB/pa6tadVCUP02hgHvp5vZq/0b7pBHPYFOQ=");
+ basicFoundation = Schematics.readBase64("bXNjaAB4nD1OSQ6DMBBzFhVu8BG+0X8MQyoiJTNSukj8nlCi2Adbtg/GA4OBF8oB00rvyE/9ykafqOIw58A7SWRKy1ZiShhZ5RcOLZhYS1hefQ1gRIeptH9jq/qW2lvc1d2tgWsOfVX/tOwE86AYBA==");
+ basicNucleus = Schematics.readBase64("bXNjaAB4nD2MUQqAIBBEJy0s6qOLdJXuYNtCgikYBd2+LNmdj308hkGHtkId7M4YFns4mk/yfB4a48602eDI+mlNznu0FMPFd0wYKCaewl8F0EOueqM+yKSLVfJrNKWnSw/FZGzEGXFG9sy/px4gEBW1");
}
}
diff --git a/core/src/mindustry/content/StatusEffects.java b/core/src/mindustry/content/StatusEffects.java
index 525a14199c..6672727847 100644
--- a/core/src/mindustry/content/StatusEffects.java
+++ b/core/src/mindustry/content/StatusEffects.java
@@ -6,8 +6,7 @@ import mindustry.entities.Effects;
import mindustry.ctype.ContentList;
import mindustry.game.EventType.*;
import mindustry.type.StatusEffect;
-
-import static mindustry.Vars.waveTeam;
+import static mindustry.Vars.*;
public class StatusEffects implements ContentList{
public static StatusEffect none, burning, freezing, wet, melting, tarred, overdrive, shielded, shocked, corroded, boss;
@@ -48,7 +47,7 @@ public class StatusEffects implements ContentList{
init(() -> {
trans(shocked, ((unit, time, newTime, result) -> {
unit.damage(20f);
- if(unit.getTeam() == waveTeam){
+ if(unit.getTeam() == state.rules.waveTeam){
Events.fire(Trigger.shock);
}
result.set(this, time);
diff --git a/core/src/mindustry/core/Control.java b/core/src/mindustry/core/Control.java
index 99d91d5516..fe9389a119 100644
--- a/core/src/mindustry/core/Control.java
+++ b/core/src/mindustry/core/Control.java
@@ -63,7 +63,7 @@ public class Control implements ApplicationListener, Loadable{
});
Events.on(PlayEvent.class, event -> {
- player.setTeam(state.rules.pvp ? netServer.assignTeam(player, playerGroup.all()) : defaultTeam);
+ player.setTeam(netServer.assignTeam(player, playerGroup.all()));
player.setDead(true);
player.add();
@@ -256,9 +256,9 @@ public class Control implements ApplicationListener, Loadable{
world.loadGenerator(zone.generator);
zone.rules.get(state.rules);
state.rules.zone = zone;
- for(Tile core : state.teams.get(defaultTeam).cores){
+ for(TileEntity core : state.teams.playerCores()){
for(ItemStack stack : zone.getStartingItems()){
- core.entity.items.add(stack.item, stack.amount);
+ core.items.add(stack.item, stack.amount);
}
}
state.set(State.playing);
@@ -294,8 +294,8 @@ public class Control implements ApplicationListener, Loadable{
Geometry.circle(coreb.x, coreb.y, 10, (cx, cy) -> {
Tile tile = world.ltile(cx, cy);
- if(tile != null && tile.getTeam() == defaultTeam && !(tile.block() instanceof CoreBlock)){
- world.removeBlock(tile);
+ if(tile != null && tile.getTeam() == state.rules.defaultTeam && !(tile.block() instanceof CoreBlock)){
+ tile.remove();
}
});
@@ -305,13 +305,13 @@ public class Control implements ApplicationListener, Loadable{
zone.rules.get(state.rules);
state.rules.zone = zone;
- for(Tile core : state.teams.get(defaultTeam).cores){
+ for(TileEntity core : state.teams.playerCores()){
for(ItemStack stack : zone.getStartingItems()){
- core.entity.items.add(stack.item, stack.amount);
+ core.items.add(stack.item, stack.amount);
}
}
- Tile core = state.teams.get(defaultTeam).cores.first();
- core.entity.items.clear();
+ TileEntity core = state.teams.playerCores().first();
+ core.items.clear();
logic.play();
state.rules.waveTimer = false;
@@ -434,9 +434,9 @@ public class Control implements ApplicationListener, Loadable{
input.update();
if(world.isZone()){
- for(Tile tile : state.teams.get(player.getTeam()).cores){
+ for(TileEntity tile : state.teams.cores(player.getTeam())){
for(Item item : content.items()){
- if(tile.entity != null && tile.entity.items.has(item)){
+ if(tile.items.has(item)){
data.unlockContent(item);
}
}
@@ -456,7 +456,7 @@ public class Control implements ApplicationListener, Loadable{
state.set(state.is(State.playing) ? State.paused : State.playing);
}
- if(Core.input.keyTap(Binding.menu) && !ui.restart.isShown()){
+ if(Core.input.keyTap(Binding.menu) && !ui.restart.isShown() && !ui.minimapfrag.shown()){
if(ui.chatfrag.shown()){
ui.chatfrag.hide();
}else if(!ui.paused.isShown() && !scene.hasDialog()){
diff --git a/core/src/mindustry/core/GameState.java b/core/src/mindustry/core/GameState.java
index 73e3db8259..2b233789eb 100644
--- a/core/src/mindustry/core/GameState.java
+++ b/core/src/mindustry/core/GameState.java
@@ -2,7 +2,6 @@ package mindustry.core;
import arc.*;
import mindustry.entities.type.*;
-import mindustry.entities.type.base.*;
import mindustry.game.EventType.*;
import mindustry.game.*;
@@ -26,12 +25,8 @@ public class GameState{
/** Current game state. */
private State state = State.menu;
- public int enemies(){
- return net.client() ? enemies : unitGroups[waveTeam.ordinal()].count(b -> !(b instanceof BaseDrone));
- }
-
public BaseUnit boss(){
- return unitGroups[waveTeam.ordinal()].find(BaseUnit::isBoss);
+ return unitGroup.find(u -> u.isBoss() && u.getTeam() == rules.waveTeam);
}
public void set(State astate){
diff --git a/core/src/mindustry/core/Logic.java b/core/src/mindustry/core/Logic.java
index 6026f59001..29ebc35821 100644
--- a/core/src/mindustry/core/Logic.java
+++ b/core/src/mindustry/core/Logic.java
@@ -1,8 +1,8 @@
package mindustry.core;
import arc.*;
-import mindustry.annotations.Annotations.*;
import arc.util.*;
+import mindustry.annotations.Annotations.*;
import mindustry.content.*;
import mindustry.core.GameState.*;
import mindustry.ctype.*;
@@ -47,8 +47,8 @@ public class Logic implements ApplicationListener{
//blocks that get broken are appended to the team's broken block queue
Tile tile = event.tile;
Block block = tile.block();
- //skip null entities or nukes, for obvious reasons
- if(tile.entity == null || tile.block() instanceof NuclearReactor) return;
+ //skip null entities or nukes, for obvious reasons; also skip client since they can't modify these requests
+ if(tile.entity == null || tile.block() instanceof NuclearReactor || net.client()) return;
if(block instanceof BuildBlock){
@@ -107,9 +107,9 @@ public class Logic implements ApplicationListener{
//add starting items
if(!world.isZone()){
- for(Team team : Team.all){
- if(!state.teams.get(team).cores.isEmpty()){
- TileEntity entity = state.teams.get(team).cores.first().entity;
+ for(TeamData team : state.teams.getActive()){
+ if(team.hasCore()){
+ TileEntity entity = team.core();
entity.items.clear();
for(ItemStack stack : state.rules.loadout){
entity.items.add(stack.item, stack.amount);
@@ -143,23 +143,23 @@ public class Logic implements ApplicationListener{
}
private void checkGameOver(){
- if(!state.rules.attackMode && state.teams.get(defaultTeam).cores.size == 0 && !state.gameOver){
+ if(!state.rules.attackMode && state.teams.playerCores().size == 0 && !state.gameOver){
state.gameOver = true;
- Events.fire(new GameOverEvent(waveTeam));
+ Events.fire(new GameOverEvent(state.rules.waveTeam));
}else if(state.rules.attackMode){
Team alive = null;
- for(Team team : Team.all){
- if(state.teams.get(team).cores.size > 0){
+ for(TeamData team : state.teams.getActive()){
+ if(team.hasCore()){
if(alive != null){
return;
}
- alive = team;
+ alive = team.team;
}
}
if(alive != null && !state.gameOver){
- if(world.isZone() && alive == defaultTeam){
+ if(world.isZone() && alive == state.rules.defaultTeam){
//in attack maps, a victorious game over is equivalent to a launch
Call.launchZone();
}else{
@@ -176,7 +176,7 @@ public class Logic implements ApplicationListener{
ui.hudfrag.showLaunch();
}
- for(Tile tile : state.teams.get(defaultTeam).cores){
+ for(TileEntity tile : state.teams.playerCores()){
Effects.effect(Fx.launch, tile);
}
@@ -185,19 +185,18 @@ public class Logic implements ApplicationListener{
}
Time.runTask(30f, () -> {
- for(Tile tile : state.teams.get(defaultTeam).cores){
+ for(TileEntity entity : state.teams.playerCores()){
for(Item item : content.items()){
- if(tile == null || tile.entity == null || tile.entity.items == null) continue;
- data.addItem(item, tile.entity.items.get(item));
- Events.fire(new LaunchItemEvent(item, tile.entity.items.get(item)));
+ data.addItem(item, entity.items.get(item));
+ Events.fire(new LaunchItemEvent(item, entity.items.get(item)));
}
- world.removeBlock(tile);
+ entity.tile.remove();
}
state.launched = true;
state.gameOver = true;
Events.fire(new LaunchEvent());
//manually fire game over event now
- Events.fire(new GameOverEvent(defaultTeam));
+ Events.fire(new GameOverEvent(state.rules.defaultTeam));
});
}
@@ -210,14 +209,18 @@ public class Logic implements ApplicationListener{
@Override
public void update(){
+ Events.fire(Trigger.update);
if(!state.is(State.menu)){
+ if(!net.client()){
+ state.enemies = unitGroup.count(b -> b.getTeam() == state.rules.waveTeam && b.countsAsEnemy());
+ }
if(!state.isPaused()){
Time.update();
if(state.rules.waves && state.rules.waveTimer && !state.gameOver){
- if(!state.rules.waitForWaveToEnd || unitGroups[waveTeam.ordinal()].size() == 0){
+ if(!state.rules.waitForWaveToEnd || state.enemies == 0){
state.wavetime = Math.max(state.wavetime - Time.delta(), 0);
}
}
@@ -232,10 +235,7 @@ public class Logic implements ApplicationListener{
}
if(!state.isEditor()){
- for(EntityGroup group : unitGroups){
- group.update();
- }
-
+ unitGroup.update();
puddleGroup.update();
shieldGroup.update();
bulletGroup.update();
@@ -243,10 +243,8 @@ public class Logic implements ApplicationListener{
fireGroup.update();
weatherGroup.update();
}else{
- for(EntityGroup> group : unitGroups){
- group.updateEvents();
- collisions.updatePhysics(group);
- }
+ unitGroup.updateEvents();
+ collisions.updatePhysics(unitGroup);
}
@@ -258,17 +256,13 @@ public class Logic implements ApplicationListener{
}
if(!state.isEditor()){
-
- for(EntityGroup group : unitGroups){
- if(group.isEmpty()) continue;
- collisions.collideGroups(bulletGroup, group);
- }
-
+ //bulletGroup
+ collisions.collideGroups(bulletGroup, unitGroup);
collisions.collideGroups(bulletGroup, playerGroup);
}
}
- if(!net.client() && !world.isInvalidMap() && !state.isEditor()){
+ if(!net.client() && !world.isInvalidMap() && !state.isEditor() && state.rules.canGameOver){
checkGameOver();
}
}
diff --git a/core/src/mindustry/core/NetClient.java b/core/src/mindustry/core/NetClient.java
index 65c6122d72..96daa07041 100644
--- a/core/src/mindustry/core/NetClient.java
+++ b/core/src/mindustry/core/NetClient.java
@@ -160,9 +160,17 @@ public class NetClient implements ApplicationListener{
throw new ValidateException(player, "Player has sent a message above the text limit.");
}
+ String original = message;
+
//check if it's a command
CommandResponse response = netServer.clientCommands.handleMessage(message, player);
if(response.type == ResponseType.noCommand){ //no command to handle
+ message = netServer.admins.filterMessage(player, message);
+ //supress chat message if it's filtered out
+ if(message == null){
+ return;
+ }
+
//server console logging
Log.info("&y{0}: &lb{1}", player.name, message);
@@ -190,7 +198,7 @@ public class NetClient implements ApplicationListener{
}
}
- Events.fire(new PlayerChatEvent(player, message));
+ Events.fire(new PlayerChatEvent(player, message, original));
}
public static String colorizeName(int id, String name){
diff --git a/core/src/mindustry/core/NetServer.java b/core/src/mindustry/core/NetServer.java
index d00fc5a839..774489a4a5 100644
--- a/core/src/mindustry/core/NetServer.java
+++ b/core/src/mindustry/core/NetServer.java
@@ -1,14 +1,14 @@
package mindustry.core;
import arc.*;
-import mindustry.annotations.Annotations.*;
-import arc.struct.*;
import arc.graphics.*;
import arc.math.*;
import arc.math.geom.*;
+import arc.struct.*;
import arc.util.*;
import arc.util.CommandHandler.*;
import arc.util.io.*;
+import mindustry.annotations.Annotations.*;
import mindustry.content.*;
import mindustry.core.GameState.*;
import mindustry.entities.*;
@@ -17,28 +17,49 @@ import mindustry.entities.traits.*;
import mindustry.entities.type.*;
import mindustry.game.EventType.*;
import mindustry.game.*;
+import mindustry.game.Teams.*;
import mindustry.gen.*;
import mindustry.net.*;
import mindustry.net.Administration.*;
import mindustry.net.Packets.*;
import mindustry.world.*;
+import mindustry.world.blocks.storage.CoreBlock.*;
import java.io.*;
+import java.net.*;
import java.nio.*;
import java.util.zip.*;
+import static arc.util.Log.*;
import static mindustry.Vars.*;
public class NetServer implements ApplicationListener{
private final static int maxSnapshotSize = 430, timerBlockSync = 0;
- private final static float serverSyncTime = 12, kickDuration = 30 * 1000, blockSyncTime = 60 * 10;
+ private final static float serverSyncTime = 12, kickDuration = 30 * 1000, blockSyncTime = 60 * 8;
private final static Vec2 vector = new Vec2();
- private final static Rectangle viewport = new Rectangle();
+ private final static Rect viewport = new Rect();
/** If a player goes away of their server-side coordinates by this distance, they get teleported back. */
private final static float correctDist = 16f;
public final Administration admins = new Administration();
public final CommandHandler clientCommands = new CommandHandler("/");
+ public TeamAssigner assigner = (player, players) -> {
+ if(state.rules.pvp){
+ //find team with minimum amount of players and auto-assign player to that.
+ TeamData re = state.teams.getActive().min(data -> {
+ int count = 0;
+ for(Player other : players){
+ if(other.getTeam() == data.team && other != player){
+ count++;
+ }
+ }
+ return count;
+ });
+ return re == null ? null : re.team;
+ }
+
+ return state.rules.defaultTeam;
+ };
private boolean closing = false;
private Interval timer = new Interval();
@@ -197,10 +218,7 @@ public class NetServer implements ApplicationListener{
con.player = player;
//playing in pvp mode automatically assigns players to teams
- if(state.rules.pvp){
- player.setTeam(assignTeam(player, playerGroup.all()));
- Log.info("Auto-assigned player {0} to team {1}.", player.name, player.getTeam());
- }
+ player.setTeam(assignTeam(player, playerGroup.all()));
sendWorldData(player);
@@ -303,6 +321,11 @@ public class NetServer implements ApplicationListener{
VoteSession[] currentlyKicking = {null};
clientCommands.register("votekick", "[player...]", "Vote to kick a player, with a cooldown.", (args, player) -> {
+ if(!Config.enableVotekick.bool()){
+ player.sendMessage("[scarlet]Vote-kick is disabled on this server.");
+ return;
+ }
+
if(playerGroup.size() < 3){
player.sendMessage("[scarlet]At least 3 players are needed to start a votekick.");
return;
@@ -401,19 +424,7 @@ public class NetServer implements ApplicationListener{
}
public Team assignTeam(Player current, Iterable players){
- //find team with minimum amount of players and auto-assign player to that.
- return Structs.findMin(Team.all, team -> {
- if(state.teams.isActive(team) && !state.teams.get(team).cores.isEmpty()){
- int count = 0;
- for(Player other : players){
- if(other.getTeam() == team && other != current){
- count++;
- }
- }
- return count;
- }
- return Integer.MAX_VALUE;
- });
+ return assigner.assign(current, players);
}
public void sendWorldData(Player player){
@@ -437,7 +448,7 @@ public class NetServer implements ApplicationListener{
if(!player.con.hasDisconnected){
if(player.con.hasConnected){
Events.fire(new PlayerLeave(player));
- Call.sendMessage("[accent]" + player.name + "[accent] has disconnected.");
+ if(Config.showConnectMessages.bool()) Call.sendMessage("[accent]" + player.name + "[accent] has disconnected.");
Call.onPlayerDisconnect(player.id);
}
@@ -575,17 +586,21 @@ public class NetServer implements ApplicationListener{
player.add();
player.con.hasConnected = true;
- Call.sendMessage("[accent]" + player.name + "[accent] has connected.");
+ if(Config.showConnectMessages.bool()) Call.sendMessage("[accent]" + player.name + "[accent] has connected.");
Log.info("&lm[{1}] &y{0} has connected. ", player.name, player.uuid);
+ if(!Config.motd.string().equalsIgnoreCase("off")){
+ player.sendMessage(Config.motd.string());
+ }
+
Events.fire(new PlayerJoin(player));
}
public boolean isWaitingForPlayers(){
if(state.rules.pvp){
int used = 0;
- for(Team t : Team.all){
- if(playerGroup.count(p -> p.getTeam() == t) > 0){
+ for(TeamData t : state.teams.getActive()){
+ if(playerGroup.count(p -> p.getTeam() == t.team) > 0){
used++;
}
}
@@ -594,6 +609,7 @@ public class NetServer implements ApplicationListener{
return false;
}
+ @Override
public void update(){
if(!headless && !closing && net.server() && state.is(State.menu)){
@@ -611,6 +627,20 @@ public class NetServer implements ApplicationListener{
}
}
+ /** Should only be used on the headless backend. */
+ public void openServer(){
+ try{
+ net.host(Config.port.num());
+ info("&lcOpened a server on port {0}.", Config.port.num());
+ }catch(BindException e){
+ Log.err("Unable to host: Port already in use! Make sure no other servers are running on the same port in your network.");
+ state.set(State.menu);
+ }catch(IOException e){
+ err(e);
+ state.set(State.menu);
+ }
+ }
+
public void kickAll(KickReason reason){
for(NetConnection con : net.getConnections()){
con.kick(reason);
@@ -647,20 +677,20 @@ public class NetServer implements ApplicationListener{
public void writeEntitySnapshot(Player player) throws IOException{
syncStream.reset();
- ObjectSet cores = state.teams.get(player.getTeam()).cores;
+ Array cores = state.teams.cores(player.getTeam());
dataStream.writeByte(cores.size);
- for(Tile tile : cores){
- dataStream.writeInt(tile.pos());
- tile.entity.items.write(dataStream);
+ for(CoreEntity entity : cores){
+ dataStream.writeInt(entity.tile.pos());
+ entity.items.write(dataStream);
}
dataStream.close();
byte[] stateBytes = syncStream.toByteArray();
//write basic state data.
- Call.onStateSnapshot(player.con, state.wavetime, state.wave, state.enemies(), (short)stateBytes.length, net.compressSnapshot(stateBytes));
+ Call.onStateSnapshot(player.con, state.wavetime, state.wave, state.enemies, (short)stateBytes.length, net.compressSnapshot(stateBytes));
viewport.setSize(player.con.viewWidth, player.con.viewHeight).setCenter(player.con.viewX, player.con.viewY);
@@ -784,4 +814,8 @@ public class NetServer implements ApplicationListener{
e.printStackTrace();
}
}
+
+ public interface TeamAssigner{
+ Team assign(Player player, Iterable players);
+ }
}
diff --git a/core/src/mindustry/core/Renderer.java b/core/src/mindustry/core/Renderer.java
index 4dbb2ef4a1..7d5e6714b5 100644
--- a/core/src/mindustry/core/Renderer.java
+++ b/core/src/mindustry/core/Renderer.java
@@ -18,11 +18,10 @@ import mindustry.entities.effect.*;
import mindustry.entities.effect.GroundEffectEntity.*;
import mindustry.entities.traits.*;
import mindustry.entities.type.*;
-import mindustry.game.*;
import mindustry.game.EventType.*;
import mindustry.graphics.*;
import mindustry.input.*;
-import mindustry.ui.Cicon;
+import mindustry.ui.*;
import mindustry.world.blocks.defense.ForceProjector.*;
import static arc.Core.*;
@@ -42,7 +41,7 @@ public class Renderer implements ApplicationListener{
private float camerascale = targetscale;
private float landscale = 0f, landTime;
private float minZoomScl = Scl.scl(0.01f);
- private Rectangle rect = new Rectangle(), rect2 = new Rectangle();
+ private Rect rect = new Rect(), rect2 = new Rect();
private float shakeIntensity, shaketime;
public Renderer(){
@@ -57,8 +56,8 @@ public class Renderer implements ApplicationListener{
Effects.setEffectProvider((effect, color, x, y, rotation, data) -> {
if(effect == Fx.none) return;
if(Core.settings.getBool("effects")){
- Rectangle view = camera.bounds(rect);
- Rectangle pos = rect2.setSize(effect.size).setCenter(x, y);
+ Rect view = camera.bounds(rect);
+ Rect pos = rect2.setSize(effect.size).setCenter(x, y);
if(view.overlaps(pos)){
@@ -124,12 +123,14 @@ public class Renderer implements ApplicationListener{
if(player.isDead()){
TileEntity core = player.getClosestCore();
- if(core != null && player.spawner == null){
- camera.position.lerpDelta(core.x, core.y, 0.08f);
- }else{
- camera.position.lerpDelta(position, 0.08f);
+ if(core != null){
+ if(player.spawner == null){
+ camera.position.lerpDelta(core.x, core.y, 0.08f);
+ }else{
+ camera.position.lerpDelta(position, 0.08f);
+ }
}
- }else if(control.input instanceof DesktopInput){
+ }else if(control.input instanceof DesktopInput && !state.isPaused()){
camera.position.lerpDelta(position, 0.08f);
}
@@ -344,11 +345,7 @@ public class Renderer implements ApplicationListener{
Draw.rect("circle-shadow", u.x, u.y, size * rad, size * rad);
};
- for(EntityGroup extends BaseUnit> group : unitGroups){
- if(!group.isEmpty()){
- group.draw(unit -> !unit.isDead(), draw::get);
- }
- }
+ unitGroup.draw(unit -> !unit.isDead(), draw::get);
if(!playerGroup.isEmpty()){
playerGroup.draw(unit -> !unit.isDead(), draw::get);
@@ -361,34 +358,21 @@ public class Renderer implements ApplicationListener{
float trnsX = -12, trnsY = -13;
Draw.color(0, 0, 0, 0.22f);
- for(EntityGroup extends BaseUnit> group : unitGroups){
- if(!group.isEmpty()){
- group.draw(unit -> unit.isFlying() && !unit.isDead(), baseUnit -> baseUnit.drawShadow(trnsX, trnsY));
- }
- }
-
- if(!playerGroup.isEmpty()){
- playerGroup.draw(unit -> unit.isFlying() && !unit.isDead(), player -> player.drawShadow(trnsX, trnsY));
- }
+ unitGroup.draw(unit -> unit.isFlying() && !unit.isDead(), baseUnit -> baseUnit.drawShadow(trnsX, trnsY));
+ playerGroup.draw(unit -> unit.isFlying() && !unit.isDead(), player -> player.drawShadow(trnsX, trnsY));
Draw.color();
}
private void drawAllTeams(boolean flying){
- for(Team team : Team.all){
- EntityGroup group = unitGroups[team.ordinal()];
+ unitGroup.draw(u -> u.isFlying() == flying && !u.isDead(), Unit::drawUnder);
+ playerGroup.draw(p -> p.isFlying() == flying && !p.isDead(), Unit::drawUnder);
- if(group.count(p -> p.isFlying() == flying) + playerGroup.count(p -> p.isFlying() == flying && p.getTeam() == team) == 0 && flying) continue;
+ unitGroup.draw(u -> u.isFlying() == flying && !u.isDead(), Unit::drawAll);
+ playerGroup.draw(p -> p.isFlying() == flying, Unit::drawAll);
- unitGroups[team.ordinal()].draw(u -> u.isFlying() == flying && !u.isDead(), Unit::drawUnder);
- playerGroup.draw(p -> p.isFlying() == flying && p.getTeam() == team && !p.isDead(), Unit::drawUnder);
-
- unitGroups[team.ordinal()].draw(u -> u.isFlying() == flying && !u.isDead(), Unit::drawAll);
- playerGroup.draw(p -> p.isFlying() == flying && p.getTeam() == team, Unit::drawAll);
-
- unitGroups[team.ordinal()].draw(u -> u.isFlying() == flying && !u.isDead(), Unit::drawOver);
- playerGroup.draw(p -> p.isFlying() == flying && p.getTeam() == team, Unit::drawOver);
- }
+ unitGroup.draw(u -> u.isFlying() == flying && !u.isDead(), Unit::drawOver);
+ playerGroup.draw(p -> p.isFlying() == flying, Unit::drawOver);
}
public void scaleCamera(float amount){
diff --git a/core/src/mindustry/core/UI.java b/core/src/mindustry/core/UI.java
index 1ce41f6e24..f1b578cc9c 100644
--- a/core/src/mindustry/core/UI.java
+++ b/core/src/mindustry/core/UI.java
@@ -43,6 +43,7 @@ public class UI implements ApplicationListener, Loadable{
public HudFragment hudfrag;
public ChatFragment chatfrag;
public ScriptConsoleFragment scriptfrag;
+ public MinimapFragment minimapfrag;
public PlayerListFragment listfrag;
public LoadingFragment loadfrag;
@@ -68,7 +69,7 @@ public class UI implements ApplicationListener, Loadable{
public ContentInfoDialog content;
public DeployDialog deploy;
public TechTreeDialog tech;
- public MinimapDialog minimap;
+ //public MinimapDialog minimap;
public SchematicsDialog schematics;
public ModsDialog mods;
public ColorPicker picker;
@@ -210,6 +211,7 @@ public class UI implements ApplicationListener, Loadable{
menufrag = new MenuFragment();
hudfrag = new HudFragment();
chatfrag = new ChatFragment();
+ minimapfrag = new MinimapFragment();
listfrag = new PlayerListFragment();
loadfrag = new LoadingFragment();
scriptfrag = new ScriptConsoleFragment();
@@ -235,7 +237,6 @@ public class UI implements ApplicationListener, Loadable{
content = new ContentInfoDialog();
deploy = new DeployDialog();
tech = new TechTreeDialog();
- minimap = new MinimapDialog();
mods = new ModsDialog();
schematics = new SchematicsDialog();
@@ -254,6 +255,7 @@ public class UI implements ApplicationListener, Loadable{
hudfrag.build(hudGroup);
menufrag.build(menuGroup);
chatfrag.container().build(hudGroup);
+ minimapfrag.build(hudGroup);
listfrag.build(hudGroup);
scriptfrag.container().build(hudGroup);
loadfrag.build(group);
@@ -305,7 +307,19 @@ public class UI implements ApplicationListener, Loadable{
hide();
}).disabled(b -> field.getText().isEmpty());
buttons.addButton("$cancel", this::hide);
- }}.show();
+ keyDown(KeyCode.ENTER, () -> {
+ String text = field.getText();
+ if(!text.isEmpty()){
+ confirmed.get(text);
+ hide();
+ }
+ });
+ keyDown(KeyCode.ESCAPE, this::hide);
+ keyDown(KeyCode.BACK, this::hide);
+ show();
+ Core.scene.setKeyboardFocus(field);
+ field.setCursorPosition(def.length());
+ }};
}
}
diff --git a/core/src/mindustry/core/Version.java b/core/src/mindustry/core/Version.java
index 700b8776e6..08a105d8fb 100644
--- a/core/src/mindustry/core/Version.java
+++ b/core/src/mindustry/core/Version.java
@@ -9,9 +9,9 @@ import arc.util.io.*;
public class Version{
/** Build type. 'official' for official releases; 'custom' or 'bleeding edge' are also used. */
- public static String type;
+ public static String type = "unknown";
/** Build modifier, e.g. 'alpha' or 'release' */
- public static String modifier;
+ public static String modifier = "unknown";
/** Number specifying the major version, e.g. '4' */
public static int number;
/** Build number, e.g. '43'. set to '-1' for custom builds. */
diff --git a/core/src/mindustry/core/World.java b/core/src/mindustry/core/World.java
index e93bfb11c3..2ce4e47888 100644
--- a/core/src/mindustry/core/World.java
+++ b/core/src/mindustry/core/World.java
@@ -1,15 +1,15 @@
package mindustry.core;
import arc.*;
-import arc.struct.*;
import arc.math.*;
import arc.math.geom.*;
-import arc.util.*;
+import arc.struct.*;
import arc.util.ArcAnnotate.*;
-import mindustry.content.*;
+import arc.util.*;
import mindustry.core.GameState.*;
import mindustry.game.EventType.*;
import mindustry.game.*;
+import mindustry.game.Teams.*;
import mindustry.io.*;
import mindustry.maps.*;
import mindustry.maps.filters.*;
@@ -200,7 +200,7 @@ public class World{
public void loadMap(Map map, Rules checkRules){
try{
SaveIO.load(map.file, new FilterContext(map));
- }catch(Exception e){
+ }catch(Throwable e){
Log.err(e);
if(!headless){
ui.showErrorMessage("$map.invalid");
@@ -216,33 +216,22 @@ public class World{
invalidMap = false;
if(!headless){
- if(state.teams.get(defaultTeam).cores.size == 0 && !checkRules.pvp){
+ if(state.teams.playerCores().size == 0 && !checkRules.pvp){
ui.showErrorMessage("$map.nospawn");
invalidMap = true;
}else if(checkRules.pvp){ //pvp maps need two cores to be valid
- int teams = 0;
- for(Team team : Team.all){
- if(state.teams.get(team).cores.size != 0){
- teams ++;
- }
- }
- if(teams < 2){
+ if(state.teams.getActive().count(TeamData::hasCore) < 2){
invalidMap = true;
ui.showErrorMessage("$map.nospawn.pvp");
}
}else if(checkRules.attackMode){ //attack maps need two cores to be valid
- invalidMap = state.teams.get(waveTeam).cores.isEmpty();
+ invalidMap = state.teams.get(state.rules.waveTeam).noCores();
if(invalidMap){
ui.showErrorMessage("$map.nospawn.attack");
}
}
}else{
- invalidMap = true;
- for(Team team : Team.all){
- if(state.teams.get(team).cores.size != 0){
- invalidMap = false;
- }
- }
+ invalidMap = !state.teams.getActive().contains(TeamData::hasCore);
if(invalidMap){
throw new MapException(map, "Map has no cores!");
@@ -258,36 +247,6 @@ public class World{
}
}
- public void removeBlock(Tile tile){
- if(tile == null) return;
- tile.link().getLinkedTiles(other -> other.setBlock(Blocks.air));
- }
-
- public void setBlock(Tile tile, Block block, Team team){
- setBlock(tile, block, team, 0);
- }
-
- public void setBlock(Tile tile, Block block, Team team, int rotation){
- tile.setBlock(block, team, rotation);
- if(block.isMultiblock()){
- int offsetx = -(block.size - 1) / 2;
- int offsety = -(block.size - 1) / 2;
-
- for(int dx = 0; dx < block.size; dx++){
- for(int dy = 0; dy < block.size; dy++){
- int worldx = dx + offsetx + tile.x;
- int worldy = dy + offsety + tile.y;
- if(!(worldx == tile.x && worldy == tile.y)){
- Tile toplace = world.tile(worldx, worldy);
- if(toplace != null){
- toplace.setBlock(BlockPart.get(dx + offsetx, dy + offsety), team);
- }
- }
- }
- }
- }
- }
-
public void raycastEachWorld(float x0, float y0, float x1, float y1, Raycaster cons){
raycastEach(toTile(x0), toTile(y0), toTile(x1), toTile(y1), cons);
}
diff --git a/core/src/mindustry/editor/DrawOperation.java b/core/src/mindustry/editor/DrawOperation.java
index 22a7ad5730..061a7aee84 100755
--- a/core/src/mindustry/editor/DrawOperation.java
+++ b/core/src/mindustry/editor/DrawOperation.java
@@ -69,7 +69,7 @@ public class DrawOperation{
}else if(type == OpType.rotation.ordinal()){
tile.rotation(to);
}else if(type == OpType.team.ordinal()){
- tile.setTeam(Team.all[to]);
+ tile.setTeam(Team.get(to));
}else if(type == OpType.overlay.ordinal()){
tile.setOverlayID(to);
}
diff --git a/core/src/mindustry/editor/EditorTile.java b/core/src/mindustry/editor/EditorTile.java
index 8add17d33c..01b9e987b0 100644
--- a/core/src/mindustry/editor/EditorTile.java
+++ b/core/src/mindustry/editor/EditorTile.java
@@ -73,7 +73,7 @@ public class EditorTile extends Tile{
return;
}
- if(getTeamID() == team.ordinal()) return;
+ if(getTeamID() == team.id) return;
op(OpType.team, getTeamID());
super.setTeam(team);
}
diff --git a/core/src/mindustry/editor/EditorTool.java b/core/src/mindustry/editor/EditorTool.java
index 3e9fcd47dc..50442ff0f2 100644
--- a/core/src/mindustry/editor/EditorTool.java
+++ b/core/src/mindustry/editor/EditorTool.java
@@ -1,15 +1,14 @@
package mindustry.editor;
-import arc.struct.IntArray;
import arc.func.*;
-import arc.math.Mathf;
-import arc.math.geom.Bresenham2;
-import arc.util.Structs;
-import mindustry.Vars;
-import mindustry.content.Blocks;
-import mindustry.game.Team;
+import arc.math.*;
+import arc.math.geom.*;
+import arc.struct.*;
+import arc.util.*;
+import mindustry.content.*;
+import mindustry.game.*;
import mindustry.world.*;
-import mindustry.world.blocks.BlockPart;
+import mindustry.world.blocks.*;
public enum EditorTool{
zoom,
@@ -80,7 +79,7 @@ public enum EditorTool{
editor.drawCircle(x, y, tile -> {
if(mode == -1){
//erase block
- Vars.world.removeBlock(tile);
+ tile.remove();
}else if(mode == 0){
//erase ore
tile.clearOverlay();
@@ -141,7 +140,7 @@ public enum EditorTool{
if(tile.link().synthetic()){
Team dest = tile.getTeam();
if(dest == editor.drawTeam) return;
- fill(editor, x, y, false, t -> t.getTeamID() == dest.ordinal() && t.link().synthetic(), t -> t.setTeam(editor.drawTeam));
+ fill(editor, x, y, false, t -> t.getTeamID() == (int)dest.id && t.link().synthetic(), t -> t.setTeam(editor.drawTeam));
}
}
}
diff --git a/core/src/mindustry/editor/MapEditor.java b/core/src/mindustry/editor/MapEditor.java
index 166e609f4e..d38c6d14cc 100644
--- a/core/src/mindustry/editor/MapEditor.java
+++ b/core/src/mindustry/editor/MapEditor.java
@@ -10,7 +10,6 @@ import arc.util.Structs;
import mindustry.content.Blocks;
import mindustry.game.Team;
import mindustry.gen.TileOp;
-import mindustry.io.LegacyMapIO;
import mindustry.io.MapIO;
import mindustry.maps.Map;
import mindustry.world.*;
@@ -65,7 +64,7 @@ public class MapEditor{
reset();
createTiles(pixmap.getWidth(), pixmap.getHeight());
- load(() -> LegacyMapIO.readPixmap(pixmap, tiles()));
+ load(() -> MapIO.readPixmap(pixmap, tiles()));
renderer.resize(width(), height());
}
@@ -84,7 +83,7 @@ public class MapEditor{
//re-add them
for(Tile tile : tiles){
if(tile.block().isMultiblock()){
- world.setBlock(tile, tile.block(), tile.getTeam());
+ tile.set(tile.block(), tile.getTeam());
}
}
@@ -174,7 +173,7 @@ public class MapEditor{
}
}
- world.setBlock(tile(x, y), drawBlock, drawTeam);
+ tile(x, y).set(drawBlock, drawTeam);
}else{
boolean isFloor = drawBlock.isFloor() && drawBlock != Blocks.air;
@@ -183,7 +182,7 @@ public class MapEditor{
//remove linked tiles blocking the way
if(!isFloor && (tile.isLinked() || tile.block().isMultiblock())){
- world.removeBlock(tile.link());
+ tile.link().remove();
}
if(isFloor){
diff --git a/core/src/mindustry/editor/MapEditorDialog.java b/core/src/mindustry/editor/MapEditorDialog.java
index 0ee0fca085..b9a28501b9 100644
--- a/core/src/mindustry/editor/MapEditorDialog.java
+++ b/core/src/mindustry/editor/MapEditorDialog.java
@@ -551,7 +551,7 @@ public class MapEditorDialog extends Dialog implements Disposable{
int i = 0;
- for(Team team : Team.all){
+ for(Team team : Team.base()){
ImageButton button = new ImageButton(Tex.whiteui, Styles.clearTogglePartiali);
button.margin(4f);
button.getImageCell().grow();
diff --git a/core/src/mindustry/editor/MapGenerateDialog.java b/core/src/mindustry/editor/MapGenerateDialog.java
index 19f6f4bc2f..10182ee17e 100644
--- a/core/src/mindustry/editor/MapGenerateDialog.java
+++ b/core/src/mindustry/editor/MapGenerateDialog.java
@@ -138,7 +138,7 @@ public class MapGenerateDialog extends FloatingDialog{
tile.rotation(write.rotation);
tile.setFloor((Floor)content.block(write.floor));
tile.setBlock(content.block(write.block));
- tile.setTeam(Team.all[write.team]);
+ tile.setTeam(Team.get(write.team));
tile.setOverlay(content.block(write.ore));
}
}
@@ -367,7 +367,7 @@ public class MapGenerateDialog extends FloatingDialog{
GenTile tile = buffer1[px][py];
input.apply(x, y, content.block(tile.floor), content.block(tile.block), content.block(tile.ore));
filter.apply(input);
- buffer2[px][py].set(input.floor, input.block, input.ore, Team.all[tile.team], tile.rotation);
+ buffer2[px][py].set(input.floor, input.block, input.ore, Team.get(tile.team), tile.rotation);
});
pixmap.each((px, py) -> buffer1[px][py].set(buffer2[px][py]));
@@ -411,7 +411,7 @@ public class MapGenerateDialog extends FloatingDialog{
this.floor = floor.id;
this.block = wall.id;
this.ore = ore.id;
- this.team = (byte)team.ordinal();
+ this.team = (byte) team.id;
this.rotation = (byte)rotation;
}
@@ -433,7 +433,7 @@ public class MapGenerateDialog extends FloatingDialog{
ctile.setBlock(content.block(block));
ctile.setOverlay(content.block(ore));
ctile.rotation(rotation);
- ctile.setTeam(Team.all[team]);
+ ctile.setTeam(Team.get(team));
return ctile;
}
}
diff --git a/core/src/mindustry/editor/MapView.java b/core/src/mindustry/editor/MapView.java
index 4c99ffba61..6787f418ab 100644
--- a/core/src/mindustry/editor/MapView.java
+++ b/core/src/mindustry/editor/MapView.java
@@ -28,7 +28,7 @@ public class MapView extends Element implements GestureListener{
private boolean grid = false;
private GridImage image = new GridImage(0, 0);
private Vec2 vec = new Vec2();
- private Rectangle rect = new Rectangle();
+ private Rect rect = new Rect();
private Vec2[][] brushPolygons = new Vec2[MapEditor.brushSizes.length][0];
private boolean drawing;
diff --git a/core/src/mindustry/entities/Damage.java b/core/src/mindustry/entities/Damage.java
index a5bc63bc52..335ac96385 100644
--- a/core/src/mindustry/entities/Damage.java
+++ b/core/src/mindustry/entities/Damage.java
@@ -22,8 +22,8 @@ import static mindustry.Vars.*;
/** Utility class for damaging in an area. */
public class Damage{
- private static Rectangle rect = new Rectangle();
- private static Rectangle hitrect = new Rectangle();
+ private static Rect rect = new Rect();
+ private static Rect hitrect = new Rect();
private static Vec2 tr = new Vec2();
private static GridBits bits = new GridBits(30, 30);
private static IntQueue propagation = new IntQueue();
@@ -88,7 +88,7 @@ public class Damage{
tr.trns(angle, length);
Intc2 collider = (cx, cy) -> {
Tile tile = world.ltile(cx, cy);
- if(tile != null && !collidedBlocks.contains(tile.pos()) && tile.entity != null && tile.getTeamID() != team.ordinal() && tile.entity.collide(hitter)){
+ if(tile != null && !collidedBlocks.contains(tile.pos()) && tile.entity != null && tile.getTeamID() != team.id && tile.entity.collide(hitter)){
tile.entity.collision(hitter);
collidedBlocks.add(tile.pos());
hitter.getBulletType().hit(hitter, tile.worldx(), tile.worldy());
@@ -127,7 +127,7 @@ public class Damage{
Cons cons = e -> {
e.hitbox(hitrect);
- Rectangle other = hitrect;
+ Rect other = hitrect;
other.y -= expand;
other.x -= expand;
other.width += expand * 2;
@@ -259,7 +259,7 @@ public class Damage{
for(int dx = -trad; dx <= trad; dx++){
for(int dy = -trad; dy <= trad; dy++){
Tile tile = world.tile(Math.round(x / tilesize) + dx, Math.round(y / tilesize) + dy);
- if(tile != null && tile.entity != null && (team == null || state.teams.areEnemies(team, tile.getTeam())) && Mathf.dst(dx, dy) <= trad){
+ if(tile != null && tile.entity != null && (team == null ||team.isEnemy(tile.getTeam())) && Mathf.dst(dx, dy) <= trad){
tile.entity.damage(damage);
}
}
diff --git a/core/src/mindustry/entities/EntityCollisions.java b/core/src/mindustry/entities/EntityCollisions.java
index 6a7fefffd1..72e177d71e 100644
--- a/core/src/mindustry/entities/EntityCollisions.java
+++ b/core/src/mindustry/entities/EntityCollisions.java
@@ -17,11 +17,11 @@ public class EntityCollisions{
private static final float seg = 1f;
//tile collisions
- private Rectangle tmp = new Rectangle();
+ private Rect tmp = new Rect();
private Vec2 vector = new Vec2();
private Vec2 l1 = new Vec2();
- private Rectangle r1 = new Rectangle();
- private Rectangle r2 = new Rectangle();
+ private Rect r1 = new Rect();
+ private Rect r2 = new Rect();
//entity collisions
private Array arrOut = new Array<>();
@@ -57,7 +57,7 @@ public class EntityCollisions{
public void moveDelta(SolidTrait entity, float deltax, float deltay, boolean x){
- Rectangle rect = r1;
+ Rect rect = r1;
entity.hitboxTile(rect);
entity.hitboxTile(r2);
rect.x += deltax;
@@ -84,7 +84,7 @@ public class EntityCollisions{
entity.setY(entity.getY() + rect.y - r2.y);
}
- public boolean overlapsTile(Rectangle rect){
+ public boolean overlapsTile(Rect rect){
rect.getCenter(vector);
int r = 1;
diff --git a/core/src/mindustry/entities/EntityGroup.java b/core/src/mindustry/entities/EntityGroup.java
index d691949272..24c3f0e4f0 100644
--- a/core/src/mindustry/entities/EntityGroup.java
+++ b/core/src/mindustry/entities/EntityGroup.java
@@ -7,11 +7,13 @@ import arc.graphics.*;
import arc.math.geom.*;
import mindustry.entities.traits.*;
+import java.util.*;
+
import static mindustry.Vars.collisions;
/** Represents a group of a certain type of entity.*/
@SuppressWarnings("unchecked")
-public class EntityGroup{
+public class EntityGroup implements Iterable{
private final boolean useTree;
private final int id;
private final Class type;
@@ -19,13 +21,13 @@ public class EntityGroup{
private final Array entitiesToRemove = new Array<>(false, 32);
private final Array entitiesToAdd = new Array<>(false, 32);
private final Array intersectArray = new Array<>();
- private final Rectangle intersectRect = new Rectangle();
+ private final Rect intersectRect = new Rect();
private IntMap map;
private QuadTree tree;
private Cons removeListener;
private Cons addListener;
- private final Rectangle viewport = new Rectangle();
+ private final Rect viewport = new Rect();
private int count = 0;
public EntityGroup(int id, Class type, boolean useTree){
@@ -34,7 +36,7 @@ public class EntityGroup{
this.type = type;
if(useTree){
- tree = new QuadTree<>(new Rectangle(0, 0, 0, 0));
+ tree = new QuadTree<>(new Rect(0, 0, 0, 0));
}
}
@@ -180,7 +182,7 @@ public class EntityGroup{
/** Resizes the internal quadtree, if it is enabled.*/
public void resize(float x, float y, float w, float h){
if(useTree){
- tree = new QuadTree<>(new Rectangle(x, y, w, h));
+ tree = new QuadTree<>(new Rect(x, y, w, h));
}
}
@@ -253,8 +255,13 @@ public class EntityGroup{
return null;
}
- /** Returns the logic-only array for iteration. */
+ /** Returns the array for iteration. */
public Array all(){
return entityArray;
}
+
+ @Override
+ public Iterator iterator(){
+ return entityArray.iterator();
+ }
}
diff --git a/core/src/mindustry/entities/Units.java b/core/src/mindustry/entities/Units.java
index 94a0cfbd12..67fe01dc9e 100644
--- a/core/src/mindustry/entities/Units.java
+++ b/core/src/mindustry/entities/Units.java
@@ -1,21 +1,18 @@
package mindustry.entities;
-import arc.struct.EnumSet;
-import arc.func.Cons;
-import arc.func.Boolf;
-import arc.math.Mathf;
-import arc.math.geom.Geometry;
-import arc.math.geom.Rectangle;
-import mindustry.entities.traits.TargetTrait;
+import arc.func.*;
+import arc.math.*;
+import arc.math.geom.*;
+import mindustry.entities.traits.*;
import mindustry.entities.type.*;
-import mindustry.game.Team;
-import mindustry.world.Tile;
+import mindustry.game.*;
+import mindustry.world.*;
import static mindustry.Vars.*;
/** Utility class for unit and team interactions.*/
public class Units{
- private static Rectangle hitrect = new Rectangle();
+ private static Rect hitrect = new Rect();
private static Unit result;
private static float cdist;
private static boolean boolResult;
@@ -86,13 +83,7 @@ public class Units{
public static TileEntity findEnemyTile(Team team, float x, float y, float range, Boolf pred){
if(team == Team.derelict) return null;
- for(Team enemy : state.teams.enemiesOf(team)){
- TileEntity entity = indexer.findTile(enemy, x, y, range, pred, true);
- if(entity != null){
- return entity;
- }
- }
- return null;
+ return indexer.findEnemyTile(team, x, y, range, pred);
}
/** Returns the closest target enemy. First, units are checked, then tile entities. */
@@ -157,7 +148,11 @@ public class Units{
/** Iterates over all units in a rectangle. */
public static void nearby(Team team, float x, float y, float width, float height, Cons cons){
- unitGroups[team.ordinal()].intersect(x, y, width, height, cons);
+ unitGroup.intersect(x, y, width, height, u -> {
+ if(u.getTeam() == team){
+ cons.get(u);
+ }
+ });
playerGroup.intersect(x, y, width, height, player -> {
if(player.getTeam() == team){
cons.get(player);
@@ -167,8 +162,8 @@ public class Units{
/** Iterates over all units in a circle around this position. */
public static void nearby(Team team, float x, float y, float radius, Cons cons){
- unitGroups[team.ordinal()].intersect(x - radius, y - radius, radius*2f, radius*2f, unit -> {
- if(unit.withinDst(x, y, radius)){
+ unitGroup.intersect(x - radius, y - radius, radius*2f, radius*2f, unit -> {
+ if(unit.getTeam() == team && unit.withinDst(x, y, radius)){
cons.get(unit);
}
});
@@ -182,45 +177,43 @@ public class Units{
/** Iterates over all units in a rectangle. */
public static void nearby(float x, float y, float width, float height, Cons cons){
- for(Team team : Team.all){
- unitGroups[team.ordinal()].intersect(x, y, width, height, cons);
- }
-
+ unitGroup.intersect(x, y, width, height, cons);
playerGroup.intersect(x, y, width, height, cons);
}
/** Iterates over all units in a rectangle. */
- public static void nearby(Rectangle rect, Cons cons){
+ public static void nearby(Rect rect, Cons cons){
nearby(rect.x, rect.y, rect.width, rect.height, cons);
}
/** Iterates over all units that are enemies of this team. */
public static void nearbyEnemies(Team team, float x, float y, float width, float height, Cons cons){
- EnumSet targets = state.teams.enemiesOf(team);
-
- for(Team other : targets){
- unitGroups[other.ordinal()].intersect(x, y, width, height, cons);
- }
+ unitGroup.intersect(x, y, width, height, u -> {
+ if(team.isEnemy(u.getTeam())){
+ cons.get(u);
+ }
+ });
playerGroup.intersect(x, y, width, height, player -> {
- if(targets.contains(player.getTeam())){
+ if(team.isEnemy(player.getTeam())){
cons.get(player);
}
});
}
/** Iterates over all units that are enemies of this team. */
- public static void nearbyEnemies(Team team, Rectangle rect, Cons cons){
+ public static void nearbyEnemies(Team team, Rect rect, Cons cons){
nearbyEnemies(team, rect.x, rect.y, rect.width, rect.height, cons);
}
/** Iterates over all units. */
public static void all(Cons cons){
- for(Team team : Team.all){
- unitGroups[team.ordinal()].all().each(cons);
- }
-
+ unitGroup.all().each(cons);
playerGroup.all().each(cons);
}
+ public static void each(Team team, Cons cons){
+ unitGroup.all().each(t -> t.getTeam() == team, cons);
+ }
+
}
diff --git a/core/src/mindustry/entities/bullet/ArtilleryBulletType.java b/core/src/mindustry/entities/bullet/ArtilleryBulletType.java
index 3a098e8765..c59dedf99a 100644
--- a/core/src/mindustry/entities/bullet/ArtilleryBulletType.java
+++ b/core/src/mindustry/entities/bullet/ArtilleryBulletType.java
@@ -25,7 +25,7 @@ public class ArtilleryBulletType extends BasicBulletType{
}
@Override
- public void update(mindustry.entities.type.Bullet b){
+ public void update(Bullet b){
super.update(b);
if(b.timer.get(0, 3 + b.fslope() * 2f)){
diff --git a/core/src/mindustry/entities/bullet/FlakBulletType.java b/core/src/mindustry/entities/bullet/FlakBulletType.java
index b68e3af59a..ead19859cc 100644
--- a/core/src/mindustry/entities/bullet/FlakBulletType.java
+++ b/core/src/mindustry/entities/bullet/FlakBulletType.java
@@ -1,13 +1,13 @@
package mindustry.entities.bullet;
-import arc.math.geom.Rectangle;
+import arc.math.geom.Rect;
import arc.util.Time;
import mindustry.content.Fx;
import mindustry.entities.Units;
import mindustry.entities.type.Bullet;
public class FlakBulletType extends BasicBulletType{
- protected static Rectangle rect = new Rectangle();
+ protected static Rect rect = new Rect();
protected float explodeRange = 30f;
public FlakBulletType(float speed, float damage){
diff --git a/core/src/mindustry/entities/effect/ItemTransfer.java b/core/src/mindustry/entities/effect/ItemTransfer.java
index ea8366c812..2018d15a69 100644
--- a/core/src/mindustry/entities/effect/ItemTransfer.java
+++ b/core/src/mindustry/entities/effect/ItemTransfer.java
@@ -44,7 +44,7 @@ public class ItemTransfer extends TimedEntity implements DrawTrait{
create(item, x, y, to, () -> to.addItem(item));
}
- @Remote(called = Loc.server)
+ @Remote(called = Loc.server, unreliable = true)
public static void transferItemTo(Item item, int amount, float x, float y, Tile tile){
if(tile == null || tile.entity == null || tile.entity.items == null) return;
for(int i = 0; i < Mathf.clamp(amount / 3, 1, 8); i++){
diff --git a/core/src/mindustry/entities/effect/Lightning.java b/core/src/mindustry/entities/effect/Lightning.java
index 1e88c29df2..59b7f833fa 100644
--- a/core/src/mindustry/entities/effect/Lightning.java
+++ b/core/src/mindustry/entities/effect/Lightning.java
@@ -28,7 +28,7 @@ public class Lightning extends TimedEntity implements DrawTrait, TimeTrait{
public static final float lifetime = 10f;
private static final RandomXS128 random = new RandomXS128();
- private static final Rectangle rect = new Rectangle();
+ private static final Rect rect = new Rect();
private static final Array entities = new Array<>();
private static final IntSet hit = new IntSet();
private static final int maxChain = 8;
diff --git a/core/src/mindustry/entities/effect/Puddle.java b/core/src/mindustry/entities/effect/Puddle.java
index e2d5d2e10c..132c2d1379 100644
--- a/core/src/mindustry/entities/effect/Puddle.java
+++ b/core/src/mindustry/entities/effect/Puddle.java
@@ -27,8 +27,8 @@ public class Puddle extends SolidEntity implements SaveTrait, Poolable, DrawTrai
private static final float maxLiquid = 70f;
private static final int maxGeneration = 2;
private static final Color tmp = new Color();
- private static final Rectangle rect = new Rectangle();
- private static final Rectangle rect2 = new Rectangle();
+ private static final Rect rect = new Rect();
+ private static final Rect rect2 = new Rect();
private static int seeds;
private int loadedPosition = -1;
@@ -151,13 +151,13 @@ public class Puddle extends SolidEntity implements SaveTrait, Poolable, DrawTrai
}
@Override
- public void hitbox(Rectangle rectangle){
- rectangle.setCenter(x, y).setSize(tilesize);
+ public void hitbox(Rect rect){
+ rect.setCenter(x, y).setSize(tilesize);
}
@Override
- public void hitboxTile(Rectangle rectangle){
- rectangle.setCenter(x, y).setSize(0f);
+ public void hitboxTile(Rect rect){
+ rect.setCenter(x, y).setSize(0f);
}
@Override
diff --git a/core/src/mindustry/entities/traits/BuilderTrait.java b/core/src/mindustry/entities/traits/BuilderTrait.java
index 2f302be8e6..02ae0bca5b 100644
--- a/core/src/mindustry/entities/traits/BuilderTrait.java
+++ b/core/src/mindustry/entities/traits/BuilderTrait.java
@@ -343,7 +343,7 @@ public interface BuilderTrait extends Entity, TeamTrait{
return this;
}
- public Rectangle bounds(Rectangle rect){
+ public Rect bounds(Rect rect){
if(breaking){
return rect.set(-100f, -100f, 0f, 0f);
}else{
diff --git a/core/src/mindustry/entities/traits/MinerTrait.java b/core/src/mindustry/entities/traits/MinerTrait.java
index 4881d3720a..5b3d51c21d 100644
--- a/core/src/mindustry/entities/traits/MinerTrait.java
+++ b/core/src/mindustry/entities/traits/MinerTrait.java
@@ -7,6 +7,7 @@ import arc.math.*;
import arc.util.Time;
import mindustry.content.*;
import mindustry.entities.Effects;
+import mindustry.entities.effect.*;
import mindustry.entities.type.*;
import mindustry.gen.Call;
import mindustry.graphics.*;
@@ -38,11 +39,26 @@ public interface MinerTrait extends Entity{
/** Returns whether or not this builder can mine a specific item type. */
boolean canMine(Item item);
+ /** @return whether to offload mined items immediately at the core. if false, items are collected and dropped in a burst. */
+ default boolean offloadImmediately(){
+ return false;
+ }
+
default void updateMining(){
Unit unit = (Unit)this;
Tile tile = getMineTile();
TileEntity core = unit.getClosestCore();
+ if(core != null && tile != null && tile.drop() != null && !unit.acceptsItem(tile.drop()) && unit.dst(core) < mineTransferRange){
+ int accepted = core.tile.block().acceptStack(unit.item().item, unit.item().amount, core.tile, unit);
+ if(accepted > 0){
+ Call.transferItemTo(unit.item().item, accepted,
+ tile.worldx() + Mathf.range(tilesize / 2f),
+ tile.worldy() + Mathf.range(tilesize / 2f), core.tile);
+ unit.clearItem();
+ }
+ }
+
if(tile == null || core == null || tile.block() != Blocks.air || dst(tile.worldx(), tile.worldy()) > getMiningRange()
|| tile.drop() == null || !unit.acceptsItem(tile.drop()) || !canMine(tile.drop())){
setMineTile(null);
@@ -52,12 +68,13 @@ public interface MinerTrait extends Entity{
if(Mathf.chance(Time.delta() * (0.06 - item.hardness * 0.01) * getMinePower())){
- if(unit.dst(core) < mineTransferRange && core.tile.block().acceptStack(item, 1, core.tile, unit) == 1){
+ if(unit.dst(core) < mineTransferRange && core.tile.block().acceptStack(item, 1, core.tile, unit) == 1 && offloadImmediately()){
Call.transferItemTo(item, 1,
tile.worldx() + Mathf.range(tilesize / 2f),
tile.worldy() + Mathf.range(tilesize / 2f), core.tile);
}else if(unit.acceptsItem(item)){
- Call.transferItemToUnit(item,
+ //this is clientside, since items are synced anyway
+ ItemTransfer.transferItemToUnit(item,
tile.worldx() + Mathf.range(tilesize / 2f),
tile.worldy() + Mathf.range(tilesize / 2f),
unit);
diff --git a/core/src/mindustry/entities/traits/SolidTrait.java b/core/src/mindustry/entities/traits/SolidTrait.java
index f799f13cba..afa2efd6b0 100644
--- a/core/src/mindustry/entities/traits/SolidTrait.java
+++ b/core/src/mindustry/entities/traits/SolidTrait.java
@@ -7,9 +7,9 @@ import mindustry.Vars;
public interface SolidTrait extends QuadTreeObject, MoveTrait, VelocityTrait, Entity, Position{
- void hitbox(Rectangle rectangle);
+ void hitbox(Rect rect);
- void hitboxTile(Rectangle rectangle);
+ void hitboxTile(Rect rect);
Vec2 lastPosition();
diff --git a/core/src/mindustry/entities/type/BaseUnit.java b/core/src/mindustry/entities/type/BaseUnit.java
index 46e2f8f63b..6062662e9b 100644
--- a/core/src/mindustry/entities/type/BaseUnit.java
+++ b/core/src/mindustry/entities/type/BaseUnit.java
@@ -126,6 +126,11 @@ public abstract class BaseUnit extends Unit implements ShooterTrait{
this.team = team;
}
+ /** @return whether this unit counts toward the enemy amount in the wave UI. */
+ public boolean countsAsEnemy(){
+ return true;
+ }
+
public UnitType getType(){
return type;
}
@@ -180,23 +185,16 @@ public abstract class BaseUnit extends Unit implements ShooterTrait{
}
}
- public Tile getClosest(BlockFlag flag){
+ public @Nullable Tile getClosest(BlockFlag flag){
return Geometry.findClosest(x, y, indexer.getAllied(team, flag));
}
- public Tile getClosestSpawner(){
+ public @Nullable Tile getClosestSpawner(){
return Geometry.findClosest(x, y, Vars.spawner.getGroundSpawns());
}
- public TileEntity getClosestEnemyCore(){
- for(Team enemy : Vars.state.teams.enemiesOf(team)){
- Tile tile = Geometry.findClosest(x, y, Vars.state.teams.get(enemy).cores);
- if(tile != null){
- return tile.entity;
- }
- }
-
- return null;
+ public @Nullable TileEntity getClosestEnemyCore(){
+ return Vars.state.teams.closestEnemyCore(x, y, team);
}
public UnitState getStartState(){
@@ -354,18 +352,18 @@ public abstract class BaseUnit extends Unit implements ShooterTrait{
}
@Override
- public void hitbox(Rectangle rectangle){
- rectangle.setSize(type.hitsize).setCenter(x, y);
+ public void hitbox(Rect rect){
+ rect.setSize(type.hitsize).setCenter(x, y);
}
@Override
- public void hitboxTile(Rectangle rectangle){
- rectangle.setSize(type.hitsizeTile).setCenter(x, y);
+ public void hitboxTile(Rect rect){
+ rect.setSize(type.hitsizeTile).setCenter(x, y);
}
@Override
public EntityGroup targetGroup(){
- return unitGroups[team.ordinal()];
+ return unitGroup;
}
@Override
diff --git a/core/src/mindustry/entities/type/Bullet.java b/core/src/mindustry/entities/type/Bullet.java
index 6afafb5f29..f7e676ecc9 100644
--- a/core/src/mindustry/entities/type/Bullet.java
+++ b/core/src/mindustry/entities/type/Bullet.java
@@ -246,13 +246,13 @@ public class Bullet extends SolidEntity implements DamageTrait, ScaleTrait, Pool
}
@Override
- public void hitbox(Rectangle rectangle){
- rectangle.setSize(type.hitSize).setCenter(x, y);
+ public void hitbox(Rect rect){
+ rect.setSize(type.hitSize).setCenter(x, y);
}
@Override
- public void hitboxTile(Rectangle rectangle){
- rectangle.setSize(type.hitSize).setCenter(x, y);
+ public void hitboxTile(Rect rect){
+ rect.setSize(type.hitSize).setCenter(x, y);
}
@Override
diff --git a/core/src/mindustry/entities/type/Player.java b/core/src/mindustry/entities/type/Player.java
index a6a74683bb..6f28acb17c 100644
--- a/core/src/mindustry/entities/type/Player.java
+++ b/core/src/mindustry/entities/type/Player.java
@@ -41,7 +41,7 @@ public class Player extends Unit implements BuilderMinerTrait, ShooterTrait{
private static final int timerShootRight = 1;
private static final float liftoffBoost = 0.2f;
- private static final Rectangle rect = new Rectangle();
+ private static final Rect rect = new Rect();
//region instance variables
@@ -93,13 +93,13 @@ public class Player extends Unit implements BuilderMinerTrait, ShooterTrait{
}
@Override
- public void hitbox(Rectangle rectangle){
- rectangle.setSize(mech.hitsize).setCenter(x, y);
+ public void hitbox(Rect rect){
+ rect.setSize(mech.hitsize).setCenter(x, y);
}
@Override
- public void hitboxTile(Rectangle rectangle){
- rectangle.setSize(mech.hitsize * 2f / 3f).setCenter(x, y);
+ public void hitboxTile(Rect rect){
+ rect.setSize(mech.hitsize * 2f / 3f).setCenter(x, y);
}
@Override
@@ -119,6 +119,11 @@ public class Player extends Unit implements BuilderMinerTrait, ShooterTrait{
heal();
}
+ @Override
+ public boolean offloadImmediately(){
+ return true;
+ }
+
@Override
public TypeID getTypeID(){
return TypeIDs.player;
@@ -568,6 +573,7 @@ public class Player extends Unit implements BuilderMinerTrait, ShooterTrait{
protected void updateKeyboard(){
Tile tile = world.tileWorld(x, y);
+ boolean canMove = !Core.scene.hasKeyboard() || ui.minimapfrag.shown();
isBoosting = Core.input.keyDown(Binding.dash) && !mech.flying;
@@ -594,8 +600,8 @@ public class Player extends Unit implements BuilderMinerTrait, ShooterTrait{
}
if(Core.input.keyDown(Binding.mouse_move)){
- movement.x += Mathf.clamp((Core.input.mouseX() - Core.graphics.getWidth() / 2) * 0.005f, -1, 1) * speed;
- movement.y += Mathf.clamp((Core.input.mouseY() - Core.graphics.getHeight() / 2) * 0.005f, -1, 1) * speed;
+ movement.x += Mathf.clamp((Core.input.mouseX() - Core.graphics.getWidth() / 2f) * 0.005f, -1, 1) * speed;
+ movement.y += Mathf.clamp((Core.input.mouseY() - Core.graphics.getHeight() / 2f) * 0.005f, -1, 1) * speed;
}
Vec2 vec = Core.input.mouseWorld(control.input.getMouseX(), control.input.getMouseY());
@@ -605,7 +611,7 @@ public class Player extends Unit implements BuilderMinerTrait, ShooterTrait{
movement.limit(speed).scl(Time.delta());
- if(!Core.scene.hasKeyboard()){
+ if(canMove){
velocity.add(movement.x, movement.y);
}else{
isShooting = false;
@@ -614,7 +620,7 @@ public class Player extends Unit implements BuilderMinerTrait, ShooterTrait{
updateVelocityStatus();
moved = dst(prex, prey) > 0.001f;
- if(!Core.scene.hasKeyboard()){
+ if(canMove){
float baseLerp = mech.getRotationAlpha(this);
if(!isShooting() || !mech.turnCursor){
if(!movement.isZero()){
@@ -631,7 +637,7 @@ public class Player extends Unit implements BuilderMinerTrait, ShooterTrait{
if(!state.isEditor() && isShooting() && mech.canShoot(this)){
if(!mech.turnCursor){
//shoot forward ignoring cursor
- mech.weapon.update(this, x + Angles.trnsx(rotation, 1f), y + Angles.trnsy(rotation, 1f));
+ mech.weapon.update(this, x + Angles.trnsx(rotation, mech.weapon.targetDistance), y + Angles.trnsy(rotation, mech.weapon.targetDistance));
}else{
mech.weapon.update(this, pointerX, pointerY);
}
diff --git a/core/src/mindustry/entities/type/TileEntity.java b/core/src/mindustry/entities/type/TileEntity.java
index 85c6c9d2eb..cf5a2f4bdb 100644
--- a/core/src/mindustry/entities/type/TileEntity.java
+++ b/core/src/mindustry/entities/type/TileEntity.java
@@ -1,5 +1,6 @@
package mindustry.entities.type;
+import arc.math.*;
import mindustry.annotations.Annotations.*;
import arc.Events;
import arc.struct.Array;
@@ -124,7 +125,8 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{
@CallSuper
public void write(DataOutput stream) throws IOException{
stream.writeShort((short)health);
- stream.writeByte(Pack.byteByte(tile.getTeamID(), tile.rotation())); //team + rotation
+ stream.writeByte(Pack.byteByte((byte)8, tile.rotation())); //rotation + marker to indicate that team is moved (8 isn't valid)
+ stream.writeByte(tile.getTeamID());
if(items != null) items.write(stream);
if(power != null) power.write(stream);
if(liquids != null) liquids.write(stream);
@@ -134,11 +136,11 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{
@CallSuper
public void read(DataInput stream, byte revision) throws IOException{
health = stream.readUnsignedShort();
- byte tr = stream.readByte();
- byte team = Pack.leftByte(tr);
- byte rotation = Pack.rightByte(tr);
+ byte packedrot = stream.readByte();
+ byte team = Pack.leftByte(packedrot) == 8 ? stream.readByte() : Pack.leftByte(packedrot);
+ byte rotation = Pack.rightByte(packedrot);
- tile.setTeam(Team.all[team]);
+ tile.setTeam(Team.get(team));
tile.rotation(rotation);
if(items != null) items.read(stream);
@@ -164,9 +166,16 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{
Call.onTileDestroyed(tile);
}
+ @Override
public void damage(float damage){
if(dead) return;
+ if(Mathf.zero(state.rules.blockHealthMultiplier)){
+ damage = health + 1;
+ }else{
+ damage /= state.rules.blockHealthMultiplier;
+ }
+
float preHealth = health;
Call.onTileDamage(tile, health - block.handleDamage(tile, damage));
@@ -277,7 +286,7 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{
Events.fire(new BlockDestroyEvent(tile));
block.breakSound.at(tile);
block.onDestroyed(tile);
- world.removeBlock(tile);
+ tile.remove();
remove();
}
}
diff --git a/core/src/mindustry/entities/type/Unit.java b/core/src/mindustry/entities/type/Unit.java
index 1bec11c029..6a037d6f36 100644
--- a/core/src/mindustry/entities/type/Unit.java
+++ b/core/src/mindustry/entities/type/Unit.java
@@ -1,12 +1,12 @@
package mindustry.entities.type;
import arc.*;
-import arc.struct.*;
import arc.graphics.*;
import arc.graphics.g2d.*;
import arc.math.*;
import arc.math.geom.*;
import arc.scene.ui.layout.*;
+import arc.struct.*;
import arc.util.*;
import arc.util.ArcAnnotate.*;
import mindustry.content.*;
@@ -16,13 +16,11 @@ import mindustry.entities.traits.*;
import mindustry.entities.units.*;
import mindustry.game.EventType.*;
import mindustry.game.*;
-import mindustry.game.Teams.*;
import mindustry.gen.*;
import mindustry.graphics.*;
import mindustry.net.*;
import mindustry.type.*;
import mindustry.ui.*;
-import mindustry.ui.Cicon;
import mindustry.world.*;
import mindustry.world.blocks.*;
@@ -90,7 +88,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
if(isDead()) return false;
if(other instanceof DamageTrait){
- return other instanceof TeamTrait && state.teams.areEnemies((((TeamTrait)other).getTeam()), team);
+ return other instanceof TeamTrait && (((TeamTrait)other).getTeam()).isEnemy(team);
}else{
return other instanceof Unit && ((Unit)other).isFlying() == isFlying();
}
@@ -158,7 +156,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
this.item.amount = itemAmount;
this.item.item = content.item(itemID);
this.dead = dead;
- this.team = Team.all[team];
+ this.team = Team.get(team);
this.health = health;
this.x = x;
this.y = y;
@@ -169,7 +167,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
public void writeSave(DataOutput stream, boolean net) throws IOException{
if(item.item == null) item.item = Items.copper;
- stream.writeByte(team.ordinal());
+ stream.writeByte(team.id);
stream.writeBoolean(isDead());
stream.writeFloat(net ? interpolator.target.x : x);
stream.writeFloat(net ? interpolator.target.y : y);
@@ -217,13 +215,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
float fsize = getSize() / radScl;
moveVector.setZero();
float cx = x - fsize/2f, cy = y - fsize/2f;
-
- for(Team team : Team.all){
- if(team != getTeam() || !(this instanceof Player)){
- avoid(unitGroups[team.ordinal()].intersect(cx, cy, fsize, fsize));
- }
- }
-
+ avoid(unitGroup.intersect(cx, cy, fsize, fsize));
if(!(this instanceof Player)){
avoid(playerGroup.intersect(cx, cy, fsize, fsize));
}
@@ -234,7 +226,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
float radScl = 1.5f;
for(Unit en : arr){
- if(en.isFlying() != isFlying() || (en instanceof Player && en.getTeam() != getTeam())) continue;
+ if(en.isFlying() != isFlying() || (en instanceof Player && en.getTeam() != getTeam()) || (this instanceof Player && en.isFlying())) continue;
float dst = dst(en);
float scl = Mathf.clamp(1f - dst / (getSize()/(radScl*2f) + en.getSize()/(radScl*2f)));
moveVector.add(Tmp.v1.set((x - en.x) * scl, (y - en.y) * scl).limit(0.4f));
@@ -242,14 +234,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
}
public @Nullable TileEntity getClosestCore(){
- TeamData data = state.teams.get(team);
-
- Tile tile = Geometry.findClosest(x, y, data.cores);
- if(tile == null){
- return null;
- }else{
- return tile.entity;
- }
+ return state.teams.closestCore(x, y, team);
}
public Floor getFloorOn(){
@@ -275,7 +260,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
}
//apply knockback based on spawns
- if(getTeam() != waveTeam){
+ if(getTeam() != state.rules.waveTeam){
float relativeSize = state.rules.dropZoneRadius + getSize()/2f + 1f;
for(Tile spawn : spawner.getGroundSpawns()){
if(withinDst(spawn.worldx(), spawn.worldy(), relativeSize)){
diff --git a/core/src/mindustry/entities/type/base/BaseDrone.java b/core/src/mindustry/entities/type/base/BaseDrone.java
index a1b5b1c321..02a8fd9d32 100644
--- a/core/src/mindustry/entities/type/base/BaseDrone.java
+++ b/core/src/mindustry/entities/type/base/BaseDrone.java
@@ -32,6 +32,10 @@ public abstract class BaseDrone extends FlyingUnit{
}
};
+ public boolean countsAsEnemy(){
+ return false;
+ }
+
@Override
public void onCommand(UnitCommand command){
//do nothing, normal commands are not applicable here
diff --git a/core/src/mindustry/entities/type/base/BuilderDrone.java b/core/src/mindustry/entities/type/base/BuilderDrone.java
index f84bdecbca..336be7be6e 100644
--- a/core/src/mindustry/entities/type/base/BuilderDrone.java
+++ b/core/src/mindustry/entities/type/base/BuilderDrone.java
@@ -1,10 +1,9 @@
package mindustry.entities.type.base;
import arc.*;
-import arc.struct.*;
import arc.math.*;
+import arc.struct.*;
import arc.util.*;
-import mindustry.*;
import mindustry.entities.*;
import mindustry.entities.traits.*;
import mindustry.entities.type.*;
@@ -114,12 +113,10 @@ public class BuilderDrone extends BaseDrone implements BuilderTrait{
public BuilderDrone(){
if(reset.check()){
Events.on(BuildSelectEvent.class, event -> {
- EntityGroup group = unitGroups[event.team.ordinal()];
-
if(!(event.tile.entity instanceof BuildEntity)) return;
- for(BaseUnit unit : group.all()){
- if(unit instanceof BuilderDrone){
+ for(BaseUnit unit : unitGroup.all()){
+ if(unit instanceof BuilderDrone && unit.getTeam() == getTeam()){
BuilderDrone drone = (BuilderDrone)unit;
if(drone.isBuilding()){
//stop building if opposite building begins.
@@ -189,7 +186,7 @@ public class BuilderDrone extends BaseDrone implements BuilderTrait{
}
if(timer.get(timerTarget, 80) && Units.closestEnemy(getTeam(), x, y, 100f, u -> !(u instanceof BaseDrone)) == null && !isBuilding()){
- TeamData data = Vars.state.teams.get(team);
+ TeamData data = team.data();
if(!data.brokenBlocks.isEmpty()){
BrokenBlock block = data.brokenBlocks.removeLast();
if(Build.validPlace(getTeam(), block.x, block.y, content.block(block.block), block.rotation)){
diff --git a/core/src/mindustry/entities/type/base/GroundUnit.java b/core/src/mindustry/entities/type/base/GroundUnit.java
index 5f7c6d2768..56ba404a30 100644
--- a/core/src/mindustry/entities/type/base/GroundUnit.java
+++ b/core/src/mindustry/entities/type/base/GroundUnit.java
@@ -237,15 +237,15 @@ public class GroundUnit extends BaseUnit{
protected void moveAwayFromCore(){
Team enemy = null;
- for(Team team : Vars.state.teams.enemiesOf(team)){
- if(Vars.state.teams.isActive(team)){
+ for(Team team : team.enemies()){
+ if(team.active()){
enemy = team;
break;
}
}
if(enemy == null){
- for(Team team : Vars.state.teams.enemiesOf(team)){
+ for(Team team : team.enemies()){
enemy = team;
break;
}
diff --git a/core/src/mindustry/entities/units/UnitDrops.java b/core/src/mindustry/entities/units/UnitDrops.java
index b58171ee2f..f57ff0a75d 100644
--- a/core/src/mindustry/entities/units/UnitDrops.java
+++ b/core/src/mindustry/entities/units/UnitDrops.java
@@ -7,13 +7,14 @@ import mindustry.entities.type.BaseUnit;
import mindustry.entities.type.TileEntity;
import mindustry.gen.Call;
import mindustry.type.Item;
+import static mindustry.Vars.*;
public class UnitDrops{
private static Item[] dropTable;
public static void dropItems(BaseUnit unit){
//items only dropped in waves for enemy team
- if(unit.getTeam() != Vars.waveTeam || !Vars.state.rules.unitDrops){
+ if(unit.getTeam() != state.rules.waveTeam || !Vars.state.rules.unitDrops){
return;
}
diff --git a/core/src/mindustry/game/EventType.java b/core/src/mindustry/game/EventType.java
index cf26f06fec..5a9950b489 100644
--- a/core/src/mindustry/game/EventType.java
+++ b/core/src/mindustry/game/EventType.java
@@ -28,7 +28,9 @@ public class EventType{
exclusionDeath,
suicideBomb,
openWiki,
- teamCoreDamage
+ teamCoreDamage,
+ socketConfigChanged,
+ update
}
public static class WinEvent{}
@@ -62,10 +64,13 @@ public class EventType{
public static class PlayerChatEvent{
public final Player player;
public final String message;
+ /** The original, unfiltered message. */
+ public final String originalMessage;
- public PlayerChatEvent(Player player, String message){
+ public PlayerChatEvent(Player player, String message, String originalMessage){
this.player = player;
this.message = message;
+ this.originalMessage = originalMessage;
}
}
diff --git a/core/src/mindustry/game/Gamemode.java b/core/src/mindustry/game/Gamemode.java
index 3cb2605c24..3679ba0ad2 100644
--- a/core/src/mindustry/game/Gamemode.java
+++ b/core/src/mindustry/game/Gamemode.java
@@ -4,7 +4,7 @@ import arc.*;
import arc.func.*;
import mindustry.maps.*;
-import static mindustry.Vars.waveTeam;
+import static mindustry.Vars.*;
/** Defines preset rule sets. */
public enum Gamemode{
@@ -22,7 +22,7 @@ public enum Gamemode{
attack(rules -> {
rules.unitDrops = true;
rules.attackMode = true;
- }, map -> map.teams.contains(waveTeam.ordinal())),
+ }, map -> map.teams.contains((int)state.rules.waveTeam.id)),
pvp(rules -> {
rules.pvp = true;
rules.enemyCoreBuildRadius = 600f;
diff --git a/core/src/mindustry/game/MusicControl.java b/core/src/mindustry/game/MusicControl.java
index f258b6a520..26a44876ac 100644
--- a/core/src/mindustry/game/MusicControl.java
+++ b/core/src/mindustry/game/MusicControl.java
@@ -83,7 +83,7 @@ public class MusicControl{
/** Whether to play dark music.*/
private boolean isDark(){
- if(!state.teams.get(player.getTeam()).cores.isEmpty() && state.teams.get(player.getTeam()).cores.first().entity.healthf() < 0.85f){
+ if(state.teams.get(player.getTeam()).hasCore() && state.teams.get(player.getTeam()).core().healthf() < 0.85f){
//core damaged -> dark
return true;
}
@@ -94,7 +94,7 @@ public class MusicControl{
}
//dark based on enemies
- return Mathf.chance(state.enemies() / 70f + 0.1f);
+ return Mathf.chance(state.enemies / 70f + 0.1f);
}
/** Plays and fades in a music track. This must be called every frame.
diff --git a/core/src/mindustry/game/Rules.java b/core/src/mindustry/game/Rules.java
index 8b40abd1ae..0515d2ca60 100644
--- a/core/src/mindustry/game/Rules.java
+++ b/core/src/mindustry/game/Rules.java
@@ -34,6 +34,8 @@ public class Rules{
public float unitHealthMultiplier = 1f;
/** How much health players start with. */
public float playerHealthMultiplier = 1f;
+ /** How much health blocks start with. */
+ public float blockHealthMultiplier = 1f;
/** How much damage player mechs deal. */
public float playerDamageMultiplier = 1f;
/** How much damage any other units deal. */
@@ -70,6 +72,8 @@ public class Rules{
public boolean editor = false;
/** Whether the tutorial is enabled. False by default. */
public boolean tutorial = false;
+ /** Whether a gameover can happen at all. Set this to false to implement custom gameover conditions. */
+ public boolean canGameOver = true;
/** Starting items put in cores */
public Array loadout = Array.with(ItemStack.with(Items.copper, 100));
/** Blocks that cannot be placed. */
@@ -78,6 +82,12 @@ public class Rules{
public boolean lighting = false;
/** Ambient light color, used when lighting is enabled. */
public Color ambientLight = new Color(0.01f, 0.01f, 0.04f, 0.99f);
+ /** team of the player by default */
+ public Team defaultTeam = Team.sharded;
+ /** team of the enemy in waves/sectors */
+ public Team waveTeam = Team.crux;
+ /** special tags for additional info */
+ public StringMap tags = new StringMap();
/** Copies this ruleset exactly. Not very efficient at all, do not use often. */
public Rules copy(){
diff --git a/core/src/mindustry/game/Schematics.java b/core/src/mindustry/game/Schematics.java
index b9c56744a3..7a96ed672b 100644
--- a/core/src/mindustry/game/Schematics.java
+++ b/core/src/mindustry/game/Schematics.java
@@ -142,6 +142,7 @@ public class Schematics implements Loadable{
ui.showException(e);
}
}
+ all.sort();
}
public void savePreview(Schematic schematic, Fi file){
@@ -249,12 +250,13 @@ public class Schematics implements Loadable{
public void placeLoadout(Schematic schem, int x, int y){
Stile coreTile = schem.tiles.find(s -> s.block instanceof CoreBlock);
+ if(coreTile == null) throw new IllegalArgumentException("Schematic has no core tile. Exiting.");
int ox = x - coreTile.x, oy = y - coreTile.y;
schem.tiles.each(st -> {
Tile tile = world.tile(st.x + ox, st.y + oy);
if(tile == null) return;
- world.setBlock(tile, st.block, defaultTeam);
+ tile.set(st.block, state.rules.defaultTeam);
tile.rotation(st.rotation);
if(st.block.posConfig){
tile.configureAny(Pos.get(tile.x - st.x + Pos.x(st.config), tile.y - st.y + Pos.y(st.config)));
@@ -279,6 +281,7 @@ public class Schematics implements Loadable{
ui.showException(e);
Log.err(e);
}
+ all.sort();
}
public void remove(Schematic s){
@@ -291,6 +294,7 @@ public class Schematics implements Loadable{
previews.get(s).dispose();
previews.remove(s);
}
+ all.sort();
}
/** Creates a schematic from a world selection. */
@@ -339,7 +343,8 @@ public class Schematics implements Loadable{
for(int cy = oy; cy <= oy2; cy++){
Tile tile = world.ltile(cx, cy);
- if(tile != null && tile.entity != null && !counted.contains(tile.pos()) && !(tile.block() instanceof BuildBlock) && tile.entity.block.isVisible()){
+ if(tile != null && tile.entity != null && !counted.contains(tile.pos()) && !(tile.block() instanceof BuildBlock)
+ && (tile.entity.block.isVisible() || (tile.entity.block instanceof CoreBlock && Core.settings.getBool("coreselect")))){
int config = tile.entity.config();
if(tile.block().posConfig){
config = Pos.get(Pos.x(config) + offsetX, Pos.y(config) + offsetY);
@@ -368,8 +373,12 @@ public class Schematics implements Loadable{
//region IO methods
/** Loads a schematic from base64. May throw an exception. */
- public static Schematic readBase64(String schematic) throws IOException{
- return read(new ByteArrayInputStream(Base64Coder.decode(schematic)));
+ public static Schematic readBase64(String schematic){
+ try{
+ return read(new ByteArrayInputStream(Base64Coder.decode(schematic)));
+ }catch(IOException e){
+ throw new RuntimeException(e);
+ }
}
public static Schematic read(Fi file) throws IOException{
diff --git a/core/src/mindustry/game/Team.java b/core/src/mindustry/game/Team.java
index 8e6d66ae1b..e6c05eb6e0 100644
--- a/core/src/mindustry/game/Team.java
+++ b/core/src/mindustry/game/Team.java
@@ -1,27 +1,102 @@
package mindustry.game;
-import arc.Core;
-import arc.graphics.Color;
+import arc.*;
+import arc.graphics.*;
+import arc.math.*;
+import arc.struct.*;
+import arc.util.*;
+import mindustry.game.Teams.*;
import mindustry.graphics.*;
+import mindustry.world.blocks.storage.CoreBlock.*;
-public enum Team{
- derelict(Color.valueOf("4d4e58")),
- sharded(Pal.accent),
- crux(Color.valueOf("e82d2d")),
- green(Color.valueOf("4dd98b")),
- purple(Color.valueOf("9a4bdf")),
- blue(Color.royal.cpy());
+import static mindustry.Vars.*;
- public final static Team[] all = values();
+public class Team implements Comparable{
+ public final byte id;
public final Color color;
- public final int intColor;
+ public String name;
- Team(Color color){
+ /** All 256 registered teams. */
+ private static final Team[] all = new Team[256];
+ /** The 6 base teams used in the editor. */
+ private static final Team[] baseTeams = new Team[6];
+
+ public final static Team
+ derelict = new Team(0, "derelict", Color.valueOf("4d4e58")),
+ sharded = new Team(1, "sharded", Pal.accent.cpy()),
+ crux = new Team(2, "crux", Color.valueOf("e82d2d")),
+ green = new Team(3, "green", Color.valueOf("4dd98b")),
+ purple = new Team(4, "purple", Color.valueOf("9a4bdf")),
+ blue = new Team(5, "blue", Color.royal.cpy());
+
+ static{
+ Mathf.random.setSeed(8);
+ //create the whole 256 placeholder teams
+ for(int i = 6; i < all.length; i++){
+ new Team(i, "team#" + i, Color.HSVtoRGB(360f * Mathf.random(), 100f * Mathf.random(0.6f, 1f), 100f * Mathf.random(0.8f, 1f), 1f));
+ }
+ Mathf.random.setSeed(new RandomXS128().nextLong());
+ }
+
+ public static Team get(int id){
+ return all[Pack.u((byte)id)];
+ }
+
+ /** @return the 6 base team colors. */
+ public static Team[] base(){
+ return baseTeams;
+ }
+
+ /** @return all the teams - do not use this for lookup! */
+ public static Team[] all(){
+ return all;
+ }
+
+ protected Team(int id, String name, Color color){
+ this.name = name;
this.color = color;
- intColor = Color.rgba8888(color);
+ this.id = (byte)id;
+
+ int us = Pack.u(this.id);
+ if(us < 6) baseTeams[us] = this;
+ all[us] = this;
+ }
+
+ public Array enemies(){
+ return state.teams.enemiesOf(this);
+ }
+
+ public TeamData data(){
+ return state.teams.get(this);
+ }
+
+ public CoreEntity core(){
+ return data().core();
+ }
+
+ public boolean active(){
+ return state.teams.isActive(this);
+ }
+
+ public boolean isEnemy(Team other){
+ return state.teams.areEnemies(this, other);
+ }
+
+ public Array cores(){
+ return state.teams.cores(this);
}
public String localized(){
- return Core.bundle.get("team." + name() + ".name");
+ return Core.bundle.get("team." + name + ".name", name);
+ }
+
+ @Override
+ public int compareTo(Team team){
+ return Integer.compare(id, team.id);
+ }
+
+ @Override
+ public String toString(){
+ return name;
}
}
diff --git a/core/src/mindustry/game/Teams.java b/core/src/mindustry/game/Teams.java
index 2b03bbfaee..e4fa1f1ef3 100644
--- a/core/src/mindustry/game/Teams.java
+++ b/core/src/mindustry/game/Teams.java
@@ -1,61 +1,168 @@
package mindustry.game;
+import arc.func.*;
+import arc.math.geom.*;
import arc.struct.*;
-import mindustry.*;
-import mindustry.world.*;
+import arc.util.ArcAnnotate.*;
+import arc.util.*;
+import mindustry.entities.type.*;
+import mindustry.world.blocks.storage.CoreBlock.*;
+
+import static mindustry.Vars.*;
/** Class for various team-based utilities. */
public class Teams{
- private TeamData[] map = new TeamData[Team.all.length];
+ /** Maps team IDs to team data. */
+ private TeamData[] map = new TeamData[256];
+ /** Active teams. */
+ private Array active = new Array<>();
- /**
- * Register a team.
- * @param team The team type enum.
- * @param enemies The array of enemies of this team. Any team not in this array is considered neutral.
- */
- public void add(Team team, Team... enemies){
- map[team.ordinal()] = new TeamData(team, EnumSet.of(enemies));
+ public @Nullable CoreEntity closestEnemyCore(float x, float y, Team team){
+ for(TeamData data : active){
+ if(areEnemies(team, data.team)){
+ CoreEntity tile = Geometry.findClosest(x, y, data.cores);
+ if(tile != null){
+ return tile;
+ }
+ }
+ }
+ return null;
+ }
+
+ public @Nullable CoreEntity closestCore(float x, float y, Team team){
+ return Geometry.findClosest(x, y, get(team).cores);
+ }
+
+ public Array enemiesOf(Team team){
+ return get(team).enemies;
+ }
+
+ public boolean eachEnemyCore(Team team, Boolf ret){
+ for(TeamData data : active){
+ if(areEnemies(team, data.team)){
+ for(CoreEntity tile : data.cores){
+ if(ret.get(tile)){
+ return true;
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ public void eachEnemyCore(Team team, Cons ret){
+ for(TeamData data : active){
+ if(areEnemies(team, data.team)){
+ for(TileEntity tile : data.cores){
+ ret.get(tile);
+ }
+ }
+ }
}
/** Returns team data by type. */
public TeamData get(Team team){
- if(map[team.ordinal()] == null){
- add(team, Array.with(Team.all).select(t -> t != team).toArray(Team.class));
+ if(map[Pack.u(team.id)] == null){
+ map[Pack.u(team.id)] = new TeamData(team);
}
- return map[team.ordinal()];
+ return map[Pack.u(team.id)];
+ }
+
+ public Array playerCores(){
+ return get(state.rules.defaultTeam).cores;
+ }
+
+ /** Do not modify! */
+ public Array cores(Team team){
+ return get(team).cores;
}
/** Returns whether a team is active, e.g. whether it has any cores remaining. */
public boolean isActive(Team team){
//the enemy wave team is always active
- return team == Vars.waveTeam || get(team).cores.size > 0;
- }
-
- /** Returns a set of all teams that are enemies of this team. */
- public EnumSet enemiesOf(Team team){
- return get(team).enemies;
+ return get(team).active();
}
/** Returns whether {@param other} is an enemy of {@param #team}. */
public boolean areEnemies(Team team, Team other){
- return enemiesOf(team).contains(other);
+ //todo what about derelict?
+ return team != other;
}
- /** Allocates a new array with the active teams.
- * Never call in the main game loop.*/
+ public boolean canInteract(Team team, Team other){
+ return team == other || other == Team.derelict;
+ }
+
+ /** Do not modify. */
public Array getActive(){
- return Array.select(map, t -> t != null);
+ return active;
}
- public static class TeamData{
- public final ObjectSet cores = new ObjectSet<>();
- public final EnumSet enemies;
+ public void registerCore(CoreEntity core){
+ TeamData data = get(core.getTeam());
+ //add core if not present
+ if(!data.cores.contains(core)){
+ data.cores.add(core);
+ }
+
+ //register in active list if needed
+ if(data.active() && !active.contains(data)){
+ active.add(data);
+ updateEnemies();
+ indexer.updateTeamIndex(data.team);
+ }
+ }
+
+ public void unregisterCore(CoreEntity entity){
+ TeamData data = get(entity.getTeam());
+ //remove core
+ data.cores.remove(entity);
+ //unregister in active list
+ if(!data.active()){
+ active.remove(data);
+ updateEnemies();
+ }
+ }
+
+ private void updateEnemies(){
+ if(!active.contains(get(state.rules.waveTeam))){
+ active.add(get(state.rules.waveTeam));
+ }
+
+ for(TeamData data : active){
+ data.enemies.clear();
+ for(TeamData other : active){
+ if(areEnemies(data.team, other.team)){
+ data.enemies.add(other.team);
+ }
+ }
+ }
+ }
+
+ public class TeamData{
+ public final Array cores = new Array<>();
+ public final Array enemies = new Array<>();
public final Team team;
public Queue brokenBlocks = new Queue<>();
- public TeamData(Team team, EnumSet enemies){
+ public TeamData(Team team){
this.team = team;
- this.enemies = enemies;
+ }
+
+ public boolean active(){
+ return (team == state.rules.waveTeam && state.rules.waves) || cores.size > 0;
+ }
+
+ public boolean hasCore(){
+ return cores.size > 0;
+ }
+
+ public boolean noCores(){
+ return cores.isEmpty();
+ }
+
+ public CoreEntity core(){
+ return cores.first();
}
}
diff --git a/core/src/mindustry/game/Tutorial.java b/core/src/mindustry/game/Tutorial.java
index 924e68f63c..4b344bc945 100644
--- a/core/src/mindustry/game/Tutorial.java
+++ b/core/src/mindustry/game/Tutorial.java
@@ -10,6 +10,7 @@ import arc.scene.ui.*;
import arc.scene.ui.layout.*;
import arc.util.*;
import mindustry.content.*;
+import mindustry.entities.type.*;
import mindustry.game.EventType.*;
import mindustry.graphics.*;
import mindustry.type.*;
@@ -161,11 +162,11 @@ public class Tutorial{
},
withdraw(() -> event("withdraw")){
void begin(){
- state.teams.get(defaultTeam).cores.first().entity.items.add(Items.copper, 10);
+ state.teams.playerCores().first().items.add(Items.copper, 10);
}
},
deposit(() -> event("deposit")),
- waves(() -> state.wave > 2 && state.enemies() <= 0 && !spawner.isSpawning()){
+ waves(() -> state.wave > 2 && state.enemies <= 0 && !spawner.isSpawning()){
void begin(){
state.rules.waveTimer = true;
logic.runWave();
@@ -239,18 +240,18 @@ public class Tutorial{
//utility
static void placeBlocks(){
- Tile core = state.teams.get(defaultTeam).cores.first();
+ TileEntity core = state.teams.playerCores().first();
for(int i = 0; i < blocksToBreak; i++){
- world.removeBlock(world.ltile(core.x + blockOffset, core.y + i));
- world.tile(core.x + blockOffset, core.y + i).setBlock(Blocks.scrapWall, defaultTeam);
+ world.ltile(core.tile.x + blockOffset, core.tile.y + i).remove();
+ world.tile(core.tile.x + blockOffset, core.tile.y + i).setBlock(Blocks.scrapWall, state.rules.defaultTeam);
}
}
static boolean blocksBroken(){
- Tile core = state.teams.get(defaultTeam).cores.first();
+ TileEntity core = state.teams.playerCores().first();
for(int i = 0; i < blocksToBreak; i++){
- if(world.tile(core.x + blockOffset, core.y + i).block() == Blocks.scrapWall){
+ if(world.tile(core.tile.x + blockOffset, core.tile.y + i).block() == Blocks.scrapWall){
return false;
}
}
@@ -270,7 +271,7 @@ public class Tutorial{
}
static int item(Item item){
- return state.teams.get(defaultTeam).cores.isEmpty() ? 0 : state.teams.get(defaultTeam).cores.first().entity.items.get(item);
+ return state.rules.defaultTeam.data().noCores() ? 0 : state.rules.defaultTeam.core().items.get(item);
}
static boolean toggled(String name){
diff --git a/core/src/mindustry/graphics/MinimapRenderer.java b/core/src/mindustry/graphics/MinimapRenderer.java
index ffeadc98da..c34bb246ec 100644
--- a/core/src/mindustry/graphics/MinimapRenderer.java
+++ b/core/src/mindustry/graphics/MinimapRenderer.java
@@ -9,6 +9,7 @@ import arc.math.*;
import arc.math.geom.*;
import arc.scene.ui.layout.*;
import arc.util.*;
+import arc.util.ArcAnnotate.*;
import arc.util.pooling.*;
import mindustry.entities.*;
import mindustry.entities.type.*;
@@ -25,7 +26,7 @@ public class MinimapRenderer implements Disposable{
private Pixmap pixmap;
private Texture texture;
private TextureRegion region;
- private Rectangle rect = new Rectangle();
+ private Rect rect = new Rect();
private float zoom = 4;
public MinimapRenderer(){
@@ -42,7 +43,7 @@ public class MinimapRenderer implements Disposable{
return pixmap;
}
- public Texture getTexture(){
+ public @Nullable Texture getTexture(){
return texture;
}
@@ -70,8 +71,13 @@ public class MinimapRenderer implements Disposable{
region = new TextureRegion(texture);
}
- public void drawEntities(float x, float y, float w, float h, boolean withLabels){
- updateUnitArray();
+ public void drawEntities(float x, float y, float w, float h, float scaling, boolean withLabels){
+ if(!withLabels){
+ updateUnitArray();
+ }else{
+ units.clear();
+ Units.all(units::add);
+ }
float sz = baseSize * zoom;
float dx = (Core.camera.position.x / tilesize);
@@ -82,8 +88,14 @@ public class MinimapRenderer implements Disposable{
rect.set((dx - sz) * tilesize, (dy - sz) * tilesize, sz * 2 * tilesize, sz * 2 * tilesize);
for(Unit unit : units){
- float rx = (unit.x - rect.x) / rect.width * w;
- float ry = (unit.y - rect.y) / rect.width * h;
+ if(unit.isDead()) continue;
+ float rx = !withLabels ? (unit.x - rect.x) / rect.width * w : unit.x / (world.width() * tilesize) * w;
+ float ry = !withLabels ? (unit.y - rect.y) / rect.width * h : unit.y / (world.height() * tilesize) * h;
+
+ Draw.mixcol(unit.getTeam().color, 1f);
+ float scale = Scl.scl(1f) / 2f * scaling * 32f;
+ Draw.rect(unit.getIconRegion(), x + rx, y + ry, scale, scale, unit.rotation - 90);
+ Draw.reset();
if(withLabels && unit instanceof Player){
Player pl = (Player) unit;
@@ -92,19 +104,16 @@ public class MinimapRenderer implements Disposable{
drawLabel(x + rx, y + ry, pl.name, unit.getTeam().color);
}
}
-
- Draw.color(unit.getTeam().color);
- Fill.rect(x + rx, y + ry, Scl.scl(baseSize / 2f), Scl.scl(baseSize / 2f));
}
- Draw.color();
+ Draw.reset();
}
public void drawEntities(float x, float y, float w, float h){
- drawEntities(x, y, w, h, true);
+ drawEntities(x, y, w, h, 1f, true);
}
- public TextureRegion getRegion(){
+ public @Nullable TextureRegion getRegion(){
if(texture == null) return null;
float sz = Mathf.clamp(baseSize * zoom, baseSize, Math.min(world.width(), world.height()));
diff --git a/core/src/mindustry/graphics/OverlayRenderer.java b/core/src/mindustry/graphics/OverlayRenderer.java
index 3001159c74..da8a808962 100644
--- a/core/src/mindustry/graphics/OverlayRenderer.java
+++ b/core/src/mindustry/graphics/OverlayRenderer.java
@@ -10,20 +10,19 @@ import mindustry.*;
import mindustry.content.*;
import mindustry.entities.*;
import mindustry.entities.type.*;
-import mindustry.game.*;
import mindustry.input.*;
-import mindustry.type.Category;
-import mindustry.ui.Cicon;
+import mindustry.type.*;
+import mindustry.ui.*;
import mindustry.world.*;
-import mindustry.world.blocks.units.MechPad;
-import mindustry.world.meta.BlockFlag;
+import mindustry.world.blocks.units.*;
+import mindustry.world.meta.*;
import static mindustry.Vars.*;
public class OverlayRenderer{
private static final float indicatorLength = 14f;
private static final float spawnerMargin = tilesize*11f;
- private static final Rectangle rect = new Rectangle();
+ private static final Rect rect = new Rect();
private float buildFadeTime;
public void drawBottom(){
@@ -95,17 +94,15 @@ public class OverlayRenderer{
Lines.stroke(buildFadeTime * 2f);
if(buildFadeTime > 0.005f){
- for(Team enemy : state.teams.enemiesOf(player.getTeam())){
- for(Tile core : state.teams.get(enemy).cores){
- float dst = Mathf.dst(player.x, player.y, core.drawx(), core.drawy());
- if(dst < state.rules.enemyCoreBuildRadius * 1.5f){
- Draw.color(Color.darkGray);
- Lines.circle(core.drawx(), core.drawy() - 2, state.rules.enemyCoreBuildRadius);
- Draw.color(Pal.accent, enemy.color, 0.5f + Mathf.absin(Time.time(), 10f, 0.5f));
- Lines.circle(core.drawx(), core.drawy(), state.rules.enemyCoreBuildRadius);
- }
+ state.teams.eachEnemyCore(player.getTeam(), core -> {
+ float dst = core.dst(player);
+ if(dst < state.rules.enemyCoreBuildRadius * 2.2f){
+ Draw.color(Color.darkGray);
+ Lines.circle(core.x, core.y - 2, state.rules.enemyCoreBuildRadius);
+ Draw.color(Pal.accent, core.getTeam().color, 0.5f + Mathf.absin(Time.time(), 10f, 0.5f));
+ Lines.circle(core.x, core.y, state.rules.enemyCoreBuildRadius);
}
- }
+ });
}
Lines.stroke(2f);
diff --git a/core/src/mindustry/input/DesktopInput.java b/core/src/mindustry/input/DesktopInput.java
index b156c3f7f4..8838dee9c9 100644
--- a/core/src/mindustry/input/DesktopInput.java
+++ b/core/src/mindustry/input/DesktopInput.java
@@ -10,6 +10,7 @@ import arc.scene.event.*;
import arc.scene.ui.*;
import arc.scene.ui.layout.*;
import arc.util.ArcAnnotate.*;
+import arc.util.*;
import mindustry.*;
import mindustry.core.GameState.*;
import mindustry.entities.traits.BuilderTrait.*;
@@ -135,22 +136,29 @@ public class DesktopInput extends InputHandler{
ui.listfrag.toggle();
}
+ if(((player.getClosestCore() == null && player.isDead()) || state.isPaused()) && !ui.chatfrag.shown()){
+ //move camera around
+ float camSpeed = !Core.input.keyDown(Binding.dash) ? 3f : 8f;
+ Core.camera.position.add(Tmp.v1.setZero().add(Core.input.axis(Binding.move_x), Core.input.axis(Binding.move_y)).nor().scl(Time.delta() * camSpeed));
+
+ if(Core.input.keyDown(Binding.mouse_move)){
+ Core.camera.position.x += Mathf.clamp((Core.input.mouseX() - Core.graphics.getWidth() / 2f) * 0.005f, -1, 1) * camSpeed;
+ Core.camera.position.y += Mathf.clamp((Core.input.mouseY() - Core.graphics.getHeight() / 2f) * 0.005f, -1, 1) * camSpeed;
+ }
+ }
+
if(Core.input.keyRelease(Binding.select)){
player.isShooting = false;
}
- if(!state.is(State.menu) && Core.input.keyTap(Binding.minimap) && (scene.getKeyboardFocus() == ui.minimap || !scene.hasDialog()) && !Core.scene.hasKeyboard() && !(scene.getKeyboardFocus() instanceof TextField)){
- if(!ui.minimap.isShown()){
- ui.minimap.show();
- }else{
- ui.minimap.hide();
- }
+ if(!state.is(State.menu) && Core.input.keyTap(Binding.minimap) && !scene.hasDialog() && !(scene.getKeyboardFocus() instanceof TextField)){
+ ui.minimapfrag.toggle();
}
if(state.is(State.menu) || Core.scene.hasDialog()) return;
//zoom camera
- if(!Core.scene.hasScroll() && !ui.chatfrag.shown() && Math.abs(Core.input.axisTap(Binding.zoom)) > 0 && !Core.input.keyDown(Binding.rotateplaced) && (Core.input.keyDown(Binding.diagonal_placement) || ((!isPlacing() || !block.rotate) && selectRequests.isEmpty()))){
+ if((!Core.scene.hasScroll() || Core.input.keyDown(Binding.diagonal_placement)) && !ui.chatfrag.shown() && Math.abs(Core.input.axisTap(Binding.zoom)) > 0 && !Core.input.keyDown(Binding.rotateplaced) && (Core.input.keyDown(Binding.diagonal_placement) || ((!isPlacing() || !block.rotate) && selectRequests.isEmpty()))){
renderer.scaleCamera(Core.input.axisTap(Binding.zoom));
}
@@ -300,7 +308,7 @@ public class DesktopInput extends InputHandler{
}
}
- if(Core.input.keyTap(Binding.clear_building)){
+ if(Core.input.keyTap(Binding.clear_building) || isPlacing()){
lastSchematic = null;
selectRequests.clear();
}
@@ -397,7 +405,7 @@ public class DesktopInput extends InputHandler{
}
if(mode == placing && block != null){
- if(!overrideLineRotation && !Core.input.keyDown(Binding.diagonal_placement) && (selectX != cursorX || selectY != cursorY) && ((int) Core.input.axisTap(Binding.rotate) != 0)){
+ if(!overrideLineRotation && !Core.input.keyDown(Binding.diagonal_placement) && (selectX != cursorX || selectY != cursorY) && ((int)Core.input.axisTap(Binding.rotate) != 0)){
rotation = ((int)((Angles.angle(selectX, selectY, cursorX, cursorY) + 45) / 90f)) % 4;
overrideLineRotation = true;
}
diff --git a/core/src/mindustry/input/InputHandler.java b/core/src/mindustry/input/InputHandler.java
index 2a4ce0343f..e56244928e 100644
--- a/core/src/mindustry/input/InputHandler.java
+++ b/core/src/mindustry/input/InputHandler.java
@@ -44,7 +44,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
/** Maximum line length. */
final static int maxLength = 100;
final static Vec2 stackTrns = new Vec2();
- final static Rectangle r1 = new Rectangle(), r2 = new Rectangle();
+ final static Rect r1 = new Rect(), r2 = new Rect();
/** Distance on the back from where items originate. */
final static float backTrns = 3f;
@@ -92,7 +92,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
@Remote(targets = Loc.both, forward = true, called = Loc.server)
public static void transferInventory(Player player, Tile tile){
- if(player == null || player.timer == null || !player.timer.get(Player.timerTransfer, 40)) return;
+ if(player == null || player.timer == null) return;
if(net.server() && (player.item().amount <= 0 || player.isTransferring|| !Units.canInteract(player, tile))){
throw new ValidateException(player, "Player cannot transfer an item.");
}
@@ -402,7 +402,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
}
}
- for(BrokenBlock req : state.teams.get(player.getTeam()).brokenBlocks){
+ for(BrokenBlock req : player.getTeam().data().brokenBlocks){
Block block = content.block(req.block);
if(block.bounds(req.x, req.y, Tmp.r2).overlaps(Tmp.r1)){
drawSelected(req.x, req.y, content.block(req.block), Pal.remove);
@@ -725,7 +725,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
}
public void tryDropItems(Tile tile, float x, float y){
- if(!droppingItem || player.item().amount <= 0 || canTapPlayer(x, y) || state.isPaused() || !player.timer.check(Player.timerTransfer, 40)){
+ if(!droppingItem || player.item().amount <= 0 || canTapPlayer(x, y) || state.isPaused() ){
droppingItem = false;
return;
}
diff --git a/core/src/mindustry/input/MobileInput.java b/core/src/mindustry/input/MobileInput.java
index 5379caf113..3b8e881085 100644
--- a/core/src/mindustry/input/MobileInput.java
+++ b/core/src/mindustry/input/MobileInput.java
@@ -77,7 +77,7 @@ public class MobileInput extends InputHandler implements GestureListener{
}else{
Tile tile = world.ltileWorld(x, y);
- if(tile != null && tile.synthetic() && state.teams.areEnemies(player.getTeam(), tile.getTeam())){
+ if(tile != null && tile.synthetic() && player.getTeam().isEnemy(tile.getTeam())){
TileEntity entity = tile.entity;
player.setMineTile(null);
player.target = entity;
@@ -439,10 +439,12 @@ public class MobileInput extends InputHandler implements GestureListener{
@Override
public boolean touchDown(int screenX, int screenY, int pointer, KeyCode button){
- if(state.is(State.menu) || player.isDead()) return false;
+ if(state.is(State.menu)) return false;
down = true;
+ if(player.isDead()) return false;
+
//get tile on cursor
Tile cursor = tileAt(screenX, screenY);
diff --git a/core/src/mindustry/io/JsonIO.java b/core/src/mindustry/io/JsonIO.java
index 7c570bace8..ef37dd9d65 100644
--- a/core/src/mindustry/io/JsonIO.java
+++ b/core/src/mindustry/io/JsonIO.java
@@ -20,7 +20,7 @@ public class JsonIO{
@Override
public void writeValue(Object value, Class knownType, Class elementType){
- if(value instanceof mindustry.ctype.MappableContent){
+ if(value instanceof MappableContent){
try{
getWriter().value(((MappableContent)value).name);
}catch(IOException e){
@@ -95,6 +95,18 @@ public class JsonIO{
}
});
+ json.setSerializer(Team.class, new Serializer(){
+ @Override
+ public void write(Json json, Team object, Class knownType){
+ json.writeValue(object.id);
+ }
+
+ @Override
+ public Team read(Json json, JsonValue jsonData, Class type){
+ return Team.get(jsonData.asInt());
+ }
+ });
+
json.setSerializer(Block.class, new Serializer(){
@Override
public void write(Json json, Block object, Class knownType){
diff --git a/core/src/mindustry/io/LegacyMapIO.java b/core/src/mindustry/io/LegacyMapIO.java
deleted file mode 100644
index ef6ce95e7d..0000000000
--- a/core/src/mindustry/io/LegacyMapIO.java
+++ /dev/null
@@ -1,194 +0,0 @@
-package mindustry.io;
-
-import arc.struct.*;
-import arc.files.*;
-import arc.graphics.*;
-import arc.util.*;
-import arc.util.serialization.*;
-import mindustry.content.*;
-import mindustry.ctype.ContentType;
-import mindustry.game.*;
-import mindustry.io.MapIO.*;
-import mindustry.maps.*;
-import mindustry.world.*;
-import mindustry.world.LegacyColorMapper.*;
-import mindustry.world.blocks.*;
-
-import java.io.*;
-import java.util.zip.*;
-
-import static mindustry.Vars.*;
-
-/** Map IO for the "old" .mmap format.
- * Differentiate between legacy maps and new maps by checking the extension (or the header).*/
-public class LegacyMapIO{
- private static final ObjectMap fallback = ObjectMap.of("alpha-dart-mech-pad", "dart-mech-pad");
- private static final Json json = new Json();
-
- public static Map readMap(Fi file, boolean custom) throws IOException{
- try(DataInputStream stream = new DataInputStream(file.read(1024))){
- StringMap tags = new StringMap();
-
- //meta is uncompressed
- int version = stream.readInt();
- if(version != 1){
- throw new IOException("Outdated legacy map format");
- }
- int build = stream.readInt();
- short width = stream.readShort(), height = stream.readShort();
- byte tagAmount = stream.readByte();
-
- for(int i = 0; i < tagAmount; i++){
- String name = stream.readUTF();
- String value = stream.readUTF();
- tags.put(name, value);
- }
-
- return new Map(file, width, height, tags, custom, version, build);
- }
- }
-
- public static void readTiles(Map map, Tile[][] tiles) throws IOException{
- readTiles(map, (x, y) -> tiles[x][y]);
- }
-
- public static void readTiles(Map map, TileProvider tiles) throws IOException{
- readTiles(map.file, map.width, map.height, tiles);
- }
-
- private static void readTiles(Fi file, int width, int height, Tile[][] tiles) throws IOException{
- readTiles(file, width, height, (x, y) -> tiles[x][y]);
- }
-
- private static void readTiles(Fi file, int width, int height, TileProvider tiles) throws IOException{
- try(BufferedInputStream input = file.read(bufferSize)){
-
- //read map
- {
- DataInputStream stream = new DataInputStream(input);
-
- stream.readInt(); //version
- stream.readInt(); //build
- stream.readInt(); //width + height
- byte tagAmount = stream.readByte();
-
- for(int i = 0; i < tagAmount; i++){
- stream.readUTF(); //key
- stream.readUTF(); //val
- }
- }
-
- try(DataInputStream stream = new DataInputStream(new InflaterInputStream(input))){
-
- try{
- byte mapped = stream.readByte();
- IntMap idmap = new IntMap<>();
- IntMap namemap = new IntMap<>();
-
- for(int i = 0; i < mapped; i++){
- byte type = stream.readByte();
- short total = stream.readShort();
-
- for(int j = 0; j < total; j++){
- String name = stream.readUTF();
- if(type == 1){
- Block res = content.getByName(ContentType.block, fallback.get(name, name));
- idmap.put(j, res == null ? Blocks.air : res);
- namemap.put(j, fallback.get(name, name));
- }
- }
- }
-
- //read floor and create tiles first
- for(int i = 0; i < width * height; i++){
- int x = i % width, y = i / width;
- int floorid = stream.readUnsignedByte();
- int oreid = stream.readUnsignedByte();
- int consecutives = stream.readUnsignedByte();
-
- Tile tile = tiles.get(x, y);
- tile.setFloor((Floor)idmap.get(floorid));
- tile.setOverlay(idmap.get(oreid));
-
- for(int j = i + 1; j < i + 1 + consecutives; j++){
- int newx = j % width, newy = j / width;
- Tile newTile = tiles.get(newx, newy);
- newTile.setFloor((Floor)idmap.get(floorid));
- newTile.setOverlay(idmap.get(oreid));
- }
-
- i += consecutives;
- }
-
- //read blocks
- for(int i = 0; i < width * height; i++){
- int x = i % width, y = i / width;
- int id = stream.readUnsignedByte();
- Block block = idmap.get(id);
- if(block == null) block = Blocks.air;
-
- Tile tile = tiles.get(x, y);
- //the spawn block is saved in the block tile layer in older maps, shift it to the overlay
- if(block != Blocks.spawn){
- tile.setBlock(block);
- }else{
- tile.setOverlay(block);
- }
-
- if(namemap.get(id, "").equals("part")){
- stream.readByte(); //link
- }else if(tile.entity != null){
- byte tr = stream.readByte();
- stream.readShort(); //read health (which is actually irrelevant)
-
- byte team = Pack.leftByte(tr);
- byte rotation = Pack.rightByte(tr);
-
- tile.setTeam(Team.all[team]);
- tile.entity.health = tile.block().health;
- tile.rotation(rotation);
-
- if(tile.block() == Blocks.liquidSource || tile.block() == Blocks.unloader || tile.block() == Blocks.sorter){
- stream.readByte(); //these blocks have an extra config byte, read it
- }
- }else{ //no entity/part, read consecutives
- int consecutives = stream.readUnsignedByte();
-
- for(int j = i + 1; j < i + 1 + consecutives; j++){
- int newx = j % width, newy = j / width;
- tiles.get(newx, newy).setBlock(block);
- }
-
- i += consecutives;
- }
- }
-
- }finally{
- content.setTemporaryMapper(null);
- }
- }
- }
- }
-
- /** Reads a pixmap in the 3.5 pixmap format. */
- public static void readPixmap(Pixmap pixmap, Tiles tiles){
- for(int x = 0; x < pixmap.getWidth(); x++){
- for(int y = 0; y < pixmap.getHeight(); y++){
- int color = pixmap.getPixel(x, pixmap.getHeight() - 1 - y);
- LegacyBlock block = LegacyColorMapper.get(color);
- Tile tile = tiles.getn(x, y);
-
- tile.setFloor(block.floor);
- tile.setBlock(block.wall);
- if(block.ore != null) tile.setOverlay(block.ore);
-
- //place core
- if(color == Color.rgba8888(Color.green)){
- //actual core parts
- tile.setBlock(Blocks.coreShard);
- tile.setTeam(Team.sharded);
- }
- }
- }
- }
-}
diff --git a/core/src/mindustry/io/MapIO.java b/core/src/mindustry/io/MapIO.java
index 1650977fbb..0ffe03d777 100644
--- a/core/src/mindustry/io/MapIO.java
+++ b/core/src/mindustry/io/MapIO.java
@@ -10,6 +10,7 @@ import mindustry.core.*;
import mindustry.game.*;
import mindustry.maps.*;
import mindustry.world.*;
+import mindustry.world.LegacyColorMapper.*;
import mindustry.world.blocks.storage.*;
import java.io.*;
@@ -91,7 +92,7 @@ public class MapIO{
public void setTeam(Team team){
super.setTeam(team);
if(block instanceof CoreBlock){
- map.teams.add(team.ordinal());
+ map.teams.add(team.id);
}
}
};
@@ -145,11 +146,33 @@ public class MapIO{
public static int colorFor(Block floor, Block wall, Block ore, Team team){
if(wall.synthetic()){
- return team.intColor;
+ return team.color.rgba();
}
return Color.rgba8888(wall.solid ? wall.color : ore == Blocks.air ? floor.color : ore.color);
}
+ /** Reads a pixmap in the 3.5 pixmap format. */
+ public static void readPixmap(Pixmap pixmap, Tiles tiles){
+ for(int x = 0; x < pixmap.getWidth(); x++){
+ for(int y = 0; y < pixmap.getHeight(); y++){
+ int color = pixmap.getPixel(x, pixmap.getHeight() - 1 - y);
+ LegacyBlock block = LegacyColorMapper.get(color);
+ Tile tile = tiles.getn(x, y);
+
+ tile.setFloor(block.floor);
+ tile.setBlock(block.wall);
+ if(block.ore != null) tile.setOverlay(block.ore);
+
+ //place core
+ if(color == Color.rgba8888(Color.green)){
+ //actual core parts
+ tile.setBlock(Blocks.coreShard);
+ tile.setTeam(Team.sharded);
+ }
+ }
+ }
+ }
+
interface TileProvider{
Tile get(int x, int y);
}
diff --git a/core/src/mindustry/io/SaveVersion.java b/core/src/mindustry/io/SaveVersion.java
index ba9a991e05..06c75bc878 100644
--- a/core/src/mindustry/io/SaveVersion.java
+++ b/core/src/mindustry/io/SaveVersion.java
@@ -217,7 +217,7 @@ public abstract class SaveVersion extends SaveFileReader{
Array data = state.teams.getActive();
stream.writeInt(data.size);
for(TeamData team : data){
- stream.writeInt(team.team.ordinal());
+ stream.writeInt((int)team.team.id);
stream.writeInt(team.brokenBlocks.size);
for(BrokenBlock block : team.brokenBlocks){
stream.writeShort(block.x);
@@ -258,8 +258,8 @@ public abstract class SaveVersion extends SaveFileReader{
public void readEntities(DataInput stream) throws IOException{
int teamc = stream.readInt();
for(int i = 0; i < teamc; i++){
- Team team = Team.all[stream.readInt()];
- TeamData data = state.teams.get(team);
+ Team team = Team.get(stream.readInt());
+ TeamData data = team.data();
int blocks = stream.readInt();
for(int j = 0; j < blocks; j++){
data.brokenBlocks.addLast(new BrokenBlock(stream.readShort(), stream.readShort(), stream.readShort(), content.block(stream.readShort()).id, stream.readInt()));
diff --git a/core/src/mindustry/io/TypeIO.java b/core/src/mindustry/io/TypeIO.java
index 4e9c4b5024..5095ce396a 100644
--- a/core/src/mindustry/io/TypeIO.java
+++ b/core/src/mindustry/io/TypeIO.java
@@ -87,7 +87,7 @@ public class TypeIO{
@WriteClass(BaseUnit.class)
public static void writeBaseUnit(ByteBuffer buffer, BaseUnit unit){
- buffer.put((byte)unit.getTeam().ordinal());
+ buffer.put((byte) (int)unit.getTeam().id);
buffer.putInt(unit.getID());
}
@@ -95,7 +95,7 @@ public class TypeIO{
public static BaseUnit readBaseUnit(ByteBuffer buffer){
byte tid = buffer.get();
int id = buffer.getInt();
- return unitGroups[tid].getByID(id);
+ return unitGroup.getByID(id);
}
@WriteClass(Tile.class)
@@ -194,12 +194,12 @@ public class TypeIO{
@WriteClass(Team.class)
public static void writeTeam(ByteBuffer buffer, Team reason){
- buffer.put((byte)reason.ordinal());
+ buffer.put((byte) (int)reason.id);
}
@ReadClass(Team.class)
public static Team readTeam(ByteBuffer buffer){
- return Team.all[buffer.get()];
+ return Team.get(buffer.get());
}
@WriteClass(UnitCommand.class)
diff --git a/core/src/mindustry/maps/filters/CoreSpawnFilter.java b/core/src/mindustry/maps/filters/CoreSpawnFilter.java
index 3901288f92..8386c5cfa9 100644
--- a/core/src/mindustry/maps/filters/CoreSpawnFilter.java
+++ b/core/src/mindustry/maps/filters/CoreSpawnFilter.java
@@ -23,7 +23,7 @@ public class CoreSpawnFilter extends GenerateFilter{
public void apply(Tiles tiles, GenerateInput in){
IntArray spawns = new IntArray();
for(Tile tile : tiles){
- if(tile.getTeam() == defaultTeam && tile.block() instanceof CoreBlock){
+ if(tile.getTeam() == state.rules.defaultTeam && tile.block() instanceof CoreBlock){
spawns.add(tile.pos());
}
}
@@ -32,8 +32,7 @@ public class CoreSpawnFilter extends GenerateFilter{
int used = Math.min(spawns.size, amount);
for(int i = used; i < spawns.size; i++){
- Tile tile = tiles.getp(spawns.get(i));
- world.removeBlock(tile);
+ tiles.getp(spawns.get(i)).remove();
}
}
diff --git a/core/src/mindustry/maps/generators/MapGenerator.java b/core/src/mindustry/maps/generators/MapGenerator.java
index 36730b8b3c..db54ba7c34 100644
--- a/core/src/mindustry/maps/generators/MapGenerator.java
+++ b/core/src/mindustry/maps/generators/MapGenerator.java
@@ -68,7 +68,7 @@ public class MapGenerator extends Generator{
});
}
- if(tile.block() instanceof CoreBlock && tile.getTeam() == defaultTeam){
+ if(tile.block() instanceof CoreBlock && tile.getTeam() == state.rules.defaultTeam){
schematics.placeLoadout(loadout, tile.x, tile.y);
anyCores = true;
}
diff --git a/core/src/mindustry/mod/ClassAccess.java b/core/src/mindustry/mod/ClassAccess.java
index 62f089a107..7046227686 100644
--- a/core/src/mindustry/mod/ClassAccess.java
+++ b/core/src/mindustry/mod/ClassAccess.java
@@ -3,5 +3,5 @@ package mindustry.mod;
import arc.struct.*;
//obviously autogenerated, do not touch
public class ClassAccess{
- public static final ObjectSet allowedClassNames = ObjectSet.with("arc.Core", "arc.func.Boolc", "arc.func.Boolf", "arc.func.Boolf2", "arc.func.Boolp", "arc.func.Cons", "arc.func.Cons2", "arc.func.Floatc", "arc.func.Floatc2", "arc.func.Floatc4", "arc.func.Floatf", "arc.func.Floatp", "arc.func.Func", "arc.func.Func2", "arc.func.Func3", "arc.func.Intc", "arc.func.Intc2", "arc.func.Intc4", "arc.func.Intf", "arc.func.Intp", "arc.func.Prov", "arc.graphics.Color", "arc.graphics.Pixmap", "arc.graphics.Texture", "arc.graphics.TextureData", "arc.graphics.g2d.Draw", "arc.graphics.g2d.Fill", "arc.graphics.g2d.Lines", "arc.graphics.g2d.TextureAtlas", "arc.graphics.g2d.TextureAtlas$AtlasRegion", "arc.graphics.g2d.TextureRegion", "arc.math.Angles", "arc.math.Mathf", "arc.scene.Action", "arc.scene.Element", "arc.scene.Group", "arc.scene.Scene", "arc.scene.actions.Actions", "arc.scene.actions.AddAction", "arc.scene.actions.AddListenerAction", "arc.scene.actions.AfterAction", "arc.scene.actions.AlphaAction", "arc.scene.actions.ColorAction", "arc.scene.actions.DelayAction", "arc.scene.actions.DelegateAction", "arc.scene.actions.FloatAction", "arc.scene.actions.IntAction", "arc.scene.actions.LayoutAction", "arc.scene.actions.MoveByAction", "arc.scene.actions.MoveToAction", "arc.scene.actions.OriginAction", "arc.scene.actions.ParallelAction", "arc.scene.actions.RelativeTemporalAction", "arc.scene.actions.RemoveAction", "arc.scene.actions.RemoveActorAction", "arc.scene.actions.RemoveListenerAction", "arc.scene.actions.RepeatAction", "arc.scene.actions.RotateByAction", "arc.scene.actions.RotateToAction", "arc.scene.actions.RunnableAction", "arc.scene.actions.ScaleByAction", "arc.scene.actions.ScaleToAction", "arc.scene.actions.SequenceAction", "arc.scene.actions.SizeByAction", "arc.scene.actions.SizeToAction", "arc.scene.actions.TemporalAction", "arc.scene.actions.TimeScaleAction", "arc.scene.actions.TouchableAction", "arc.scene.actions.TranslateByAction", "arc.scene.actions.VisibleAction", "arc.scene.event.ChangeListener", "arc.scene.event.ChangeListener$ChangeEvent", "arc.scene.event.ClickListener", "arc.scene.event.DragListener", "arc.scene.event.DragScrollListener", "arc.scene.event.ElementGestureListener", "arc.scene.event.EventListener", "arc.scene.event.FocusListener", "arc.scene.event.FocusListener$FocusEvent", "arc.scene.event.FocusListener$FocusEvent$Type", "arc.scene.event.HandCursorListener", "arc.scene.event.IbeamCursorListener", "arc.scene.event.InputEvent", "arc.scene.event.InputEvent$Type", "arc.scene.event.InputListener", "arc.scene.event.SceneEvent", "arc.scene.event.Touchable", "arc.scene.event.VisibilityEvent", "arc.scene.event.VisibilityListener", "arc.scene.style.BaseDrawable", "arc.scene.style.Drawable", "arc.scene.style.NinePatchDrawable", "arc.scene.style.ScaledNinePatchDrawable", "arc.scene.style.Style", "arc.scene.style.TextureRegionDrawable", "arc.scene.style.TiledDrawable", "arc.scene.style.TransformDrawable", "arc.scene.ui.Button", "arc.scene.ui.Button$ButtonStyle", "arc.scene.ui.ButtonGroup", "arc.scene.ui.CheckBox", "arc.scene.ui.CheckBox$CheckBoxStyle", "arc.scene.ui.ColorImage", "arc.scene.ui.Dialog", "arc.scene.ui.Dialog$DialogStyle", "arc.scene.ui.Image", "arc.scene.ui.ImageButton", "arc.scene.ui.ImageButton$ImageButtonStyle", "arc.scene.ui.KeybindDialog", "arc.scene.ui.KeybindDialog$KeybindDialogStyle", "arc.scene.ui.Label", "arc.scene.ui.Label$LabelStyle", "arc.scene.ui.ProgressBar", "arc.scene.ui.ProgressBar$ProgressBarStyle", "arc.scene.ui.ScrollPane", "arc.scene.ui.ScrollPane$ScrollPaneStyle", "arc.scene.ui.SettingsDialog", "arc.scene.ui.SettingsDialog$SettingsTable", "arc.scene.ui.SettingsDialog$SettingsTable$CheckSetting", "arc.scene.ui.SettingsDialog$SettingsTable$Setting", "arc.scene.ui.SettingsDialog$SettingsTable$SliderSetting", "arc.scene.ui.SettingsDialog$StringProcessor", "arc.scene.ui.Slider", "arc.scene.ui.Slider$SliderStyle", "arc.scene.ui.TextArea", "arc.scene.ui.TextArea$TextAreaListener", "arc.scene.ui.TextButton", "arc.scene.ui.TextButton$TextButtonStyle", "arc.scene.ui.TextField", "arc.scene.ui.TextField$DefaultOnscreenKeyboard", "arc.scene.ui.TextField$OnscreenKeyboard", "arc.scene.ui.TextField$TextFieldClickListener", "arc.scene.ui.TextField$TextFieldFilter", "arc.scene.ui.TextField$TextFieldListener", "arc.scene.ui.TextField$TextFieldStyle", "arc.scene.ui.TextField$TextFieldValidator", "arc.scene.ui.Tooltip", "arc.scene.ui.Tooltip$Tooltips", "arc.scene.ui.Touchpad", "arc.scene.ui.Touchpad$TouchpadStyle", "arc.scene.ui.TreeElement", "arc.scene.ui.TreeElement$Node", "arc.scene.ui.TreeElement$TreeStyle", "arc.scene.ui.layout.Cell", "arc.scene.ui.layout.Collapser", "arc.scene.ui.layout.HorizontalGroup", "arc.scene.ui.layout.Scl", "arc.scene.ui.layout.Stack", "arc.scene.ui.layout.Table", "arc.scene.ui.layout.Table$DrawRect", "arc.scene.ui.layout.VerticalGroup", "arc.scene.ui.layout.WidgetGroup", "arc.scene.utils.ArraySelection", "arc.scene.utils.Cullable", "arc.scene.utils.Disableable", "arc.scene.utils.DragAndDrop", "arc.scene.utils.DragAndDrop$Payload", "arc.scene.utils.DragAndDrop$Source", "arc.scene.utils.DragAndDrop$Target", "arc.scene.utils.Elements", "arc.scene.utils.Layout", "arc.scene.utils.Selection", "arc.struct.Array", "arc.struct.Array$ArrayIterable", "arc.struct.ArrayMap", "arc.struct.ArrayMap$Entries", "arc.struct.ArrayMap$Keys", "arc.struct.ArrayMap$Values", "arc.struct.AtomicQueue", "arc.struct.BinaryHeap", "arc.struct.BinaryHeap$Node", "arc.struct.Bits", "arc.struct.BooleanArray", "arc.struct.ByteArray", "arc.struct.CharArray", "arc.struct.ComparableTimSort", "arc.struct.DelayedRemovalArray", "arc.struct.EnumSet", "arc.struct.EnumSet$EnumSetIterator", "arc.struct.FloatArray", "arc.struct.GridBits", "arc.struct.GridMap", "arc.struct.IdentityMap", "arc.struct.IdentityMap$Entries", "arc.struct.IdentityMap$Entry", "arc.struct.IdentityMap$Keys", "arc.struct.IdentityMap$Values", "arc.struct.IntArray", "arc.struct.IntFloatMap", "arc.struct.IntFloatMap$Entries", "arc.struct.IntFloatMap$Entry", "arc.struct.IntFloatMap$Keys", "arc.struct.IntFloatMap$Values", "arc.struct.IntIntMap", "arc.struct.IntIntMap$Entries", "arc.struct.IntIntMap$Entry", "arc.struct.IntIntMap$Keys", "arc.struct.IntIntMap$Values", "arc.struct.IntMap", "arc.struct.IntMap$Entries", "arc.struct.IntMap$Entry", "arc.struct.IntMap$Keys", "arc.struct.IntMap$Values", "arc.struct.IntQueue", "arc.struct.IntSet", "arc.struct.IntSet$IntSetIterator", "arc.struct.LongArray", "arc.struct.LongMap", "arc.struct.LongMap$Entries", "arc.struct.LongMap$Entry", "arc.struct.LongMap$Keys", "arc.struct.LongMap$Values", "arc.struct.LongQueue", "arc.struct.ObjectFloatMap", "arc.struct.ObjectFloatMap$Entries", "arc.struct.ObjectFloatMap$Entry", "arc.struct.ObjectFloatMap$Keys", "arc.struct.ObjectFloatMap$Values", "arc.struct.ObjectIntMap", "arc.struct.ObjectIntMap$Entries", "arc.struct.ObjectIntMap$Entry", "arc.struct.ObjectIntMap$Keys", "arc.struct.ObjectIntMap$Values", "arc.struct.ObjectMap", "arc.struct.ObjectMap$Entries", "arc.struct.ObjectMap$Entry", "arc.struct.ObjectMap$Keys", "arc.struct.ObjectMap$Values", "arc.struct.ObjectSet", "arc.struct.ObjectSet$ObjectSetIterator", "arc.struct.OrderedMap", "arc.struct.OrderedMap$OrderedMapEntries", "arc.struct.OrderedMap$OrderedMapKeys", "arc.struct.OrderedMap$OrderedMapValues", "arc.struct.OrderedSet", "arc.struct.OrderedSet$OrderedSetIterator", "arc.struct.PooledLinkedList", "arc.struct.PooledLinkedList$Item", "arc.struct.Queue", "arc.struct.Queue$QueueIterable", "arc.struct.ShortArray", "arc.struct.SnapshotArray", "arc.struct.Sort", "arc.struct.SortedIntList", "arc.struct.SortedIntList$Iterator", "arc.struct.SortedIntList$Node", "arc.struct.StringMap", "arc.struct.TimSort", "arc.util.I18NBundle", "arc.util.Time", "java.io.PrintStream", "java.lang.Object", "java.lang.Runnable", "java.lang.String", "java.lang.System", "mindustry.Vars", "mindustry.ai.BlockIndexer", "mindustry.ai.Pathfinder", "mindustry.ai.Pathfinder$PathData", "mindustry.ai.Pathfinder$PathTarget", "mindustry.ai.Pathfinder$PathTileStruct", "mindustry.ai.WaveSpawner", "mindustry.content.Blocks", "mindustry.content.Bullets", "mindustry.content.Fx", "mindustry.content.Items", "mindustry.content.Liquids", "mindustry.content.Loadouts", "mindustry.content.Mechs", "mindustry.content.StatusEffects", "mindustry.content.TechTree", "mindustry.content.TechTree$TechNode", "mindustry.content.TypeIDs", "mindustry.content.UnitTypes", "mindustry.content.Zones", "mindustry.core.ContentLoader", "mindustry.core.Control", "mindustry.core.FileTree", "mindustry.core.GameState", "mindustry.core.GameState$State", "mindustry.core.Logic", "mindustry.core.Platform", "mindustry.core.Renderer", "mindustry.core.UI", "mindustry.core.Version", "mindustry.core.World", "mindustry.core.World$Raycaster", "mindustry.ctype.Content", "mindustry.ctype.Content$ModContentInfo", "mindustry.ctype.ContentList", "mindustry.ctype.ContentType", "mindustry.ctype.MappableContent", "mindustry.ctype.UnlockableContent", "mindustry.editor.DrawOperation", "mindustry.editor.DrawOperation$OpType", "mindustry.editor.DrawOperation$TileOpStruct", "mindustry.editor.EditorTile", "mindustry.editor.EditorTool", "mindustry.editor.MapEditor", "mindustry.editor.MapEditor$Context", "mindustry.editor.MapEditorDialog", "mindustry.editor.MapGenerateDialog", "mindustry.editor.MapInfoDialog", "mindustry.editor.MapLoadDialog", "mindustry.editor.MapRenderer", "mindustry.editor.MapResizeDialog", "mindustry.editor.MapSaveDialog", "mindustry.editor.MapView", "mindustry.editor.OperationStack", "mindustry.editor.WaveInfoDialog", "mindustry.entities.Damage", "mindustry.entities.Damage$PropCellStruct", "mindustry.entities.Effects", "mindustry.entities.Effects$Effect", "mindustry.entities.Effects$EffectContainer", "mindustry.entities.Effects$EffectProvider", "mindustry.entities.Effects$EffectRenderer", "mindustry.entities.Effects$ScreenshakeProvider", "mindustry.entities.Entities", "mindustry.entities.EntityCollisions", "mindustry.entities.EntityGroup", "mindustry.entities.Predict", "mindustry.entities.TargetPriority", "mindustry.entities.Units", "mindustry.entities.bullet.ArtilleryBulletType", "mindustry.entities.bullet.BasicBulletType", "mindustry.entities.bullet.BombBulletType", "mindustry.entities.bullet.BulletType", "mindustry.entities.bullet.FlakBulletType", "mindustry.entities.bullet.HealBulletType", "mindustry.entities.bullet.LiquidBulletType", "mindustry.entities.bullet.MassDriverBolt", "mindustry.entities.bullet.MissileBulletType", "mindustry.entities.effect.Decal", "mindustry.entities.effect.Fire", "mindustry.entities.effect.GroundEffectEntity", "mindustry.entities.effect.GroundEffectEntity$GroundEffect", "mindustry.entities.effect.ItemTransfer", "mindustry.entities.effect.Lightning", "mindustry.entities.effect.Puddle", "mindustry.entities.effect.RubbleDecal", "mindustry.entities.effect.ScorchDecal", "mindustry.entities.traits.AbsorbTrait", "mindustry.entities.traits.BelowLiquidTrait", "mindustry.entities.traits.BuilderMinerTrait", "mindustry.entities.traits.BuilderTrait", "mindustry.entities.traits.BuilderTrait$BuildDataStatic", "mindustry.entities.traits.BuilderTrait$BuildRequest", "mindustry.entities.traits.DamageTrait", "mindustry.entities.traits.DrawTrait", "mindustry.entities.traits.Entity", "mindustry.entities.traits.HealthTrait", "mindustry.entities.traits.KillerTrait", "mindustry.entities.traits.MinerTrait", "mindustry.entities.traits.MoveTrait", "mindustry.entities.traits.SaveTrait", "mindustry.entities.traits.Saveable", "mindustry.entities.traits.ScaleTrait", "mindustry.entities.traits.ShooterTrait", "mindustry.entities.traits.SolidTrait", "mindustry.entities.traits.SpawnerTrait", "mindustry.entities.traits.SyncTrait", "mindustry.entities.traits.TargetTrait", "mindustry.entities.traits.TeamTrait", "mindustry.entities.traits.TimeTrait", "mindustry.entities.traits.TypeTrait", "mindustry.entities.traits.VelocityTrait", "mindustry.entities.type.BaseEntity", "mindustry.entities.type.BaseUnit", "mindustry.entities.type.Bullet", "mindustry.entities.type.DestructibleEntity", "mindustry.entities.type.EffectEntity", "mindustry.entities.type.Player", "mindustry.entities.type.SolidEntity", "mindustry.entities.type.TileEntity", "mindustry.entities.type.TimedEntity", "mindustry.entities.type.Unit", "mindustry.entities.type.base.BaseDrone", "mindustry.entities.type.base.BuilderDrone", "mindustry.entities.type.base.FlyingUnit", "mindustry.entities.type.base.GroundUnit", "mindustry.entities.type.base.HoverUnit", "mindustry.entities.type.base.MinerDrone", "mindustry.entities.type.base.RepairDrone", "mindustry.entities.units.StateMachine", "mindustry.entities.units.Statuses", "mindustry.entities.units.Statuses$StatusEntry", "mindustry.entities.units.UnitCommand", "mindustry.entities.units.UnitDrops", "mindustry.entities.units.UnitState", "mindustry.game.DefaultWaves", "mindustry.game.Difficulty", "mindustry.game.EventType", "mindustry.game.EventType$BlockBuildBeginEvent", "mindustry.game.EventType$BlockBuildEndEvent", "mindustry.game.EventType$BlockDestroyEvent", "mindustry.game.EventType$BlockInfoEvent", "mindustry.game.EventType$BuildSelectEvent", "mindustry.game.EventType$ClientLoadEvent", "mindustry.game.EventType$CommandIssueEvent", "mindustry.game.EventType$ContentReloadEvent", "mindustry.game.EventType$CoreItemDeliverEvent", "mindustry.game.EventType$DepositEvent", "mindustry.game.EventType$DisposeEvent", "mindustry.game.EventType$GameOverEvent", "mindustry.game.EventType$LaunchEvent", "mindustry.game.EventType$LaunchItemEvent", "mindustry.game.EventType$LineConfirmEvent", "mindustry.game.EventType$LoseEvent", "mindustry.game.EventType$MapMakeEvent", "mindustry.game.EventType$MapPublishEvent", "mindustry.game.EventType$MechChangeEvent", "mindustry.game.EventType$PlayEvent", "mindustry.game.EventType$PlayerBanEvent", "mindustry.game.EventType$PlayerChatEvent", "mindustry.game.EventType$PlayerConnect", "mindustry.game.EventType$PlayerIpBanEvent", "mindustry.game.EventType$PlayerIpUnbanEvent", "mindustry.game.EventType$PlayerJoin", "mindustry.game.EventType$PlayerLeave", "mindustry.game.EventType$PlayerUnbanEvent", "mindustry.game.EventType$ResearchEvent", "mindustry.game.EventType$ResetEvent", "mindustry.game.EventType$ResizeEvent", "mindustry.game.EventType$ServerLoadEvent", "mindustry.game.EventType$StateChangeEvent", "mindustry.game.EventType$TapConfigEvent", "mindustry.game.EventType$TapEvent", "mindustry.game.EventType$TileChangeEvent", "mindustry.game.EventType$Trigger", "mindustry.game.EventType$TurretAmmoDeliverEvent", "mindustry.game.EventType$UnitCreateEvent", "mindustry.game.EventType$UnitDestroyEvent", "mindustry.game.EventType$UnlockEvent", "mindustry.game.EventType$WaveEvent", "mindustry.game.EventType$WinEvent", "mindustry.game.EventType$WithdrawEvent", "mindustry.game.EventType$WorldLoadEvent", "mindustry.game.EventType$ZoneConfigureCompleteEvent", "mindustry.game.EventType$ZoneRequireCompleteEvent", "mindustry.game.Gamemode", "mindustry.game.GlobalData", "mindustry.game.LoopControl", "mindustry.game.MusicControl", "mindustry.game.Objective", "mindustry.game.Objectives", "mindustry.game.Objectives$Launched", "mindustry.game.Objectives$Unlock", "mindustry.game.Objectives$Wave", "mindustry.game.Objectives$ZoneObjective", "mindustry.game.Objectives$ZoneWave", "mindustry.game.Rules", "mindustry.game.Saves", "mindustry.game.Saves$SaveSlot", "mindustry.game.Schematic", "mindustry.game.Schematic$Stile", "mindustry.game.Schematics", "mindustry.game.SoundLoop", "mindustry.game.SpawnGroup", "mindustry.game.Stats", "mindustry.game.Stats$Rank", "mindustry.game.Stats$RankResult", "mindustry.game.Team", "mindustry.game.Teams", "mindustry.game.Teams$BrokenBlock", "mindustry.game.Teams$TeamData", "mindustry.game.Tutorial", "mindustry.game.Tutorial$TutorialStage", "mindustry.gen.BufferItem", "mindustry.gen.Call", "mindustry.gen.Call", "mindustry.gen.Icon", "mindustry.gen.Icon", "mindustry.gen.MethodHash", "mindustry.gen.Musics", "mindustry.gen.Musics", "mindustry.gen.PathTile", "mindustry.gen.PropCell", "mindustry.gen.RemoteReadClient", "mindustry.gen.RemoteReadServer", "mindustry.gen.Serialization", "mindustry.gen.Sounds", "mindustry.gen.Sounds", "mindustry.gen.Tex", "mindustry.gen.Tex", "mindustry.gen.TileOp", "mindustry.graphics.BlockRenderer", "mindustry.graphics.Bloom", "mindustry.graphics.CacheLayer", "mindustry.graphics.Drawf", "mindustry.graphics.FloorRenderer", "mindustry.graphics.IndexedRenderer", "mindustry.graphics.Layer", "mindustry.graphics.LightRenderer", "mindustry.graphics.MenuRenderer", "mindustry.graphics.MinimapRenderer", "mindustry.graphics.MultiPacker", "mindustry.graphics.MultiPacker$PageType", "mindustry.graphics.OverlayRenderer", "mindustry.graphics.Pal", "mindustry.graphics.Pixelator", "mindustry.graphics.Shaders", "mindustry.input.Binding", "mindustry.input.DesktopInput", "mindustry.input.InputHandler", "mindustry.input.InputHandler$PlaceLine", "mindustry.input.MobileInput", "mindustry.input.PlaceMode", "mindustry.input.Placement", "mindustry.input.Placement$DistanceHeuristic", "mindustry.input.Placement$NormalizeDrawResult", "mindustry.input.Placement$NormalizeResult", "mindustry.input.Placement$TileHueristic", "mindustry.maps.Map", "mindustry.maps.Maps", "mindustry.maps.Maps$MapProvider", "mindustry.maps.Maps$ShuffleMode", "mindustry.maps.Maps$ShuffleMode", "mindustry.maps.filters.BlendFilter", "mindustry.maps.filters.ClearFilter", "mindustry.maps.filters.DistortFilter", "mindustry.maps.filters.FilterOption", "mindustry.maps.filters.FilterOption$BlockOption", "mindustry.maps.filters.FilterOption$SliderOption", "mindustry.maps.filters.GenerateFilter", "mindustry.maps.filters.GenerateFilter$GenerateInput", "mindustry.maps.filters.GenerateFilter$GenerateInput$TileProvider", "mindustry.maps.filters.MedianFilter", "mindustry.maps.filters.MirrorFilter", "mindustry.maps.filters.NoiseFilter", "mindustry.maps.filters.OreFilter", "mindustry.maps.filters.OreMedianFilter", "mindustry.maps.filters.RiverNoiseFilter", "mindustry.maps.filters.ScatterFilter", "mindustry.maps.filters.TerrainFilter", "mindustry.maps.generators.BasicGenerator", "mindustry.maps.generators.BasicGenerator$DistanceHeuristic", "mindustry.maps.generators.BasicGenerator$TileHueristic", "mindustry.maps.generators.Generator", "mindustry.maps.generators.MapGenerator", "mindustry.maps.generators.MapGenerator$Decoration", "mindustry.maps.generators.RandomGenerator", "mindustry.maps.zonegen.DesertWastesGenerator", "mindustry.maps.zonegen.OvergrowthGenerator", "mindustry.type.Category", "mindustry.type.ErrorContent", "mindustry.type.Item", "mindustry.type.ItemStack", "mindustry.type.ItemType", "mindustry.type.Liquid", "mindustry.type.LiquidStack", "mindustry.type.Mech", "mindustry.type.Publishable", "mindustry.type.StatusEffect", "mindustry.type.StatusEffect$TransitionHandler", "mindustry.type.TypeID", "mindustry.type.UnitType", "mindustry.type.Weapon", "mindustry.type.WeatherEvent", "mindustry.type.Zone", "mindustry.ui.Bar", "mindustry.ui.BorderImage", "mindustry.ui.Cicon", "mindustry.ui.ContentDisplay", "mindustry.ui.Fonts", "mindustry.ui.GridImage", "mindustry.ui.IconSize", "mindustry.ui.IntFormat", "mindustry.ui.ItemDisplay", "mindustry.ui.ItemImage", "mindustry.ui.ItemsDisplay", "mindustry.ui.Links", "mindustry.ui.Links$LinkEntry", "mindustry.ui.LiquidDisplay", "mindustry.ui.Minimap", "mindustry.ui.MobileButton", "mindustry.ui.MultiReqImage", "mindustry.ui.ReqImage", "mindustry.ui.Styles", "mindustry.ui.dialogs.AboutDialog", "mindustry.ui.dialogs.AdminsDialog", "mindustry.ui.dialogs.BansDialog", "mindustry.ui.dialogs.ColorPicker", "mindustry.ui.dialogs.ContentInfoDialog", "mindustry.ui.dialogs.ControlsDialog", "mindustry.ui.dialogs.CustomGameDialog", "mindustry.ui.dialogs.CustomRulesDialog", "mindustry.ui.dialogs.DatabaseDialog", "mindustry.ui.dialogs.DeployDialog", "mindustry.ui.dialogs.DeployDialog$View", "mindustry.ui.dialogs.DeployDialog$ZoneNode", "mindustry.ui.dialogs.DiscordDialog", "mindustry.ui.dialogs.FileChooser", "mindustry.ui.dialogs.FileChooser$FileHistory", "mindustry.ui.dialogs.FloatingDialog", "mindustry.ui.dialogs.GameOverDialog", "mindustry.ui.dialogs.HostDialog", "mindustry.ui.dialogs.JoinDialog", "mindustry.ui.dialogs.JoinDialog$Server", "mindustry.ui.dialogs.LanguageDialog", "mindustry.ui.dialogs.LoadDialog", "mindustry.ui.dialogs.LoadoutDialog", "mindustry.ui.dialogs.MapPlayDialog", "mindustry.ui.dialogs.MapsDialog", "mindustry.ui.dialogs.MinimapDialog", "mindustry.ui.dialogs.ModsDialog", "mindustry.ui.dialogs.PaletteDialog", "mindustry.ui.dialogs.PausedDialog", "mindustry.ui.dialogs.SaveDialog", "mindustry.ui.dialogs.SchematicsDialog", "mindustry.ui.dialogs.SchematicsDialog$SchematicImage", "mindustry.ui.dialogs.SchematicsDialog$SchematicInfoDialog", "mindustry.ui.dialogs.SettingsMenuDialog", "mindustry.ui.dialogs.TechTreeDialog", "mindustry.ui.dialogs.TechTreeDialog$LayoutNode", "mindustry.ui.dialogs.TechTreeDialog$TechTreeNode", "mindustry.ui.dialogs.TechTreeDialog$View", "mindustry.ui.dialogs.TraceDialog", "mindustry.ui.dialogs.ZoneInfoDialog", "mindustry.ui.fragments.BlockConfigFragment", "mindustry.ui.fragments.BlockInventoryFragment", "mindustry.ui.fragments.ChatFragment", "mindustry.ui.fragments.FadeInFragment", "mindustry.ui.fragments.Fragment", "mindustry.ui.fragments.HudFragment", "mindustry.ui.fragments.LoadingFragment", "mindustry.ui.fragments.MenuFragment", "mindustry.ui.fragments.OverlayFragment", "mindustry.ui.fragments.PlacementFragment", "mindustry.ui.fragments.PlayerListFragment", "mindustry.ui.fragments.ScriptConsoleFragment", "mindustry.ui.layout.BranchTreeLayout", "mindustry.ui.layout.BranchTreeLayout$TreeAlignment", "mindustry.ui.layout.BranchTreeLayout$TreeLocation", "mindustry.ui.layout.RadialTreeLayout", "mindustry.ui.layout.TreeLayout", "mindustry.ui.layout.TreeLayout$TreeNode", "mindustry.world.Block", "mindustry.world.BlockStorage", "mindustry.world.Build", "mindustry.world.CachedTile", "mindustry.world.DirectionalItemBuffer", "mindustry.world.DirectionalItemBuffer$BufferItemStruct", "mindustry.world.Edges", "mindustry.world.ItemBuffer", "mindustry.world.LegacyColorMapper", "mindustry.world.LegacyColorMapper$LegacyBlock", "mindustry.world.Pos", "mindustry.world.StaticTree", "mindustry.world.Tile", "mindustry.world.WorldContext", "mindustry.world.blocks.Attributes", "mindustry.world.blocks.Autotiler", "mindustry.world.blocks.Autotiler$AutotilerHolder", "mindustry.world.blocks.BlockPart", "mindustry.world.blocks.BuildBlock", "mindustry.world.blocks.BuildBlock$BuildEntity", "mindustry.world.blocks.DoubleOverlayFloor", "mindustry.world.blocks.Floor", "mindustry.world.blocks.ItemSelection", "mindustry.world.blocks.LiquidBlock", "mindustry.world.blocks.OreBlock", "mindustry.world.blocks.OverlayFloor", "mindustry.world.blocks.PowerBlock", "mindustry.world.blocks.RespawnBlock", "mindustry.world.blocks.Rock", "mindustry.world.blocks.StaticWall", "mindustry.world.blocks.TreeBlock", "mindustry.world.blocks.defense.DeflectorWall", "mindustry.world.blocks.defense.DeflectorWall$DeflectorEntity", "mindustry.world.blocks.defense.Door", "mindustry.world.blocks.defense.Door$DoorEntity", "mindustry.world.blocks.defense.ForceProjector", "mindustry.world.blocks.defense.ForceProjector$ForceEntity", "mindustry.world.blocks.defense.ForceProjector$ShieldEntity", "mindustry.world.blocks.defense.MendProjector", "mindustry.world.blocks.defense.MendProjector$MendEntity", "mindustry.world.blocks.defense.OverdriveProjector", "mindustry.world.blocks.defense.OverdriveProjector$OverdriveEntity", "mindustry.world.blocks.defense.ShockMine", "mindustry.world.blocks.defense.SurgeWall", "mindustry.world.blocks.defense.Wall", "mindustry.world.blocks.defense.turrets.ArtilleryTurret", "mindustry.world.blocks.defense.turrets.BurstTurret", "mindustry.world.blocks.defense.turrets.ChargeTurret", "mindustry.world.blocks.defense.turrets.ChargeTurret$LaserTurretEntity", "mindustry.world.blocks.defense.turrets.CooledTurret", "mindustry.world.blocks.defense.turrets.DoubleTurret", "mindustry.world.blocks.defense.turrets.ItemTurret", "mindustry.world.blocks.defense.turrets.ItemTurret$ItemEntry", "mindustry.world.blocks.defense.turrets.ItemTurret$ItemTurretEntity", "mindustry.world.blocks.defense.turrets.LaserTurret", "mindustry.world.blocks.defense.turrets.LaserTurret$LaserTurretEntity", "mindustry.world.blocks.defense.turrets.LiquidTurret", "mindustry.world.blocks.defense.turrets.PowerTurret", "mindustry.world.blocks.defense.turrets.Turret", "mindustry.world.blocks.defense.turrets.Turret$AmmoEntry", "mindustry.world.blocks.defense.turrets.Turret$TurretEntity", "mindustry.world.blocks.distribution.ArmoredConveyor", "mindustry.world.blocks.distribution.BufferedItemBridge", "mindustry.world.blocks.distribution.BufferedItemBridge$BufferedItemBridgeEntity", "mindustry.world.blocks.distribution.Conveyor", "mindustry.world.blocks.distribution.Conveyor$ConveyorEntity", "mindustry.world.blocks.distribution.Conveyor$ItemPos", "mindustry.world.blocks.distribution.ExtendingItemBridge", "mindustry.world.blocks.distribution.ItemBridge", "mindustry.world.blocks.distribution.ItemBridge$ItemBridgeEntity", "mindustry.world.blocks.distribution.Junction", "mindustry.world.blocks.distribution.Junction$JunctionEntity", "mindustry.world.blocks.distribution.MassDriver", "mindustry.world.blocks.distribution.MassDriver$DriverBulletData", "mindustry.world.blocks.distribution.MassDriver$DriverState", "mindustry.world.blocks.distribution.MassDriver$MassDriverEntity", "mindustry.world.blocks.distribution.OverflowGate", "mindustry.world.blocks.distribution.OverflowGate$OverflowGateEntity", "mindustry.world.blocks.distribution.Router", "mindustry.world.blocks.distribution.Router$RouterEntity", "mindustry.world.blocks.distribution.Sorter", "mindustry.world.blocks.distribution.Sorter$SorterEntity", "mindustry.world.blocks.liquid.ArmoredConduit", "mindustry.world.blocks.liquid.Conduit", "mindustry.world.blocks.liquid.Conduit$ConduitEntity", "mindustry.world.blocks.liquid.LiquidBridge", "mindustry.world.blocks.liquid.LiquidExtendingBridge", "mindustry.world.blocks.liquid.LiquidJunction", "mindustry.world.blocks.liquid.LiquidOverflowGate", "mindustry.world.blocks.liquid.LiquidRouter", "mindustry.world.blocks.liquid.LiquidTank", "mindustry.world.blocks.logic.LogicBlock", "mindustry.world.blocks.logic.MessageBlock", "mindustry.world.blocks.logic.MessageBlock$MessageBlockEntity", "mindustry.world.blocks.power.Battery", "mindustry.world.blocks.power.BurnerGenerator", "mindustry.world.blocks.power.ConditionalConsumePower", "mindustry.world.blocks.power.DecayGenerator", "mindustry.world.blocks.power.ImpactReactor", "mindustry.world.blocks.power.ImpactReactor$FusionReactorEntity", "mindustry.world.blocks.power.ItemLiquidGenerator", "mindustry.world.blocks.power.ItemLiquidGenerator$ItemLiquidGeneratorEntity", "mindustry.world.blocks.power.LightBlock", "mindustry.world.blocks.power.LightBlock$LightEntity", "mindustry.world.blocks.power.NuclearReactor", "mindustry.world.blocks.power.NuclearReactor$NuclearReactorEntity", "mindustry.world.blocks.power.PowerDiode", "mindustry.world.blocks.power.PowerDistributor", "mindustry.world.blocks.power.PowerGenerator", "mindustry.world.blocks.power.PowerGenerator$GeneratorEntity", "mindustry.world.blocks.power.PowerGraph", "mindustry.world.blocks.power.PowerNode", "mindustry.world.blocks.power.SingleTypeGenerator", "mindustry.world.blocks.power.SolarGenerator", "mindustry.world.blocks.power.ThermalGenerator", "mindustry.world.blocks.production.Cultivator", "mindustry.world.blocks.production.Cultivator$CultivatorEntity", "mindustry.world.blocks.production.Drill", "mindustry.world.blocks.production.Drill$DrillEntity", "mindustry.world.blocks.production.Fracker", "mindustry.world.blocks.production.Fracker$FrackerEntity", "mindustry.world.blocks.production.GenericCrafter", "mindustry.world.blocks.production.GenericCrafter$GenericCrafterEntity", "mindustry.world.blocks.production.GenericSmelter", "mindustry.world.blocks.production.Incinerator", "mindustry.world.blocks.production.Incinerator$IncineratorEntity", "mindustry.world.blocks.production.LiquidConverter", "mindustry.world.blocks.production.Pump", "mindustry.world.blocks.production.Separator", "mindustry.world.blocks.production.SolidPump", "mindustry.world.blocks.production.SolidPump$SolidPumpEntity", "mindustry.world.blocks.sandbox.ItemSource", "mindustry.world.blocks.sandbox.ItemSource$ItemSourceEntity", "mindustry.world.blocks.sandbox.ItemVoid", "mindustry.world.blocks.sandbox.LiquidSource", "mindustry.world.blocks.sandbox.LiquidSource$LiquidSourceEntity", "mindustry.world.blocks.sandbox.PowerSource", "mindustry.world.blocks.sandbox.PowerVoid", "mindustry.world.blocks.storage.CoreBlock", "mindustry.world.blocks.storage.CoreBlock$CoreEntity", "mindustry.world.blocks.storage.LaunchPad", "mindustry.world.blocks.storage.StorageBlock", "mindustry.world.blocks.storage.StorageBlock$StorageBlockEntity", "mindustry.world.blocks.storage.Unloader", "mindustry.world.blocks.storage.Unloader$UnloaderEntity", "mindustry.world.blocks.storage.Vault", "mindustry.world.blocks.units.CommandCenter", "mindustry.world.blocks.units.CommandCenter$CommandCenterEntity", "mindustry.world.blocks.units.MechPad", "mindustry.world.blocks.units.MechPad$MechFactoryEntity", "mindustry.world.blocks.units.RallyPoint", "mindustry.world.blocks.units.RepairPoint", "mindustry.world.blocks.units.RepairPoint$RepairPointEntity", "mindustry.world.blocks.units.UnitFactory", "mindustry.world.blocks.units.UnitFactory$UnitFactoryEntity", "mindustry.world.consumers.Consume", "mindustry.world.consumers.ConsumeItemFilter", "mindustry.world.consumers.ConsumeItems", "mindustry.world.consumers.ConsumeLiquid", "mindustry.world.consumers.ConsumeLiquidBase", "mindustry.world.consumers.ConsumeLiquidFilter", "mindustry.world.consumers.ConsumePower", "mindustry.world.consumers.ConsumeType", "mindustry.world.consumers.Consumers", "mindustry.world.meta.Attribute", "mindustry.world.meta.BlockBars", "mindustry.world.meta.BlockFlag", "mindustry.world.meta.BlockGroup", "mindustry.world.meta.BlockStat", "mindustry.world.meta.BlockStats", "mindustry.world.meta.BuildVisibility", "mindustry.world.meta.PowerType", "mindustry.world.meta.Producers", "mindustry.world.meta.StatCategory", "mindustry.world.meta.StatUnit", "mindustry.world.meta.StatValue", "mindustry.world.meta.values.AmmoListValue", "mindustry.world.meta.values.BooleanValue", "mindustry.world.meta.values.BoosterListValue", "mindustry.world.meta.values.ItemFilterValue", "mindustry.world.meta.values.ItemListValue", "mindustry.world.meta.values.LiquidFilterValue", "mindustry.world.meta.values.LiquidValue", "mindustry.world.meta.values.NumberValue", "mindustry.world.meta.values.StringValue", "mindustry.world.modules.BlockModule", "mindustry.world.modules.ConsumeModule", "mindustry.world.modules.ItemModule", "mindustry.world.modules.ItemModule$ItemCalculator", "mindustry.world.modules.ItemModule$ItemConsumer", "mindustry.world.modules.LiquidModule", "mindustry.world.modules.LiquidModule$LiquidCalculator", "mindustry.world.modules.LiquidModule$LiquidConsumer", "mindustry.world.modules.PowerModule", "mindustry.world.producers.Produce", "mindustry.world.producers.ProduceItem");
+ public static final ObjectSet allowedClassNames = ObjectSet.with("arc.Core", "arc.func.Boolc", "arc.func.Boolf", "arc.func.Boolf2", "arc.func.Boolp", "arc.func.Cons", "arc.func.Cons2", "arc.func.Floatc", "arc.func.Floatc2", "arc.func.Floatc4", "arc.func.Floatf", "arc.func.Floatp", "arc.func.Func", "arc.func.Func2", "arc.func.Func3", "arc.func.Intc", "arc.func.Intc2", "arc.func.Intc4", "arc.func.Intf", "arc.func.Intp", "arc.func.Prov", "arc.graphics.Color", "arc.graphics.Pixmap", "arc.graphics.Texture", "arc.graphics.TextureData", "arc.graphics.g2d.Draw", "arc.graphics.g2d.Fill", "arc.graphics.g2d.Lines", "arc.graphics.g2d.TextureAtlas", "arc.graphics.g2d.TextureAtlas$AtlasRegion", "arc.graphics.g2d.TextureRegion", "arc.math.Affine2", "arc.math.Angles", "arc.math.Angles", "arc.math.Angles$ParticleConsumer", "arc.math.CumulativeDistribution", "arc.math.CumulativeDistribution$CumulativeValue", "arc.math.DelaunayTriangulator", "arc.math.EarClippingTriangulator", "arc.math.Extrapolator", "arc.math.FloatCounter", "arc.math.Interpolation", "arc.math.Interpolation$Bounce", "arc.math.Interpolation$BounceIn", "arc.math.Interpolation$BounceOut", "arc.math.Interpolation$Elastic", "arc.math.Interpolation$ElasticIn", "arc.math.Interpolation$ElasticOut", "arc.math.Interpolation$Exp", "arc.math.Interpolation$ExpIn", "arc.math.Interpolation$ExpOut", "arc.math.Interpolation$Pow", "arc.math.Interpolation$PowIn", "arc.math.Interpolation$PowOut", "arc.math.Interpolation$Swing", "arc.math.Interpolation$SwingIn", "arc.math.Interpolation$SwingOut", "arc.math.Mathf", "arc.math.Mathf", "arc.math.Matrix3", "arc.math.WindowedMean", "arc.math.geom.BSpline", "arc.math.geom.Bezier", "arc.math.geom.Bresenham2", "arc.math.geom.CatmullRomSpline", "arc.math.geom.Circle", "arc.math.geom.ConvexHull", "arc.math.geom.Ellipse", "arc.math.geom.FixedPosition", "arc.math.geom.Geometry", "arc.math.geom.Geometry$Raycaster", "arc.math.geom.Geometry$SolidChecker", "arc.math.geom.Intersector", "arc.math.geom.Intersector$MinimumTranslationVector", "arc.math.geom.Path", "arc.math.geom.Point2", "arc.math.geom.Point3", "arc.math.geom.Polygon", "arc.math.geom.Polyline", "arc.math.geom.Position", "arc.math.geom.QuadTree", "arc.math.geom.QuadTree$QuadTreeObject", "arc.math.geom.Rect", "arc.math.geom.Shape2D", "arc.math.geom.Spring1D", "arc.math.geom.Spring2D", "arc.math.geom.Vec2", "arc.math.geom.Vec3", "arc.math.geom.Vector", "arc.scene.Action", "arc.scene.Element", "arc.scene.Group", "arc.scene.Scene", "arc.scene.actions.Actions", "arc.scene.actions.AddAction", "arc.scene.actions.AddListenerAction", "arc.scene.actions.AfterAction", "arc.scene.actions.AlphaAction", "arc.scene.actions.ColorAction", "arc.scene.actions.DelayAction", "arc.scene.actions.DelegateAction", "arc.scene.actions.FloatAction", "arc.scene.actions.IntAction", "arc.scene.actions.LayoutAction", "arc.scene.actions.MoveByAction", "arc.scene.actions.MoveToAction", "arc.scene.actions.OriginAction", "arc.scene.actions.ParallelAction", "arc.scene.actions.RelativeTemporalAction", "arc.scene.actions.RemoveAction", "arc.scene.actions.RemoveActorAction", "arc.scene.actions.RemoveListenerAction", "arc.scene.actions.RepeatAction", "arc.scene.actions.RotateByAction", "arc.scene.actions.RotateToAction", "arc.scene.actions.RunnableAction", "arc.scene.actions.ScaleByAction", "arc.scene.actions.ScaleToAction", "arc.scene.actions.SequenceAction", "arc.scene.actions.SizeByAction", "arc.scene.actions.SizeToAction", "arc.scene.actions.TemporalAction", "arc.scene.actions.TimeScaleAction", "arc.scene.actions.TouchableAction", "arc.scene.actions.TranslateByAction", "arc.scene.actions.VisibleAction", "arc.scene.event.ChangeListener", "arc.scene.event.ChangeListener$ChangeEvent", "arc.scene.event.ClickListener", "arc.scene.event.DragListener", "arc.scene.event.DragScrollListener", "arc.scene.event.ElementGestureListener", "arc.scene.event.EventListener", "arc.scene.event.FocusListener", "arc.scene.event.FocusListener$FocusEvent", "arc.scene.event.FocusListener$FocusEvent$Type", "arc.scene.event.HandCursorListener", "arc.scene.event.IbeamCursorListener", "arc.scene.event.InputEvent", "arc.scene.event.InputEvent$Type", "arc.scene.event.InputListener", "arc.scene.event.SceneEvent", "arc.scene.event.Touchable", "arc.scene.event.VisibilityEvent", "arc.scene.event.VisibilityListener", "arc.scene.style.BaseDrawable", "arc.scene.style.Drawable", "arc.scene.style.NinePatchDrawable", "arc.scene.style.ScaledNinePatchDrawable", "arc.scene.style.Style", "arc.scene.style.TextureRegionDrawable", "arc.scene.style.TiledDrawable", "arc.scene.style.TransformDrawable", "arc.scene.ui.Button", "arc.scene.ui.Button$ButtonStyle", "arc.scene.ui.ButtonGroup", "arc.scene.ui.CheckBox", "arc.scene.ui.CheckBox$CheckBoxStyle", "arc.scene.ui.ColorImage", "arc.scene.ui.Dialog", "arc.scene.ui.Dialog$DialogStyle", "arc.scene.ui.Image", "arc.scene.ui.ImageButton", "arc.scene.ui.ImageButton$ImageButtonStyle", "arc.scene.ui.KeybindDialog", "arc.scene.ui.KeybindDialog$KeybindDialogStyle", "arc.scene.ui.Label", "arc.scene.ui.Label$LabelStyle", "arc.scene.ui.ProgressBar", "arc.scene.ui.ProgressBar$ProgressBarStyle", "arc.scene.ui.ScrollPane", "arc.scene.ui.ScrollPane$ScrollPaneStyle", "arc.scene.ui.SettingsDialog", "arc.scene.ui.SettingsDialog$SettingsTable", "arc.scene.ui.SettingsDialog$SettingsTable$CheckSetting", "arc.scene.ui.SettingsDialog$SettingsTable$Setting", "arc.scene.ui.SettingsDialog$SettingsTable$SliderSetting", "arc.scene.ui.SettingsDialog$StringProcessor", "arc.scene.ui.Slider", "arc.scene.ui.Slider$SliderStyle", "arc.scene.ui.TextArea", "arc.scene.ui.TextArea$TextAreaListener", "arc.scene.ui.TextButton", "arc.scene.ui.TextButton$TextButtonStyle", "arc.scene.ui.TextField", "arc.scene.ui.TextField$DefaultOnscreenKeyboard", "arc.scene.ui.TextField$OnscreenKeyboard", "arc.scene.ui.TextField$TextFieldClickListener", "arc.scene.ui.TextField$TextFieldFilter", "arc.scene.ui.TextField$TextFieldListener", "arc.scene.ui.TextField$TextFieldStyle", "arc.scene.ui.TextField$TextFieldValidator", "arc.scene.ui.Tooltip", "arc.scene.ui.Tooltip$Tooltips", "arc.scene.ui.Touchpad", "arc.scene.ui.Touchpad$TouchpadStyle", "arc.scene.ui.TreeElement", "arc.scene.ui.TreeElement$Node", "arc.scene.ui.TreeElement$TreeStyle", "arc.scene.ui.layout.Cell", "arc.scene.ui.layout.Collapser", "arc.scene.ui.layout.HorizontalGroup", "arc.scene.ui.layout.Scl", "arc.scene.ui.layout.Stack", "arc.scene.ui.layout.Table", "arc.scene.ui.layout.Table$DrawRect", "arc.scene.ui.layout.VerticalGroup", "arc.scene.ui.layout.WidgetGroup", "arc.scene.utils.ArraySelection", "arc.scene.utils.Cullable", "arc.scene.utils.Disableable", "arc.scene.utils.DragAndDrop", "arc.scene.utils.DragAndDrop$Payload", "arc.scene.utils.DragAndDrop$Source", "arc.scene.utils.DragAndDrop$Target", "arc.scene.utils.Elements", "arc.scene.utils.Layout", "arc.scene.utils.Selection", "arc.struct.Array", "arc.struct.Array$ArrayIterable", "arc.struct.ArrayMap", "arc.struct.ArrayMap$Entries", "arc.struct.ArrayMap$Keys", "arc.struct.ArrayMap$Values", "arc.struct.AtomicQueue", "arc.struct.BinaryHeap", "arc.struct.BinaryHeap$Node", "arc.struct.Bits", "arc.struct.BooleanArray", "arc.struct.ByteArray", "arc.struct.CharArray", "arc.struct.ComparableTimSort", "arc.struct.DelayedRemovalArray", "arc.struct.EnumSet", "arc.struct.EnumSet$EnumSetIterator", "arc.struct.FloatArray", "arc.struct.GridBits", "arc.struct.GridMap", "arc.struct.IdentityMap", "arc.struct.IdentityMap$Entries", "arc.struct.IdentityMap$Entry", "arc.struct.IdentityMap$Keys", "arc.struct.IdentityMap$Values", "arc.struct.IntArray", "arc.struct.IntFloatMap", "arc.struct.IntFloatMap$Entries", "arc.struct.IntFloatMap$Entry", "arc.struct.IntFloatMap$Keys", "arc.struct.IntFloatMap$Values", "arc.struct.IntIntMap", "arc.struct.IntIntMap$Entries", "arc.struct.IntIntMap$Entry", "arc.struct.IntIntMap$Keys", "arc.struct.IntIntMap$Values", "arc.struct.IntMap", "arc.struct.IntMap$Entries", "arc.struct.IntMap$Entry", "arc.struct.IntMap$Keys", "arc.struct.IntMap$Values", "arc.struct.IntQueue", "arc.struct.IntSet", "arc.struct.IntSet$IntSetIterator", "arc.struct.LongArray", "arc.struct.LongMap", "arc.struct.LongMap$Entries", "arc.struct.LongMap$Entry", "arc.struct.LongMap$Keys", "arc.struct.LongMap$Values", "arc.struct.LongQueue", "arc.struct.ObjectFloatMap", "arc.struct.ObjectFloatMap$Entries", "arc.struct.ObjectFloatMap$Entry", "arc.struct.ObjectFloatMap$Keys", "arc.struct.ObjectFloatMap$Values", "arc.struct.ObjectIntMap", "arc.struct.ObjectIntMap$Entries", "arc.struct.ObjectIntMap$Entry", "arc.struct.ObjectIntMap$Keys", "arc.struct.ObjectIntMap$Values", "arc.struct.ObjectMap", "arc.struct.ObjectMap$Entries", "arc.struct.ObjectMap$Entry", "arc.struct.ObjectMap$Keys", "arc.struct.ObjectMap$Values", "arc.struct.ObjectSet", "arc.struct.ObjectSet$ObjectSetIterator", "arc.struct.OrderedMap", "arc.struct.OrderedMap$OrderedMapEntries", "arc.struct.OrderedMap$OrderedMapKeys", "arc.struct.OrderedMap$OrderedMapValues", "arc.struct.OrderedSet", "arc.struct.OrderedSet$OrderedSetIterator", "arc.struct.PooledLinkedList", "arc.struct.PooledLinkedList$Item", "arc.struct.Queue", "arc.struct.Queue$QueueIterable", "arc.struct.ShortArray", "arc.struct.SnapshotArray", "arc.struct.Sort", "arc.struct.SortedIntList", "arc.struct.SortedIntList$Iterator", "arc.struct.SortedIntList$Node", "arc.struct.StringMap", "arc.struct.TimSort", "arc.util.I18NBundle", "arc.util.Interval", "arc.util.Time", "java.io.DataInput", "java.io.DataInputStream", "java.io.DataOutput", "java.io.DataOutputStream", "java.io.PrintStream", "java.lang.Boolean", "java.lang.Byte", "java.lang.Character", "java.lang.Double", "java.lang.Float", "java.lang.Integer", "java.lang.Long", "java.lang.Object", "java.lang.Runnable", "java.lang.Short", "java.lang.String", "java.lang.System", "mindustry.Vars", "mindustry.ai.BlockIndexer", "mindustry.ai.Pathfinder", "mindustry.ai.Pathfinder$PathData", "mindustry.ai.Pathfinder$PathTarget", "mindustry.ai.Pathfinder$PathTileStruct", "mindustry.ai.WaveSpawner", "mindustry.content.Blocks", "mindustry.content.Bullets", "mindustry.content.Fx", "mindustry.content.Items", "mindustry.content.Liquids", "mindustry.content.Loadouts", "mindustry.content.Mechs", "mindustry.content.StatusEffects", "mindustry.content.TechTree", "mindustry.content.TechTree$TechNode", "mindustry.content.TypeIDs", "mindustry.content.UnitTypes", "mindustry.content.Zones", "mindustry.core.ContentLoader", "mindustry.core.Control", "mindustry.core.FileTree", "mindustry.core.GameState", "mindustry.core.GameState$State", "mindustry.core.Logic", "mindustry.core.NetServer$TeamAssigner", "mindustry.core.Platform", "mindustry.core.Renderer", "mindustry.core.UI", "mindustry.core.Version", "mindustry.core.World", "mindustry.core.World$Raycaster", "mindustry.ctype.Content", "mindustry.ctype.Content$ModContentInfo", "mindustry.ctype.ContentList", "mindustry.ctype.ContentType", "mindustry.ctype.MappableContent", "mindustry.ctype.UnlockableContent", "mindustry.editor.DrawOperation", "mindustry.editor.DrawOperation$OpType", "mindustry.editor.DrawOperation$TileOpStruct", "mindustry.editor.EditorTile", "mindustry.editor.EditorTool", "mindustry.editor.MapEditor", "mindustry.editor.MapEditor$Context", "mindustry.editor.MapEditorDialog", "mindustry.editor.MapGenerateDialog", "mindustry.editor.MapInfoDialog", "mindustry.editor.MapLoadDialog", "mindustry.editor.MapRenderer", "mindustry.editor.MapResizeDialog", "mindustry.editor.MapSaveDialog", "mindustry.editor.MapView", "mindustry.editor.OperationStack", "mindustry.editor.WaveInfoDialog", "mindustry.entities.Damage", "mindustry.entities.Damage$PropCellStruct", "mindustry.entities.Effects", "mindustry.entities.Effects$Effect", "mindustry.entities.Effects$EffectContainer", "mindustry.entities.Effects$EffectProvider", "mindustry.entities.Effects$EffectRenderer", "mindustry.entities.Effects$ScreenshakeProvider", "mindustry.entities.Entities", "mindustry.entities.EntityCollisions", "mindustry.entities.EntityGroup", "mindustry.entities.Predict", "mindustry.entities.TargetPriority", "mindustry.entities.Units", "mindustry.entities.bullet.ArtilleryBulletType", "mindustry.entities.bullet.BasicBulletType", "mindustry.entities.bullet.BombBulletType", "mindustry.entities.bullet.BulletType", "mindustry.entities.bullet.FlakBulletType", "mindustry.entities.bullet.HealBulletType", "mindustry.entities.bullet.LiquidBulletType", "mindustry.entities.bullet.MassDriverBolt", "mindustry.entities.bullet.MissileBulletType", "mindustry.entities.effect.Decal", "mindustry.entities.effect.Fire", "mindustry.entities.effect.GroundEffectEntity", "mindustry.entities.effect.GroundEffectEntity$GroundEffect", "mindustry.entities.effect.ItemTransfer", "mindustry.entities.effect.Lightning", "mindustry.entities.effect.Puddle", "mindustry.entities.effect.RubbleDecal", "mindustry.entities.effect.ScorchDecal", "mindustry.entities.traits.AbsorbTrait", "mindustry.entities.traits.BelowLiquidTrait", "mindustry.entities.traits.BuilderMinerTrait", "mindustry.entities.traits.BuilderTrait", "mindustry.entities.traits.BuilderTrait$BuildDataStatic", "mindustry.entities.traits.BuilderTrait$BuildRequest", "mindustry.entities.traits.DamageTrait", "mindustry.entities.traits.DrawTrait", "mindustry.entities.traits.Entity", "mindustry.entities.traits.HealthTrait", "mindustry.entities.traits.KillerTrait", "mindustry.entities.traits.MinerTrait", "mindustry.entities.traits.MoveTrait", "mindustry.entities.traits.SaveTrait", "mindustry.entities.traits.Saveable", "mindustry.entities.traits.ScaleTrait", "mindustry.entities.traits.ShooterTrait", "mindustry.entities.traits.SolidTrait", "mindustry.entities.traits.SpawnerTrait", "mindustry.entities.traits.SyncTrait", "mindustry.entities.traits.TargetTrait", "mindustry.entities.traits.TeamTrait", "mindustry.entities.traits.TimeTrait", "mindustry.entities.traits.TypeTrait", "mindustry.entities.traits.VelocityTrait", "mindustry.entities.type.BaseEntity", "mindustry.entities.type.BaseUnit", "mindustry.entities.type.Bullet", "mindustry.entities.type.DestructibleEntity", "mindustry.entities.type.EffectEntity", "mindustry.entities.type.Player", "mindustry.entities.type.SolidEntity", "mindustry.entities.type.TileEntity", "mindustry.entities.type.TimedEntity", "mindustry.entities.type.Unit", "mindustry.entities.type.base.BaseDrone", "mindustry.entities.type.base.BuilderDrone", "mindustry.entities.type.base.FlyingUnit", "mindustry.entities.type.base.GroundUnit", "mindustry.entities.type.base.HoverUnit", "mindustry.entities.type.base.MinerDrone", "mindustry.entities.type.base.RepairDrone", "mindustry.entities.units.StateMachine", "mindustry.entities.units.Statuses", "mindustry.entities.units.Statuses$StatusEntry", "mindustry.entities.units.UnitCommand", "mindustry.entities.units.UnitDrops", "mindustry.entities.units.UnitState", "mindustry.game.DefaultWaves", "mindustry.game.Difficulty", "mindustry.game.EventType", "mindustry.game.EventType$BlockBuildBeginEvent", "mindustry.game.EventType$BlockBuildEndEvent", "mindustry.game.EventType$BlockDestroyEvent", "mindustry.game.EventType$BlockInfoEvent", "mindustry.game.EventType$BuildSelectEvent", "mindustry.game.EventType$ClientLoadEvent", "mindustry.game.EventType$CommandIssueEvent", "mindustry.game.EventType$ContentReloadEvent", "mindustry.game.EventType$CoreItemDeliverEvent", "mindustry.game.EventType$DepositEvent", "mindustry.game.EventType$DisposeEvent", "mindustry.game.EventType$GameOverEvent", "mindustry.game.EventType$LaunchEvent", "mindustry.game.EventType$LaunchItemEvent", "mindustry.game.EventType$LineConfirmEvent", "mindustry.game.EventType$LoseEvent", "mindustry.game.EventType$MapMakeEvent", "mindustry.game.EventType$MapPublishEvent", "mindustry.game.EventType$MechChangeEvent", "mindustry.game.EventType$PlayEvent", "mindustry.game.EventType$PlayerBanEvent", "mindustry.game.EventType$PlayerChatEvent", "mindustry.game.EventType$PlayerConnect", "mindustry.game.EventType$PlayerIpBanEvent", "mindustry.game.EventType$PlayerIpUnbanEvent", "mindustry.game.EventType$PlayerJoin", "mindustry.game.EventType$PlayerLeave", "mindustry.game.EventType$PlayerUnbanEvent", "mindustry.game.EventType$ResearchEvent", "mindustry.game.EventType$ResetEvent", "mindustry.game.EventType$ResizeEvent", "mindustry.game.EventType$ServerLoadEvent", "mindustry.game.EventType$StateChangeEvent", "mindustry.game.EventType$TapConfigEvent", "mindustry.game.EventType$TapEvent", "mindustry.game.EventType$TileChangeEvent", "mindustry.game.EventType$Trigger", "mindustry.game.EventType$TurretAmmoDeliverEvent", "mindustry.game.EventType$UnitCreateEvent", "mindustry.game.EventType$UnitDestroyEvent", "mindustry.game.EventType$UnlockEvent", "mindustry.game.EventType$WaveEvent", "mindustry.game.EventType$WinEvent", "mindustry.game.EventType$WithdrawEvent", "mindustry.game.EventType$WorldLoadEvent", "mindustry.game.EventType$ZoneConfigureCompleteEvent", "mindustry.game.EventType$ZoneRequireCompleteEvent", "mindustry.game.Gamemode", "mindustry.game.GlobalData", "mindustry.game.LoopControl", "mindustry.game.MusicControl", "mindustry.game.Objective", "mindustry.game.Objectives", "mindustry.game.Objectives$Launched", "mindustry.game.Objectives$Unlock", "mindustry.game.Objectives$Wave", "mindustry.game.Objectives$ZoneObjective", "mindustry.game.Objectives$ZoneWave", "mindustry.game.Rules", "mindustry.game.Saves", "mindustry.game.Saves$SaveSlot", "mindustry.game.Schematic", "mindustry.game.Schematic$Stile", "mindustry.game.Schematics", "mindustry.game.SoundLoop", "mindustry.game.SpawnGroup", "mindustry.game.Stats", "mindustry.game.Stats$Rank", "mindustry.game.Stats$RankResult", "mindustry.game.Team", "mindustry.game.Teams", "mindustry.game.Teams$BrokenBlock", "mindustry.game.Teams$TeamData", "mindustry.game.Tutorial", "mindustry.game.Tutorial$TutorialStage", "mindustry.gen.BufferItem", "mindustry.gen.Call", "mindustry.gen.Call", "mindustry.gen.Icon", "mindustry.gen.Icon", "mindustry.gen.MethodHash", "mindustry.gen.Musics", "mindustry.gen.Musics", "mindustry.gen.PathTile", "mindustry.gen.PropCell", "mindustry.gen.RemoteReadClient", "mindustry.gen.RemoteReadServer", "mindustry.gen.Serialization", "mindustry.gen.Sounds", "mindustry.gen.Sounds", "mindustry.gen.Tex", "mindustry.gen.Tex", "mindustry.gen.TileOp", "mindustry.graphics.BlockRenderer", "mindustry.graphics.Bloom", "mindustry.graphics.CacheLayer", "mindustry.graphics.Drawf", "mindustry.graphics.FloorRenderer", "mindustry.graphics.IndexedRenderer", "mindustry.graphics.Layer", "mindustry.graphics.LightRenderer", "mindustry.graphics.MenuRenderer", "mindustry.graphics.MinimapRenderer", "mindustry.graphics.MultiPacker", "mindustry.graphics.MultiPacker$PageType", "mindustry.graphics.OverlayRenderer", "mindustry.graphics.Pal", "mindustry.graphics.Pixelator", "mindustry.graphics.Shaders", "mindustry.input.Binding", "mindustry.input.DesktopInput", "mindustry.input.InputHandler", "mindustry.input.InputHandler$PlaceLine", "mindustry.input.MobileInput", "mindustry.input.PlaceMode", "mindustry.input.Placement", "mindustry.input.Placement$DistanceHeuristic", "mindustry.input.Placement$NormalizeDrawResult", "mindustry.input.Placement$NormalizeResult", "mindustry.input.Placement$TileHueristic", "mindustry.maps.Map", "mindustry.maps.Maps", "mindustry.maps.Maps$MapProvider", "mindustry.maps.Maps$ShuffleMode", "mindustry.maps.Maps$ShuffleMode", "mindustry.maps.filters.BlendFilter", "mindustry.maps.filters.ClearFilter", "mindustry.maps.filters.DistortFilter", "mindustry.maps.filters.FilterOption", "mindustry.maps.filters.FilterOption$BlockOption", "mindustry.maps.filters.FilterOption$SliderOption", "mindustry.maps.filters.GenerateFilter", "mindustry.maps.filters.GenerateFilter$GenerateInput", "mindustry.maps.filters.GenerateFilter$GenerateInput$TileProvider", "mindustry.maps.filters.MedianFilter", "mindustry.maps.filters.MirrorFilter", "mindustry.maps.filters.NoiseFilter", "mindustry.maps.filters.OreFilter", "mindustry.maps.filters.OreMedianFilter", "mindustry.maps.filters.RiverNoiseFilter", "mindustry.maps.filters.ScatterFilter", "mindustry.maps.filters.TerrainFilter", "mindustry.maps.generators.BasicGenerator", "mindustry.maps.generators.BasicGenerator$DistanceHeuristic", "mindustry.maps.generators.BasicGenerator$TileHueristic", "mindustry.maps.generators.Generator", "mindustry.maps.generators.MapGenerator", "mindustry.maps.generators.MapGenerator$Decoration", "mindustry.maps.generators.RandomGenerator", "mindustry.maps.zonegen.DesertWastesGenerator", "mindustry.maps.zonegen.OvergrowthGenerator", "mindustry.type.Category", "mindustry.type.ErrorContent", "mindustry.type.Item", "mindustry.type.ItemStack", "mindustry.type.ItemType", "mindustry.type.Liquid", "mindustry.type.LiquidStack", "mindustry.type.Mech", "mindustry.type.Publishable", "mindustry.type.StatusEffect", "mindustry.type.StatusEffect$TransitionHandler", "mindustry.type.TypeID", "mindustry.type.UnitType", "mindustry.type.Weapon", "mindustry.type.WeatherEvent", "mindustry.type.Zone", "mindustry.ui.Bar", "mindustry.ui.BorderImage", "mindustry.ui.Cicon", "mindustry.ui.ContentDisplay", "mindustry.ui.Fonts", "mindustry.ui.GridImage", "mindustry.ui.IconSize", "mindustry.ui.IntFormat", "mindustry.ui.ItemDisplay", "mindustry.ui.ItemImage", "mindustry.ui.ItemsDisplay", "mindustry.ui.Links", "mindustry.ui.Links$LinkEntry", "mindustry.ui.LiquidDisplay", "mindustry.ui.Minimap", "mindustry.ui.MobileButton", "mindustry.ui.MultiReqImage", "mindustry.ui.ReqImage", "mindustry.ui.Styles", "mindustry.ui.dialogs.AboutDialog", "mindustry.ui.dialogs.AdminsDialog", "mindustry.ui.dialogs.BansDialog", "mindustry.ui.dialogs.ColorPicker", "mindustry.ui.dialogs.ContentInfoDialog", "mindustry.ui.dialogs.ControlsDialog", "mindustry.ui.dialogs.CustomGameDialog", "mindustry.ui.dialogs.CustomRulesDialog", "mindustry.ui.dialogs.DatabaseDialog", "mindustry.ui.dialogs.DeployDialog", "mindustry.ui.dialogs.DeployDialog$View", "mindustry.ui.dialogs.DeployDialog$ZoneNode", "mindustry.ui.dialogs.DiscordDialog", "mindustry.ui.dialogs.FileChooser", "mindustry.ui.dialogs.FileChooser$FileHistory", "mindustry.ui.dialogs.FloatingDialog", "mindustry.ui.dialogs.GameOverDialog", "mindustry.ui.dialogs.HostDialog", "mindustry.ui.dialogs.JoinDialog", "mindustry.ui.dialogs.JoinDialog$Server", "mindustry.ui.dialogs.LanguageDialog", "mindustry.ui.dialogs.LoadDialog", "mindustry.ui.dialogs.LoadoutDialog", "mindustry.ui.dialogs.MapPlayDialog", "mindustry.ui.dialogs.MapsDialog", "mindustry.ui.dialogs.MinimapDialog", "mindustry.ui.dialogs.ModsDialog", "mindustry.ui.dialogs.PaletteDialog", "mindustry.ui.dialogs.PausedDialog", "mindustry.ui.dialogs.SaveDialog", "mindustry.ui.dialogs.SchematicsDialog", "mindustry.ui.dialogs.SchematicsDialog$SchematicImage", "mindustry.ui.dialogs.SchematicsDialog$SchematicInfoDialog", "mindustry.ui.dialogs.SettingsMenuDialog", "mindustry.ui.dialogs.TechTreeDialog", "mindustry.ui.dialogs.TechTreeDialog$LayoutNode", "mindustry.ui.dialogs.TechTreeDialog$TechTreeNode", "mindustry.ui.dialogs.TechTreeDialog$View", "mindustry.ui.dialogs.TraceDialog", "mindustry.ui.dialogs.ZoneInfoDialog", "mindustry.ui.fragments.BlockConfigFragment", "mindustry.ui.fragments.BlockInventoryFragment", "mindustry.ui.fragments.ChatFragment", "mindustry.ui.fragments.FadeInFragment", "mindustry.ui.fragments.Fragment", "mindustry.ui.fragments.HudFragment", "mindustry.ui.fragments.LoadingFragment", "mindustry.ui.fragments.MenuFragment", "mindustry.ui.fragments.MinimapFragment", "mindustry.ui.fragments.OverlayFragment", "mindustry.ui.fragments.PlacementFragment", "mindustry.ui.fragments.PlayerListFragment", "mindustry.ui.fragments.ScriptConsoleFragment", "mindustry.ui.layout.BranchTreeLayout", "mindustry.ui.layout.BranchTreeLayout$TreeAlignment", "mindustry.ui.layout.BranchTreeLayout$TreeLocation", "mindustry.ui.layout.RadialTreeLayout", "mindustry.ui.layout.TreeLayout", "mindustry.ui.layout.TreeLayout$TreeNode", "mindustry.world.Block", "mindustry.world.BlockStorage", "mindustry.world.Build", "mindustry.world.CachedTile", "mindustry.world.DirectionalItemBuffer", "mindustry.world.DirectionalItemBuffer$BufferItemStruct", "mindustry.world.Edges", "mindustry.world.ItemBuffer", "mindustry.world.LegacyColorMapper", "mindustry.world.LegacyColorMapper$LegacyBlock", "mindustry.world.Pos", "mindustry.world.StaticTree", "mindustry.world.Tile", "mindustry.world.WorldContext", "mindustry.world.blocks.Attributes", "mindustry.world.blocks.Autotiler", "mindustry.world.blocks.Autotiler$AutotilerHolder", "mindustry.world.blocks.BlockPart", "mindustry.world.blocks.BuildBlock", "mindustry.world.blocks.BuildBlock$BuildEntity", "mindustry.world.blocks.DoubleOverlayFloor", "mindustry.world.blocks.Floor", "mindustry.world.blocks.ItemSelection", "mindustry.world.blocks.LiquidBlock", "mindustry.world.blocks.OreBlock", "mindustry.world.blocks.OverlayFloor", "mindustry.world.blocks.PowerBlock", "mindustry.world.blocks.RespawnBlock", "mindustry.world.blocks.Rock", "mindustry.world.blocks.StaticWall", "mindustry.world.blocks.TreeBlock", "mindustry.world.blocks.defense.DeflectorWall", "mindustry.world.blocks.defense.DeflectorWall$DeflectorEntity", "mindustry.world.blocks.defense.Door", "mindustry.world.blocks.defense.Door$DoorEntity", "mindustry.world.blocks.defense.ForceProjector", "mindustry.world.blocks.defense.ForceProjector$ForceEntity", "mindustry.world.blocks.defense.ForceProjector$ShieldEntity", "mindustry.world.blocks.defense.MendProjector", "mindustry.world.blocks.defense.MendProjector$MendEntity", "mindustry.world.blocks.defense.OverdriveProjector", "mindustry.world.blocks.defense.OverdriveProjector$OverdriveEntity", "mindustry.world.blocks.defense.ShockMine", "mindustry.world.blocks.defense.SurgeWall", "mindustry.world.blocks.defense.Wall", "mindustry.world.blocks.defense.turrets.ArtilleryTurret", "mindustry.world.blocks.defense.turrets.BurstTurret", "mindustry.world.blocks.defense.turrets.ChargeTurret", "mindustry.world.blocks.defense.turrets.ChargeTurret$LaserTurretEntity", "mindustry.world.blocks.defense.turrets.CooledTurret", "mindustry.world.blocks.defense.turrets.DoubleTurret", "mindustry.world.blocks.defense.turrets.ItemTurret", "mindustry.world.blocks.defense.turrets.ItemTurret$ItemEntry", "mindustry.world.blocks.defense.turrets.ItemTurret$ItemTurretEntity", "mindustry.world.blocks.defense.turrets.LaserTurret", "mindustry.world.blocks.defense.turrets.LaserTurret$LaserTurretEntity", "mindustry.world.blocks.defense.turrets.LiquidTurret", "mindustry.world.blocks.defense.turrets.PowerTurret", "mindustry.world.blocks.defense.turrets.Turret", "mindustry.world.blocks.defense.turrets.Turret$AmmoEntry", "mindustry.world.blocks.defense.turrets.Turret$TurretEntity", "mindustry.world.blocks.distribution.ArmoredConveyor", "mindustry.world.blocks.distribution.BufferedItemBridge", "mindustry.world.blocks.distribution.BufferedItemBridge$BufferedItemBridgeEntity", "mindustry.world.blocks.distribution.Conveyor", "mindustry.world.blocks.distribution.Conveyor$ConveyorEntity", "mindustry.world.blocks.distribution.Conveyor$ItemPos", "mindustry.world.blocks.distribution.ExtendingItemBridge", "mindustry.world.blocks.distribution.ItemBridge", "mindustry.world.blocks.distribution.ItemBridge$ItemBridgeEntity", "mindustry.world.blocks.distribution.Junction", "mindustry.world.blocks.distribution.Junction$JunctionEntity", "mindustry.world.blocks.distribution.MassDriver", "mindustry.world.blocks.distribution.MassDriver$DriverBulletData", "mindustry.world.blocks.distribution.MassDriver$DriverState", "mindustry.world.blocks.distribution.MassDriver$MassDriverEntity", "mindustry.world.blocks.distribution.OverflowGate", "mindustry.world.blocks.distribution.OverflowGate$OverflowGateEntity", "mindustry.world.blocks.distribution.Router", "mindustry.world.blocks.distribution.Router$RouterEntity", "mindustry.world.blocks.distribution.Sorter", "mindustry.world.blocks.distribution.Sorter$SorterEntity", "mindustry.world.blocks.liquid.ArmoredConduit", "mindustry.world.blocks.liquid.Conduit", "mindustry.world.blocks.liquid.Conduit$ConduitEntity", "mindustry.world.blocks.liquid.LiquidBridge", "mindustry.world.blocks.liquid.LiquidExtendingBridge", "mindustry.world.blocks.liquid.LiquidJunction", "mindustry.world.blocks.liquid.LiquidOverflowGate", "mindustry.world.blocks.liquid.LiquidRouter", "mindustry.world.blocks.liquid.LiquidTank", "mindustry.world.blocks.logic.LogicBlock", "mindustry.world.blocks.logic.MessageBlock", "mindustry.world.blocks.logic.MessageBlock$MessageBlockEntity", "mindustry.world.blocks.power.Battery", "mindustry.world.blocks.power.BurnerGenerator", "mindustry.world.blocks.power.ConditionalConsumePower", "mindustry.world.blocks.power.DecayGenerator", "mindustry.world.blocks.power.ImpactReactor", "mindustry.world.blocks.power.ImpactReactor$FusionReactorEntity", "mindustry.world.blocks.power.ItemLiquidGenerator", "mindustry.world.blocks.power.ItemLiquidGenerator$ItemLiquidGeneratorEntity", "mindustry.world.blocks.power.LightBlock", "mindustry.world.blocks.power.LightBlock$LightEntity", "mindustry.world.blocks.power.NuclearReactor", "mindustry.world.blocks.power.NuclearReactor$NuclearReactorEntity", "mindustry.world.blocks.power.PowerDiode", "mindustry.world.blocks.power.PowerDistributor", "mindustry.world.blocks.power.PowerGenerator", "mindustry.world.blocks.power.PowerGenerator$GeneratorEntity", "mindustry.world.blocks.power.PowerGraph", "mindustry.world.blocks.power.PowerNode", "mindustry.world.blocks.power.SingleTypeGenerator", "mindustry.world.blocks.power.SolarGenerator", "mindustry.world.blocks.power.ThermalGenerator", "mindustry.world.blocks.production.Cultivator", "mindustry.world.blocks.production.Cultivator$CultivatorEntity", "mindustry.world.blocks.production.Drill", "mindustry.world.blocks.production.Drill$DrillEntity", "mindustry.world.blocks.production.Fracker", "mindustry.world.blocks.production.Fracker$FrackerEntity", "mindustry.world.blocks.production.GenericCrafter", "mindustry.world.blocks.production.GenericCrafter$GenericCrafterEntity", "mindustry.world.blocks.production.GenericSmelter", "mindustry.world.blocks.production.Incinerator", "mindustry.world.blocks.production.Incinerator$IncineratorEntity", "mindustry.world.blocks.production.LiquidConverter", "mindustry.world.blocks.production.Pump", "mindustry.world.blocks.production.Separator", "mindustry.world.blocks.production.SolidPump", "mindustry.world.blocks.production.SolidPump$SolidPumpEntity", "mindustry.world.blocks.sandbox.ItemSource", "mindustry.world.blocks.sandbox.ItemSource$ItemSourceEntity", "mindustry.world.blocks.sandbox.ItemVoid", "mindustry.world.blocks.sandbox.LiquidSource", "mindustry.world.blocks.sandbox.LiquidSource$LiquidSourceEntity", "mindustry.world.blocks.sandbox.PowerSource", "mindustry.world.blocks.sandbox.PowerVoid", "mindustry.world.blocks.storage.CoreBlock", "mindustry.world.blocks.storage.CoreBlock$CoreEntity", "mindustry.world.blocks.storage.LaunchPad", "mindustry.world.blocks.storage.StorageBlock", "mindustry.world.blocks.storage.StorageBlock$StorageBlockEntity", "mindustry.world.blocks.storage.Unloader", "mindustry.world.blocks.storage.Unloader$UnloaderEntity", "mindustry.world.blocks.storage.Vault", "mindustry.world.blocks.units.CommandCenter", "mindustry.world.blocks.units.CommandCenter$CommandCenterEntity", "mindustry.world.blocks.units.MechPad", "mindustry.world.blocks.units.MechPad$MechFactoryEntity", "mindustry.world.blocks.units.RallyPoint", "mindustry.world.blocks.units.RepairPoint", "mindustry.world.blocks.units.RepairPoint$RepairPointEntity", "mindustry.world.blocks.units.UnitFactory", "mindustry.world.blocks.units.UnitFactory$UnitFactoryEntity", "mindustry.world.consumers.Consume", "mindustry.world.consumers.ConsumeItemFilter", "mindustry.world.consumers.ConsumeItems", "mindustry.world.consumers.ConsumeLiquid", "mindustry.world.consumers.ConsumeLiquidBase", "mindustry.world.consumers.ConsumeLiquidFilter", "mindustry.world.consumers.ConsumePower", "mindustry.world.consumers.ConsumeType", "mindustry.world.consumers.Consumers", "mindustry.world.meta.Attribute", "mindustry.world.meta.BlockBars", "mindustry.world.meta.BlockFlag", "mindustry.world.meta.BlockGroup", "mindustry.world.meta.BlockStat", "mindustry.world.meta.BlockStats", "mindustry.world.meta.BuildVisibility", "mindustry.world.meta.PowerType", "mindustry.world.meta.Producers", "mindustry.world.meta.StatCategory", "mindustry.world.meta.StatUnit", "mindustry.world.meta.StatValue", "mindustry.world.meta.values.AmmoListValue", "mindustry.world.meta.values.BooleanValue", "mindustry.world.meta.values.BoosterListValue", "mindustry.world.meta.values.ItemFilterValue", "mindustry.world.meta.values.ItemListValue", "mindustry.world.meta.values.LiquidFilterValue", "mindustry.world.meta.values.LiquidValue", "mindustry.world.meta.values.NumberValue", "mindustry.world.meta.values.StringValue", "mindustry.world.modules.BlockModule", "mindustry.world.modules.ConsumeModule", "mindustry.world.modules.ItemModule", "mindustry.world.modules.ItemModule$ItemCalculator", "mindustry.world.modules.ItemModule$ItemConsumer", "mindustry.world.modules.LiquidModule", "mindustry.world.modules.LiquidModule$LiquidCalculator", "mindustry.world.modules.LiquidModule$LiquidConsumer", "mindustry.world.modules.PowerModule", "mindustry.world.producers.Produce", "mindustry.world.producers.ProduceItem");
}
\ No newline at end of file
diff --git a/core/src/mindustry/mod/ContentParser.java b/core/src/mindustry/mod/ContentParser.java
index 3ea54d6160..aa6048d833 100644
--- a/core/src/mindustry/mod/ContentParser.java
+++ b/core/src/mindustry/mod/ContentParser.java
@@ -333,8 +333,8 @@ public class ContentParser{
}
private void readBundle(ContentType type, String name, JsonValue value){
- UnlockableContent cont = Vars.content.getByName(type, name) instanceof UnlockableContent ?
- Vars.content.getByName(type, name) : null;
+ UnlockableContent cont = locate(type, name) instanceof UnlockableContent ?
+ locate(type, name) : null;
String entryName = cont == null ? type + "." + currentMod.name + "-" + name + "." : type + "." + cont.name + ".";
I18NBundle bundle = Core.bundle;
diff --git a/core/src/mindustry/mod/ModListing.java b/core/src/mindustry/mod/ModListing.java
new file mode 100644
index 0000000000..d0c1d80094
--- /dev/null
+++ b/core/src/mindustry/mod/ModListing.java
@@ -0,0 +1,19 @@
+package mindustry.mod;
+
+/** Mod listing as a data class. */
+public class ModListing{
+ public String repo, name, author, lastUpdated, description;
+ public int stars;
+
+ @Override
+ public String toString(){
+ return "ModListing{" +
+ "repo='" + repo + '\'' +
+ ", name='" + name + '\'' +
+ ", author='" + author + '\'' +
+ ", lastUpdated='" + lastUpdated + '\'' +
+ ", description='" + description + '\'' +
+ ", stars=" + stars +
+ '}';
+ }
+}
diff --git a/core/src/mindustry/mod/Mods.java b/core/src/mindustry/mod/Mods.java
index e4da45357b..ef4af6a8ec 100644
--- a/core/src/mindustry/mod/Mods.java
+++ b/core/src/mindustry/mod/Mods.java
@@ -2,7 +2,6 @@ package mindustry.mod;
import arc.*;
import arc.assets.*;
-import arc.struct.*;
import arc.files.*;
import arc.func.*;
import arc.graphics.*;
@@ -10,6 +9,7 @@ import arc.graphics.Texture.*;
import arc.graphics.g2d.*;
import arc.graphics.g2d.TextureAtlas.*;
import arc.scene.ui.*;
+import arc.struct.*;
import arc.util.*;
import arc.util.ArcAnnotate.*;
import arc.util.io.*;
@@ -85,6 +85,7 @@ public class Mods implements Loadable{
try{
mods.add(loadMod(dest));
requiresReload = true;
+ sortMods();
}catch(IOException e){
dest.delete();
throw e;
@@ -142,6 +143,17 @@ public class Mods implements Loadable{
@Override
public void loadSync(){
+ for(LoadedMod mod : mods){
+ //try to load icon for each mod that can have one
+ if(mod.root.child("icon.png").exists()){
+ try{
+ mod.iconTexture = new Texture(mod.root.child("icon.png"));
+ }catch(Throwable t){
+ Log.err("Failed to load icon for mod '" + mod.name + "'.", t);
+ }
+ }
+ }
+
if(packer == null) return;
Time.mark();
@@ -408,6 +420,7 @@ public class Mods implements Loadable{
//TODO make it less epic
Core.atlas = new TextureAtlas(Core.files.internal("sprites/sprites.atlas"));
+ mods.each(LoadedMod::dispose);
mods.clear();
Core.bundle = I18NBundle.createBundle(Core.files.internal("bundles/bundle"), Core.bundle.getLocale());
load();
@@ -499,10 +512,8 @@ public class Mods implements Loadable{
for(ContentType type : ContentType.all){
Fi folder = contentRoot.child(type.name().toLowerCase() + "s");
if(folder.exists()){
- for(Fi file : folder.list()){
- if(file.extension().equals("json") || file.extension().equals("hjson")){
- runs.add(new LoadRun(type, file, mod));
- }
+ for(Fi file : folder.findAll(f -> f.extension().equals("json") || f.extension().equals("hjson"))){
+ runs.add(new LoadRun(type, file, mod));
}
}
}
@@ -643,7 +654,7 @@ public class Mods implements Loadable{
}
/** Represents a plugin that has been loaded from a jar file.*/
- public static class LoadedMod implements Publishable{
+ public static class LoadedMod implements Publishable, Disposable{
/** The location of this mod's zip file/folder on the disk. */
public final Fi file;
/** The root zip file; points to the contents of this mod. In the case of folders, this is the same as the mod's file. */
@@ -664,6 +675,8 @@ public class Mods implements Loadable{
public ObjectSet erroredContent = new ObjectSet<>();
/** Current state of this mod. */
public ModState state = ModState.enabled;
+ /** Icon texture. Should be disposed. */
+ public @Nullable Texture iconTexture;
public LoadedMod(Fi file, Fi root, Mod main, ModMeta meta){
this.root = root;
@@ -701,6 +714,13 @@ public class Mods implements Loadable{
return Version.build >= Strings.parseInt(meta.minGameVersion, 0);
}
+ @Override
+ public void dispose(){
+ if(iconTexture != null){
+ iconTexture.dispose();
+ }
+ }
+
@Override
public String getSteamID(){
return Core.settings.getString(name + "-steamid", null);
diff --git a/core/src/mindustry/mod/Scripts.java b/core/src/mindustry/mod/Scripts.java
index 7a39b774a7..5ac96fbb0a 100644
--- a/core/src/mindustry/mod/Scripts.java
+++ b/core/src/mindustry/mod/Scripts.java
@@ -21,7 +21,8 @@ public class Scripts implements Disposable{
context.setClassShutter(type -> (ClassAccess.allowedClassNames.contains(type) || type.startsWith("$Proxy") ||
type.startsWith("adapter") || type.contains("PrintStream") ||
type.startsWith("mindustry")) && !type.equals("mindustry.mod.ClassAccess"));
-
+ context.getWrapFactory().setJavaPrimitiveWrap(false);
+
scope = new ImporterTopLevel(context);
wrapper = Core.files.internal("scripts/wrapper.js").readString();
diff --git a/core/src/mindustry/net/Administration.java b/core/src/mindustry/net/Administration.java
index cd490eed04..9f068095d9 100644
--- a/core/src/mindustry/net/Administration.java
+++ b/core/src/mindustry/net/Administration.java
@@ -1,10 +1,11 @@
package mindustry.net;
import arc.*;
-import mindustry.annotations.Annotations.*;
import arc.struct.*;
-import mindustry.Vars;
-
+import arc.util.ArcAnnotate.*;
+import mindustry.*;
+import mindustry.annotations.Annotations.*;
+import mindustry.entities.type.*;
import static mindustry.Vars.headless;
import static mindustry.game.EventType.*;
@@ -14,16 +15,29 @@ public class Administration{
private ObjectMap playerInfo = new ObjectMap<>();
private Array bannedIPs = new Array<>();
private Array whitelist = new Array<>();
+ private Array chatFilters = new Array<>();
public Administration(){
- Core.settings.defaults(
- "strict", true,
- "servername", "Server"
- );
-
load();
}
+ /** Adds a chat filter. This will transform the chat messages of every player.
+ * This functionality can be used to implement things like swear filters and special commands.
+ * Note that commands (starting with /) are not filtered.*/
+ public void addChatFilter(ChatFilter filter){
+ chatFilters.add(filter);
+ }
+
+ /** Filters out a chat message. */
+ public @Nullable String filterMessage(Player player, String message){
+ String current = message;
+ for(ChatFilter f : chatFilters){
+ current = f.filter(player, message);
+ if(current == null) return null;
+ }
+ return current;
+ }
+
public int getPlayerLimit(){
return Core.settings.getInt("playerlimit", 0);
}
@@ -32,21 +46,12 @@ public class Administration{
Core.settings.putSave("playerlimit", limit);
}
- public void setStrict(boolean on){
- Core.settings.putSave("strict", on);
- }
-
public boolean getStrict(){
- return Core.settings.getBool("strict");
+ return Config.strict.bool();
}
public boolean allowsCustomClients(){
- return Core.settings.getBool("allow-custom", !headless);
- }
-
- public void setCustomClients(boolean allowed){
- Core.settings.put("allow-custom", allowed);
- Core.settings.save();
+ return Config.allowCustomClients.bool();
}
/** Call when a player joins to update their information here. */
@@ -200,11 +205,7 @@ public class Administration{
}
public boolean isWhitelistEnabled(){
- return Core.settings.getBool("whitelist", false);
- }
-
- public void setWhitelist(boolean enabled){
- Core.settings.putSave("whitelist", enabled);
+ return Config.whitelist.bool();
}
public boolean isWhitelisted(String id, String usid){
@@ -314,6 +315,83 @@ public class Administration{
whitelist = Core.settings.getObject("whitelisted", Array.class, Array::new);
}
+ /** Server configuration definition. Each config value can be a string, boolean or number. */
+ public enum Config{
+ name("The server name as displayed on clients.", "Server", "servername"),
+ port("The port to host on.", Vars.port),
+ autoUpdate("Whether to auto-update and exit when a new bleeding-edge update arrives.", false),
+ showConnectMessages("Whether to display connect/disconnect messages.", true),
+ enableVotekick("Whether votekick is enabled.", true),
+ startCommands("Commands run at startup. This should be a comma-separated list.", ""),
+ crashReport("Whether to send crash reports.", false, "crashreport"),
+ logging("Whether to log everything to files.", true),
+ strict("Whether strict mode is on - corrects positions and prevents duplicate UUIDs.", true),
+ socketInput("Allows a local application to control this server through a local TCP socket.", false, "socket", () -> Events.fire(Trigger.socketConfigChanged)),
+ socketInputPort("The port for socket input.", 6859, () -> Events.fire(Trigger.socketConfigChanged)),
+ socketInputAddress("The bind address for socket input.", "localhost", () -> Events.fire(Trigger.socketConfigChanged)),
+ allowCustomClients("Whether custom clients are allowed to connect.", !headless, "allow-custom"),
+ whitelist("Whether the whitelist is used.", false),
+ motd("The message displayed to people on connection.", "off");
+
+ public static final Config[] all = values();
+
+ public final Object defaultValue;
+ public final String key, description;
+ final Runnable changed;
+
+ Config(String description, Object def){
+ this(description, def, null, null);
+ }
+
+ Config(String description, Object def, String key){
+ this(description, def, key, null);
+ }
+
+ Config(String description, Object def, Runnable changed){
+ this(description, def, null, changed);
+ }
+
+ Config(String description, Object def, String key, Runnable changed){
+ this.description = description;
+ this.key = key == null ? name() : key;
+ this.defaultValue = def;
+ this.changed = changed == null ? () -> {} : changed;
+ }
+
+ public boolean isNum(){
+ return defaultValue instanceof Integer;
+ }
+
+ public boolean isBool(){
+ return defaultValue instanceof Boolean;
+ }
+
+ public boolean isString(){
+ return defaultValue instanceof String;
+ }
+
+ public Object get(){
+ return Core.settings.get(key, defaultValue);
+ }
+
+ public boolean bool(){
+ return Core.settings.getBool(key, (Boolean)defaultValue);
+ }
+
+ public int num(){
+ return Core.settings.getInt(key, (Integer)defaultValue);
+ }
+
+ public String string(){
+ return Core.settings.getString(key, (String)defaultValue);
+ }
+
+ public void set(Object value){
+ Core.settings.putSave(key, value);
+ changed.run();
+ }
+ }
+
@Serialize
public static class PlayerInfo{
public String id;
@@ -334,6 +412,11 @@ public class Administration{
}
}
+ public interface ChatFilter{
+ /** @return the filtered message; a null string signals that the message should not be sent. */
+ @Nullable String filter(Player player, String message);
+ }
+
public static class TraceInfo{
public String ip, uuid;
public boolean modded, mobile;
diff --git a/core/src/mindustry/net/BeControl.java b/core/src/mindustry/net/BeControl.java
new file mode 100644
index 0000000000..ee084f743a
--- /dev/null
+++ b/core/src/mindustry/net/BeControl.java
@@ -0,0 +1,173 @@
+package mindustry.net;
+
+import arc.*;
+import arc.Net.*;
+import arc.files.*;
+import arc.func.*;
+import arc.util.*;
+import arc.util.async.*;
+import arc.util.serialization.*;
+import mindustry.core.*;
+import mindustry.gen.*;
+import mindustry.graphics.*;
+import mindustry.net.Administration.*;
+import mindustry.net.Packets.*;
+import mindustry.ui.*;
+import mindustry.ui.dialogs.*;
+
+import java.io.*;
+import java.net.*;
+
+import static mindustry.Vars.*;
+
+/** Handles control of bleeding edge builds. */
+public class BeControl{
+ private static final int updateInterval = 60 * 2;
+
+ private AsyncExecutor executor = new AsyncExecutor(1);
+ private boolean checkUpdates = true;
+ private boolean updateAvailable;
+ private String updateUrl;
+ private int updateBuild;
+
+ /** @return whether this is a bleeding edge build. */
+ public boolean active(){
+ return Version.type.equals("bleeding-edge");
+ }
+
+ public BeControl(){
+ if(active()){
+ Timer.schedule(() -> {
+ if(checkUpdates && !mobile){
+ checkUpdate(t -> {});
+ }
+ }, 1, updateInterval);
+ }
+ }
+
+ /** asynchronously checks for updates. */
+ public void checkUpdate(Boolc done){
+ Core.net.httpGet("https://api.github.com/repos/Anuken/MindustryBuilds/releases/latest", res -> {
+ if(res.getStatus() == HttpStatus.OK){
+ Jval val = Jval.read(res.getResultAsString());
+ int newBuild = Strings.parseInt(val.getString("tag_name", "0"));
+ if(newBuild > Version.build){
+ Jval asset = val.get("assets").asArray().find(v -> v.getString("name", "").startsWith(headless ? "Mindustry-BE-Server" : "Mindustry-BE-Desktop"));
+ String url = asset.getString("browser_download_url", "");
+ updateAvailable = true;
+ updateBuild = newBuild;
+ updateUrl = url;
+ showUpdateDialog();
+ Core.app.post(() -> done.get(true));
+ }else{
+ Core.app.post(() -> done.get(false));
+ }
+ }else{
+ Core.app.post(() -> done.get(false));
+ }
+ }, error -> {
+ if(!headless){
+ ui.showException(error);
+ }else{
+ error.printStackTrace();
+ }
+ });
+ }
+
+ /** @return whether a new update is available */
+ public boolean isUpdateAvailable(){
+ return updateAvailable;
+ }
+
+ /** shows the dialog for updating the game on desktop, or a prompt for doing so on the server */
+ public void showUpdateDialog(){
+ if(!updateAvailable) return;
+
+ if(!headless){
+ checkUpdates = false;
+ ui.showCustomConfirm(Core.bundle.format("be.update", "") + " " + updateBuild, "$be.update.confirm", "$ok", "$be.ignore", () -> {
+ boolean[] cancel = {false};
+ float[] progress = {0};
+ int[] length = {0};
+ Fi file = bebuildDirectory.child("client-be-" + updateBuild + ".jar");
+
+ FloatingDialog dialog = new FloatingDialog("$be.updating");
+ download(updateUrl, file, i -> length[0] = i, v -> progress[0] = v, () -> cancel[0], () -> {
+ try{
+ Runtime.getRuntime().exec(new String[]{"java", "-DlastBuild=" + Version.build, "-Dberestart", "-jar", file.absolutePath()});
+ System.exit(0);
+ }catch(IOException e){
+ ui.showException(e);
+ }
+ }, e -> {
+ dialog.hide();
+ ui.showException(e);
+ });
+
+ dialog.cont.add(new Bar(() -> length[0] == 0 ? Core.bundle.get("be.updating") : (int)(progress[0] * length[0]) / 1024/ 1024 + "/" + length[0]/1024/1024 + " MB", () -> Pal.accent, () -> progress[0])).width(400f).height(70f);
+ dialog.buttons.addImageTextButton("$cancel", Icon.cancelSmall, () -> {
+ cancel[0] = true;
+ dialog.hide();
+ }).size(210f, 64f);
+ dialog.setFillParent(false);
+ dialog.show();
+ }, () -> checkUpdates = false);
+ }else{
+ Log.info("&lcA new update is available: &lyBleeding Edge build {0}", updateBuild);
+ if(Config.autoUpdate.bool()){
+ Log.info("&lcAuto-downloading next version...");
+
+ try{
+ //download new file from github
+ Fi source = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
+ Fi dest = source.sibling("server-be-" + updateBuild + ".jar");
+
+ download(updateUrl, dest,
+ len -> Core.app.post(() -> Log.info("&ly| Size: {0} MB.", Strings.fixed((float)len / 1024 / 1024, 2))),
+ progress -> {},
+ () -> false,
+ () -> Core.app.post(() -> {
+ netServer.kickAll(KickReason.serverRestarting);
+ Threads.sleep(32);
+
+ Log.info("&lcVersion downloaded, exiting. Note that if you are not using a auto-restart script, the server will not restart automatically.");
+ //replace old file with new
+ dest.copyTo(source);
+ dest.delete();
+ System.exit(2); //this will cause a restart if using the script
+ }),
+ Throwable::printStackTrace);
+ }catch(Exception e){
+ e.printStackTrace();
+ }
+ }
+ checkUpdates = false;
+ }
+ }
+
+ private void download(String furl, Fi dest, Intc length, Floatc progressor, Boolp canceled, Runnable done, Cons error){
+ executor.submit(() -> {
+ try{
+ HttpURLConnection con = (HttpURLConnection)new URL(furl).openConnection();
+ BufferedInputStream in = new BufferedInputStream(con.getInputStream());
+ OutputStream out = dest.write(false, 4096);
+
+ byte[] data = new byte[4096];
+ long size = con.getContentLength();
+ long counter = 0;
+ length.get((int)size);
+ int x;
+ while((x = in.read(data, 0, data.length)) >= 0 && !canceled.get()){
+ counter += x;
+ progressor.get((float)counter / (float)size);
+ out.write(data, 0, x);
+ }
+ out.close();
+ in.close();
+ if(!canceled.get()) done.run();
+ }catch(Throwable e){
+ error.get(e);
+ }
+ });
+ }
+}
diff --git a/core/src/mindustry/net/CrashSender.java b/core/src/mindustry/net/CrashSender.java
index 43692c77d6..1b24b2af3a 100644
--- a/core/src/mindustry/net/CrashSender.java
+++ b/core/src/mindustry/net/CrashSender.java
@@ -27,7 +27,9 @@ public class CrashSender{
exception.printStackTrace();
//don't create crash logs for custom builds, as it's expected
- if(Version.build == -1 || (System.getProperty("user.name").equals("anuke") && "release".equals(Version.modifier))) return;
+ if(Version.build == -1 || (System.getProperty("user.name").equals("anuke") && "release".equals(Version.modifier))){
+ ret();
+ }
//attempt to load version regardless
if(Version.number == 0){
@@ -63,7 +65,7 @@ public class CrashSender{
try{
//check crash report setting
if(!Core.settings.getBool("crashreport", true)){
- return;
+ ret();
}
}catch(Throwable ignored){
//if there's no settings init we don't know what the user wants but chances are it's an important crash, so send it anyway
@@ -72,14 +74,14 @@ public class CrashSender{
try{
//check any mods - if there are any, don't send reports
if(Vars.mods != null && !Vars.mods.list().isEmpty()){
- return;
+ ret();
}
}catch(Throwable ignored){
}
//do not send exceptions that occur for versions that can't be parsed
if(Version.number == 0){
- return;
+ ret();
}
boolean netActive = false, netServer = false;
@@ -130,12 +132,16 @@ public class CrashSender{
while(!sent[0]){
Thread.sleep(30);
}
- }catch(InterruptedException ignored){
- }
+ }catch(InterruptedException ignored){}
}catch(Throwable death){
death.printStackTrace();
- System.exit(1);
}
+
+ ret();
+ }
+
+ private static void ret(){
+ System.exit(1);
}
private static void httpPost(String url, String content, Cons success, Cons failure){
diff --git a/core/src/mindustry/net/Host.java b/core/src/mindustry/net/Host.java
index 387fafc043..5c3b010c45 100644
--- a/core/src/mindustry/net/Host.java
+++ b/core/src/mindustry/net/Host.java
@@ -1,5 +1,6 @@
package mindustry.net;
+import mindustry.*;
import mindustry.game.*;
public class Host{
@@ -11,7 +12,7 @@ public class Host{
public final int version;
public final String versionType;
public final Gamemode mode;
- public int ping;
+ public int ping, port = Vars.port;
public Host(String name, String address, String mapname, int wave, int players, int version, String versionType, Gamemode mode, int playerLimit){
this.name = name;
diff --git a/core/src/mindustry/net/NetworkIO.java b/core/src/mindustry/net/NetworkIO.java
index d877ac6e3a..1c6e1acba2 100644
--- a/core/src/mindustry/net/NetworkIO.java
+++ b/core/src/mindustry/net/NetworkIO.java
@@ -1,12 +1,12 @@
package mindustry.net;
-import arc.*;
import arc.util.*;
import mindustry.core.*;
import mindustry.entities.type.*;
import mindustry.game.*;
import mindustry.io.*;
import mindustry.maps.Map;
+import mindustry.net.Administration.*;
import java.io.*;
import java.nio.*;
@@ -62,7 +62,7 @@ public class NetworkIO{
}
public static ByteBuffer writeServerData(){
- String name = (headless ? Core.settings.getString("servername") : player.name);
+ String name = (headless ? Config.name.string() : player.name);
String map = world.getMap() == null ? "None" : world.getMap().name();
ByteBuffer buffer = ByteBuffer.allocate(256);
diff --git a/core/src/mindustry/net/Packets.java b/core/src/mindustry/net/Packets.java
index 683983d69b..98a3bad857 100644
--- a/core/src/mindustry/net/Packets.java
+++ b/core/src/mindustry/net/Packets.java
@@ -15,7 +15,8 @@ public class Packets{
public enum KickReason{
kick, clientOutdated, serverOutdated, banned, gameover(true), recentKick,
- nameInUse, idInUse, nameEmpty, customClient, serverClose, vote, typeMismatch, whitelist, playerLimit;
+ nameInUse, idInUse, nameEmpty, customClient, serverClose, vote, typeMismatch,
+ whitelist, playerLimit, serverRestarting;
public final boolean quiet;
diff --git a/core/src/mindustry/type/Weapon.java b/core/src/mindustry/type/Weapon.java
index 0e3583a552..175abd1d24 100644
--- a/core/src/mindustry/type/Weapon.java
+++ b/core/src/mindustry/type/Weapon.java
@@ -55,6 +55,8 @@ public class Weapon{
public float shotDelay = 0;
/** whether shooter rotation is ignored when shooting. */
public boolean ignoreRotation = false;
+ /** if turnCursor is false for a mech, how far away will the weapon target. */
+ public float targetDistance = 1f;
public Sound shootSound = Sounds.pew;
diff --git a/core/src/mindustry/ui/Bar.java b/core/src/mindustry/ui/Bar.java
index c04a25167f..8c23ec0ad3 100644
--- a/core/src/mindustry/ui/Bar.java
+++ b/core/src/mindustry/ui/Bar.java
@@ -12,7 +12,7 @@ import arc.util.pooling.*;
import mindustry.gen.*;
public class Bar extends Element{
- private static Rectangle scissor = new Rectangle();
+ private static Rect scissor = new Rect();
private Floatp fraction;
private String name = "";
diff --git a/core/src/mindustry/ui/ItemsDisplay.java b/core/src/mindustry/ui/ItemsDisplay.java
index 432417b305..d59a579c16 100644
--- a/core/src/mindustry/ui/ItemsDisplay.java
+++ b/core/src/mindustry/ui/ItemsDisplay.java
@@ -39,9 +39,9 @@ public class ItemsDisplay extends Table{
private String format(Item item){
builder.setLength(0);
builder.append(ui.formatAmount(data.items().get(item, 0)));
- if(!state.is(State.menu) && !state.teams.get(player.getTeam()).cores.isEmpty() && state.teams.get(player.getTeam()).cores.first().entity != null && state.teams.get(player.getTeam()).cores.first().entity.items.get(item) > 0){
+ if(!state.is(State.menu) && player.getTeam().data().hasCore() && player.getTeam().core().items.get(item) > 0){
builder.append(" [unlaunched]+ ");
- builder.append(ui.formatAmount(state.teams.get(player.getTeam()).cores.first().entity.items.get(item)));
+ builder.append(ui.formatAmount(state.teams.get(player.getTeam()).core().items.get(item)));
}
return builder.toString();
}
diff --git a/core/src/mindustry/ui/Minimap.java b/core/src/mindustry/ui/Minimap.java
index b724f4dd39..bbb81a7f00 100644
--- a/core/src/mindustry/ui/Minimap.java
+++ b/core/src/mindustry/ui/Minimap.java
@@ -36,7 +36,7 @@ public class Minimap extends Table{
Draw.rect(renderer.minimap.getRegion(), x + width / 2f, y + height / 2f, width, height);
if(renderer.minimap.getTexture() != null){
- renderer.minimap.drawEntities(x, y, width, height, false);
+ renderer.minimap.drawEntities(x, y, width, height, 0.75f, false);
}
}
}).size(140f);
@@ -83,7 +83,7 @@ public class Minimap extends Table{
@Override
public void clicked(InputEvent event, float x, float y){
- ui.minimap.show();
+ ui.minimapfrag.toggle();
}
});
diff --git a/core/src/mindustry/ui/dialogs/CustomRulesDialog.java b/core/src/mindustry/ui/dialogs/CustomRulesDialog.java
index 54e4720d65..73eb5a9efa 100644
--- a/core/src/mindustry/ui/dialogs/CustomRulesDialog.java
+++ b/core/src/mindustry/ui/dialogs/CustomRulesDialog.java
@@ -142,6 +142,7 @@ public class CustomRulesDialog extends FloatingDialog{
check("$rules.reactorexplosions", b -> rules.reactorExplosions = b, () -> rules.reactorExplosions);
number("$rules.buildcostmultiplier", false, f -> rules.buildCostMultiplier = f, () -> rules.buildCostMultiplier, () -> !rules.infiniteResources);
number("$rules.buildspeedmultiplier", f -> rules.buildSpeedMultiplier = f, () -> rules.buildSpeedMultiplier);
+ number("$rules.blockhealthmultiplier", f -> rules.blockHealthMultiplier = f, () -> rules.blockHealthMultiplier);
main.addButton("$configure",
() -> loadoutDialog.show(Blocks.coreShard.itemCapacity, rules.loadout,
diff --git a/core/src/mindustry/ui/dialogs/DeployDialog.java b/core/src/mindustry/ui/dialogs/DeployDialog.java
index dda43d0e13..811caca161 100644
--- a/core/src/mindustry/ui/dialogs/DeployDialog.java
+++ b/core/src/mindustry/ui/dialogs/DeployDialog.java
@@ -33,7 +33,7 @@ public class DeployDialog extends FloatingDialog{
private final float nodeSize = Scl.scl(230f);
private ObjectSet nodes = new ObjectSet<>();
private ZoneInfoDialog info = new ZoneInfoDialog();
- private Rectangle bounds = new Rectangle();
+ private Rect bounds = new Rect();
private View view = new View();
public DeployDialog(){
diff --git a/core/src/mindustry/ui/dialogs/JoinDialog.java b/core/src/mindustry/ui/dialogs/JoinDialog.java
index 4c8ae3cc58..d3e154b3b1 100644
--- a/core/src/mindustry/ui/dialogs/JoinDialog.java
+++ b/core/src/mindustry/ui/dialogs/JoinDialog.java
@@ -288,7 +288,12 @@ public class JoinDialog extends FloatingDialog{
local.table(Tex.button, t -> t.label(() -> "[accent]" + Core.bundle.get("hosts.discovering.any") + Strings.animated(Time.time(), 4, 10f, ".")).pad(10f)).growX();
net.discoverServers(this::addLocalHost, this::finishLocalHosts);
for(String host : defaultServers){
- net.pingHost(host, port, this::addLocalHost, e -> {});
+ String resaddress = host.contains(":") ? host.split(":")[0] : host;
+ int resport = host.contains(":") ? Strings.parseInt(host.split(":")[1]) : port;
+ net.pingHost(resaddress, resport, res -> {
+ res.port = resport;
+ addLocalHost(res);
+ }, e -> {});
}
}
@@ -314,7 +319,7 @@ public class JoinDialog extends FloatingDialog{
local.row();
- TextButton button = local.addButton("", Styles.cleart, () -> safeConnect(host.address, port, host.version))
+ TextButton button = local.addButton("", Styles.cleart, () -> safeConnect(host.address, host.port, host.version))
.width(w).pad(5f).get();
button.clearChildren();
buildServer(host, button);
@@ -362,7 +367,7 @@ public class JoinDialog extends FloatingDialog{
servers = Core.settings.getObject("server-list", Array.class, Array::new);
//get servers
- Core.net.httpGet(serverJsonURL, result -> {
+ Core.net.httpGet(becontrol.active() ? serverJsonBeURL : serverJsonURL, result -> {
try{
Jval val = Jval.read(result.getResultAsString());
Core.app.post(() -> {
diff --git a/core/src/mindustry/ui/dialogs/ModsDialog.java b/core/src/mindustry/ui/dialogs/ModsDialog.java
index 96b71b6861..4b42f64d80 100644
--- a/core/src/mindustry/ui/dialogs/ModsDialog.java
+++ b/core/src/mindustry/ui/dialogs/ModsDialog.java
@@ -32,7 +32,7 @@ public class ModsDialog extends FloatingDialog{
buttons.row();
- buttons.addImageTextButton("$mods.guide", Icon.wiki,
+ buttons.addImageTextButton("$mods.guide", Icon.link,
() -> Core.net.openURI(modGuideURL))
.size(210, 64f);
diff --git a/core/src/mindustry/ui/dialogs/SchematicsDialog.java b/core/src/mindustry/ui/dialogs/SchematicsDialog.java
index d12bc4af54..1747cdf2a0 100644
--- a/core/src/mindustry/ui/dialogs/SchematicsDialog.java
+++ b/core/src/mindustry/ui/dialogs/SchematicsDialog.java
@@ -163,7 +163,7 @@ public class SchematicsDialog extends FloatingDialog{
setup();
ui.showInfoFade("$schematic.saved");
showInfo(s);
- }catch(Exception e){
+ }catch(Throwable e){
ui.showException(e);
}
}).marginLeft(12f).disabled(b -> Core.app.getClipboardText() == null || !Core.app.getClipboardText().startsWith(schematicBaseStart));
diff --git a/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java b/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java
index 4c01c10abb..3ce8457ec1 100644
--- a/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java
+++ b/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java
@@ -229,6 +229,7 @@ public class SettingsMenuDialog extends SettingsDialog{
game.checkPref("savecreate", true);
game.checkPref("blockreplace", true);
game.checkPref("conveyorpathfinding", true);
+ game.checkPref("coreselect", false);
game.checkPref("hints", true);
if(!mobile){
game.checkPref("buildautopause", false);
diff --git a/core/src/mindustry/ui/dialogs/TechTreeDialog.java b/core/src/mindustry/ui/dialogs/TechTreeDialog.java
index 6bbb249a66..0d28af70c5 100644
--- a/core/src/mindustry/ui/dialogs/TechTreeDialog.java
+++ b/core/src/mindustry/ui/dialogs/TechTreeDialog.java
@@ -31,7 +31,7 @@ public class TechTreeDialog extends FloatingDialog{
private final float nodeSize = Scl.scl(60f);
private ObjectSet nodes = new ObjectSet<>();
private TechTreeNode root = new TechTreeNode(TechTree.root, null);
- private Rectangle bounds = new Rectangle();
+ private Rect bounds = new Rect();
private ItemsDisplay items;
private View view;
@@ -123,7 +123,7 @@ public class TechTreeDialog extends FloatingDialog{
miny = Math.min(n.y - n.height/2f, miny);
maxy = Math.max(n.y + n.height/2f, maxy);
}
- bounds = new Rectangle(minx, miny, maxx - minx, maxy - miny);
+ bounds = new Rect(minx, miny, maxx - minx, maxy - miny);
bounds.y += nodeSize*1.5f;
}
diff --git a/core/src/mindustry/ui/fragments/BlockInventoryFragment.java b/core/src/mindustry/ui/fragments/BlockInventoryFragment.java
index e77a240e36..c4cc71cc5a 100644
--- a/core/src/mindustry/ui/fragments/BlockInventoryFragment.java
+++ b/core/src/mindustry/ui/fragments/BlockInventoryFragment.java
@@ -36,7 +36,7 @@ public class BlockInventoryFragment extends Fragment{
@Remote(called = Loc.server, targets = Loc.both, forward = true)
public static void requestItem(Player player, Tile tile, Item item, int amount){
- if(player == null || tile == null || !player.timer.get(Player.timerTransfer, 20) || !tile.interactable(player.getTeam())) return;
+ if(player == null || tile == null || !tile.interactable(player.getTeam())) return;
if(!Units.canInteract(player, tile)) return;
int removed = tile.block().removeStack(tile, item, amount);
diff --git a/core/src/mindustry/ui/fragments/HudFragment.java b/core/src/mindustry/ui/fragments/HudFragment.java
index 80e5dc0185..688923924c 100644
--- a/core/src/mindustry/ui/fragments/HudFragment.java
+++ b/core/src/mindustry/ui/fragments/HudFragment.java
@@ -168,7 +168,7 @@ public class HudFragment extends Fragment{
t.table(teams -> {
teams.left();
int i = 0;
- for(Team team : Team.all){
+ for(Team team : Team.base()){
ImageButton button = teams.addImageButton(Tex.whiteui, Styles.clearTogglePartiali, 40f, () -> Call.setPlayerTeamEditor(player, team))
.size(50f).margin(6f).get();
button.getImageCell().grow();
@@ -287,7 +287,7 @@ public class HudFragment extends Fragment{
});
t.top().visible(() -> {
- if(state.is(State.menu) || state.teams.get(player.getTeam()).cores.size == 0 || state.teams.get(player.getTeam()).cores.first().entity == null){
+ if(state.is(State.menu) || !state.teams.get(player.getTeam()).hasCore()){
coreAttackTime[0] = 0f;
return false;
}
@@ -557,7 +557,7 @@ public class HudFragment extends Fragment{
}
private boolean canLaunch(){
- return inLaunchWave() && state.enemies() <= 0;
+ return inLaunchWave() && state.enemies <= 0;
}
private void toggleMenus(){
@@ -604,7 +604,7 @@ public class HudFragment extends Fragment{
if(inLaunchWave()){
builder.append("[#");
- Tmp.c1.set(Color.white).lerp(state.enemies() > 0 ? Color.white : Color.scarlet, Mathf.absin(Time.time(), 2f, 1f)).toString(builder);
+ Tmp.c1.set(Color.white).lerp(state.enemies > 0 ? Color.white : Color.scarlet, Mathf.absin(Time.time(), 2f, 1f)).toString(builder);
builder.append("]");
if(!canLaunch()){
@@ -618,18 +618,18 @@ public class HudFragment extends Fragment{
builder.append("[]\n");
}
- if(state.enemies() > 0){
- if(state.enemies() == 1){
- builder.append(enemyf.get(state.enemies()));
+ if(state.enemies > 0){
+ if(state.enemies == 1){
+ builder.append(enemyf.get(state.enemies));
}else{
- builder.append(enemiesf.get(state.enemies()));
+ builder.append(enemiesf.get(state.enemies));
}
builder.append("\n");
}
if(state.rules.waveTimer){
- builder.append((state.rules.waitForWaveToEnd && unitGroups[waveTeam.ordinal()].size() > 0) ? Core.bundle.get("wave.waveInProgress") : ( waitingf.get((int)(state.wavetime/60))));
- }else if(state.enemies() == 0){
+ builder.append((state.rules.waitForWaveToEnd && state.enemies > 0 ? Core.bundle.get("wave.waveInProgress") : ( waitingf.get((int)(state.wavetime/60)))));
+ }else if(state.enemies == 0){
builder.append(Core.bundle.get("waiting"));
}
@@ -646,7 +646,7 @@ public class HudFragment extends Fragment{
}
private boolean canSkipWave(){
- return state.rules.waves && ((net.server() || player.isAdmin) || !net.active()) && state.enemies() == 0 && !spawner.isSpawning() && !state.rules.tutorial;
+ return state.rules.waves && ((net.server() || player.isAdmin) || !net.active()) && state.enemies == 0 && !spawner.isSpawning() && !state.rules.tutorial;
}
private void addPlayButton(Table table){
diff --git a/core/src/mindustry/ui/fragments/MenuFragment.java b/core/src/mindustry/ui/fragments/MenuFragment.java
index 535f4d6046..8737db0d9a 100644
--- a/core/src/mindustry/ui/fragments/MenuFragment.java
+++ b/core/src/mindustry/ui/fragments/MenuFragment.java
@@ -59,6 +59,18 @@ public class MenuFragment extends Fragment{
if(mobile){
parent.fill(c -> c.bottom().left().addButton("", Styles.infot, ui.about::show).size(84, 45));
parent.fill(c -> c.bottom().right().addButton("", Styles.discordt, ui.discord::show).size(84, 45));
+ }else if(becontrol.active()){
+ parent.fill(c -> c.bottom().right().addImageTextButton("$be.check", Icon.refreshSmall, () -> {
+ ui.loadfrag.show();
+ becontrol.checkUpdate(result -> {
+ ui.loadfrag.hide();
+ if(!result){
+ ui.showInfo("$be.noupdates");
+ }
+ });
+ }).size(200, 60).update(t -> {
+ t.getLabel().setColor(becontrol.isUpdateAvailable() ? Tmp.c1.set(Color.white).lerp(Pal.accent, Mathf.absin(5f, 1f)) : Color.white);
+ }));
}
String versionText = "[#ffffffba]" + ((Version.build == -1) ? "[#fc8140aa]custom build" : (Version.type.equals("official") ? Version.modifier : Version.type) + " build " + Version.build + (Version.revision == 0 ? "" : "." + Version.revision));
diff --git a/core/src/mindustry/ui/fragments/MinimapFragment.java b/core/src/mindustry/ui/fragments/MinimapFragment.java
new file mode 100644
index 0000000000..d13fed8936
--- /dev/null
+++ b/core/src/mindustry/ui/fragments/MinimapFragment.java
@@ -0,0 +1,114 @@
+package mindustry.ui.fragments;
+
+import arc.*;
+import arc.graphics.*;
+import arc.graphics.g2d.*;
+import arc.input.*;
+import arc.math.*;
+import arc.scene.*;
+import arc.scene.event.*;
+import arc.scene.ui.layout.*;
+import mindustry.gen.*;
+import mindustry.input.*;
+import mindustry.ui.*;
+
+import static mindustry.Vars.*;
+
+public class MinimapFragment extends Fragment{
+ private boolean shown;
+ private float panx, pany, zoom = 1f, lastZoom = -1;
+ private float baseSize = Scl.scl(5f);
+ private Element elem;
+
+ @Override
+ public void build(Group parent){
+ elem = parent.fill((x, y, w, h) -> {
+ w = Core.graphics.getWidth();
+ h = Core.graphics.getHeight();
+ float size = baseSize * zoom * world.width();
+
+ Draw.color(Color.black);
+ Fill.crect(x, y, w, h);
+
+ if(renderer.minimap.getTexture() != null){
+ Draw.color();
+ float ratio = (float)renderer.minimap.getTexture().getHeight() / renderer.minimap.getTexture().getWidth();
+ TextureRegion reg = Draw.wrap(renderer.minimap.getTexture());
+ Draw.rect(reg, w/2f + panx*zoom, h/2f + pany*zoom, size, size * ratio);
+ renderer.minimap.drawEntities(w/2f + panx*zoom - size/2f, h/2f + pany*zoom - size/2f * ratio, size, size * ratio, zoom, true);
+ }
+
+ Draw.reset();
+ });
+
+ elem.visible(() -> shown);
+ elem.update(() -> {
+ elem.requestKeyboard();
+ elem.requestScroll();
+ elem.setFillParent(true);
+ elem.setBounds(0, 0, Core.graphics.getWidth(), Core.graphics.getHeight());
+
+ if(Core.input.keyTap(Binding.menu)){
+ shown = false;
+ }
+ });
+ elem.touchable(Touchable.enabled);
+
+ elem.addListener(new ElementGestureListener(){
+
+ @Override
+ public void zoom(InputEvent event, float initialDistance, float distance){
+ if(lastZoom < 0){
+ lastZoom = zoom;
+ }
+
+ zoom = Mathf.clamp(distance / initialDistance * lastZoom, 0.25f, 10f);
+ }
+
+ @Override
+ public void pan(InputEvent event, float x, float y, float deltaX, float deltaY){
+ panx += deltaX / zoom;
+ pany += deltaY / zoom;
+ }
+
+ @Override
+ public void touchDown(InputEvent event, float x, float y, int pointer, KeyCode button){
+ super.touchDown(event, x, y, pointer, button);
+ }
+
+ @Override
+ public void touchUp(InputEvent event, float x, float y, int pointer, KeyCode button){
+ lastZoom = zoom;
+ }
+ });
+
+ elem.addListener(new InputListener(){
+
+ @Override
+ public boolean scrolled(InputEvent event, float x, float y, float amountX, float amountY){
+ zoom = Mathf.clamp(zoom - amountY / 10f * zoom, 0.25f, 10f);
+ return true;
+ }
+ });
+
+ parent.fill(t -> {
+ t.setFillParent(true);
+ t.visible(() -> shown);
+ t.update(() -> t.setBounds(0, 0, Core.graphics.getWidth(), Core.graphics.getHeight()));
+
+ t.add("$minimap").style(Styles.outlineLabel).pad(10f);
+ t.row();
+ t.add().growY();
+ t.row();
+ t.addImageTextButton("$back", Icon.backSmall, () -> shown = false).size(220f, 60f).pad(10f);
+ });
+ }
+
+ public boolean shown(){
+ return shown;
+ }
+
+ public void toggle(){
+ shown = !shown;
+ }
+}
diff --git a/core/src/mindustry/ui/fragments/PlayerListFragment.java b/core/src/mindustry/ui/fragments/PlayerListFragment.java
index df0d9f7269..ea6f6087c1 100644
--- a/core/src/mindustry/ui/fragments/PlayerListFragment.java
+++ b/core/src/mindustry/ui/fragments/PlayerListFragment.java
@@ -8,6 +8,7 @@ import arc.scene.ui.*;
import arc.scene.ui.layout.*;
import arc.util.*;
import mindustry.core.GameState.*;
+import mindustry.entities.type.*;
import mindustry.gen.*;
import mindustry.graphics.*;
import mindustry.net.*;
@@ -65,7 +66,7 @@ public class PlayerListFragment extends Fragment{
float h = 74f;
- playerGroup.all().sort((p1, p2) -> p1.getTeam().compareTo(p2.getTeam()));
+ playerGroup.all().sort(Structs.comparing(Unit::getTeam));
playerGroup.all().each(user -> {
NetConnection connection = user.con;
@@ -129,7 +130,7 @@ public class PlayerListFragment extends Fragment{
t.addImageButton(Icon.zoomSmall, Styles.clearPartiali, () -> Call.onAdminRequest(user, AdminAction.trace));
}).padRight(12).size(bs + 10f, bs);
- }else if((!user.isLocal && !user.isAdmin) && net.client() && playerGroup.size() >= 3){ //votekick
+ }else if((!user.isLocal && !user.isAdmin) && net.client() && playerGroup.size() >= 3 && player.getTeam() != user.getTeam()){ //votekick
button.add().growY();
button.addImageButton(Icon.banSmall, Styles.clearPartiali,
diff --git a/core/src/mindustry/ui/fragments/ScriptConsoleFragment.java b/core/src/mindustry/ui/fragments/ScriptConsoleFragment.java
index 1f667602de..378359f631 100644
--- a/core/src/mindustry/ui/fragments/ScriptConsoleFragment.java
+++ b/core/src/mindustry/ui/fragments/ScriptConsoleFragment.java
@@ -45,7 +45,7 @@ public class ScriptConsoleFragment extends Table{
font = Fonts.def;
visible(() -> {
- if(input.keyTap(Binding.console) && !Vars.net.client() && (scene.getKeyboardFocus() == chatfield || scene.getKeyboardFocus() == null)){
+ if(input.keyTap(Binding.console) && (scene.getKeyboardFocus() == chatfield || scene.getKeyboardFocus() == null)){
shown = !shown;
if(shown && !open && enableConsole){
toggle();
@@ -53,7 +53,7 @@ public class ScriptConsoleFragment extends Table{
clearChatInput();
}
- return shown && !Vars.net.active();
+ return shown && Vars.net.active();
});
update(() -> {
diff --git a/core/src/mindustry/ui/layout/BranchTreeLayout.java b/core/src/mindustry/ui/layout/BranchTreeLayout.java
index b012d68e71..07c3fb5497 100644
--- a/core/src/mindustry/ui/layout/BranchTreeLayout.java
+++ b/core/src/mindustry/ui/layout/BranchTreeLayout.java
@@ -66,8 +66,8 @@ public class BranchTreeLayout implements TreeLayout{
}
}
- public Rectangle getBounds(){
- return new Rectangle(boundsLeft, boundsBottom, boundsRight - boundsLeft, boundsTop - boundsBottom);
+ public Rect getBounds(){
+ return new Rect(boundsLeft, boundsBottom, boundsRight - boundsLeft, boundsTop - boundsBottom);
}
private void calcSizeOfLevels(TreeNode node, int level){
diff --git a/core/src/mindustry/world/Block.java b/core/src/mindustry/world/Block.java
index 9bd64f023a..9bec4cd0f6 100644
--- a/core/src/mindustry/world/Block.java
+++ b/core/src/mindustry/world/Block.java
@@ -864,7 +864,7 @@ public class Block extends BlockStorage{
return ((size + 1) % 2) * tilesize / 2f;
}
- public Rectangle bounds(int x, int y, Rectangle rect){
+ public Rect bounds(int x, int y, Rect rect){
return rect.setSize(size * tilesize).setCenter(x * tilesize + offset(), y * tilesize + offset());
}
diff --git a/core/src/mindustry/world/Build.java b/core/src/mindustry/world/Build.java
index dafd9fe38d..b8d41df4f0 100644
--- a/core/src/mindustry/world/Build.java
+++ b/core/src/mindustry/world/Build.java
@@ -38,7 +38,7 @@ public class Build{
Block previous = tile.block();
Block sub = BuildBlock.get(previous.size);
- world.setBlock(tile, sub, team, rotation);
+ tile.set(sub, team, rotation);
tile.ent().setDeconstruct(previous);
tile.entity.health = tile.entity.maxHealth() * prevPercent;
@@ -60,7 +60,7 @@ public class Build{
Block previous = tile.block();
Block sub = BuildBlock.get(result.size);
- world.setBlock(tile, sub, team, rotation);
+ tile.set(sub, team, rotation);
tile.ent().setConstruct(previous, result);
Core.app.post(() -> Events.fire(new BlockBuildBeginEvent(tile, team, false)));
@@ -72,7 +72,7 @@ public class Build{
return false;
}
- if(state.rules.bannedBlocks.contains(type) && !(state.rules.waves && team == waveTeam)){
+ if(state.rules.bannedBlocks.contains(type) && !(state.rules.waves && team == state.rules.waveTeam)){
return false;
}
@@ -80,13 +80,8 @@ public class Build{
return false;
}
- //check for enemy cores
- for(Team enemy : state.teams.enemiesOf(team)){
- for(Tile core : state.teams.get(enemy).cores){
- if(Mathf.dst(x * tilesize + type.offset(), y * tilesize + type.offset(), core.drawx(), core.drawy()) < state.rules.enemyCoreBuildRadius + type.size * tilesize / 2f){
- return false;
- }
- }
+ if(state.teams.eachEnemyCore(team, core -> Mathf.dst(x * tilesize + type.offset(), y * tilesize + type.offset(), core.x, core.y) < state.rules.enemyCoreBuildRadius + type.size * tilesize / 2f)){
+ return false;
}
Tile tile = world.tile(x, y);
diff --git a/core/src/mindustry/world/CachedTile.java b/core/src/mindustry/world/CachedTile.java
index e46a57d3ba..281828dcd7 100644
--- a/core/src/mindustry/world/CachedTile.java
+++ b/core/src/mindustry/world/CachedTile.java
@@ -16,7 +16,7 @@ public class CachedTile extends Tile{
@Override
public Team getTeam(){
- return Team.all[getTeamID()];
+ return Team.get(getTeamID());
}
@Override
diff --git a/core/src/mindustry/world/Tile.java b/core/src/mindustry/world/Tile.java
index 1ac2871bab..fe319fd02e 100644
--- a/core/src/mindustry/world/Tile.java
+++ b/core/src/mindustry/world/Tile.java
@@ -142,11 +142,11 @@ public class Tile implements Position, TargetTrait{
@Override
public Team getTeam(){
- return Team.all[link().team];
+ return Team.get(link().team);
}
public void setTeam(Team team){
- this.team = (byte)team.ordinal();
+ this.team = (byte) team.id;
}
public byte getTeamID(){
@@ -156,7 +156,7 @@ public class Tile implements Position, TargetTrait{
public void setBlock(@NonNull Block type, Team team, int rotation){
preChanged();
this.block = type;
- this.team = (byte)team.ordinal();
+ this.team = (byte) team.id;
this.rotation = (byte)Mathf.mod(rotation, 4);
changed();
}
@@ -186,6 +186,35 @@ public class Tile implements Position, TargetTrait{
setOverlay(overlay);
}
+ public void remove(){
+ link().getLinkedTiles(other -> other.setBlock(Blocks.air));
+ }
+
+ public void set(Block block, Team team){
+ set(block, team, 0);
+ }
+
+ public void set(Block block, Team team, int rotation){
+ setBlock(block, team, rotation);
+ if(block.isMultiblock()){
+ int offsetx = -(block.size - 1) / 2;
+ int offsety = -(block.size - 1) / 2;
+
+ for(int dx = 0; dx < block.size; dx++){
+ for(int dy = 0; dy < block.size; dy++){
+ int worldx = dx + offsetx + x;
+ int worldy = dy + offsety + y;
+ if(!(worldx == x && worldy == y)){
+ Tile toplace = world.tile(worldx, worldy);
+ if(toplace != null){
+ toplace.setBlock(BlockPart.get(dx + offsetx, dy + offsety), team);
+ }
+ }
+ }
+ }
+ }
+ }
+
public byte rotation(){
return rotation;
}
@@ -228,7 +257,7 @@ public class Tile implements Position, TargetTrait{
}
public boolean solid(){
- return block.solid || block.isSolidFor(this) || (isLinked() && link().solid());
+ return block.solid || block.isSolidFor(this) || (isLinked() && link() != this && link().solid());
}
public boolean breakable(){
@@ -240,7 +269,7 @@ public class Tile implements Position, TargetTrait{
}
public boolean isEnemyCheat(){
- return getTeam() == waveTeam && state.rules.enemyCheat;
+ return getTeam() == state.rules.waveTeam && state.rules.enemyCheat;
}
public boolean isLinked(){
@@ -298,7 +327,7 @@ public class Tile implements Position, TargetTrait{
return tmpArray;
}
- public Rectangle getHitbox(Rectangle rect){
+ public Rect getHitbox(Rect rect){
return rect.setSize(block().size * tilesize).setCenter(drawx(), drawy());
}
@@ -344,10 +373,10 @@ public class Tile implements Position, TargetTrait{
}
public boolean interactable(Team team){
- return getTeam() == Team.derelict || team == getTeam();
+ return state.teams.canInteract(team, getTeam());
}
- public Item drop(){
+ public @Nullable Item drop(){
return overlay == Blocks.air || overlay.itemDrop == null ? floor.itemDrop : overlay.itemDrop;
}
diff --git a/core/src/mindustry/world/blocks/BuildBlock.java b/core/src/mindustry/world/blocks/BuildBlock.java
index 69d9ba61e8..14187850ba 100644
--- a/core/src/mindustry/world/blocks/BuildBlock.java
+++ b/core/src/mindustry/world/blocks/BuildBlock.java
@@ -57,7 +57,7 @@ public class BuildBlock extends Block{
public static void onDeconstructFinish(Tile tile, Block block, int builderID){
Team team = tile.getTeam();
Effects.effect(Fx.breakBlock, tile.drawx(), tile.drawy(), block.size);
- world.removeBlock(tile);
+ tile.remove();
Events.fire(new BlockBuildEndEvent(tile, playerGroup.getByID(builderID), team, true));
if(shouldPlay()) Sounds.breaks.at(tile, calcPitch(false));
}
@@ -66,7 +66,7 @@ public class BuildBlock extends Block{
public static void onConstructFinish(Tile tile, Block block, int builderID, byte rotation, Team team, boolean skipConfig){
if(tile == null) return;
float healthf = tile.entity == null ? 1f : tile.entity.healthf();
- world.setBlock(tile, block, team, rotation);
+ tile.set(block, team, rotation);
if(tile.entity != null){
tile.entity.health = block.health * healthf;
}
@@ -171,9 +171,9 @@ public class BuildBlock extends Block{
return;
}
- if(entity.previous == null) return;
+ if(entity.previous == null || entity.cblock == null) return;
- if(Core.atlas.isFound(entity.previous.icon(mindustry.ui.Cicon.full))){
+ if(Core.atlas.isFound(entity.previous.icon(Cicon.full))){
Draw.rect(entity.previous.icon(Cicon.full), tile.drawx(), tile.drawy(), entity.previous.rotate ? tile.rotation() * 90 : 0);
}
}
@@ -257,7 +257,7 @@ public class BuildBlock extends Block{
if(cblock != null){
ItemStack[] requirements = cblock.requirements;
if(requirements.length != accumulator.length || totalAccumulator.length != requirements.length){
- setDeconstruct(previous);
+ setDeconstruct(cblock);
}
//make sure you take into account that you can't deconstruct more than there is deconstructed
@@ -337,16 +337,17 @@ public class BuildBlock extends Block{
}
public void setDeconstruct(Block previous){
+ if(previous == null) return;
this.previous = previous;
this.progress = 1f;
if(previous.buildCost >= 0.01f){
this.cblock = previous;
- this.accumulator = new float[previous.requirements.length];
- this.totalAccumulator = new float[previous.requirements.length];
this.buildCost = previous.buildCost * state.rules.buildCostMultiplier;
}else{
this.buildCost = 20f; //default no-requirement build cost is 20
}
+ this.accumulator = new float[previous.requirements.length];
+ this.totalAccumulator = new float[previous.requirements.length];
}
@Override
diff --git a/core/src/mindustry/world/blocks/RespawnBlock.java b/core/src/mindustry/world/blocks/RespawnBlock.java
index 581dec8b21..b27b0af621 100644
--- a/core/src/mindustry/world/blocks/RespawnBlock.java
+++ b/core/src/mindustry/world/blocks/RespawnBlock.java
@@ -5,6 +5,7 @@ import arc.math.*;
import mindustry.entities.type.*;
import mindustry.graphics.*;
import mindustry.type.*;
+import mindustry.ui.*;
import mindustry.world.*;
import static mindustry.Vars.net;
@@ -20,7 +21,7 @@ public class RespawnBlock{
Draw.reset();
if(player != null){
- TextureRegion region = player.getIconRegion();
+ TextureRegion region = to.icon(Cicon.full);
Draw.color(0f, 0f, 0f, 0.4f * progress);
Draw.rect("circle-shadow", tile.drawx(), tile.drawy(), region.getWidth() / 3f, region.getWidth() / 3f);
diff --git a/core/src/mindustry/world/blocks/StaticWall.java b/core/src/mindustry/world/blocks/StaticWall.java
index d81e0521db..531fb010a2 100644
--- a/core/src/mindustry/world/blocks/StaticWall.java
+++ b/core/src/mindustry/world/blocks/StaticWall.java
@@ -43,9 +43,9 @@ public class StaticWall extends Rock{
boolean eq(int rx, int ry){
return rx < world.width() - 1 && ry < world.height() - 1
- && world.tile(rx + 1, ry).block() == this
- && world.tile(rx, ry + 1).block() == this
- && world.tile(rx, ry).block() == this
- && world.tile(rx + 1, ry + 1).block() == this;
+ && world.tile(rx + 1, ry).block() == this
+ && world.tile(rx, ry + 1).block() == this
+ && world.tile(rx, ry).block() == this
+ && world.tile(rx + 1, ry + 1).block() == this;
}
}
diff --git a/core/src/mindustry/world/blocks/defense/DeflectorWall.java b/core/src/mindustry/world/blocks/defense/DeflectorWall.java
index cf8f54a8ce..ae535ca8a6 100644
--- a/core/src/mindustry/world/blocks/defense/DeflectorWall.java
+++ b/core/src/mindustry/world/blocks/defense/DeflectorWall.java
@@ -15,8 +15,8 @@ public class DeflectorWall extends Wall{
public static final float hitTime = 10f;
protected float maxDamageDeflect = 10f;
- protected Rectangle rect = new Rectangle();
- protected Rectangle rect2 = new Rectangle();
+ protected Rect rect = new Rect();
+ protected Rect rect2 = new Rect();
public DeflectorWall(String name){
super(name);
diff --git a/core/src/mindustry/world/blocks/defense/Door.java b/core/src/mindustry/world/blocks/defense/Door.java
index 27a0d26bff..df75416207 100644
--- a/core/src/mindustry/world/blocks/defense/Door.java
+++ b/core/src/mindustry/world/blocks/defense/Door.java
@@ -18,7 +18,7 @@ import java.io.*;
import static mindustry.Vars.*;
public class Door extends Wall{
- protected final static Rectangle rect = new Rectangle();
+ protected final static Rect rect = new Rect();
public final int timerToggle = timers++;
public Effect openfx = Fx.dooropen;
diff --git a/core/src/mindustry/world/blocks/defense/ForceProjector.java b/core/src/mindustry/world/blocks/defense/ForceProjector.java
index a417c2b9e5..36ed812b5d 100644
--- a/core/src/mindustry/world/blocks/defense/ForceProjector.java
+++ b/core/src/mindustry/world/blocks/defense/ForceProjector.java
@@ -5,6 +5,7 @@ import arc.func.*;
import arc.graphics.*;
import arc.graphics.g2d.*;
import arc.math.*;
+import arc.math.geom.*;
import arc.util.*;
import mindustry.content.*;
import mindustry.entities.*;
@@ -37,7 +38,7 @@ public class ForceProjector extends Block{
private static ForceProjector paramBlock;
private static ForceEntity paramEntity;
private static Cons shieldConsumer = trait -> {
- if(trait.canBeAbsorbed() && trait.getTeam() != paramTile.getTeam() && paramBlock.isInsideHexagon(trait.getX(), trait.getY(), paramBlock.realRadius(paramEntity) * 2f, paramTile.drawx(), paramTile.drawy())){
+ if(trait.canBeAbsorbed() && trait.getTeam() != paramTile.getTeam() && Intersector.isInsideHexagon(trait.getX(), trait.getY(), paramBlock.realRadius(paramEntity) * 2f, paramTile.drawx(), paramTile.drawy())){
trait.absorb();
Effects.effect(Fx.absorb, trait);
paramEntity.hit = 1f;
@@ -111,17 +112,6 @@ public class ForceProjector extends Block{
entity.warmup = Mathf.lerpDelta(entity.warmup, entity.efficiency(), 0.1f);
-/*
- if(entity.power.status < relativePowerDraw){
- entity.warmup = Mathf.lerpDelta(entity.warmup, 0f, 0.15f);
- entity.power.status = 0f;
- if(entity.warmup <= 0.09f){
- entity.broken = true;
- }
- }else{
- entity.warmup = Mathf.lerpDelta(entity.warmup, 1f, 0.1f);
- }*/
-
if(entity.buildup > 0){
float scale = !entity.broken ? cooldownNormal : cooldownBrokenBase;
ConsumeLiquidFilter cons = consumes.get(ConsumeType.liquid);
@@ -159,13 +149,6 @@ public class ForceProjector extends Block{
return (radius + entity.phaseHeat * phaseRadiusBoost) * entity.radscl;
}
- boolean isInsideHexagon(float x0, float y0, float d, float x, float y){
- float dx = Math.abs(x - x0) / d;
- float dy = Math.abs(y - y0) / d;
- float a = 0.25f * Mathf.sqrt3;
- return (dy <= a) && (a * dx + 0.25 * dy <= 0.5 * a);
- }
-
@Override
public void draw(Tile tile){
super.draw(tile);
diff --git a/core/src/mindustry/world/blocks/defense/turrets/LiquidTurret.java b/core/src/mindustry/world/blocks/defense/turrets/LiquidTurret.java
index caafd51d2f..42336ea1d9 100644
--- a/core/src/mindustry/world/blocks/defense/turrets/LiquidTurret.java
+++ b/core/src/mindustry/world/blocks/defense/turrets/LiquidTurret.java
@@ -1,5 +1,7 @@
package mindustry.world.blocks.defense.turrets;
+import arc.*;
+import arc.graphics.g2d.*;
import arc.struct.*;
import mindustry.entities.*;
import mindustry.entities.bullet.*;
@@ -16,11 +18,13 @@ import static mindustry.Vars.*;
public class LiquidTurret extends Turret{
public ObjectMap ammo = new ObjectMap<>();
+ public int liquidRegion;
public LiquidTurret(String name){
super(name);
hasLiquids = true;
activeSound = Sounds.spray;
+ liquidRegion = reg("-liquid");
}
/** Initializes accepted ammo map. Format: [liquid1, bullet1, liquid2, bullet2...] */
@@ -28,6 +32,19 @@ public class LiquidTurret extends Turret{
ammo = OrderedMap.of(objects);
}
+ @Override
+ public void drawLayer(Tile tile){
+ super.drawLayer(tile);
+ TurretEntity entity = tile.ent();
+
+ if(Core.atlas.isFound(reg(liquidRegion))){
+ Draw.color(entity.liquids.current().color);
+ Draw.alpha(entity.liquids.total() / liquidCapacity);
+ Draw.rect(reg(liquidRegion), tile.drawx() + tr2.x, tile.drawy() + tr2.y, entity.rotation - 90);
+ Draw.color();
+ }
+ }
+
@Override
public void setStats(){
super.setStats();
diff --git a/core/src/mindustry/world/blocks/distribution/Junction.java b/core/src/mindustry/world/blocks/distribution/Junction.java
index 43356ca939..99c22057e1 100644
--- a/core/src/mindustry/world/blocks/distribution/Junction.java
+++ b/core/src/mindustry/world/blocks/distribution/Junction.java
@@ -58,7 +58,7 @@ public class Junction extends Block{
if(dest != null) dest = dest.link();
//skip blocks that don't want the item, keep waiting until they do
- if(dest == null || !dest.block().acceptItem(item, dest, tile)){
+ if(dest == null || !dest.block().acceptItem(item, dest, tile) || dest.getTeam() != tile.getTeam()){
continue;
}
@@ -82,10 +82,9 @@ public class Junction extends Block{
JunctionEntity entity = tile.ent();
int relative = source.relativeTo(tile.x, tile.y);
- if(entity == null || relative == -1 || !entity.buffer.accepts(relative))
- return false;
+ if(entity == null || relative == -1 || !entity.buffer.accepts(relative)) return false;
Tile to = tile.getNearby(relative);
- return to != null && to.link().entity != null;
+ return to != null && to.link().entity != null && to.getTeam() == tile.getTeam();
}
class JunctionEntity extends TileEntity{
diff --git a/core/src/mindustry/world/blocks/distribution/MassDriver.java b/core/src/mindustry/world/blocks/distribution/MassDriver.java
index 1156857289..eacef7d0eb 100644
--- a/core/src/mindustry/world/blocks/distribution/MassDriver.java
+++ b/core/src/mindustry/world/blocks/distribution/MassDriver.java
@@ -162,6 +162,24 @@ public class MassDriver extends Block{
@Override
public void drawPlace(int x, int y, int rotation, boolean valid){
Drawf.dashCircle(x * tilesize, y*tilesize, range, Pal.accent);
+
+ //check if a mass driver is selected while placing this driver
+ if(!control.input.frag.config.isShown()) return;
+ Tile selected = control.input.frag.config.getSelectedTile();
+ if(selected == null || !(selected.block() instanceof MassDriver) || !(selected.dst(x * tilesize, y * tilesize) <= range)) return;
+
+ //if so, draw a dotted line towards it while it is in range
+ float sin = Mathf.absin(Time.time(), 6f, 1f);
+ Tmp.v1.set(x * tilesize + offset(), y * tilesize + offset()).sub(selected.drawx(), selected.drawy()).limit((size / 2f + 1) * tilesize + sin + 0.5f);
+ float x2 = x * tilesize - Tmp.v1.x, y2 = y * tilesize - Tmp.v1.y,
+ x1 = selected.drawx() + Tmp.v1.x, y1 = selected.drawy() + Tmp.v1.y;
+ int segs = (int)(selected.dst(x * tilesize, y * tilesize) / tilesize);
+
+ Lines.stroke(4f, Pal.gray);
+ Lines.dashLine(x1, y1, x2, y2, segs);
+ Lines.stroke(2f, Pal.placing);
+ Lines.dashLine(x1, y1, x2, y2, segs);
+ Draw.reset();
}
@Override
@@ -262,6 +280,7 @@ public class MassDriver extends Block{
}
protected boolean shooterValid(Tile tile, Tile other){
+
if(other == null) return true;
if(!(other.block() instanceof MassDriver)) return false;
MassDriverEntity entity = other.ent();
@@ -274,7 +293,7 @@ public class MassDriver extends Block{
if(entity == null || entity.link == -1) return false;
Tile link = world.tile(entity.link);
- return link != null && link.block() instanceof MassDriver && tile.dst(link) <= range;
+ return link != null && link.block() instanceof MassDriver && link.getTeam() == tile.getTeam() && tile.dst(link) <= range;
}
public static class DriverBulletData implements Poolable{
diff --git a/core/src/mindustry/world/blocks/distribution/OverflowGate.java b/core/src/mindustry/world/blocks/distribution/OverflowGate.java
index 185fdf7834..b07ae8c7be 100644
--- a/core/src/mindustry/world/blocks/distribution/OverflowGate.java
+++ b/core/src/mindustry/world/blocks/distribution/OverflowGate.java
@@ -81,11 +81,11 @@ public class OverflowGate extends Block{
if(to == null) return null;
Tile edge = Edges.getFacingEdge(tile, to);
- if(!to.block().acceptItem(item, to, edge) || (to.block() instanceof OverflowGate)){
+ if(!to.block().acceptItem(item, to, edge) || to.getTeam() != tile.getTeam() || (to.block() instanceof OverflowGate)){
Tile a = tile.getNearby(Mathf.mod(from - 1, 4));
Tile b = tile.getNearby(Mathf.mod(from + 1, 4));
- boolean ac = a != null && a.block().acceptItem(item, a, edge) && !(a.block() instanceof OverflowGate);
- boolean bc = b != null && b.block().acceptItem(item, b, edge) && !(b.block() instanceof OverflowGate);
+ boolean ac = a != null && a.block().acceptItem(item, a, edge) && !(a.block() instanceof OverflowGate) && a.getTeam() == tile.getTeam();
+ boolean bc = b != null && b.block().acceptItem(item, b, edge) && !(b.block() instanceof OverflowGate) && b.getTeam() == tile.getTeam();
if(!ac && !bc){
return null;
diff --git a/core/src/mindustry/world/blocks/distribution/Sorter.java b/core/src/mindustry/world/blocks/distribution/Sorter.java
index 89228d02de..1df5fe75e5 100644
--- a/core/src/mindustry/world/blocks/distribution/Sorter.java
+++ b/core/src/mindustry/world/blocks/distribution/Sorter.java
@@ -74,7 +74,7 @@ public class Sorter extends Block{
public boolean acceptItem(Item item, Tile tile, Tile source){
Tile to = getTileTarget(item, tile, source, false);
- return to != null && to.block().acceptItem(item, to, tile);
+ return to != null && to.block().acceptItem(item, to, tile) && to.getTeam() == tile.getTeam();
}
@Override
diff --git a/core/src/mindustry/world/blocks/power/PowerDiode.java b/core/src/mindustry/world/blocks/power/PowerDiode.java
index 282e716286..eea5b46d72 100644
--- a/core/src/mindustry/world/blocks/power/PowerDiode.java
+++ b/core/src/mindustry/world/blocks/power/PowerDiode.java
@@ -27,7 +27,7 @@ public class PowerDiode extends Block{
public void update(Tile tile){
super.update(tile);
- if(tile.front() == null || tile.back() == null || !tile.back().block().hasPower || !tile.front().block().hasPower) return;
+ if(tile.front() == null || tile.back() == null || !tile.back().block().hasPower || !tile.front().block().hasPower || tile.back().getTeam() != tile.front().getTeam()) return;
PowerGraph backGraph = tile.back().entity.power.graph;
PowerGraph frontGraph = tile.front().entity.power.graph;
diff --git a/core/src/mindustry/world/blocks/production/GenericCrafter.java b/core/src/mindustry/world/blocks/production/GenericCrafter.java
index 7261effb4c..ee0e9a3c30 100644
--- a/core/src/mindustry/world/blocks/production/GenericCrafter.java
+++ b/core/src/mindustry/world/blocks/production/GenericCrafter.java
@@ -149,14 +149,6 @@ public class GenericCrafter extends Block{
return itemCapacity;
}
- public Item outputItem(){
- return outputItem == null ? null : outputItem.item;
- }
-
- public Liquid outputLiquid(){
- return outputLiquid == null ? null : outputLiquid.liquid;
- }
-
public static class GenericCrafterEntity extends TileEntity{
public float progress;
public float totalProgress;
diff --git a/core/src/mindustry/world/blocks/production/SolidPump.java b/core/src/mindustry/world/blocks/production/SolidPump.java
index 854d4be010..ac199c7b27 100644
--- a/core/src/mindustry/world/blocks/production/SolidPump.java
+++ b/core/src/mindustry/world/blocks/production/SolidPump.java
@@ -4,6 +4,7 @@ import arc.Core;
import arc.graphics.g2d.Draw;
import arc.graphics.g2d.TextureRegion;
import arc.math.Mathf;
+import arc.util.*;
import mindustry.content.Fx;
import mindustry.content.Liquids;
import mindustry.entities.Effects;
@@ -51,8 +52,8 @@ public class SolidPump extends Pump{
public void setBars(){
super.setBars();
bars.add("efficiency", entity -> new Bar(() ->
- Core.bundle.formatFloat("bar.efficiency",
- ((((SolidPumpEntity)entity).boost + 1f) * ((SolidPumpEntity)entity).warmup) * 100 * percentSolid(entity.tile.x, entity.tile.y), 1),
+ Core.bundle.formatFloat("bar.pumpspeed",
+ ((SolidPumpEntity)entity).lastPump / Time.delta() * 60, 1),
() -> Pal.ammo,
() -> ((SolidPumpEntity)entity).warmup));
}
@@ -104,11 +105,13 @@ public class SolidPump extends Pump{
if(tile.entity.cons.valid() && typeLiquid(tile) < liquidCapacity - 0.001f){
float maxPump = Math.min(liquidCapacity - typeLiquid(tile), pumpAmount * entity.delta() * fraction * entity.efficiency());
tile.entity.liquids.add(result, maxPump);
+ entity.lastPump = maxPump;
entity.warmup = Mathf.lerpDelta(entity.warmup, 1f, 0.02f);
if(Mathf.chance(entity.delta() * updateEffectChance))
Effects.effect(updateEffect, entity.x + Mathf.range(size * 2f), entity.y + Mathf.range(size * 2f));
}else{
entity.warmup = Mathf.lerpDelta(entity.warmup, 0f, 0.02f);
+ entity.lastPump = 0f;
}
entity.pumpTime += entity.warmup * entity.delta();
@@ -153,5 +156,6 @@ public class SolidPump extends Pump{
public float warmup;
public float pumpTime;
public float boost;
+ public float lastPump;
}
}
diff --git a/core/src/mindustry/world/blocks/storage/CoreBlock.java b/core/src/mindustry/world/blocks/storage/CoreBlock.java
index 7c766fd1d3..4a8f500d77 100644
--- a/core/src/mindustry/world/blocks/storage/CoreBlock.java
+++ b/core/src/mindustry/world/blocks/storage/CoreBlock.java
@@ -84,12 +84,12 @@ public class CoreBlock extends StorageBlock{
public void onProximityUpdate(Tile tile){
CoreEntity entity = tile.ent();
- for(Tile other : state.teams.get(tile.getTeam()).cores){
- if(other != tile){
- entity.items = other.entity.items;
+ for(TileEntity other : state.teams.cores(tile.getTeam())){
+ if(other.tile != tile){
+ entity.items = other.items;
}
}
- state.teams.get(tile.getTeam()).cores.add(tile);
+ state.teams.registerCore(entity);
entity.storageCapacity = itemCapacity + entity.proximity().sum(e -> isContainer(e) ? e.block().itemCapacity : 0);
entity.proximity().each(this::isContainer, t -> {
@@ -97,9 +97,9 @@ public class CoreBlock extends StorageBlock{
t.ent().linkedCore = tile;
});
- for(Tile other : state.teams.get(tile.getTeam()).cores){
- if(other == tile) continue;
- entity.storageCapacity += other.block().itemCapacity + other.entity.proximity().sum(e -> isContainer(e) ? e.block().itemCapacity : 0);
+ for(TileEntity other : state.teams.cores(tile.getTeam())){
+ if(other.tile == tile) continue;
+ entity.storageCapacity += other.block.itemCapacity + entity.proximity().sum(e -> isContainer(e) ? e.block().itemCapacity : 0);
}
if(!world.isGenerating()){
@@ -108,9 +108,8 @@ public class CoreBlock extends StorageBlock{
}
}
- for(Tile other : state.teams.get(tile.getTeam()).cores){
- CoreEntity oe = other.ent();
- oe.storageCapacity = entity.storageCapacity;
+ for(CoreEntity other : state.teams.cores(tile.getTeam())){
+ other.storageCapacity = entity.storageCapacity;
}
}
@@ -151,8 +150,9 @@ public class CoreBlock extends StorageBlock{
@Override
public void removed(Tile tile){
- int total = tile.entity.proximity().count(e -> e.entity.items == tile.entity.items);
- float fract = 1f / total / state.teams.get(tile.getTeam()).cores.size;
+ CoreEntity entity = tile.ent();
+ int total = tile.entity.proximity().count(e -> e.entity != null && e.entity.items != null && e.entity.items == tile.entity.items);
+ float fract = 1f / total / state.teams.cores(tile.getTeam()).size;
tile.entity.proximity().each(e -> isContainer(e) && e.entity.items == tile.entity.items, t -> {
StorageBlockEntity ent = (StorageBlockEntity)t.entity;
@@ -163,22 +163,23 @@ public class CoreBlock extends StorageBlock{
}
});
- state.teams.get(tile.getTeam()).cores.remove(tile);
+ state.teams.unregisterCore(entity);
- int max = itemCapacity * state.teams.get(tile.getTeam()).cores.size;
+ int max = itemCapacity * state.teams.cores(tile.getTeam()).size;
for(Item item : content.items()){
tile.entity.items.set(item, Math.min(tile.entity.items.get(item), max));
}
- for(Tile other : state.teams.get(tile.getTeam()).cores){
- other.block().onProximityUpdate(other);
+ for(CoreEntity other : state.teams.cores(tile.getTeam())){
+ other.block.onProximityUpdate(other.tile);
}
}
@Override
public void placed(Tile tile){
super.placed(tile);
- state.teams.get(tile.getTeam()).cores.add(tile);
+ CoreEntity entity = tile.ent();
+ state.teams.registerCore(entity);
}
@Override
diff --git a/core/src/mindustry/world/blocks/units/CommandCenter.java b/core/src/mindustry/world/blocks/units/CommandCenter.java
index 9e9312af75..be82783269 100644
--- a/core/src/mindustry/world/blocks/units/CommandCenter.java
+++ b/core/src/mindustry/world/blocks/units/CommandCenter.java
@@ -1,11 +1,11 @@
package mindustry.world.blocks.units;
import arc.*;
-import arc.struct.*;
import arc.graphics.*;
import arc.graphics.g2d.*;
import arc.scene.ui.*;
import arc.scene.ui.layout.*;
+import arc.struct.*;
import arc.util.*;
import mindustry.content.*;
import mindustry.entities.*;
@@ -13,7 +13,6 @@ import mindustry.entities.Effects.*;
import mindustry.entities.type.*;
import mindustry.entities.units.*;
import mindustry.game.EventType.*;
-import mindustry.game.*;
import mindustry.graphics.*;
import mindustry.ui.*;
import mindustry.world.*;
@@ -21,7 +20,7 @@ import mindustry.world.meta.*;
import java.io.*;
-import static mindustry.Vars.*;
+import static mindustry.Vars.indexer;
public class CommandCenter extends Block{
protected TextureRegion[] commandRegions = new TextureRegion[UnitCommand.all.length];
@@ -58,9 +57,7 @@ public class CommandCenter extends Block{
ObjectSet set = indexer.getAllied(tile.getTeam(), BlockFlag.comandCenter);
if(set.size == 1){
- for(BaseUnit unit : unitGroups[tile.getTeam().ordinal()].all()){
- unit.onCommand(UnitCommand.all[0]);
- }
+ Units.each(tile.getTeam(), u -> u.onCommand(UnitCommand.all[0]));
}
}
@@ -114,12 +111,7 @@ public class CommandCenter extends Block{
}
}
- Team team = (player == null ? tile.getTeam() : player.getTeam());
-
- for(BaseUnit unit : unitGroups[team.ordinal()].all()){
- unit.onCommand(command);
- }
-
+ Units.each(tile.getTeam(), u -> u.onCommand(command));
Events.fire(new CommandIssueEvent(tile, command));
}
diff --git a/core/src/mindustry/world/blocks/units/MechPad.java b/core/src/mindustry/world/blocks/units/MechPad.java
index 9ff7223dc6..0dadebc018 100644
--- a/core/src/mindustry/world/blocks/units/MechPad.java
+++ b/core/src/mindustry/world/blocks/units/MechPad.java
@@ -112,7 +112,7 @@ public class MechPad extends Block{
MechFactoryEntity entity = tile.ent();
if(entity.player != null){
- RespawnBlock.drawRespawn(tile, entity.heat, entity.progress, entity.time, entity.player, (!entity.sameMech && entity.player.mech == mech ? mech : Mechs.starter));
+ RespawnBlock.drawRespawn(tile, entity.heat, entity.progress, entity.time, entity.player, (!entity.sameMech && entity.player.mech == mech ? Mechs.starter : mech));
}
}
diff --git a/core/src/mindustry/world/blocks/units/RepairPoint.java b/core/src/mindustry/world/blocks/units/RepairPoint.java
index 183404148d..a17fffe1b1 100644
--- a/core/src/mindustry/world/blocks/units/RepairPoint.java
+++ b/core/src/mindustry/world/blocks/units/RepairPoint.java
@@ -6,7 +6,7 @@ import arc.graphics.Color;
import arc.graphics.g2d.*;
import arc.math.Angles;
import arc.math.Mathf;
-import arc.math.geom.Rectangle;
+import arc.math.geom.Rect;
import arc.util.Time;
import mindustry.entities.Units;
import mindustry.entities.type.TileEntity;
@@ -19,7 +19,7 @@ import mindustry.world.meta.*;
import static mindustry.Vars.tilesize;
public class RepairPoint extends Block{
- private static Rectangle rect = new Rectangle();
+ private static Rect rect = new Rect();
public int timerTarget = timers++;
diff --git a/desktop/build.gradle b/desktop/build.gradle
index efedf8c57b..d03320d394 100644
--- a/desktop/build.gradle
+++ b/desktop/build.gradle
@@ -33,7 +33,7 @@ task run(dependsOn: classes, type: JavaExec){
}
if(args.contains("debug")){
- main = "io.anuke.mindustry.DebugLauncher"
+ main = "mindustry.debug.DebugLauncher"
}
}
diff --git a/desktop/src/mindustry/desktop/steam/SStats.java b/desktop/src/mindustry/desktop/steam/SStats.java
index ee1ab916bc..950bffc249 100644
--- a/desktop/src/mindustry/desktop/steam/SStats.java
+++ b/desktop/src/mindustry/desktop/steam/SStats.java
@@ -1,9 +1,9 @@
package mindustry.desktop.steam;
import arc.*;
-import com.codedisaster.steamworks.*;
import arc.struct.*;
import arc.util.*;
+import com.codedisaster.steamworks.*;
import mindustry.*;
import mindustry.content.*;
import mindustry.entities.type.*;
@@ -11,7 +11,6 @@ import mindustry.entities.units.*;
import mindustry.game.EventType.*;
import mindustry.game.Stats.*;
import mindustry.type.*;
-import mindustry.world.*;
import static mindustry.Vars.*;
import static mindustry.desktop.steam.SAchievement.*;
@@ -55,18 +54,18 @@ public class SStats implements SteamUserStatsCallback{
private void checkUpdate(){
if(campaign()){
- SStat.maxUnitActive.max(unitGroups[player.getTeam().ordinal()].size());
+ SStat.maxUnitActive.max(unitGroup.count(t -> t.getTeam() == player.getTeam()));
- if(unitGroups[player.getTeam().ordinal()].count(u -> u.getType() == UnitTypes.phantom) >= 10){
+ if(unitGroup.count(u -> u.getType() == UnitTypes.phantom && u.getTeam() == player.getTeam()) >= 10){
active10Phantoms.complete();
}
- if(unitGroups[player.getTeam().ordinal()].count(u -> u.getType() == UnitTypes.crawler) >= 50){
+ if(unitGroup.count(u -> u.getType() == UnitTypes.crawler && u.getTeam() == player.getTeam()) >= 50){
active50Crawlers.complete();
}
- for(Tile tile : state.teams.get(player.getTeam()).cores){
- if(!content.items().contains(i -> i.type == ItemType.material && tile.entity.items.get(i) < tile.block().itemCapacity)){
+ for(TileEntity entity : player.getTeam().cores()){
+ if(!content.items().contains(i -> i.type == ItemType.material && entity.items.get(i) < entity.block.itemCapacity)){
fillCoreAllCampaign.complete();
break;
}
diff --git a/fastlane/metadata/android/en-US/changelogs/102.1.txt b/fastlane/metadata/android/en-US/changelogs/102.1.txt
new file mode 100644
index 0000000000..f8244a4b0b
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/102.1.txt
@@ -0,0 +1,5 @@
+- Added new map view w/ panning and scrolling
+- Added block health rule
+- Added more internal teams for alternative gamemodes
+- Added features for improved server modding
+- Major internal change: package is now "mindustry" instead of "io.anuke.mindustry" (will break plugins)
diff --git a/fastlane/metadata/android/en-US/changelogs/102.2.txt b/fastlane/metadata/android/en-US/changelogs/102.2.txt
new file mode 100644
index 0000000000..f8244a4b0b
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/102.2.txt
@@ -0,0 +1,5 @@
+- Added new map view w/ panning and scrolling
+- Added block health rule
+- Added more internal teams for alternative gamemodes
+- Added features for improved server modding
+- Major internal change: package is now "mindustry" instead of "io.anuke.mindustry" (will break plugins)
diff --git a/fastlane/metadata/android/en-US/changelogs/102.txt b/fastlane/metadata/android/en-US/changelogs/102.txt
new file mode 100644
index 0000000000..f8244a4b0b
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/102.txt
@@ -0,0 +1,5 @@
+- Added new map view w/ panning and scrolling
+- Added block health rule
+- Added more internal teams for alternative gamemodes
+- Added features for improved server modding
+- Major internal change: package is now "mindustry" instead of "io.anuke.mindustry" (will break plugins)
diff --git a/fastlane/metadata/android/en-US/changelogs/29561.txt b/fastlane/metadata/android/en-US/changelogs/29561.txt
new file mode 100644
index 0000000000..f8244a4b0b
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/29561.txt
@@ -0,0 +1,5 @@
+- Added new map view w/ panning and scrolling
+- Added block health rule
+- Added more internal teams for alternative gamemodes
+- Added features for improved server modding
+- Major internal change: package is now "mindustry" instead of "io.anuke.mindustry" (will break plugins)
diff --git a/fastlane/metadata/android/en-US/changelogs/29564.txt b/fastlane/metadata/android/en-US/changelogs/29564.txt
new file mode 100644
index 0000000000..f8244a4b0b
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/29564.txt
@@ -0,0 +1,5 @@
+- Added new map view w/ panning and scrolling
+- Added block health rule
+- Added more internal teams for alternative gamemodes
+- Added features for improved server modding
+- Major internal change: package is now "mindustry" instead of "io.anuke.mindustry" (will break plugins)
diff --git a/fastlane/metadata/android/en-US/changelogs/29567.txt b/fastlane/metadata/android/en-US/changelogs/29567.txt
new file mode 100644
index 0000000000..f8244a4b0b
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/29567.txt
@@ -0,0 +1,5 @@
+- Added new map view w/ panning and scrolling
+- Added block health rule
+- Added more internal teams for alternative gamemodes
+- Added features for improved server modding
+- Major internal change: package is now "mindustry" instead of "io.anuke.mindustry" (will break plugins)
diff --git a/fastlane/metadata/android/en-US/changelogs/29570.txt b/fastlane/metadata/android/en-US/changelogs/29570.txt
new file mode 100644
index 0000000000..f8244a4b0b
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/29570.txt
@@ -0,0 +1,5 @@
+- Added new map view w/ panning and scrolling
+- Added block health rule
+- Added more internal teams for alternative gamemodes
+- Added features for improved server modding
+- Major internal change: package is now "mindustry" instead of "io.anuke.mindustry" (will break plugins)
diff --git a/fastlane/metadata/android/en-US/changelogs/29573.txt b/fastlane/metadata/android/en-US/changelogs/29573.txt
new file mode 100644
index 0000000000..f8244a4b0b
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/29573.txt
@@ -0,0 +1,5 @@
+- Added new map view w/ panning and scrolling
+- Added block health rule
+- Added more internal teams for alternative gamemodes
+- Added features for improved server modding
+- Major internal change: package is now "mindustry" instead of "io.anuke.mindustry" (will break plugins)
diff --git a/fastlane/metadata/android/en-US/video.txt b/fastlane/metadata/android/en-US/video.txt
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/fastlane/metadata/android/es-ES/video.txt b/fastlane/metadata/android/es-ES/video.txt
deleted file mode 100644
index 8b13789179..0000000000
--- a/fastlane/metadata/android/es-ES/video.txt
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/fastlane/metadata/android/ja-JP/video.txt b/fastlane/metadata/android/ja-JP/video.txt
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/fastlane/metadata/android/ru-RU/video.txt b/fastlane/metadata/android/ru-RU/video.txt
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/fastlane/metadata/android/uk/video.txt b/fastlane/metadata/android/uk/video.txt
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/fastlane/metadata/steam/spanish/achievements.vdf b/fastlane/metadata/steam/spanish/achievements.vdf
new file mode 100644
index 0000000000..fb67d82c9d
--- /dev/null
+++ b/fastlane/metadata/steam/spanish/achievements.vdf
@@ -0,0 +1,109 @@
+"lang"
+{
+ "Language" "spanish"
+ "Tokens"
+ {
+ "NEW_ACHIEVEMENT_20_0_NAME" "Verificado"
+ "NEW_ACHIEVEMENT_20_0_DESC" "Completa el tutorial."
+ "NEW_ACHIEVEMENT_20_1_NAME" "Scrapper"
+ "NEW_ACHIEVEMENT_20_1_DESC" "Destruye 1,000 unidades enemigas."
+ "NEW_ACHIEVEMENT_20_2_NAME" "Purga"
+ "NEW_ACHIEVEMENT_20_2_DESC" "Destruye 100,000 unidades enemigas."
+ "NEW_ACHIEVEMENT_20_3_NAME" "Transporte Atmosférico"
+ "NEW_ACHIEVEMENT_20_3_DESC" "Lanza 10,000 items en total."
+ "NEW_ACHIEVEMENT_20_5_NAME" "Envíos Sin Fin"
+ "NEW_ACHIEVEMENT_20_5_DESC" "Lanza un total de 1,000,000 ítems."
+ "NEW_ACHIEVEMENT_20_6_NAME" "Conquistador"
+ "NEW_ACHIEVEMENT_20_6_DESC" "Gana 10 partidas en modo Invasión"
+ "NEW_ACHIEVEMENT_20_7_NAME" "Campeón"
+ "NEW_ACHIEVEMENT_20_7_DESC" "Gana 10 partidas PvP Multijugador."
+ "NEW_ACHIEVEMENT_20_8_NAME" "Rápido"
+ "NEW_ACHIEVEMENT_20_8_DESC" "Destruye el núcleo enemigo en 5 oleadas o menos."
+ "NEW_ACHIEVEMENT_20_9_NAME" "Lluvia de núcleos"
+ "NEW_ACHIEVEMENT_20_9_DESC" "Lanza tu núcleo a una zona 30 veces."
+ "NEW_ACHIEVEMENT_20_10_NAME" "Tenaz"
+ "NEW_ACHIEVEMENT_20_10_DESC" "Sobrevive 100 oleadas."
+ "NEW_ACHIEVEMENT_20_11_NAME" "Unvanquished"
+ "NEW_ACHIEVEMENT_20_11_DESC" "Sobrevive 500 oleadas."
+ "NEW_ACHIEVEMENT_20_12_NAME" "Investigador"
+ "NEW_ACHIEVEMENT_20_12_DESC" "Investiga todo el árbol de tecnologías."
+ "NEW_ACHIEVEMENT_20_13_NAME" "Cambiaformas"
+ "NEW_ACHIEVEMENT_20_13_DESC" "Desbloquea y transformate en todos los mecanoides del juego."
+ "NEW_ACHIEVEMENT_20_14_NAME" "Sobrecarga"
+ "NEW_ACHIEVEMENT_20_14_DESC" "Ataca a un enemigo con electricidad mientras este recibe agua."
+ "NEW_ACHIEVEMENT_20_15_NAME" "Desviación"
+ "NEW_ACHIEVEMENT_20_15_DESC" "Destruye una unidad haciendo rebotar su propia bala."
+ "NEW_ACHIEVEMENT_20_17_NAME" "Un grave, grave error"
+ "NEW_ACHIEVEMENT_20_17_DESC" "Investiga el enrutador."
+ "NEW_ACHIEVEMENT_20_18_NAME" "Creador"
+ "NEW_ACHIEVEMENT_20_18_DESC" "Coloca 10,000 bloques."
+ "NEW_ACHIEVEMENT_20_19_NAME" "Raze"
+ "NEW_ACHIEVEMENT_20_19_DESC" "Destruye 1,000 bloques enemigos."
+ "NEW_ACHIEVEMENT_20_20_NAME" "Un desastre espectacular"
+ "NEW_ACHIEVEMENT_20_20_DESC" "Causa que un reactor de torio se sobre caliente y explote."
+ "NEW_ACHIEVEMENT_20_21_NAME" "Mapper"
+ "NEW_ACHIEVEMENT_20_21_DESC" "Crea un nuevo mapa 10 veces."
+ "NEW_ACHIEVEMENT_20_22_NAME" "Buscador"
+ "NEW_ACHIEVEMENT_20_22_DESC" "Descarga un mapa de la Workshop."
+ "NEW_ACHIEVEMENT_20_23_NAME" "Creador"
+ "NEW_ACHIEVEMENT_20_23_DESC" "Publca un mapa en la Workshop."
+ "NEW_ACHIEVEMENT_20_24_NAME" "Slayer"
+ "NEW_ACHIEVEMENT_20_24_DESC" "Derrota un boss."
+ "NEW_ACHIEVEMENT_20_25_NAME" "Explorador"
+ "NEW_ACHIEVEMENT_20_25_DESC" "Desbloquea todas las zonas de la campaña."
+ "NEW_ACHIEVEMENT_20_26_NAME" "Minucioso"
+ "NEW_ACHIEVEMENT_20_26_DESC" "Alcanza el requisito de configuración en todas las zonas."
+ "NEW_ACHIEVEMENT_20_29_NAME" "Material II"
+ "NEW_ACHIEVEMENT_20_29_DESC" "Desbloquea el Torio."
+ "NEW_ACHIEVEMENT_20_31_NAME" "Material I"
+ "NEW_ACHIEVEMENT_20_31_DESC" "Desbloquea el Titanio."
+ "NEW_ACHIEVEMENT_21_0_NAME" "Kamikaze"
+ "NEW_ACHIEVEMENT_21_0_DESC" "LLena tu mecanoide de explosivos y muere, creando una explosión."
+ "NEW_ACHIEVEMENT_21_1_NAME" "Así comienza"
+ "NEW_ACHIEVEMENT_21_1_DESC" "Construye una fábrica de drones Daga."
+ "NEW_ACHIEVEMENT_21_2_NAME" "Asalto Directo"
+ "NEW_ACHIEVEMENT_21_2_DESC" "Utiliza el comando ataque desde el centro de comando."
+ "NEW_ACHIEVEMENT_21_3_NAME" "Swarm"
+ "NEW_ACHIEVEMENT_21_3_DESC" "Consigue 100 unidades activas al mismo tiempo."
+ "NEW_ACHIEVEMENT_21_4_NAME" "Flock"
+ "NEW_ACHIEVEMENT_21_4_DESC" "Consigue 10 drones fantasmales activos al mismo tiempo."
+ "NEW_ACHIEVEMENT_21_5_NAME" "Ejército volátil"
+ "NEW_ACHIEVEMENT_21_5_DESC" "Consigue 50 Crawlers activos al mismo tiempo."
+ "NEW_ACHIEVEMENT_21_6_NAME" "Legiones"
+ "NEW_ACHIEVEMENT_21_6_DESC" "Construye 1,000 unidades en total."
+ "NEW_ACHIEVEMENT_21_7_NAME" "Super"
+ "NEW_ACHIEVEMENT_21_7_DESC" "Consigue el rango S en cualquier zona."
+ "NEW_ACHIEVEMENT_21_8_NAME" "Super Super"
+ "NEW_ACHIEVEMENT_21_8_DESC" "Consigue el rango SS en cualquier zona."
+ "NEW_ACHIEVEMENT_21_9_NAME" "Deberías haber hecho caso"
+ "NEW_ACHIEVEMENT_21_9_DESC" "Muere en la zona del punto de exclusión."
+ "NEW_ACHIEVEMENT_21_10_NAME" "Solo aprieta Shift"
+ "NEW_ACHIEVEMENT_21_10_DESC" "Muere ahogado, como sea."
+ "NEW_ACHIEVEMENT_21_11_NAME" "Coleccionista"
+ "NEW_ACHIEVEMENT_21_11_DESC" "Llena el núcleo con la máxima cantidad de todos los recursos."
+ "NEW_ACHIEVEMENT_21_12_NAME" "10 son multitud"
+ "NEW_ACHIEVEMENT_21_12_DESC" "Hostea un servidor con 10 jugadores."
+ "NEW_ACHIEVEMENT_21_13_NAME" "Invencible"
+ "NEW_ACHIEVEMENT_21_13_DESC" "Construye el Meltdown y el Espectro."
+ "NEW_ACHIEVEMENT_21_14_NAME" "Liftoff"
+ "NEW_ACHIEVEMENT_21_14_DESC" "Use the Launch Pad."
+ "NEW_ACHIEVEMENT_21_15_NAME" "Complacencia"
+ "NEW_ACHIEVEMENT_21_15_DESC" "Saltea lanzar dos veces, luego deja que los enemigos destruyan tu núcleo."
+ "NEW_ACHIEVEMENT_21_16_NAME" "Herejía"
+ "NEW_ACHIEVEMENT_21_16_DESC" "Construye dos enrutadores, uno al lado del otro."
+ "NEW_ACHIEVEMENT_21_17_NAME" "Guardián solitario"
+ "NEW_ACHIEVEMENT_21_17_DESC" "Sobrevive 10 oleadas sin colocar ni un solo bloque."
+ "NEW_ACHIEVEMENT_21_18_NAME" "Incinerador"
+ "NEW_ACHIEVEMENT_21_18_DESC" "Usa pirotita para cargar una torreta."
+ "NEW_ACHIEVEMENT_21_19_NAME" "Eficiente"
+ "NEW_ACHIEVEMENT_21_19_DESC" "Refrigera una torreta con líquido criogénico."
+ "NEW_ACHIEVEMENT_21_20_NAME" "Modo Clásico"
+ "NEW_ACHIEVEMENT_21_20_DESC" "Activa el modo pixelado."
+ "NEW_ACHIEVEMENT_21_21_NAME" "Estudiante"
+ "NEW_ACHIEVEMENT_21_21_DESC" "Abre la wiki desde el juego."
+ "NEW_ACHIEVEMENT_21_22_NAME" "Comienzo a lo grande"
+ "NEW_ACHIEVEMENT_21_22_DESC" "Lanzate a una zona con mas de 10.000 recursos configurados."
+ "NEW_ACHIEVEMENT_21_23_NAME" "Ignición"
+ "NEW_ACHIEVEMENT_21_23_DESC" "Alimenta con energía un generador de impacto."
+ }
+}
diff --git a/fastlane/metadata/steam/spanish/description.txt b/fastlane/metadata/steam/spanish/description.txt
new file mode 100644
index 0000000000..979f2ad430
--- /dev/null
+++ b/fastlane/metadata/steam/spanish/description.txt
@@ -0,0 +1,61 @@
+Crea elaboradas cadenas de suministros para cargar tus torretas, produce materiales para crear estructuras y defiendelas de oleadas de enemigos. Juega con tus amigos en un multijugador cooperativo multiplataforma, o pelea contra ellos en batallas PvP por equipos.
+
+[img]{STEAM_APP_IMAGE}/extras/ezgif-4-0e70c282f775.gif[/img]
+
+[h2]Gameplay[/h2]
+
+[list]
+[*] Crea taladros y cintas transportadoras para enviar recursos a tu núcleo
+[*] Usa bloques de producción para crear materiales avanzados
+[*] Construye drones para minar recursos automaticamente, construir y defender tu base de forma eficiente
+[*] Distribuye liquidos y apaga posibles incendios
+[*] Potencia la producción refrigerando y lubricando tus defensas y bloques de construcción
+[/list]
+
+[h2]Campaña[/h2]
+
+[list]
+[*] Avanza a través de 12 zonas completamente rejugables con puntos de aparición randomizados
+[*] Obtén y lanza recursos para investigar nuevas tecnologías
+[*] Investiga nuevos bloques para facilitar tu progreso
+[*] Configura los recursos iniciales de cada área a tus necesidades
+[*] Gran variedad de misiones y objetivos
+[*] Juega con tus amigos y completa niveles con ellos
+[*] Mas de 120 bloques por investigar y descubrir
+[*] 19 tipos de drones, mecanoides y naves
+[*] Mas de 50 logros para completar
+[/list]
+
+[h2][h2]Modos de juego[/h2][/h2]
+
+[list]
+[*] [b]Supervivencia[/b]: Construye torretas para defenderte de tus enemigos con un estilo de Tower Defense. Sobrevive tanto como puedas, lanzando tu núcleo (opcionalmente) para utilizar los recursos con propósitos de investigación. Prepara tu base para el ataque de intermitentes bosses áereos.
+[*] [b]Invasión[/b]: Construye fábricas de unidades para destruir el núcleo enemigo, mientras resistes oleadas periódicamente. Utiliza distintos tipos de unidades de ataque y soporte para ayudarte en la conquista.
+[*] [b]PvP[/b]: Compite contra otros jugadores en hasta 4 equipos diferentes para destruir el núcleo de los demás. Crea unidades o ataca directamente con mecanoides la base de tus enemigos.
+[*] [b]Sandbox[/b]: Juega libremente con recursos infinitos y sin enemigos molestando. Usa bloques exclusivos de sandbox para facilitar la prueba de diseños. Crea oleadas a gusto.
+[/list]
+
+[h2]Partidas personalizadas y multijugador multiplataforma[/h2]
+
+[list]
+[*] 12 mapas integrados para partidas personalizadas, además de los de la campaña
+[*] Juega en cooperativo, Sandbox o PvP
+[*] Únete a un servidor dedicado, o invita amigos a tu partida privada
+[*] Reglas personalizadas: Cambia costos y tiempos de tus estructuras. Regula la fuerza de tus enemigos y cada cuanto aparecen, entre otras opciones
+[*] Modos de juego combinados: Juega PvP y PvE al mismo tiempo
+[/list]
+
+[h2]Editor de mapas[/h2]
+
+[list]
+[*] Dibuja terreno con una interfaz completa de editor
+[*] Edita y visualiza estructuras in-game
+[*] Configura los modos de las herramientas
+[*] Poderoso algoritmo de generacion, aplica filtros de terreno.
+[*] Aplica distorsión, simetria, suavidad, generación de terreno y más a tus mapas
+[*] Randomiza la generacion de ores y terreno, para que cada partida sea distinta
+[*] Configura las oleadas a tu gusto
+[*] Comparte mapas en la Steam Workshop
+[*] Personaliza las reglas de los mapas
+[*] Usa mas de 75 bloques ambientales, para darle un estilo único a tus mapas
+[/list]
diff --git a/fastlane/metadata/steam/spanish/short-description.txt b/fastlane/metadata/steam/spanish/short-description.txt
new file mode 100644
index 0000000000..0966131f11
--- /dev/null
+++ b/fastlane/metadata/steam/spanish/short-description.txt
@@ -0,0 +1 @@
+Un Tower Defense abierto centrado en la gestión de recursos.
diff --git a/gradle.properties b/gradle.properties
index 29c1e50fad..4220bfc60f 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
-archash=88c1a9afe2f5be4dd06e47ac8afe070247b3da29
+archash=230db37c657820ae837eac9758307dd4b22c107d
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 6ce793f21e..5028f28f8e 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/server/run-jar b/server/run-jar
new file mode 100755
index 0000000000..2ab341566f
--- /dev/null
+++ b/server/run-jar
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+if [[ $# -eq 0 ]] ; then
+ echo 'A server jar must be supplied as the first argument.'
+ exit 1
+fi
+
+if [[ ! -e $1 ]] ; then
+ echo "The supplied jar file '$1' must exist."
+ exit 1
+fi
+
+while true; do
+#auto-restart until ctrl-c or exit 0
+java -jar -XX:+HeapDumpOnOutOfMemoryError $1
+excode=$?
+if [ $excode -eq 0 ] || [ $excode -eq 130 ]; then
+ exit 0
+fi
+done
diff --git a/run-server b/server/run-server
similarity index 54%
rename from run-server
rename to server/run-server
index 0358cb521b..4e337686a0 100755
--- a/run-server
+++ b/server/run-server
@@ -4,5 +4,22 @@ if [[ $# -eq 0 ]] ; then
exit 1
fi
+cd ..
+
./gradlew server:dist -Pbuildversion=$1
+
+excode=$?
+
+if [ $excode -ne 0 ]; then
+ echo $excode
+ exit 1
+fi
+
+while true; do
+#auto-restart until ctrl-c or exit 0
java -jar -XX:+HeapDumpOnOutOfMemoryError server/build/libs/server-release.jar
+excode=$?
+if [ $excode -eq 0 ] || [ $excode -eq 130 ]; then
+ exit 0
+fi
+done
diff --git a/server/src/mindustry/server/ServerControl.java b/server/src/mindustry/server/ServerControl.java
index b821d5dcd5..8d2feb74b0 100644
--- a/server/src/mindustry/server/ServerControl.java
+++ b/server/src/mindustry/server/ServerControl.java
@@ -1,11 +1,11 @@
package mindustry.server;
import arc.*;
+import arc.files.*;
import arc.struct.*;
import arc.struct.Array.*;
-import arc.files.*;
-import arc.util.*;
import arc.util.ArcAnnotate.*;
+import arc.util.*;
import arc.util.Timer;
import arc.util.CommandHandler.*;
import arc.util.Timer.*;
@@ -40,7 +40,6 @@ import static mindustry.Vars.*;
public class ServerControl implements ApplicationListener{
private static final int roundExtraTime = 12;
private static final int maxLogLength = 1024 * 512;
- private static final int commandSocketPort = 6859;
protected static String[] tags = {"&lc&fb[D]", "&lg&fb[I]", "&ly&fb[W]", "&lr&fb[E]", ""};
protected static DateTimeFormatter dateTime = DateTimeFormatter.ofPattern("MM-dd-yyyy | HH:mm:ss");
@@ -64,10 +63,6 @@ public class ServerControl implements ApplicationListener{
"bans", "",
"admins", "",
"shufflemode", "custom",
- "crashreport", false,
- "port", port,
- "logging", true,
- "socket", false,
"globalrules", "{reactorExplosions: false}"
);
@@ -75,7 +70,7 @@ public class ServerControl implements ApplicationListener{
String result = "[" + dateTime.format(LocalDateTime.now()) + "] " + format(tags[level.ordinal()] + " " + text + "&fr", args1);
System.out.println(result);
- if(Core.settings.getBool("logging")){
+ if(Config.logging.bool()){
logToFile("[" + dateTime.format(LocalDateTime.now()) + "] " + format(tags[level.ordinal()] + " " + text + "&fr", false, args1));
}
@@ -95,11 +90,17 @@ public class ServerControl implements ApplicationListener{
registerCommands();
Core.app.post(() -> {
- String[] commands = {};
+ Array commands = new Array<>();
if(args.length > 0){
- commands = Strings.join(" ", args).split(",");
- info("&lmFound {0} command-line arguments to parse.", commands.length);
+ commands.addAll(Strings.join(" ", args).split(","));
+ info("&lmFound {0} command-line arguments to parse.", commands.size);
+ }
+
+ if(!Config.startCommands.string().isEmpty()){
+ String[] startup = Strings.join(" ", Config.startCommands.string()).split(",");
+ info("&lmFound {0} startup commands.", startup.length);
+ commands.addAll(startup);
}
for(String s : commands){
@@ -107,7 +108,6 @@ public class ServerControl implements ApplicationListener{
if(response.type != ResponseType.valid){
err("Invalid command argument sent: '{0}': {1}", s, response.type.name());
err("Argument usage: &lc , ");
- System.exit(1);
}
}
});
@@ -135,7 +135,7 @@ public class ServerControl implements ApplicationListener{
if(state.rules.waves){
info("&lcGame over! Reached wave &ly{0}&lc with &ly{1}&lc players online on map &ly{2}&lc.", state.wave, playerGroup.size(), Strings.capitalize(world.getMap().name()));
}else{
- info("&lcGame over! Team &ly{0}&lc is victorious with &ly{1}&lc players online on map &ly{2}&lc.", event.winner.name(), playerGroup.size(), Strings.capitalize(world.getMap().name()));
+ info("&lcGame over! Team &ly{0}&lc is victorious with &ly{1}&lc players online on map &ly{2}&lc.", event.winner.name, playerGroup.size(), Strings.capitalize(world.getMap().name()));
}
//set next map to be played
@@ -143,7 +143,7 @@ public class ServerControl implements ApplicationListener{
nextMapOverride = null;
if(map != null){
Call.onInfoMessage((state.rules.pvp
- ? "[YELLOW]The " + event.winner.name() + " team is victorious![]" : "[SCARLET]Game over![]")
+ ? "[YELLOW]The " + event.winner.name + " team is victorious![]" : "[SCARLET]Game over![]")
+ "\nNext selected map:[accent] " + map.name() + "[]"
+ (map.tags.containsKey("author") && !map.tags.get("author").trim().isEmpty() ? " by[accent] " + map.author() + "[]" : "") + "." +
"\nNew game begins in " + roundExtraTime + "[] seconds.");
@@ -158,16 +158,27 @@ public class ServerControl implements ApplicationListener{
}
});
+ Events.on(Trigger.socketConfigChanged, () -> {
+ toggleSocket(false);
+ toggleSocket(Config.socketInput.bool());
+ });
+
+ Events.on(PlayEvent.class, e -> {
+ try{
+ JsonValue value = JsonIO.json().fromJson(null, Core.settings.getString("globalrules"));
+ JsonIO.json().readFields(state.rules, value);
+ }catch(Throwable t){
+ Log.err("Error applying custom rules, proceeding without them.", t);
+ }
+ });
+
if(!mods.list().isEmpty()){
info("&lc{0} mods loaded.", mods.list().size);
}
- info("&lcServer loaded. Type &ly'help'&lc for help.");
- System.out.print("> ");
+ toggleSocket(Config.socketInput.bool());
- if(Core.settings.getBool("socket")){
- toggleSocket(true);
- }
+ info("&lcServer loaded. Type &ly'help'&lc for help.");
}
private void registerCommands(){
@@ -179,7 +190,7 @@ public class ServerControl implements ApplicationListener{
});
handler.register("version", "Displays server version info.", arg -> {
- info("&lmVersion: &lyMindustry {0}-{1} {2} / build {3}", Version.number, Version.modifier, Version.type, Version.build);
+ info("&lmVersion: &lyMindustry {0}-{1} {2} / build {3}", Version.number, Version.modifier, Version.type, Version.build + (Version.revision == 0 ? "" : "." + Version.revision));
info("&lmJava Version: &ly{0}", System.getProperty("java.version"));
});
@@ -236,32 +247,16 @@ public class ServerControl implements ApplicationListener{
try{
world.loadMap(result, result.applyRules(lastMode));
state.rules = result.applyRules(preset);
- applyRules();
logic.play();
info("Map loaded.");
- host();
+ netServer.openServer();
}catch(MapException e){
Log.err(e.map.name() + ": " + e.getMessage());
}
});
- handler.register("port", "[port]", "Sets or displays the port for hosting the server.", arg -> {
- if(arg.length == 0){
- info("&lyPort: &lc{0}", Core.settings.getInt("port"));
- }else{
- int port = Strings.parseInt(arg[0]);
- if(port < 0 || port > 65535){
- err("Port must be a number between 0 and 65535.");
- return;
- }
- info("&lyPort set to {0}.", port);
- Core.settings.put("port", port);
- Core.settings.save();
- }
- });
-
handler.register("maps", "Display all available maps.", arg -> {
if(!maps.all().isEmpty()){
info("Maps:");
@@ -292,12 +287,12 @@ public class ServerControl implements ApplicationListener{
info(" &lyPlaying on map &fi{0}&fb &lb/&ly Wave {1}", Strings.capitalize(world.getMap().name()), state.wave);
if(state.rules.waves){
- info("&ly {0} enemies.", unitGroups[Team.crux.ordinal()].size());
+ info("&ly {0} enemies.", state.enemies);
}else{
info("&ly {0} seconds until next wave.", (int)(state.wavetime / 60));
}
- info(" &ly{0} FPS, {1} MB used.", (int)(60f / Time.delta()), Core.app.getJavaHeap() / 1024 / 1024);
+ info(" &ly{0} FPS, {1} MB used.", Core.graphics.getFramesPerSecond(), Core.app.getJavaHeap() / 1024 / 1024);
if(playerGroup.size() > 0){
info(" &lyPlayers: {0}", playerGroup.size());
@@ -403,7 +398,7 @@ public class ServerControl implements ApplicationListener{
base.addChild(arg[1], value);
Log.info("Changed rule: &ly{0}", value.toString().replace("\n", " "));
}catch(Throwable e){
- Log.err("Error parsing rule JSON", e);
+ Log.err("Error parsing rule JSON: {0}", e.getMessage());
}
}
@@ -418,34 +413,26 @@ public class ServerControl implements ApplicationListener{
return;
}
- try{
- Team team = arg.length == 0 ? Team.sharded : Team.valueOf(arg[0]);
+ Team team = arg.length == 0 ? Team.sharded : Structs.find(Team.all(), t -> t.name.equals(arg[0]));
- if(state.teams.get(team).cores.isEmpty()){
- err("That team has no cores.");
- return;
- }
-
- for(Item item : content.items()){
- if(item.type == ItemType.material){
- state.teams.get(team).cores.first().entity.items.set(item, state.teams.get(team).cores.first().block().itemCapacity);
- }
- }
-
- info("Core filled.");
- }catch(IllegalArgumentException ignored){
- err("No such team exists.");
- }
- });
-
- handler.register("name", "[name...]", "Change the server display name.", arg -> {
- if(arg.length == 0){
- info("Server name is currently &lc'{0}'.", Core.settings.getString("servername"));
+ if(team == null){
+ err("No team with that name found.");
return;
}
- Core.settings.put("servername", arg[0]);
- Core.settings.save();
- info("Server name is now &lc'{0}'.", arg[0]);
+
+ if(state.teams.cores(team).isEmpty()){
+ err("That team has no cores.");
+ return;
+ }
+
+ for(Item item : content.items()){
+ if(item.type == ItemType.material){
+ state.teams.cores(team).first().items.set(item, state.teams.cores(team).first().block.itemCapacity);
+ }
+ }
+
+ info("Core filled.");
+
});
handler.register("playerlimit", "[off/somenumber]", "Set the server player limit.", arg -> {
@@ -468,14 +455,40 @@ public class ServerControl implements ApplicationListener{
}
});
- handler.register("whitelist", "[on/off...]", "Enable/disable whitelisting.", arg -> {
+ handler.register("config", "[name] [value...]", "Configure server settings.", arg -> {
if(arg.length == 0){
- info("Whitelist is currently &lc{0}.", netServer.admins.isWhitelistEnabled() ? "on" : "off");
+ info("&lyAll config values:");
+ for(Config c : Config.all){
+ Log.info("&ly| &lc{0}:&lm {1}", c.name(), c.get());
+ Log.info("&ly| | {0}", c.description);
+ Log.info("&ly|");
+ }
return;
}
- boolean on = arg[0].equalsIgnoreCase("on");
- netServer.admins.setWhitelist(on);
- info("Whitelist is now &lc{0}.", on ? "on" : "off");
+
+ try{
+ Config c = Config.valueOf(arg[0]);
+ if(arg.length == 1){
+ Log.info("&lc'{0}'&lg is currently &lc{1}.", c.name(), c.get());
+ }else{
+ if(c.isBool()){
+ c.set(arg[1].equals("on") || arg[1].equals("true"));
+ }else if(c.isNum()){
+ try{
+ c.set(Integer.parseInt(arg[1]));
+ }catch(NumberFormatException e){
+ Log.err("Not a valid number: {0}", arg[1]);
+ return;
+ }
+ }else if(c.isString()){
+ c.set(arg[1]);
+ }
+
+ Log.info("&lc{0}&lg set to &lc{1}.", c.name(), c.get());
+ }
+ }catch(IllegalArgumentException e){
+ err("Unknown config: '{0}'. Run the command with no arguments to get a list of valid configs.", arg[0]);
+ }
});
handler.register("whitelisted", "List the entire whitelist.", arg -> {
@@ -510,67 +523,6 @@ public class ServerControl implements ApplicationListener{
info("Player &ly'{0}'&lg has been un-whitelisted.", info.lastName);
});
- handler.register("sync", "[on/off...]", "Enable/disable block sync. Experimental.", arg -> {
- if(arg.length == 0){
- info("Block sync is currently &lc{0}.", Core.settings.getBool("blocksync") ? "enabled" : "disabled");
- return;
- }
- boolean on = arg[0].equalsIgnoreCase("on");
- Core.settings.putSave("blocksync", on);
- info("Block syncing is now &lc{0}.", on ? "on" : "off");
- });
-
- handler.register("crashreport", "", "Disables or enables automatic crash reporting", arg -> {
- boolean value = arg[0].equalsIgnoreCase("on");
- Core.settings.put("crashreport", value);
- Core.settings.save();
- info("Crash reporting is now {0}.", value ? "on" : "off");
- });
-
- handler.register("logging", "", "Disables or enables server logs", arg -> {
- boolean value = arg[0].equalsIgnoreCase("on");
- Core.settings.put("logging", value);
- Core.settings.save();
- info("Logging is now {0}.", value ? "on" : "off");
- });
-
- handler.register("strict", "", "Disables or enables strict mode", arg -> {
- boolean value = arg[0].equalsIgnoreCase("on");
- netServer.admins.setStrict(value);
- info("Strict mode is now {0}.", netServer.admins.getStrict() ? "on" : "off");
- });
-
- handler.register("socketinput", "[on/off]", "Disables or enables a local TCP socket at port "+commandSocketPort+" to recieve commands from other applications", arg -> {
- if(arg.length == 0){
- info("Socket input is currently &lc{0}.", Core.settings.getBool("socket") ? "on" : "off");
- return;
- }
-
- boolean value = arg[0].equalsIgnoreCase("on");
- toggleSocket(value);
- Core.settings.put("socket", value);
- Core.settings.save();
- info("Socket input is now &lc{0}.", value ? "on" : "off");
- });
-
- handler.register("allow-custom-clients", "[on/off]", "Allow or disallow custom clients.", arg -> {
- if(arg.length == 0){
- info("Custom clients are currently &lc{0}.", netServer.admins.allowsCustomClients() ? "allowed" : "disallowed");
- return;
- }
-
- String s = arg[0];
- if(s.equalsIgnoreCase("on")){
- netServer.admins.setCustomClients(true);
- info("Custom clients enabled.");
- }else if(s.equalsIgnoreCase("off")){
- netServer.admins.setCustomClients(false);
- info("Custom clients disabled.");
- }else{
- err("Incorrect command usage.");
- }
- });
-
handler.register("shuffle", "[none/all/custom/builtin]", "Set map shuffling mode.", arg -> {
if(arg.length == 0){
info("Shuffle mode current set to &ly'{0}'&lg.", maps.getShuffleMode());
@@ -759,8 +711,8 @@ public class ServerControl implements ApplicationListener{
SaveIO.load(file);
state.rules.zone = null;
info("Save loaded.");
- host();
state.set(State.playing);
+ netServer.openServer();
}catch(Throwable t){
err("Failed to load save. Outdated or corrupt file.");
}
@@ -833,15 +785,6 @@ public class ServerControl implements ApplicationListener{
mods.eachClass(p -> p.registerClientCommands(netServer.clientCommands));
}
- private void applyRules(){
- try{
- JsonValue value = JsonIO.json().fromJson(null, Core.settings.getString("globalrules"));
- JsonIO.json().readFields(state.rules, value);
- }catch(Throwable t){
- Log.err("Error applying custom rules, proceeding without them.", t);
- }
- }
-
private void readCommands(){
Scanner scan = new Scanner(System.in);
@@ -877,8 +820,6 @@ public class ServerControl implements ApplicationListener{
}else if(response.type == ResponseType.manyArguments){
err("Too many command arguments. Usage: " + response.command.text + " " + response.command.paramText);
}
-
- System.out.print("> ");
}
private void play(boolean wait, Runnable run){
@@ -894,9 +835,8 @@ public class ServerControl implements ApplicationListener{
Call.onWorldDataBegin();
run.run();
- logic.play();
state.rules = world.getMap().applyRules(lastMode);
- applyRules();
+ logic.play();
for(Player p : players){
if(p.con == null) continue;
@@ -929,19 +869,6 @@ public class ServerControl implements ApplicationListener{
}
}
- private void host(){
- try{
- net.host(Core.settings.getInt("port"));
- info("&lcOpened a server on port {0}.", Core.settings.getInt("port"));
- }catch(BindException e){
- Log.err("Unable to host: Port already in use! Make sure no other servers are running on the same port in your network.");
- state.set(State.menu);
- }catch(IOException e){
- err(e);
- state.set(State.menu);
- }
- }
-
private void logToFile(String text){
if(currentLogFile != null && currentLogFile.length() > maxLogLength){
String date = DateTimeFormatter.ofPattern("MM-dd-yyyy | HH:mm:ss").format(LocalDateTime.now());
@@ -966,7 +893,7 @@ public class ServerControl implements ApplicationListener{
socketThread = new Thread(() -> {
try{
serverSocket = new ServerSocket();
- serverSocket.bind(new InetSocketAddress("localhost", commandSocketPort));
+ serverSocket.bind(new InetSocketAddress(Config.socketInputAddress.string(), Config.socketInputPort.num()));
while(true){
Socket client = serverSocket.accept();
info("&lmRecieved command socket connection: &lb{0}", serverSocket.getLocalSocketAddress());
diff --git a/servers.json b/servers.json
index 0637a088a0..81ea4bf021 100644
--- a/servers.json
+++ b/servers.json
@@ -1 +1,5 @@
-[]
\ No newline at end of file
+[
+ {
+ "address": "mindustry.us.to"
+ }
+]
diff --git a/servers_be.json b/servers_be.json
new file mode 100644
index 0000000000..be72d9d6da
--- /dev/null
+++ b/servers_be.json
@@ -0,0 +1,5 @@
+[
+ {
+ "address": "mindustry.us.to:6568"
+ }
+]
\ No newline at end of file
diff --git a/tests/src/test/java/ApplicationTests.java b/tests/src/test/java/ApplicationTests.java
index 338e9b7597..ce7add02d3 100644
--- a/tests/src/test/java/ApplicationTests.java
+++ b/tests/src/test/java/ApplicationTests.java
@@ -106,8 +106,8 @@ public class ApplicationTests{
Time.update();
Time.update();
Time.setDeltaProvider(() -> 1f);
- unitGroups[waveTeam.ordinal()].updateEvents();
- assertFalse(unitGroups[waveTeam.ordinal()].isEmpty(), "No enemies spawned.");
+ unitGroup.update();
+ assertFalse(unitGroup.isEmpty(), "No enemies spawned.");
}
@Test
@@ -124,7 +124,7 @@ public class ApplicationTests{
createMap();
int bx = 4;
int by = 4;
- world.setBlock(world.tile(bx, by), Blocks.coreShard, Team.sharded);
+ world.tile(bx, by).set(Blocks.coreShard, Team.sharded);
assertEquals(world.tile(bx, by).getTeam(), Team.sharded);
for(int x = bx - 1; x <= bx + 1; x++){
for(int y = by - 1; y <= by + 1; y++){
@@ -194,7 +194,7 @@ public class ApplicationTests{
@Test
void save(){
world.loadMap(testMap);
- assertTrue(state.teams.get(defaultTeam).cores.size > 0);
+ assertTrue(state.teams.playerCores().size > 0);
SaveIO.save(saveDirectory.child("0.msav"));
}
@@ -209,7 +209,7 @@ public class ApplicationTests{
assertEquals(world.width(), map.width);
assertEquals(world.height(), map.height);
- assertTrue(state.teams.get(defaultTeam).cores.size > 0);
+ assertTrue(state.teams.playerCores().size > 0);
}
@Test
@@ -375,12 +375,12 @@ public class ApplicationTests{
createMap();
Tile core = world.tile(5, 5);
- world.setBlock(core, Blocks.coreShard, Team.sharded);
+ core.set(Blocks.coreShard, Team.sharded);
for(Item item : content.items()){
core.entity.items.set(item, 3000);
}
- assertEquals(core, state.teams.get(Team.sharded).cores.first());
+ assertEquals(core.entity, state.teams.get(Team.sharded).core());
}
void depositTest(Block block, Item item){
diff --git a/tests/src/test/java/IOTests.java b/tests/src/test/java/IOTests.java
index 240334f6dd..79f7a213cf 100644
--- a/tests/src/test/java/IOTests.java
+++ b/tests/src/test/java/IOTests.java
@@ -1,11 +1,11 @@
+import arc.util.*;
import mindustry.game.*;
-import mindustry.io.TypeIO;
-import org.junit.jupiter.api.Test;
+import mindustry.io.*;
+import org.junit.jupiter.api.*;
-import java.nio.ByteBuffer;
+import java.nio.*;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.*;
public class IOTests{
@@ -49,5 +49,23 @@ public class IOTests{
assertEquals(rules.attackMode, res.attackMode);
}
+ @Test
+ void writeRules2(){
+ Rules rules = new Rules();
+ rules.attackMode = true;
+ rules.tags.put("blah", "bleh");
+ rules.buildSpeedMultiplier = 99.1f;
+ String str = JsonIO.write(rules);
+ Rules res = JsonIO.read(Rules.class, str);
+
+ assertEquals(rules.buildSpeedMultiplier, res.buildSpeedMultiplier);
+ assertEquals(rules.attackMode, res.attackMode);
+ assertEquals(rules.tags.get("blah"), res.tags.get("blah"));
+
+ String str2 = JsonIO.write(new Rules(){{
+ attackMode = true;
+ }});
+ Log.info(str2);
+ }
}
diff --git a/tests/src/test/java/ZoneTests.java b/tests/src/test/java/ZoneTests.java
index 2a044d5b75..a238a815ee 100644
--- a/tests/src/test/java/ZoneTests.java
+++ b/tests/src/test/java/ZoneTests.java
@@ -52,7 +52,7 @@ public class ZoneTests{
if(tile.drop() != null){
resources.add(tile.drop());
}
- if(tile.block() instanceof CoreBlock && tile.getTeam() == defaultTeam){
+ if(tile.block() instanceof CoreBlock && tile.getTeam() == state.rules.defaultTeam){
hasSpawnPoint = true;
}
}
@@ -69,7 +69,7 @@ public class ZoneTests{
}
assertTrue(hasSpawnPoint, "Zone \"" + zone.name + "\" has no spawn points.");
- assertTrue(spawner.countSpawns() > 0 || (state.rules.attackMode && !state.teams.get(waveTeam).cores.isEmpty()), "Zone \"" + zone.name + "\" has no enemy spawn points: " + spawner.countSpawns());
+ assertTrue(spawner.countSpawns() > 0 || (state.rules.attackMode && state.teams.get(state.rules.waveTeam).hasCore()), "Zone \"" + zone.name + "\" has no enemy spawn points: " + spawner.countSpawns());
for(Item item : resources){
assertTrue(zone.resources.contains(item), "Zone \"" + zone.name + "\" is missing item in resource list: \"" + item.name + "\"");
diff --git a/tests/src/test/java/power/PowerTestFixture.java b/tests/src/test/java/power/PowerTestFixture.java
index fd445a2c25..e5735052f5 100644
--- a/tests/src/test/java/power/PowerTestFixture.java
+++ b/tests/src/test/java/power/PowerTestFixture.java
@@ -27,6 +27,7 @@ public class PowerTestFixture{
@BeforeAll
static void initializeDependencies(){
Core.graphics = new FakeGraphics();
+ Vars.state = new GameState();
Vars.content = new ContentLoader(){
@Override
public void handleMappableContent(MappableContent content){
diff --git a/tests/src/test/java/power/PowerTests.java b/tests/src/test/java/power/PowerTests.java
index f017bf6e82..6815f2e880 100644
--- a/tests/src/test/java/power/PowerTests.java
+++ b/tests/src/test/java/power/PowerTests.java
@@ -3,6 +3,8 @@ package power;
import arc.*;
import arc.math.*;
import arc.util.*;
+import mindustry.*;
+import mindustry.core.*;
import mindustry.world.*;
import mindustry.world.blocks.power.*;
import mindustry.world.consumers.*;
@@ -23,6 +25,7 @@ public class PowerTests extends PowerTestFixture{
@BeforeAll
static void init(){
Core.graphics = new FakeGraphics();
+ Vars.state = new GameState();
}
@Nested
diff --git a/tools/build.gradle b/tools/build.gradle
index ea158a66a1..033040e96d 100644
--- a/tools/build.gradle
+++ b/tools/build.gradle
@@ -240,7 +240,7 @@ task swapColors(){
Color.argb8888ToColor(tmpc, c)
if(tmpc.a < 0.1f) continue
if(map.containsKey(c)){
- img.setRGB(x, y, (int) map.get(c))
+ img.setRGB(x, y, (int)map.get(c))
}
}
}
diff --git a/tools/src/mindustry/tools/BundleLauncher.java b/tools/src/mindustry/tools/BundleLauncher.java
index 668d4665fe..1f73b26f28 100644
--- a/tools/src/mindustry/tools/BundleLauncher.java
+++ b/tools/src/mindustry/tools/BundleLauncher.java
@@ -15,7 +15,7 @@ public class BundleLauncher{
OrderedMap base = new OrderedMap<>();
PropertiesUtils.load(base, new InputStreamReader(new FileInputStream(file)));
Array removals = new Array<>();
- Fi.get("").walk(child -> {
+ Fi.get(".").walk(child -> {
if(child.name().equals("bundle.properties") || child.isDirectory() || child.toString().contains("output"))
return;
diff --git a/tools/src/mindustry/tools/ScriptStubGenerator.java b/tools/src/mindustry/tools/ScriptStubGenerator.java
index d13bbbdd49..be1d9dd27d 100644
--- a/tools/src/mindustry/tools/ScriptStubGenerator.java
+++ b/tools/src/mindustry/tools/ScriptStubGenerator.java
@@ -26,12 +26,12 @@ public class ScriptStubGenerator{
Array nameBlacklist = Array.with("ClientLauncher", "NetClient", "NetServer", "ClassAccess");
Array> whitelist = Array.with(Draw.class, Fill.class, Lines.class, Core.class, TextureAtlas.class, TextureRegion.class, Time.class, System.class, PrintStream.class,
AtlasRegion.class, String.class, Mathf.class, Angles.class, Color.class, Runnable.class, Object.class, Icon.class, Tex.class,
- Sounds.class, Musics.class, Call.class, Texture.class, TextureData.class, Pixmap.class, I18NBundle.class);
+ Sounds.class, Musics.class, Call.class, Texture.class, TextureData.class, Pixmap.class, I18NBundle.class, Interval.class, DataInput.class, DataOutput.class,
+ DataInputStream.class, DataOutputStream.class, Integer.class, Float.class, Double.class, Long.class, Boolean.class, Short.class, Byte.class, Character.class);
Array nopackage = Array.with("java.lang", "java");
String fileTemplate = "package mindustry.mod;\n" +
- "\n" +
- "import arc.struct.*;\n" +
+ "\nimport arc.struct.*;\n" +
"//obviously autogenerated, do not touch\n" +
"public class ClassAccess{\n" +
"\tpublic static final ObjectSet allowedClassNames = ObjectSet.with($ALLOWED_CLASS_NAMES$);\n" +
@@ -49,6 +49,7 @@ public class ScriptStubGenerator{
.include(FilterBuilder.prefix("arc.func"))
.include(FilterBuilder.prefix("arc.struct"))
.include(FilterBuilder.prefix("arc.scene"))
+ .include(FilterBuilder.prefix("arc.math"))
));
Array> classes = Array.with(reflections.getSubTypesOf(Object.class));