Aetheria/RethinkDB Queries.txt
hyperion51 8986575c59 Factory Changes
Factory now has the ability to persist its state
Added exponents to control speed/quality tradeoff and quality randomness
2020-04-30 02:54:31 +01:00

15 lines
No EOL
706 B
Text

Empty Galaxy
r.db('Aetheria').table('Galaxy').filter({$type:'ZoneData'}).update({visited: false})
r.db('Aetheria').table('Galaxy').filter({$type:'ZoneData'}).update({orbits: [ ]})
r.db('Aetheria').table('Galaxy').filter({$type:'ZoneData'}).update({planets: [ ]})
r.db('Aetheria').table('Galaxy').filter({$type:'OrbitData'}).delete()
r.db('Aetheria').table('Galaxy').filter({$type:'PlanetData'}).delete()
Find Unassigned Items
r.db('Aetheria').table('Items').filter({mass:0}).pluck('$type','name')
Find Unassigned Blueprints
r.db('Aetheria').table('Items').filter({researchTime:0}).pluck('name')
Find Unassigned Stats
r.db('Aetheria').table('Items').filter({durabilityStat:{min:0}}).pluck('$type','name')