bbassie and Claude Opus 5
619ed4b39f
Remove asserts the types already cover
...
The nil check burn down added guards which turned out redundant once
the surrounding annotations landed. `_has_handlers` is set to true when
the first handler registers, so it is a boolean rather than the literal
false it was inferred as.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 15:31:48 +00:00
bbassie and Claude Opus 5
164672602d
Make the @as casts actually apply
...
emmylua only parses the inline cast as `--[[@as T]]`, the spaced form
`--[[ @as T ]]` is treated as a plain comment, so all 149 of them were
doing nothing.
LuaGuiElement.style is a union because a style name can be assigned to
it, so reading it back needs the cast.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 15:31:18 +00:00
Cooldude2606
7890540a3e
Final lint fixes
2026-06-26 15:40:53 +01:00
71ab3e7be4
clear blueprint changed to selection ( #435 )
...
* Update surface.lua
* Update en.cfg
* Update surface.lua
* Update en.cfg
* Fix description keys for ground items and blueprints
* Update roles.lua
* Update surface.lua
* Update quick_actions.lua
* Update en.cfg
* Update en.cfg
* Update surface.lua
* Update zh-CN.cfg
* Update zh-TW.cfg
* .
* .
* .
* Many fixes and reverts
---------
Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com >
2026-06-26 13:15:49 +01:00
phidias and GitHub
3a8d83f981
research changes ( #430 )
...
* Add event handlers for research reversed and queued
* Update roles.lua
* Remove bonus inventory settings from research.lua
Removed bonus inventory configuration for mining productivity.
* Update en.cfg
* Update zh-CN.cfg
* Update zh-TW.cfg
* Update research.lua
* Delete exp_scenario/module/commands/research.lua
* Update quick_actions.lua
* Update research.lua
* Update research.lua
* Update research.lua
2026-06-26 11:56:24 +01:00
21779988f0
lawnmower changed to selection ( #434 )
...
* Update lawnmower.lua
* Update quick_actions.lua
* Update lawnmower.lua
* update locale
* Update lawnmower.lua
* Fix game.get_player
---------
Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com >
2026-06-26 11:54:05 +01:00
d548cebc17
repair add quick action, changed to selection ( #437 )
...
* Update repair.lua
* Update repair.lua
* Update quick_actions.lua
* Update en.cfg
* Update repair.lua
* Refactor repair command to use area selection
* Update en.cfg
* Fixes
---------
Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com >
2026-06-26 11:43:09 +01:00
2a1a5c952b
home add quick action ( #436 )
...
* Update home.lua
* Update quick_actions.lua
---------
Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com >
2026-06-25 23:15:31 +01:00
phidias and GitHub
aa7fe73bb0
vlayer info add quick action ( #438 )
...
* Update vlayer.lua
* Add vlayer command to quick actions
2026-06-25 23:14:14 +01:00
Cooldude2606 and GitHub
7ab721b4b6
Refactor some of the Guis from the legacy plugin ( #399 )
...
* Fix bugs in core and add default args to Gui defs
* Refactor production Gui
* Refactor landfill blueprint button
* Fix more bugs in core
* Consistent naming of new guis
* Refactor module inserter gui
* Refactor surveillance gui
* Add shorthand for data from arguments
* Make element names consistent
* Add types
* Change how table rows work
* Refactor player stats gui
* Refactor quick actions gui
* Refactor research milestones gui
* Refactor player bonus gui
* Refactor science production gui
* Refactor autofill gui
* Cleanup use of aligned flow
* Rename "Gui.element" to "Gui.define"
* Rename Gui types
* Rename property_from_arg
* Add guide for making guis
* Add full reference document
* Add condensed reference
* Apply style guide to refactored guis
* Bug fixes
2025-08-29 14:30:30 +01:00