Skip to content

add: тряска заваренным шкафам #6649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master220
Choose a base branch
from

Conversation

Rafnik02
Copy link
Contributor

@Rafnik02 Rafnik02 commented Mar 8, 2025

Описание

Добавляет тряску заваренным шкафам, когда кто-то пытается выбраться из шкафа.

Причина создания ПР / Почему это хорошо для игры

Скоро

Тесты

Заварил себя и начал трястись.

if(ismovable(loc))
user.changeNext_move(CLICK_CD_BREAKOUT)
user.last_special = world.time + CLICK_CD_BREAKOUT
var/atom/movable/AM = loc
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Что такое AM? Сделай нормальное имя переменной.

if(!src || !L || L.stat != CONSCIOUS || L.loc != src || opened) //closet/user destroyed OR user dead/unconcious OR user no longer in closet OR closet opened
return
if(do_after(user,(breakout_time), target = src))
if(!user || user.stat != CONSCIOUS || (loc_required && (user.loc != src)) || opened || (!locked && !welded) )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут можно инвертировать If-ы

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

как

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if(!do_after(user,(breakout_time), target = src))
if(user.loc == src) //so we don't get the message if we resisted multiple times and succeeded.
to_chat(user, span_warning("You fail to break out of [src]!"))
return
if(!user || user.stat != CONSCIOUS || (loc_required && (user.loc != src)) || opened || (!locked && !welded) )//we check after a while whether there is a point of resisting anymore and whether the user is capable of resisting
return

user.visible_message(span_danger("[user] successfully broke out of [src]!"),
span_notice("You successfully break out of [src]!"))
bust_open()
как-то так +/-

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

отступы думаю сам сможешь проставить

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

хотя

Copy link
Collaborator

@dageavtobusnick dageavtobusnick Mar 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if(!do_after(user,(breakout_time), target = src))
    if(user.loc == src) //so we don't get the message if we resisted multiple times and succeeded.
        to_chat(user, span_warning("You fail to break out of [src]!"))
    return
if(!user || user.stat != CONSCIOUS || (loc_required && (user.loc != src)) || opened || (!locked && !welded) )//we check after a while whether there is a point of resisting anymore and whether the user is capable of resisting
    return

user.visible_message(span_danger("[user] successfully broke out of [src]!"),
                                  span_notice("You successfully break out of [src]!"))
bust_open()

@github-actions github-actions bot added the Merge Conflict This doesn't seem right label Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge Conflict This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants