-
Notifications
You must be signed in to change notification settings - Fork 211
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
refact(surgery): make surgery a bit less painful to modify #10689
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.
Веселись
Я сделяль. |
Я победил чейнджлог. С десятой попытки... |
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.
Куда лучше чем то нечитаемое говно, которое есть сейчас. Вот бы ещё дефайны для хирургических шагов.
code/datums/surgery/steps/face.dm
Outdated
* Facial tissue cutting step. | ||
*/ | ||
/datum/surgery_step/generic/cut_face | ||
duration = CUT_DURATION * 1.25 |
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.
Но вот вынесу в дефайн и лапша из шагов станет в сто раз читабельнее.
allowed_tools = list( | ||
/obj/item/stack/medical/advanced/bruise_pack= 67, | ||
/obj/item/stack/medical/bruise_pack = 34, | ||
/obj/item/tape_roll = 20 |
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.
Ок, я схему работы операций не менял, я просто уберу этот предмет.
Co-authored-by: goliath <[email protected]>
Ну теперь можно пускать в тестмерж |
#define ORGAN_FIX_DURATION 35 | ||
#define CONNECT_DURATION 50 | ||
#define STERILIZATION_DURATION 55 | ||
#define DETATCH_DURATION 52 |
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.
какой нахуй DETATCH
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.
Мне сказали плеертест прошёл хорошо
Легкий рефактор хирургии, целью которого является повышение модифицируемости кода шагов и уменьшение копипасты. Конечно, есть еще к чему стремиться, все еще используется страшный глобальный список операций, но теперь у нас будет более удобная, как мне кажется, система шагов с документацией.
Галопом по изменениям
Чейнджлог