Class InfiniteHealthModifier
When added to an EntityHealth component, will cause the health to increase infinitely
Implements
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public class InfiniteHealthModifier : IHealthModifier
Properties
| Edit this page View SourcePriority
The priority of the health modifier. The lower the value, the sooner this modifier will get run before others
Declaration
public int Priority { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceOnHealthChange(int, int)
Called anytime the health in a EntityHealth changes
Declaration
public int OnHealthChange(int oldHealth, int newHealth)
Parameters
| Type | Name | Description |
|---|---|---|
| int | oldHealth | The previous health value |
| int | newHealth | The new health value |
Returns
| Type | Description |
|---|---|
| int | Returns a new value to set the health to |