-
Notifications
You must be signed in to change notification settings - Fork 133
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
Tweak modsuit holster module after bulky lasers #1770
base: master
Are you sure you want to change the base?
Conversation
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.
Всё хорошо. Ещё вот есть такое предложение.
for(var/type in overridebulky) | ||
if(holding.type == type) |
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.
Этот цикл можно заменить на прок
for(var/type in overridebulky) | |
if(holding.type == type) | |
is_type_in_list(holding, overridebulky) |
) | ||
|
||
/obj/item/mod/module/holster/on_use() | ||
if(!holstered) |
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.
Тут можно выполнить ранний return
if(!holstered) | |
if(holstered) | |
return ..() |
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.
Точно у меня украл. Но я теперь вижу, как это всё можно было лучше по блоком расписать.
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.
Но у тебя там не возврат, а только вызов
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.
Я потом добавил, после того как ты написал мне в чате об этом :xdd
if(!holstered) | ||
var/obj/item/gun/holding = mod.wearer.get_active_hand() | ||
if(!holding) | ||
to_chat(mod.wearer, "<span class='warning'>Nothing to holster!</span>") |
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.
Для спанов надо бы использовать макросы
to_chat(mod.wearer, "<span class='warning'>Nothing to holster!</span>") | |
to_chat(mod.wearer, span_warning("Nothing to holster!") |
Что этот PR делает
Позволяет холстерить не так давно ставшие bulky-sized лазеры в кобуру модсьюта, которая ранее вмещала в себя их.
Почему это хорошо для игры
Потому что модуль перестаёт быть бесполезным для пользователей (СБ), ведь сейчас в него можно уместить разве что дизейблер, как и в обычную кобуру на комбинезон.
Тестирование
Попытался засунуть bulky комбат дробовик - не смог. Попытался засунуть укороченный дробовик размера normal - смог.
Попытался засунуть bulky лвап - не смог. Попытался засунуть обычный bulky лазган - смог. And so on.
Changelog
🆑
tweak: Кобура модсьюта вновь вмещает в себя большинство bulky-sized лазеров, как это и было ранее.
/:cl:
Summary by Sourcery
Bug Fixes: