forked from Baystation12/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Переделка экзамайна и новые переменные
- Loading branch information
1 parent
ee61d5f
commit d0369b2
Showing
3 changed files
with
34 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
/singleton/modpack/russian_names | ||
name = "Руссификация" | ||
desc = @{"Руссификация переменных name и desc"} | ||
|
||
/atom | ||
var/name_rus | ||
var/desc_rus | ||
|
||
/atom/Initialize(mapload, ...) | ||
. = ..() | ||
if(!name_rus) name_rus = name | ||
if(!desc_rus) desc_rus = desc |
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,24 @@ | ||
/atom/examine(mob/user, distance, is_adjacent, infix = "", suffix = "") | ||
if(FALSE /*client.get_preference_value(умнаяхуйня/language) == GLOB.PREF_LANG_EN*/ ) return ..() | ||
var/f_name = "<b>[src][infix].</b>" | ||
if(blood_color && !istype(src, /obj/decal)) | ||
f_name = "[name_rus][infix]. Видны следы крови!" | ||
|
||
to_chat(user, "[icon2html(src, user)] Это [f_name] [suffix]") | ||
to_chat(user, desc_rus) | ||
if (get_max_health()) | ||
examine_damage_state(user) | ||
|
||
if (IsFlameSource()) | ||
to_chat(user, SPAN_DANGER("Виден открытый огонь.")) | ||
else if (distance <= 1 && IsHeatSource()) | ||
to_chat(user, SPAN_WARNING("Слишком горячо для касания.")) | ||
|
||
return TRUE | ||
|
||
/// Works same as /atom/proc/Examine(), only this output comes immediately after any and all made by /atom/proc/Examine() | ||
/atom/LateExamine(mob/user, distance, is_adjacent) | ||
SHOULD_NOT_SLEEP(TRUE) | ||
|
||
user.ForensicsExamination(src, distance) | ||
return TRUE |