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

Various fixes and additions #100

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
e8cfcfd
Update ConstructionSite.js
KyberPrizrak Jan 20, 2024
018018f
Update Creep.js
KyberPrizrak Jan 20, 2024
3f911f8
Update Creep.js
KyberPrizrak Jan 20, 2024
23629fd
Update Creep.js
KyberPrizrak Jan 20, 2024
2ed4bf2
Update Deposit.js
KyberPrizrak Jan 20, 2024
65292d9
Update Flag.js
KyberPrizrak Jan 20, 2024
345c3f7
Update Flag.js
KyberPrizrak Jan 20, 2024
33738ed
Update Mineral.js
KyberPrizrak Jan 20, 2024
98de777
Update Nuke.js
KyberPrizrak Jan 20, 2024
1521733
Update OwnedStructure.js
KyberPrizrak Jan 20, 2024
f1a1594
Update Tombstone.js
KyberPrizrak Jan 20, 2024
de1cea2
Update Structure.js
KyberPrizrak Jan 20, 2024
e74ec2a
Update Store.js
KyberPrizrak Jan 20, 2024
5c00942
Update Source.js
KyberPrizrak Jan 20, 2024
f596954
Update Ruin.js
KyberPrizrak Jan 20, 2024
179cd62
Update RoomVisual.js
KyberPrizrak Jan 20, 2024
644046d
Update Creep.js
KyberPrizrak Jan 20, 2024
64ba9ca
Update RoomPosition.js
KyberPrizrak Jan 21, 2024
5335df2
Update RoomObject.js
KyberPrizrak Jan 21, 2024
1a25c34
Update RoomObject.js
KyberPrizrak Jan 21, 2024
767c146
Update Room.js
KyberPrizrak Jan 21, 2024
9956657
Update Resource.js
KyberPrizrak Jan 21, 2024
8382b40
Update RawMemory.js
KyberPrizrak Jan 21, 2024
74f8368
Update PowerCreep.js
KyberPrizrak Jan 21, 2024
48f376c
Update PathFinder.js
KyberPrizrak Jan 21, 2024
d466cbd
Update Order.js
KyberPrizrak Jan 21, 2024
b8688df
Update StructureContainer.js
KyberPrizrak Jan 21, 2024
dbb0658
Update StructureWall.js
KyberPrizrak Jan 21, 2024
8595f19
Update StructureTower.js
KyberPrizrak Jan 21, 2024
bca9203
Update StructureTerminal.js
KyberPrizrak Jan 21, 2024
824e67c
Update StructureStorage.js
KyberPrizrak Jan 21, 2024
da9c17b
Update StructureSpawn.js
KyberPrizrak Jan 21, 2024
ee82c3e
Update StructureRoad.js
KyberPrizrak Jan 21, 2024
59b5670
Update StructureRampart.js
KyberPrizrak Jan 21, 2024
74629f9
Update StructurePowerSpawn.js
KyberPrizrak Jan 21, 2024
95d2464
Update StructurePowerBank.js
KyberPrizrak Jan 21, 2024
561873b
Update StructurePortal.js
KyberPrizrak Jan 21, 2024
e5047cc
Update StructureObserver.js
KyberPrizrak Jan 21, 2024
d31de7d
Update StructureNuker.js
KyberPrizrak Jan 21, 2024
185dbae
Update StructureLink.js
KyberPrizrak Jan 21, 2024
575faf6
Update StructureLab.js
KyberPrizrak Jan 21, 2024
b10f6d1
Update StructureKeeperLair.js
KyberPrizrak Jan 21, 2024
71c5fd3
Update StructureInvaderCore.js
KyberPrizrak Jan 21, 2024
47a1108
Update StructureFactory.js
KyberPrizrak Jan 21, 2024
e40ea24
Update StructureExtractor.js
KyberPrizrak Jan 21, 2024
1fece7a
Update StructureExtension.js
KyberPrizrak Jan 21, 2024
fcfd410
Update StructureController.js
KyberPrizrak Jan 21, 2024
64f3234
Update Game.js
KyberPrizrak Jan 21, 2024
d85918f
Create InterShardMemory.js
KyberPrizrak Jan 21, 2024
3dd5d1a
Update Tombstone.js
KyberPrizrak Jan 22, 2024
650dba4
Update RoomPosition.js
KyberPrizrak Jan 22, 2024
337d3e5
Update Deposit.js
KyberPrizrak Jan 22, 2024
70bc330
Update PowerCreep.js
KyberPrizrak Jan 22, 2024
a1de700
Update PowerCreep.js
KyberPrizrak Jan 22, 2024
50c3555
Update Room.js
KyberPrizrak Jan 22, 2024
2d5fa31
Update Room.js
KyberPrizrak Jan 22, 2024
e1b7af3
Update Game.js
KyberPrizrak Jan 22, 2024
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
Prev Previous commit
Next Next commit
Update StructurePowerSpawn.js
  • Loading branch information
KyberPrizrak authored Jan 21, 2024
commit 74629f93a326918bce99a2cc639c5f691336f7b7
46 changes: 8 additions & 38 deletions Structures/StructurePowerSpawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @class
* @extends {OwnedStructure}
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208436585-StructurePowerSpawn}
* @see {@link https://docs.screeps.com/api/#StructurePowerSpawn}
*/
StructurePowerSpawn = function() { };

Expand All @@ -15,7 +15,7 @@ StructurePowerSpawn.prototype =
*
* The amount of energy containing in this structure.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208436585-StructurePowerSpawn#energy}
* @see {@link https://docs.screeps.com/api/#StructurePowerSpawn.energy}
*
* @type {number}
*/
Expand All @@ -26,7 +26,7 @@ StructurePowerSpawn.prototype =
*
* The total amount of energy this structure can contain.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208436585-StructurePowerSpawn#energyCapacity}
* @see {@link https://docs.screeps.com/api/#StructurePowerSpawn.energyCapacity}
*
* @type {number}
*/
Expand All @@ -37,7 +37,7 @@ StructurePowerSpawn.prototype =
*
* The amount of power containing in this structure.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208436585-StructurePowerSpawn#power}
* @see {@link https://docs.screeps.com/api/#StructurePowerSpawn.power}
*
* @type {number}
*/
Expand All @@ -48,7 +48,7 @@ StructurePowerSpawn.prototype =
*
* The total amount of power this structure can contain.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208436585-StructurePowerSpawn#powerCapacity}
* @see {@link https://docs.screeps.com/api/#StructurePowerSpawn.powerCapacity}
*
* @type {number}
*/
Expand All @@ -63,46 +63,16 @@ StructurePowerSpawn.prototype =
*/
store: {},

/**
* Create a power creep.
* @note This method is under development.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208436585-StructurePowerSpawn#createPowerCreep}
*
* @type {function}
*
* @param {string} roomName The name of the power creep.
*
* @return {void}
*/
createPowerCreep: function(roomName) { },

/**
* Register power resource units into your account.
* Registered power allows to develop power creeps skills.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208436585-StructurePowerSpawn#processPower}
* @see {@link https://docs.screeps.com/api/#StructurePowerSpawn.processPower}
*
* @type {function}
*
* @return {number|OK|ERR_NOT_ENOUGH_RESOURCES|ERR_RCL_NOT_ENOUGH}
* @return {number|OK|ERR_NOT_OWNER|ERR_NOT_ENOUGH_RESOURCES|ERR_RCL_NOT_ENOUGH}
*/
processPower: function() { },
processPower: function() { }

/**
* @deprecated Since version 2016-07-11, replaced by `Creep.withdraw()`.
*
* Transfer the energy from this structure to a creep.
* You can transfer resources to your creeps from hostile structures as well.
*
* @see {@link http://support.screeps.com/hc/en-us/articles/208436585-StructurePowerSpawn#transferEnergy}
*
* @type {function}
*
* @param {Creep} target The creep object which energy should be transferred to.
* @param {number|undefined|null} [amount] The amount of energy to be transferred. If omitted, all the remaining amount of energy will be used.
*
* @return {number|OK|ERR_NOT_OWNER|ERR_NOT_ENOUGH_RESOURCES|ERR_INVALID_TARGET|ERR_FULL|ERR_NOT_IN_RANGE}
*/
transferEnergy: function(target, amount) { }
};