Skip to content
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

add: Adds an immunity to gravity damage for 5 seconds after exhaustion #6243

Open
wants to merge 2 commits into
base: master220
Choose a base branch
from

Conversation

Vladisvell
Copy link
Collaborator

@Vladisvell Vladisvell commented Dec 10, 2024

Описание

Дает иммунитет от стаминадамага от перехода из среды без гравитации в среду с гравитацией в течение пяти секунд после получения урона по стамине от перехода.

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

Шашечки в космосе

Демонстрация изменений

NSS.Kerberos.2024-12-10.11-54-33.mp4

code/_globalvars/traits.dm Outdated Show resolved Hide resolved
@Vladisvell Vladisvell added the testmerge This PR is being tested right now on live test servers. label Dec 10, 2024
@Vladisvell Vladisvell added Testmerge candidate Этот PR будет в тестмерже после определенного времени testmerge This PR is being tested right now on live test servers. and removed testmerge This PR is being tested right now on live test servers. labels Dec 16, 2024
Comment on lines +190 to +197
if(!HAS_TRAIT(src, TRAIT_NO_GRAVITY_DAMAGE))
to_chat(src, span_userdanger("Gravity exhausts you!"))
apply_damage(35, STAMINA)
ADD_TRAIT(src, TRAIT_NO_GRAVITY_DAMAGE, "gravity_exhaustion")
addtimer(CALLBACK(src, PROC_REF(remove_gravity_immune)), 5 SECONDS)

/mob/living/carbon/human/proc/remove_gravity_immune()
REMOVE_TRAIT(src, TRAIT_NO_GRAVITY_DAMAGE, "gravity_exhaustion")
Copy link
Contributor

@Antoonij Antoonij Dec 17, 2024

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
Testmerge candidate Этот PR будет в тестмерже после определенного времени testmerge This PR is being tested right now on live test servers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants