Skip to content

Boss HP scaling command implementation - #3

Closed
Strife (strife-mod) wants to merge 2 commits into
readycodeio:masterfrom
strife-mod:master
Closed

Boss HP scaling command implementation#3
Strife (strife-mod) wants to merge 2 commits into
readycodeio:masterfrom
strife-mod:master

Conversation

@strife-mod

@strife-mod Strife (strife-mod) commented May 29, 2026

Copy link
Copy Markdown

Summary

Implementation of /bosshp command to allow players changing coop difficulty by adding custom boss HP scaling formula:
targetScaling = scaling + scaling * (areaPlayers - 1)

Original scaling formula is retained and is used by default if /bosshp command has not been used:
targetScaling = 1 + scaling * (areaPlayers - 1)

Constant 1.5f has been replaced by scaling variable used by both formulas.

Two variables has been added to Config class to define scaling modifier and indicate if custom scaling is active. If these variables would be exposed for server owner in .txt or .json file, it could be used to change default boss HP scaling to their preferences.

Method CustomScaling(int scale) has percentage of boss HP as parameter and shows messages if Player is not MasterClient or invalid parameter has been used in command.

Example

Original formula:
targetScaling = 1 + scaling * (areaPlayers - 1)

Players Scaling Boss HP
1 1.5 100%
2 1.5 250%
3 1.5 400%
4 1.5 550%

Custom scaling formula:
targetScaling = scaling + scaling * (areaPlayers - 1)

Players Scaling Boss HP
1 0.5 50%
1 1.0 100%
1 1.5 150%
2 0.5 100%
2 1.0 200%
2 1.5 300%
3 0.5 150%
3 1.0 300%
3 1.5 450%

Problems & improvements

  • Players need to use /bosshp command every time they join server, it will be reset to default scaling when session ends
  • After using /bosshp command it's not possible to change scaling formula to original scaling.

Screenshot

20A7FF~1

Adding /bosshp command to allow players changing coop difficulty.
@JakuJ

Copy link
Copy Markdown
Contributor

Implemented on the SDK 0.3.0 branch on the server side.

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.

2 participants