-
Notifications
You must be signed in to change notification settings - Fork 51
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
Permadeath #1034
Permadeath #1034
Conversation
Automatic TGS DMAPI Update
Reviewer's Guide by SourceryThis pull request introduces a configurable permadeath mechanic. When enabled, a player's brain death results in permanent death, preventing revival. The brain decay rate is also increased when permadeath is enabled. Additionally, a stasis body bag has been added to help with the transportation of bodies. Sequence diagram for revival attempt with permadeathsequenceDiagram
participant M as Medic
participant P as Patient
participant B as Brain
participant D as Defibrillator
M->>P: Attempt Revival
D->>B: Check Brain Status
alt Brain Failed & Permadeath Enabled
B-->>D: Return DEFIB_FAIL_PERMANENTLY_DEAD
D-->>M: Show 'Brain electromagnetic activity gone' message
else Brain OK
B-->>D: Return DEFIB_POSSIBLE
D->>P: Revive
P-->>M: Patient Revived
end
Class diagram for brain and stasis bag implementationclassDiagram
class Brain {
+decay_factor
+Initialize()
+organ_flags
}
class StasisBodyBag {
+name
+desc
+mob_storage_capacity
+deploy_bodybag()
+close()
+open()
}
class Carbon {
+can_be_revived()
+can_defib()
}
note for Brain "Decay factor doubled\nwhen permadeath enabled"
note for StasisBodyBag "New item to preserve\nbodies longer"
Carbon --o Brain : has
StasisBodyBag --o Carbon : can contain
State diagram for brain death and revival processstateDiagram-v2
[*] --> Alive
Alive --> Dead: Death
Dead --> BrainDecaying: Start Brain Decay
BrainDecaying --> BrainDead: Brain Fully Decayed
BrainDecaying --> Alive: Revival (if brain not failed)
BrainDead --> [*]: Permanent Death
note right of BrainDecaying
Decay rate doubled when
permadeath enabled
end note
note right of BrainDead
DNR status applied
No revival possible
end note
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Почему это всё не модульно? Тут всё модульно можно сделать
![:trollface: :trollface:](https://github.githubassets.com/images/icons/emoji/trollface.png)
![:trollface: :trollface:](https://github.githubassets.com/images/icons/emoji/trollface.png)
Стоп а это работает просто по времени или из-за 200 урона на мозге? |
Даже лучше |
Что этот PR делает
closes #1032
Через запись конфига REVIVAL_BRAIN_LIFE при ее значение выше 0 позволяет изменить скорость разложения мозга. Так-же если это значение было изменено, это включает в себя перманентную смерть для игрока, в случае, если мозг умер (накладывает состояние DNR)
Почему это хорошо для игры
По запросу стримеров и для закрытия #1032
Изображения изменений
Тестирование
Локальный сервер
Changelog
🆑
balance: Теперь в игре на сервере можно настроить перманентную смерть. При полной смерти мозга, воскресить почти невозможно.
/:cl:
Summary by Sourcery
Implement permanent death configurable via the
revival_brain_life
config setting. If set to a value greater than 0, the brain decay rate is modified and permanent death is enabled for the player if their brain dies (DNR status is applied).New Features:
Tests: