Skip to content

Health examination#310

Open
Dragometh wants to merge 1 commit into
crystallpunk-14:masterfrom
Dragometh:health-examinable-comp
Open

Health examination#310
Dragometh wants to merge 1 commit into
crystallpunk-14:masterfrom
Dragometh:health-examinable-comp

Conversation

@Dragometh

Copy link
Copy Markdown

About the PR

brings in a modified version of ss14 health examination adapted to work with CE's components;
lets you examine other mobs' health

important thing to point that might not be desired:
I've modified a bit how HealthInfo's Ratio variable is computed;
now, regardless of if player is on crit or not, it'll be a value between 0 to 1. if player is not on crit, uses currentHp/maxHp like before; if they are crit, however, it returns 1f - ((float)damage.Damage.Total - maxHp) / destroyThreshold.Value), which is their remaining hp ratio until they are dead for real.

I've checked other uses of this ratio variable, and this probably shouldn't break anything, since they are only used out of crit and the math for ratio while player is out of crit remains unchanged; if anything, we can now make other systems simplified using this.

Why / Balance

to see how badly friend is beaten up is a good thing

Media

(to-do)

Changelog
🆑

  • add: Health examination on other mobs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant