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

Standardized Health - Health Flags #34641

Conversation

SierraKomodo
Copy link
Contributor

Changelog

NUFC

Other Changes

  • Replaced health_dead (boolean) with health_status (bitflag) for health status conditions (dead and 'broken' state in this PR).
  • Added HEALTH_STATUS_DEAD flag and health_dead() proc for dead atoms.
  • Added health_flags bitflag for health-related configuration flags.
  • Added HEALTH_FLAG_BREAKABLE and HEALTH_STATUS_BROKEN flags for health_dead and health_flags, health_broken(), on_broken() and on_unbroken() procs, and modified health logic to accomodate atoms being able to have a 'broken' state.
    • NOTE: Not currently implemented but planned in two upcoming WIP PRs involving destroyable airlocks and organ health handling.
  • Added HEALTH_FLAG_STRUCTURE flag for atoms to be treated as structures in damage calculations. Primarily used for bullet_act() to know when to use P.get_structure_damage() instead of P.damage.

@Spookerton Spookerton merged commit a37f322 into Baystation12:dev Jun 7, 2024
11 checks passed
@SierraKomodo SierraKomodo deleted the project/standardized-health/health-flags branch June 7, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants