Skip to content

Commit d649291

Browse files
authored
Update PIXEL_CPU_COST for balance change (#336)
* Update PIXEL_CPU_COST for balance change * Fix changelog for pixel cost constant * Update timestamp on constants.js
1 parent 878afc4 commit d649291

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ Unreleased
2121
- Fixed deserialization of `EVENT_POWER` and `EVENT_TRANSFER` events
2222
- Add new `IntershardResourceType::CPUUnlock`, `IntershardResourceType::Pixel`, and
2323
`IntershardResourceType::AccessKey` resources
24-
- Add `game::cpu::generate_pixel` and `constants::PIXEL_COST`
24+
- Add `game::cpu::generate_pixel` and `constants::PIXEL_CPU_COST`
2525
- Add the ability to mark a room as impassable when using the pathfinder. Converts callback
2626
functions for room cost to use `SingleRoomCostResult` and `MultiRoomCostResult` as appropriate.
27+
- Update `PIXEL_CPU_COST` to match game balance change.
2728

2829
0.8.0 (2020-05-30)
2930
==================

src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Constants, most copied from [the game constants].
22
//!
3-
//! Last updated on 2020-06-06, `3bc7337807d380ffb29b9dcec40fc19e707c2476` from
3+
//! Last updated on 2020-12-13, `e4589666113334bb1f967b9a5540b642141b6dab` from
44
//! <https://github.com/screeps/common/commits/master/lib/constants.js>.
55
//!
66
//! Currently missing:

src/constants/numbers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ pub const FLAGS_LIMIT: u32 = 10_000;
674674
///
675675
/// [`game::cpu::bucket`]: crate::game::cpu::bucket
676676
/// [`game::cpu::generate_pixel`]: crate::game::cpu::generate_pixel
677-
pub const PIXEL_CPU_COST: u32 = 5000;
677+
pub const PIXEL_CPU_COST: u32 = 10_000;
678678

679679
// Resources defined in `types.rs`
680680

0 commit comments

Comments
 (0)