mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-17 18:09:26 +01:00
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>
33 lines
903 B
Plaintext
33 lines
903 B
Plaintext
/datum/technomancer/spell/darkness
|
|
name = "Darkness"
|
|
desc = "Disrupts photons moving in a local area, causing darkness to shroud yourself or a position of your choosing."
|
|
cost = 25
|
|
ability_icon_state = "artificer"
|
|
obj_path = /obj/item/spell/spawner/darkness
|
|
category = UTILITY_SPELLS
|
|
|
|
/obj/item/spell/spawner/darkness
|
|
name = "darkness"
|
|
desc = "Not even light can stand in your way now."
|
|
icon_state = "darkness"
|
|
cast_methods = CAST_RANGED
|
|
aspect = ASPECT_DARK
|
|
spawner_type = /obj/effect/temporary_effect/darkness
|
|
|
|
/obj/item/spell/spawner/darkness/on_ranged_cast(atom/hit_atom, mob/user)
|
|
if(pay_energy(500))
|
|
adjust_instability(4)
|
|
..()
|
|
|
|
/obj/item/spell/spawner/darkness/New()
|
|
..()
|
|
set_light_range_power_color(6, -20, "#FFFFFF")
|
|
set_light_on(TRUE)
|
|
|
|
/obj/effect/temporary_effect/darkness
|
|
name = "darkness"
|
|
time_to_die = 2 MINUTES
|
|
invisibility = 101
|
|
light_range = 6
|
|
light_power = -20
|