Skip to content

Фикс использования hand labeler на ящиках#9346

Open
kkadmor wants to merge 2 commits into
ss220-space:master220from
kkadmor:bugfix-labler
Open

Фикс использования hand labeler на ящиках#9346
kkadmor wants to merge 2 commits into
ss220-space:master220from
kkadmor:bugfix-labler

Conversation

@kkadmor

@kkadmor kkadmor commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Что этот ПР делает

https://discord.com/channels/617003227182792704/1511772048819622028

Список изменений

🆑
bugfix: Можно использовать hand labeler на ящиках
/:cl:

@github-actions github-actions Bot added the Fix PR содержит исправления ошибок. label Jun 4, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds the SIGNAL_HANDLER macro to the OnAttackby and Examine procs of the label component, and introduces interaction logic for the hand labeler on closets. The reviewer identified an issue where unconditionally returning ATTACK_CHAIN_PROCEED when using a hand labeler on a closet breaks standard open/close interactions when the labeler is turned off, and provided a detailed recommendation to fix this logic.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread code/game/objects/structures/crates_lockers/closet.dm Outdated
Comment on lines +398 to +401
if(GetComponent(/datum/component/label))
add_fingerprint(user)
SEND_SIGNAL(src, COMSIG_ATOM_ATTACKBY, labeler, user, params)
return ATTACK_CHAIN_BLOCKED_ALL

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ну хз

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

а че не так то

Comment on lines +398 to +401
if(GetComponent(/datum/component/label))
add_fingerprint(user)
SEND_SIGNAL(src, COMSIG_ATOM_ATTACKBY, labeler, user, params)
return ATTACK_CHAIN_BLOCKED_ALL

@Ksaikok46 Ksaikok46 Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Это реально костыль какой-то, на ТГ этого компонента не существует, посмотри как у них лейблер работает

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix PR содержит исправления ошибок.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants