Commit Graph

21 Commits

Author SHA1 Message Date
Mythril382
f4882d6615 Merge branch 'master' into do-you-hear-the-voices-too 2024-06-17 02:06:46 +08:00
Anuken
56b0deb910 Removed @solid variable 2024-06-16 01:35:48 -04:00
Redstonneur1256
9f92a5ac06 Logic Refactor (#9940)
* Replace logic variable indexes

* Fix `draw print`'s align

* Update core/src/mindustry/logic/LExecutor.java

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

* Remove duplicated variables

* Update core/src/mindustry/world/blocks/logic/LogicBlock.java

---------

Co-authored-by: Anuken <arnukren@gmail.com>
2024-06-16 00:37:04 -04:00
Mythril382
ff35e6a7d8 mythril that's a seq, NOT an objectmap 2024-05-27 23:13:43 +08:00
Mythril382
580d35cf1e the arc pr 2024-05-27 12:54:27 +08:00
Mythril382
d24f031cb4 it's 4:14, i should sleep
anuke was right, this is a mess
2024-05-27 04:13:35 +08:00
Mythril382
7f80a1879e sound id 2024-05-27 03:35:37 +08:00
MEEPofFaith
60c6e03d32 Weather with World Logic (#9621)
* Weather sense

Honestly, doesn't seem game changing enough to warrant privileged restriction.

* Weather set

* Rename "snow" to "snowing"

Fix conflict with the snow floor block, though I don't know if this'll have negative repercussions on saves.

* Don't last forever

* Cleanup and bundle

* add space
2024-03-14 14:25:03 -04:00
Anuken
2fd92b8c80 Processor global variable dialog 2024-02-09 18:09:41 -05: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
91d87e1dba Add privileged desynced client global variables (#9138)
* 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
2023-10-05 10:56:53 -04:00
Anuken
d41b6f219b Markers no longer synced 2023-09-28 18:25:20 -04:00
Anuken
4ed6ed9bcb copy paste 2023-09-28 08:52:08 -04:00
Anuken
8bbf5b1f52 Marker instruction rework 2023-09-28 01:04:03 -04:00
WayZer
c9beb3d158 add @server to logic (#9018)
* add @master to logic

* remove `Vars.`

* Update GlobalVars.java

* Update GlobalVars.java
2023-09-05 12:43:17 -04:00
Anuken
6bf5e8ae1e WIP logic particle effect instruction 2023-08-02 22:15:44 -04:00
Anuken
dc8783d4a6 Legacy blocks must not be logic constants 2023-07-25 21:10:21 -04:00
Anuken
72b456fca2 Optimized imports 2023-04-06 10:46:52 -04:00
Mythril382
0b128e5bca add some useful math stuff to GlobalVars (#7670)
* VlobalGars

* E
2022-10-07 07:49:00 -04:00
Anuken
e627008fbc Slightly different implementation of #6910 2022-06-08 08:33:01 -04:00
Anuken
668b09e955 Misc bugfixes 2022-05-08 17:07:06 -04:00