screepCode/document/command.json
2024-11-04 00:02:20 +08:00

3 lines
283 B
JSON

{
"建筑":"storage.db['rooms.objects'].find({ type: 'constructionSite' }).then(resp => resp.map(cs => storage.db['rooms.objects'].findOne({ _id: cs._id }).then(csDetail => storage.db['rooms.objects'].update({_id: cs._id }, {$set: { progress: csDetail.progressTotal - 1 }}))))"
}