tModLoader v2024.10
A mod to make and play Terraria mods
|
Stores the stats and settings for a ID.ArmorIDs.Wing equip. More...
Public Member Functions | |
WingStats (int flyTime=100, float flySpeedOverride=-1f, float accelerationMultiplier=1f, bool hasHoldDownHoverFeatures=false, float hoverFlySpeedOverride=-1f, float hoverAccelerationMultiplier=1f) | |
Create a new WingStats with the provided stats. | |
WingStats | WithSpeedBoost (float multiplier) |
Creates a new WingStats with a speed multiplier applied to AccRunSpeedOverride and DownHoverSpeedOverride. More... | |
Public Attributes | |
float | AccRunAccelerationMult |
A multiplier applied to Player.runAcceleration while the player is in the air. | |
float | AccRunSpeedOverride |
Overrides the value of Player.accRunSpeed while the player is in the air. Only applies if this value is greater than Player.accRunSpeed. If -1f , then no effect. | |
float | DownHoverAccelerationMult |
Overrides the value of AccRunAccelerationMult if HasDownHoverStats is true and the player is hovering. | |
float | DownHoverSpeedOverride |
Overrides the value of AccRunSpeedOverride if HasDownHoverStats is true and the player is hovering. | |
int | FlyTime |
The time in ticks that a player can fly for. | |
bool | HasDownHoverStats |
If true , then players can use these wings to hover. When hovering, DownHoverSpeedOverride and DownHoverAccelerationMult apply instead of AccRunSpeedOverride and AccRunAccelerationMult, respectively. | |
Static Public Attributes | |
static readonly WingStats | Default |
Stores the stats and settings for a ID.ArmorIDs.Wing equip.
WingStats WingStats.WithSpeedBoost | ( | float | multiplier | ) |
Creates a new WingStats with a speed multiplier applied to AccRunSpeedOverride and DownHoverSpeedOverride.
multiplier | The multiplier. |