mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 07:20:09 +01:00
Replaces our lighting system with CM's. (#21465)
Depends on #21458. Ports https://github.com/cmss13-devs/cmss13/pull/4229, with the original authors as: - https://github.com/tgstation/TerraGov-Marine-Corps/pull/1964 for the lighting controller (A-lexa) - https://github.com/tgstation/TerraGov-Marine-Corps/pull/4747 and https://github.com/tgstation/TerraGov-Marine-Corps/pull/7263 for the lighting (TiviPlus) - https://github.com/tgstation/tgstation/pull/54520 for the dir lighting component - https://github.com/tgstation/tgstation/pull/75018 for the out of bounds fix in lighting - https://github.com/tgstation/TerraGov-Marine-Corps/pull/6678 for the emissives (TiviPlus) The main driving reason behind this is that current lighting consumes way too much processing power, especially for things like odysseys/away sites where a billion light sources are processing/moving at once and the game slows down to a crawl. Hopefully this improves the situation by a good margin, but we will need some testmerging to confirm that. <img width="1349" height="1349" alt="image" src="https://github.com/user-attachments/assets/1059ba2b-c0c5-495a-9c76-2d75d0c42bf2" /> <img width="1349" height="1349" alt="image" src="https://github.com/user-attachments/assets/9704b0f6-4cf6-4dfd-a6cb-5702ad07d677" /> - [x] Resolve todos - [x] Look into open space fuckery (border objects) --------- Co-authored-by: Matt Atlas <liermattia@gmail.com> Co-authored-by: JohnWildkins <john.wildkins@gmail.com>
This commit is contained in:
co-authored by
Matt Atlas
JohnWildkins
parent
8ebd7c9ad5
commit
94d92803b4
@@ -338,10 +338,7 @@
|
||||
|
||||
// Handle light requirements.
|
||||
if(!light_supplied)
|
||||
if (TURF_IS_DYNAMICALLY_LIT(current_turf))
|
||||
light_supplied = current_turf.get_lumcount(0, 3) * 10
|
||||
else
|
||||
light_supplied = 5
|
||||
light_supplied = current_turf.get_lumcount(0, 3) * 10
|
||||
|
||||
if(light_supplied)
|
||||
if(check_light_tolerances(light_supplied))
|
||||
@@ -382,10 +379,7 @@
|
||||
|
||||
// Handle light requirements.
|
||||
if(!light_supplied)
|
||||
if (TURF_IS_DYNAMICALLY_LIT(current_turf))
|
||||
light_supplied = current_turf.get_lumcount(0, 3) * 10
|
||||
else
|
||||
light_supplied = 5
|
||||
light_supplied = current_turf.get_lumcount(0, 3) * 10
|
||||
|
||||
// Are we within the preference zone for temperature? If so, add to the chance of growth.
|
||||
if(check_heat_preferences(environment))
|
||||
|
||||
@@ -758,10 +758,7 @@
|
||||
if(closed_system && mechanical)
|
||||
light_available = tray_light
|
||||
else
|
||||
if(TURF_IS_DYNAMICALLY_LIT(T))
|
||||
light_available = T.get_lumcount(0, 3) * 10
|
||||
else
|
||||
light_available = 5
|
||||
light_available = T.get_lumcount(0, 3) * 5
|
||||
|
||||
// If it's a mechanical tray, provide precise information to the user about the plant's conditions.
|
||||
if(mechanical)
|
||||
|
||||
@@ -104,10 +104,7 @@
|
||||
// Handle light requirements for upcoming logic.
|
||||
var/light_supplied
|
||||
if(!closed_system)
|
||||
if (TURF_IS_DYNAMICALLY_LIT(T))
|
||||
light_supplied = T.get_lumcount(0, 3) * 10
|
||||
else
|
||||
light_supplied = 5
|
||||
light_supplied = T.get_lumcount(0, 3) * 10
|
||||
else
|
||||
light_supplied = tray_light
|
||||
|
||||
|
||||
Reference in New Issue
Block a user