Skip to content

Commit

Permalink
Add TransportSpeedReduction to unit blueprint documentation (#6598)
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 authored Dec 25, 2024
1 parent cce7a7d commit 8946edc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog/snippets/other.6598.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- (#6598) Add documentation for the recently added `TransportSpeedReduction` unit blueprint value.
3 changes: 3 additions & 0 deletions engine/Core/Blueprints/UnitBlueprint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,9 @@
---@field StandUpright boolean
--- used by XSB3202 when the vertical layer changes from top to sub
---@field SubSpeedMultiplier? number
--- How much this unit slows down transports it is loaded in.
--- Defaults to 0.15 (Tech 1), 0.3 (Tech 2), 0.6 (Tech 3), and 1 (ACU/SACU/Experimentals).
---@field TransportSpeedReduction number
--- turn facing damping for the unit, usually used for hover units only
---@field TurnFacingRate number
--- turn radius for the unit, in world units. Used when the nav waypoint is further than `TurnRadius` distance,
Expand Down
2 changes: 0 additions & 2 deletions lua/sim/units/AirTransportUnit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ AirTransport = ClassUnit(AirUnit, BaseTransport) {
end,

---@param self AirTransport
---@param totalweight CargoWeight
---@param unit Unit
ReduceTransportSpeed = function(self)
local transportspeed = self.Blueprint.Air.MaxAirspeed
local totalweight = 0
Expand Down

0 comments on commit 8946edc

Please sign in to comment.