Releases: screepers/typed-screeps
Releases · screepers/typed-screeps
v3.3.1
3.3.0 - 2022-04-18
What's Changed
- Make ticksToRegeneration optional in Minerals by @matheusvellone in #204
- An unpowered factory has undefined for level by @f4hy in #205
- Stricter Id type by @Jomik in #207
New Contributors
- @matheusvellone made their first contribution in #204
- @f4hy made their first contribution in #205
Full Changelog: v3.2.4...v3.3.0
3.2.4 - 2021-08-21
3.2.2 - 2021-03-14
3.2.1 - 2020-10-11
3.2.0 - 2020-09-06
3.1.3 - 2020-06-30
Added
- Add constants
CPU_UNLOCK
,PIXEL
,ACCESS_KEY
- Add
Game.cpu.generatePixel()
- Add
Game.cpu.unlock()
,Game.cpu.unlocked
, andGame.cpu.unlockedTime
- Fixed
tower.attack()
to allow targeting Structures #170
3.1.2 - 2020-05-12
Added
- Add
level?: number
toCOMMODITIES
record (522a9ca) - Add
RESOURCE_ENERGY
to commodities components (a3a59c9)
Fixed
- Fix
FindOpts.costCallback
type tovoid | CostMatrix
(32f051c) - Fix
StructureController.my
to beboolean
(062e4a4)
Changed
- Slight change to
store
signatures to allow better type inference in certain editors (#166)
3.1.1 - 2020-04-23
Fixed
- Added type
Ruin
toPowerCreep.withdraw
parametertarget
3.1.0 - 2020-04-01
- Fixed
StructureSpawn.renewCreep()
documentation (#158) - Added missing
PWR_OPERATE_FACTORY
constant (#161) - Changed
BodyPartConstant
to allow inferred Boost type from part type (#162) - Added
ConcreteStructure<T>
type - Change
owner
to allow undefined onStructureController
(#164) - Various updates from 2020-03-24 game update (#163)
- Added
Game.map.getRoomStauts(roomName)
- Added
RoomStatus
type, a discriminated union onstatus
ofRoomStatusTemporary
andRoomStatusPermanent
. - Added
StructureLab.reverseReaction(lab1,lab2)
- Changed
room.name
to be readonly - Changed typing of
StoreBase.getFreeCapacity()
to returnnull
for invalid resources types on limited stores. - Changed documentation of
store
functions - Deprecated
Game.map.isRoomAvailable()
, seeGame.map.getRoomStatus()
- Added