ProjectSWGCore / Holocore

This is the Star Wars Galaxies server emulator for the Java Virtual Machine
https://www.projectswg.com
GNU Affero General Public License v3.0
31 stars 19 forks source link

Max amount of wounds #1572

Open madsboddum opened 5 months ago

madsboddum commented 5 months ago

In theory, you can currently obtain health wounds without any cap.

What happens when you have as many wounds as you have max health is very undefined. We should avoid this situation by capping how many health wounds can be applied.

Undercova commented 5 months ago

What about the "additional" health you get from buffs and co ?

do they count too ?

what happens when you lose that buff ?

for example: you have 3000 health you get bonus of 500 health total 3500 health you get 3100 wounds => 400 health left bonus gets removed/runs out => minus 500 health so your character should instantly get incapped ... like a heart attack :D

madsboddum commented 5 months ago

Subtracting temporary health boosts sounds wise.

Undercova commented 5 months ago

so the wounds should only effect the "base" health. your health linked to CL

what happens when you exceed that amount ? for example the case i posted above. you lose 3000 health. then "only" bonus health is left. could risk losing the buffs then ... instead of adding more wounds ... which should not be possible

we could also add a warning when you have like 10% "real" health left because of wounds. when it reaches 0% you die. even when you have like 500 bonus health left