Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippy comment formatting fixes #518

Merged
merged 3 commits into from
May 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions src/constants/numbers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ pub const CREEP_SPAWN_TIME: u32 = 3;
/// Quoting from [`StructureSpawn.renewCreep`] documentation:
///
/// > Each execution increases the creep's timer by amount of ticks according to
/// this formula:
/// > this formula:
/// >
/// > `floor(600/body_size)`
/// >
/// > Energy required for each execution is determined using this formula:
Expand Down Expand Up @@ -323,14 +324,14 @@ pub const CONTROLLER_DOWNGRADE_RESTORE: u32 = 100;
///
/// Quoting from the [3.2.0 patch notes](https://blog.screeps.com/2018/12/changelog-2018-12-14/):
///
/// > * When the controller gains or loses one level, its downgrade timer is set
/// to 50% instead of 100%.
/// > * Safe mode activation unavailable period starts from this 50% point minus
/// 5000 ticks.
/// * When the controller gains or loses one level, its downgrade timer is set
/// to 50% instead of 100%.
/// * Safe mode activation unavailable period starts from this 50% point minus
/// 5000 ticks.
///
/// For example, a newly upgraded RCL7 room will have 75_000 ticks to downgrade
/// out of its 150_000 maximum, and safe mode becomes unavailable if the timer
/// falls below 70_000 ticks.
/// For example, a newly upgraded RCL7 room will have 75,000 ticks to downgrade
/// out of its 150,000 maximum, and safe mode becomes unavailable if the timer
/// falls below 70,000 ticks.
///
/// [`StructureController::ticks_to_downgrade`]:
/// crate::objects::StructureController::ticks_to_downgrade
Expand Down
Loading