You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a power-creep is not spawned in, it's ticksToLive property returns null, however, this value is somehow broken. While it does show up correctly when saved to memory or logged to the console, it somehow causes an evaluation against null to be false. Example:
The expected behaviour would be Game.powerCreeps[Object.keys(Game.powerCreeps)[0]].ticksToLive == null to be true in the case of Game.powerCreeps[Object.keys(Game.powerCreeps)[0]].ticksToLive being null. I've also checked and in this case the value is NOT a string that just sais "null".
I don't know a fix for this, however someone in discord suggested this was the cause:
When a power-creep is not spawned in, it's
ticksToLive
property returnsnull
, however, this value is somehow broken. While it does show up correctly when saved to memory or logged to the console, it somehow causes an evaluation againstnull
to befalse
. Example:This will yield the following output:
The expected behaviour would be
Game.powerCreeps[Object.keys(Game.powerCreeps)[0]].ticksToLive == null
to betrue
in the case ofGame.powerCreeps[Object.keys(Game.powerCreeps)[0]].ticksToLive
beingnull
. I've also checked and in this case the value is NOT a string that just sais"null"
.I don't know a fix for this, however someone in discord suggested this was the cause:
engine/src/game/power-creeps.js
Line 72 in 97c9d12
The start of this conversation in the official discord can be found with this link: https://discord.com/channels/860665589738635336/866441713383637032/1267538335002529853
The text was updated successfully, but these errors were encountered: