Skip to content

Add a defining for AutoDeath on whether it can trigger when in Limbo state or as a passenger#2284

Open
DeathFishAtEase wants to merge 5 commits into
Phobos-developers:developfrom
DeathFishAtEase:AD.AllowLimboed
Open

Add a defining for AutoDeath on whether it can trigger when in Limbo state or as a passenger#2284
DeathFishAtEase wants to merge 5 commits into
Phobos-developers:developfrom
DeathFishAtEase:AD.AllowLimboed

Conversation

@DeathFishAtEase

@DeathFishAtEase DeathFishAtEase commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

https://www.phoboscn.top/t/topic/609

A unit designed with AutoDeath.OnOwnerChange, when serving as a passenger of a transport with OpenTopped=true, happens to need Passengers.SyncOwner to sync the passenger's owner change to prevent them from continuing to attack the transport's new owner, but they do not want this handling to trigger the passenger's self-destruction.

  • AutoDeath.AllowLimboed can be used to define whether AutoDeath is triggered when the unit is in limbo state.
  • AutoDeath.AllowPassenger can be used to define whether the unit triggers AutoDeath when it is a passenger.

In rulesmd.ini:

[SOMETECHNO]                                   ; TechnoType
AutoDeath.AllowLimboed=true                    ; boolean
AutoDeath.AllowPassenger=true                  ; boolean

Tip

If the unit is a passenger in a transport with OpenTopped=false, then self-destruction will only be triggered when both AutoDeath.AllowLimboed and AutoDeath.AllowPassenger are true.

@DeathFishAtEase DeathFishAtEase self-assigned this Jul 6, 2026
@DeathFishAtEase DeathFishAtEase added the ⚙️T1 T1 maintainer review is sufficient label Jul 6, 2026
@phoboscn-bot

Copy link
Copy Markdown

To Chinese users:
This pull request has been mentioned on Phobos CN. There might be relevant details there:

致中文用户:
此拉取请求已在 Phobos CN 上被提及。那里可能有相关详细信息:

https://www.phoboscn.top/t/topic/647/1

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

The technos in OpenTopped transport units do not have their InLimbo set to true
@DeathFishAtEase DeathFishAtEase changed the title Add a definition flag for whether AutoDeath can trigger in Limbo state Add a defining for AutoDeath on whether it can trigger when in Limbo state or as a passenger Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️T1 T1 maintainer review is sufficient

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants