Allow markers to be used as light sources (#9733)

* Allow markers to be used as light sources

* Better light source markers

* Move PointMarker drawLight to LightMarker

* Add a rule for unit lights

* Optimize marker rendering

* Update core/assets/bundles/bundle.properties

---------

Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
Redstonneur1256
2025-02-09 12:10:45 -05:00
committed by GitHub
co-authored by Anuken
parent 3378475f6a
commit 8626082068
12 changed files with 196 additions and 68 deletions
+1
View File
@@ -1548,6 +1548,7 @@ public class LExecutor{
}
}
case ambientLight -> state.rules.ambientLight.fromDouble(value.num());
case unitLight -> state.rules.unitLight = value.bool();
case solarMultiplier -> state.rules.solarMultiplier = Math.max(value.numf(), 0f);
case dragMultiplier -> state.rules.dragMultiplier = Math.max(value.numf(), 0f);
case ban -> {
@@ -4,6 +4,7 @@ public enum LMarkerControl{
remove,
world("true/false"),
minimap("true/false"),
light("true/false"),
autoscale("true/false"),
pos("x", "y"),
endPos("x", "y"),
+1
View File
@@ -15,6 +15,7 @@ public enum LogicRule{
lighting,
canGameOver,
ambientLight,
unitLight,
solarMultiplier,
dragMultiplier,
ban,