This repository has been archived by the owner on Oct 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Fixed clouds and sleeping #197
Open
FlutterSnedDraw
wants to merge
3
commits into
ss220club:master
Choose a base branch
from
FlutterSnedDraw:Fixed-Clouds-and-Sleeping
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -34,9 +34,15 @@ | |||||||||||||||||||||||
|
||||||||||||||||||||||||
/mob/living/update_sleeping_effects(no_alert = FALSE) | ||||||||||||||||||||||||
if(sleeping) | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
GLOB.typing_indicator[bubble_sleeping_icon] = image('icons/mob/talk.dmi', null, "[bubble_sleeping_icon]", FLY_LAYER) | ||||||||||||||||||||||||
var/image/I = GLOB.typing_indicator[bubble_sleeping_icon] | ||||||||||||||||||||||||
I.appearance_flags = APPEARANCE_UI_IGNORE_ALPHA | ||||||||||||||||||||||||
overlays += GLOB.typing_indicator[bubble_sleeping_icon] | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. мы не добавляем
Comment on lines
+38
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||||
if(!no_alert) | ||||||||||||||||||||||||
throw_alert("asleep", /obj/screen/alert/asleep) | ||||||||||||||||||||||||
else | ||||||||||||||||||||||||
overlays -= GLOB.typing_indicator[bubble_sleeping_icon] | ||||||||||||||||||||||||
clear_alert("asleep") | ||||||||||||||||||||||||
Comment on lines
+45
to
46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Тут аналогично с
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
// Querying status of the mob | ||||||||||||||||||||||||
|
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
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в случаях, где
0
и1
используются как булевые значения, то есть 0 - это FALSE, то есть ложность выражения и 1 - это TRUE, то есть истинность выражения, то необходимо их и использовать.Вместо 0 - FALSE.
Вместо 1 - TRUE.
Так же, не обязательно писать полностью
sleeping == 0
, достаточно просто!sleeping
- где ! - это оператор отрицания, то есть читаем! - не, sleeping - спит
- не спит. Всё что я написал - истинно только для булевых значений. Для других - есть свои тонкости - в бьенде для всех значений есть своё булевое соответствие.src - явно обращаться к src надо только тогда, когда существует локальная с таким же названием как и вызываемая у
src
. В противном случае просто вызывай переменную, без обращения кsrc