mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-22 05:17:38 +01:00
94d92803b4
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
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
/datum/technomancer/spell/instability_tap
|
|
name = "Instability Tap"
|
|
desc = "Creates a large sum of energy (5,000 at normal spell power), at the cost of a very large amount of instability afflicting you."
|
|
enhancement_desc = "50% more energy gained, 20% less instability gained."
|
|
spell_power_desc = "Amount of energy gained scaled with spell power."
|
|
cost = 100
|
|
obj_path = /obj/item/spell/instability_tap
|
|
ability_icon_state = "tech_instabilitytap"
|
|
category = UTILITY_SPELLS
|
|
|
|
/obj/item/spell/instability_tap
|
|
name = "instability tap"
|
|
desc = "Short term gain for long term consequences never end bad, right?"
|
|
cast_methods = CAST_USE
|
|
aspect = ASPECT_UNSTABLE
|
|
|
|
/obj/item/spell/instability_tap/New()
|
|
..()
|
|
set_light_range_power_color(3, 2, "#FA58F4")
|
|
set_light_on(TRUE)
|
|
|
|
/obj/item/spell/instability_tap/on_use_cast(mob/user)
|
|
. = ..()
|
|
var/amount = calculate_spell_power(5000)
|
|
if(check_for_scepter())
|
|
core.give_energy(amount * 1.5)
|
|
adjust_instability(40)
|
|
else
|
|
core.give_energy(amount)
|
|
adjust_instability(50)
|
|
playsound(src, 'sound/effects/supermatter.ogg', 75, 1)
|
|
qdel(src)
|