forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into HEAD
- Loading branch information
Showing
11 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
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
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
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,4 @@ | ||
author: "Chorden523" | ||
delete-after: True | ||
changes: | ||
- rscadd: "Добавлены наклейки на ID карту" |
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,19 @@ | ||
/** | ||
* Checks if the target's Z-level is the "main" station floor for the current map. | ||
* | ||
* This proc compares the Z-level of the target atom with the main station floor Z-level | ||
* specified in the map's JSON configuration. If the target's Z-level matches the main floor, | ||
* it returns TRUE; otherwise, it returns FALSE. | ||
* | ||
* @param target The atom whose Z-level is being checked. | ||
* @return TRUE if the target is on the main station floor, FALSE otherwise. | ||
*/ | ||
/datum/controller/subsystem/mapping/proc/is_main_station_floor(atom/target) | ||
// If main_floor is not specified in the JSON, assume the target is ON the main floor | ||
if(isnull(current_map.main_floor)) | ||
return TRUE | ||
|
||
// Get Z-levels associated with the station | ||
var/list/station_levels = levels_by_trait(ZTRAIT_STATION) | ||
|
||
return target.z == station_levels[current_map.main_floor] |
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,26 @@ | ||
/mob/eye/blob | ||
var/expand_cost = BLOB_EXPAND_COST | ||
|
||
/mob/eye/blob/Initialize(mapload, starting_points) | ||
. = ..() | ||
check_station_floor() | ||
|
||
/mob/eye/blob/Login() | ||
. = ..() | ||
if(!SSmapping.is_main_station_floor(src)) | ||
var/list/blob_message = list("[span_boldwarning("Поскольку Вы находитесь не на основном этаже станции, Вы получаете следующие дебаффы:")]\n") | ||
blob_message += "1. Вам требуется больше тайлов для захвата.\n" | ||
blob_message += "2. Вам требуется больше ресурсов для установки тайла блоба." | ||
to_chat(src, boxed_message(blob_message.Join())) | ||
|
||
/mob/eye/blob/proc/check_station_floor() | ||
if(SSmapping.is_main_station_floor(src)) | ||
return | ||
expand_cost = BLOB_EXPAND_COST * 2 | ||
blobwincount = 700 | ||
|
||
/datum/action/innate/blobpop/Activate(timer_activated = FALSE) | ||
if(!SSmapping.is_main_station_floor(usr)) | ||
if(tgui_alert(usr, "Вы находитесь не на основном этаже станции. Появление приведёт к накладыванию дебаффа. Вы уверены?", "Появление Блоба", list("Да", "Нет")) != "Да") | ||
return | ||
return ..() |