forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Что этот PR делает Добавлен новый станционный трейт - Экономия Света Трейт при котором все выключатели света выключены в начале смены. Так же все лампы и светящиеся полы На дельте и коробке разделены несколько зон, на дельте добавлена пара новых Плюс на дельте подрезан свет и слегка усложнён побег из пермы ## Почему это хорошо для игры Темно пиздец ## Изображения изменений ![image](https://github.com/user-attachments/assets/392c305d-0538-4bba-b9e8-56629b2bb07f) ## Тестирование Да ## Changelog :cl: add: Добавлен новый станционный трейт - Экономия Света. Все выключатели света, лампы и светящиеся полы выключены раундстартом. tweak: Все карты: Добавлено очень много выключателей света на Керберос и Кибериаду, парочка на Цереброн. tweak: Кибриада, Керберос: Некоторые огромные зоны разделены на пару более мелких, так же новым зонам даны АПЦ и выключатели света. tweak: Керберос теперь менее пересвечен и чуть более тёмный, в частности бриг. tweak: С пермабрига Кербероса удалены файралярмы в зоне пермабриговцев, а так же некоторые окна заменены на плазма-окна, сбежать немного труднее. /:cl: --------- Co-authored-by: dj-34 <[email protected]>
- Loading branch information
Showing
8 changed files
with
2,643 additions
and
1,767 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/datum/modpack/station_traits | ||
name = "Station Traits" | ||
desc = "Станционные трейты, которые добавили мы. Возможно в будущем будут на апстриме." | ||
author = "Aylong" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "_station_traits.dm" | ||
|
||
#include "code/neutral_traits.dm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/datum/station_trait/darkness | ||
name = "Electricity Saving" | ||
trait_type = STATION_TRAIT_NEUTRAL | ||
weight = 5 | ||
show_in_report = TRUE | ||
report_message = "Предыдущая смена позаботилась об экономии энергии перед уходом." | ||
blacklist = list(/datum/station_trait/rave) | ||
|
||
/datum/station_trait/darkness/on_round_start() | ||
. = ..() | ||
for(var/obj/machinery/light_switch/light_switch in GLOB.machines) | ||
var/turf/our_turf = get_turf(light_switch) | ||
if(!is_station_level(our_turf.z)) | ||
continue | ||
|
||
var/area/switch_area = get_area(light_switch) | ||
switch_area.lightswitch = FALSE | ||
light_switch.update_icon(UPDATE_ICON) | ||
|
||
for(var/obj/machinery/light/light in switch_area) | ||
light.power_change() | ||
|
||
for(var/obj/item/flashlight/lamp/lamp in switch_area) | ||
lamp.on = FALSE | ||
lamp.update_brightness() | ||
|
||
for(var/turf/simulated/floor/light/floor_light in switch_area) | ||
floor_light.toggle_light(FALSE) |