change repair_tool application and add beams for salvager and repair_tool
This commit is contained in:
@@ -8,6 +8,12 @@ constexpr int kTickRateHz = 30;
|
||||
constexpr double kTickDurationMs = 1000.0 / kTickRateHz;
|
||||
constexpr double kTickDurationSeconds = 1.0 / kTickRateHz;
|
||||
|
||||
// Delay between a tool activating (emitting its beam) and its effect being
|
||||
// applied — half the 0.3 s beam duration. Shared by weapons, repair tools, and
|
||||
// salvage modules so all three apply their effect mid-beam (REQ-SHP-FIRING,
|
||||
// REQ-SHP-FIRING-BEAM).
|
||||
constexpr Tick kBeamImpactDelayTicks = 5;
|
||||
|
||||
// Converts a wall-clock duration (in seconds, as it appears in config TOML) to
|
||||
// an integer tick count. Rounds to nearest to avoid systematic drift from
|
||||
// repeated conversions.
|
||||
|
||||
Reference in New Issue
Block a user