Skip to content

Commit

Permalink
Clippy comment formatting fixes (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden authored May 28, 2024
1 parent 10b800d commit a3858d1
Showing 1 changed file with 9 additions and 8 deletions.
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

0 comments on commit a3858d1

Please sign in to comment.