Commit Graph

707 Commits

Author SHA1 Message Date
Anuken
caf0ab581d Item deposit cooldown rule (default: 0.5 sec) 2024-06-30 10:28:01 -04:00
Anuken
400db1b1e8 In-game rule edit dialog 2024-06-24 14:11:56 -04:00
Redstonneur1256
58dbc5104f Logic data instruction (#9935)
* Logic `data` instruction

* Rename to `clientdata` & reliable option

* frog

Co-authored-by: Anuken <arnukren@gmail.com>

---------

Co-authored-by: Anuken <arnukren@gmail.com>
2024-06-16 09:29:35 -04:00
Jason
f26b03dc6c Map rule for air spawns (#9922)
* air use spawns

Signed-off-by: Jason <131086642+JasonP01@users.noreply.github.com>

* add the rule

Signed-off-by: Jason <131086642+JasonP01@users.noreply.github.com>

* add rule in ui

Signed-off-by: Jason <131086642+JasonP01@users.noreply.github.com>

* bundle

Signed-off-by: Jason <131086642+JasonP01@users.noreply.github.com>

* tie it to rules.waves

Signed-off-by: Jason <131086642+JasonP01@users.noreply.github.com>

* :)

Contributing.md says yes

Signed-off-by: Jason <131086642+JasonP01@users.noreply.github.com>

* indent

Signed-off-by: Jason <131086642+JasonP01@users.noreply.github.com>

---------

Signed-off-by: Jason <131086642+JasonP01@users.noreply.github.com>
2024-06-16 00:34:47 -04:00
Redstonneur1256
e8e8189a92 Add ShapeMarker starting and ending angles (#9729) 2024-04-08 19:51:50 -04:00
MEEPofFaith
d8c1ea17e1 Make payload blocks run onDestroyed() of the block payload it carries when destroyed. (#8253)
* Payloads go boom.

* When a payload unit dies too

* Keep the functionality, but limit it to a rule
2024-03-29 15:17:19 -04:00
jp-x-g
0a512e05c3 Make a "unitCommandPosition" event so that unit commands issued to non-attack coordinates can still be listened for (#9650)
* Update InputHandler.java

Make commandTap fire a Trigger.unitCommandPosition (in the event that it doesn't fire a Trigger.unitCommandAttack)

* Update EventType.java

Add "unitCommandPosition" to Trigger, for when selected units are commanded to move to a position (without that position being an attack).
2024-03-18 09:30:18 -04:00
Anuken
9e503efd2f Fixed sync issues with large objective trees 2024-03-03 17:09:23 -05:00
Anuken
e99b9c2ad1 Fixed #9537 2024-02-11 09:00:51 -05:00
Redstonneur1256
f0d37281d4 Marker fixes (#9514) 2024-02-03 12:17:17 -05:00
Redstonneur1256
6a429184aa update markers (#9506)
* update markers

* update markers & minimap rendering
2024-01-30 19:35:39 -05:00
Anuken
a6f2aa6c43 Marker control cleanup 2024-01-29 15:17:49 -05:00
Elixias
4406431291 Better Malis palette (#9491) 2024-01-26 19:08:15 -05:00
Anuken
6f3e75569c Added instantBuild rule for editor 2024-01-23 21:22:02 -05:00
Anuken
7d8aea77d8 Added hidden rule for environment deconstruction / Increased impact reactor liquid capacity 2024-01-20 20:45:15 -05:00
Redstonneur1256
7440f195ba Allow markers to use any texture (#9455) 2024-01-14 21:55:37 -05:00
Anuken
14854ae0a2 Removed unused methods 2024-01-14 12:47:56 -05:00
Anuken
1d894bdacd Objective marker cleanup & optimization 2024-01-14 12:41:20 -05:00
Anuken
84add050a9 Merge branch 'markers-update' of https://github.com/ApsZoldat/Mindustry into ApsZoldat-markers-update 2024-01-14 11:41:36 -05:00
Anuken
61945e5ce7 Clearer sector capture notification 2024-01-05 08:22:12 -05:00
ApsZoldat
df8f90a02b Small MapObjectives refactor (removal of duplicating overrided methods) 2023-12-15 19:33:03 +03:00
ApsZoldat
5830259e41 Markers draw code refactor, minor text marker control changes 2023-12-12 22:40:33 +03:00
ApsZoldat
4802076bf8 WIP marker changes, fix server name not appearing for saved hosts in join dialog 2023-12-10 22:44:30 +03:00
ApsZoldat
cf131696bd Merge remote-tracking branch 'upstream/master' 2023-12-04 22:43:59 +03:00
ApsZoldat
cf02b0f36d Make setmarker ignor null values, remove redundant marker control operations 2023-12-04 22:39:32 +03:00
ApsZoldat
862d3153d9 Map-specific locale bundles system (#9199)
* Fix text setting in marker control

* Fix marker and bridge calculation game crashes, minor marker instruction code fixes

* Add privileged desynced client constant global variables

* Remove broken attempt to not initialize client vars on server

* Make @clientLocale variable non-constant, make @server and @client privileged

* WIP Implementation of map-specific locale bundles

* Progress on map locale bundles: add locale data to saves, make objectives use map locales if possible

* Add print formatting and map locale printing to world processors

* 🗿

* Minor map locales dialog ui changes

* Make map locale bundles load when joining multiplayer server

* Remove static declaration of current locale in MapLocales to fix tests failing

* Unify name of localeprint instruction, minor instruction description change, fix map locales incorrectly loading from clipboard

* Fix locale bundles not saving in game state, add  global var, make objective markers use map locale bundles and .mobile properties on mobile devices

* Even more map locales dialog improvements

* Fix english locale picking (when property isn't presented in current locale but english version has it) not working

* Add icon pasting to map locales dialog, minor ui changes

* Fix inconsistent game crash with null text in objectives, define player.locale on game loading (for clientLocale var)

* Change format instruction placeholders to backslash, fix map locales system incorrectly handling default locale

* understood
2023-12-01 21:14:10 -05:00
ApsZoldat
20b2be5de8 "i forgor" fix 2023-11-28 22:19:08 +03:00
ApsZoldat
02a53daa58 Marker autoscale now works outside of minimap mode, another yet lmarkercontrol instructions cleanup, fix renderer's draw color breaking after drawing markers 2023-11-28 22:00:08 +03:00
ApsZoldat
6ea2188bee Add minimap mode to other objective markers 2023-11-27 22:56:26 +03:00
ApsZoldat
aa018b314d World processor markers: remove toggleVisibility, swap makemarker's type and id arguments for instruction consistency 2023-11-22 22:33:05 +03:00
ApsZoldat
c434e18f8f Add drawing layers to markers 2023-11-13 23:25:44 +03:00
ApsZoldat
6dff68e7d9 Texture marker implementation 2023-11-07 22:42:42 +03:00
Anuken
968fa2f9b1 Derelict repair rule 2023-10-30 21:01:04 -04:00
ApsZoldat
93269692ab Fix marker and bridge calculation game crashes, minor marker instruction fixes (#9112)
* Fix text setting in marker control

* Fix marker and bridge calculation game crashes, minor marker instruction code fixes
2023-09-29 10:10:50 -04:00
Anuken
8bbf5b1f52 Marker instruction rework 2023-09-28 01:04:03 -04:00
ApsZoldat
8c777e79fa Add marker instruction to world processors (#9087)
* Basic implementation of world processor marker control

* Add line marker, some marker control fixes

* Add remote for setting markers, add marker writer/reader to TypeIO

* Add sides cap to ShapeTextMarker's draw() method

* Marker instruction code refactor, revert accident auto-formatting, fix marker control bugs

* Cleanup LMarkerControl.java

* Remove deleted marker controls from MapObjectives

* Marker control method refactor, fix minimap marker rendering

* Refactor, proper double comparsion in MapObjectives

* Fix line marker's color not changing through world processors
2023-09-27 17:17:59 -04:00
Anuken
8598eedd6f Keybind tweaks 2023-09-21 10:40:44 -04:00
Anuken
a6ec8f4bcc Ram stance + Mobile command queue support 2023-09-21 09:57:57 -04:00
WayZer
2b93d39e72 Update SpawnGroup.java (#9065) 2023-09-17 00:22:04 -04:00
Anuken
4b38f667e7 Ignore wave version 2023-08-04 17:43:21 -04:00
Anuken
636ce4ca94 Better implementation of #8810 2023-07-23 16:30:44 -04:00
Anuken
a2dd2c88a2 Fixed #8733 2023-06-20 13:09:50 -04:00
Даркнесс#3729
4e5475f0ed Team improvements (#8704)
* Update Team.java

* Update ServerControl.java

* better

* kill me please

* kill me please

* kill me please

* Update bundle_ca.properties

* kill me please

* Update bundle_da.properties

* kill me please

* kill me please

* Update bundle_et.properties

* Update bundle_eu.properties

* Update bundle_fi.properties

* Update bundle_fil.properties

* Update bundle_fr.properties

* Update bundle_hu.properties

* Update bundle_id_ID.properties

* Update bundle_ja.properties

* Update bundle_ko.properties

* Update bundle_lt.properties

* Update bundle_nl.properties

* Update bundle_nl_BE.properties

* Update bundle_pl.properties

* Update bundle_pt_BR.properties

* Update bundle_pt_PT.properties

* Update bundle_ro.properties

* Update bundle_ru.properties

* Update bundle_sr.properties

* Update bundle_sv.properties

* Update bundle_th.properties

* Update bundle_tr.properties

* Update bundle_tk.properties

* Update bundle_uk_UA.properties

* Update bundle_vi.properties

* Update bundle_zh_CN.properties

* Update bundle_zh_TW.properties

* Update World.java

* Update CustomRulesDialog.java

* skill issue

* skill issue x2

* skill issue x3
2023-06-13 18:54:10 -04:00
Anuken
1d358a3c84 Show locked item names 2023-06-13 09:29:21 -04:00
Anuken
a00b3a4670 Fixed objective flags not syncing 2023-06-12 10:35:31 -04:00
NullReferenceExc
f05d1ebc78 Update Team.java (#8700) 2023-06-10 16:59:11 -04:00
Anuken
af76e889cf Closes Anuken/Mindustry-Suggestions/issues/4452 2023-06-07 09:52:50 -04:00
Slotterleet
38b9027000 Dynamic selection of planet tech in rules dialog (#8487)
* Dynamic selection of planets in rules dialog

* Code cleanup

* Do not let Anuken/Mindustry#8494 happen again

* Fixed inconsistency with campaign sectors
2023-06-02 11:41:12 -04:00
GlennFolker
8db8d79eff Allow Universe to update all solar systems (#8647) 2023-05-28 09:14:15 -04:00
Anuken
564e81e734 Team#isEnemy is pointless 2023-05-21 03:59:08 -04:00