fix(sprites): staff position

This commit is contained in:
Sabe Jones 2016-12-02 00:08:44 +00:00
parent 6ab091645c
commit eae5f0d605
5 changed files with 9 additions and 12 deletions

View file

@ -3,17 +3,14 @@ var authorName = 'Sabe'; // in case script author needs to know when their ...
var authorUuid = '7f14ed62-5408-4e1b-be83-ada62d504931'; //... own data is done
/*
* Remove flag stating that the Enchanted Armoire is empty, for when new equipment is added
* set the newStuff flag in all user accounts so they see a Bailey message
*/
var dbserver = 'localhost:27017'; // FOR TEST DATABASE
// var dbserver = 'username:password@ds031379-a0.mongolab.com:31379'; // FOR PRODUCTION DATABASE
var dbname = 'habitrpg';
var mongo = require('mongoskin');
var _ = require('lodash');
var dbUsers = mongo.db(dbserver + '/' + dbname + '?auto_reconnect').collection('users');
var connectionString = 'mongodb://localhost:27017/habitrpg?auto_reconnect=true'; // FOR TEST DATABASE
var dbUsers = mongo.db(connectionString).collection('users');
// specify a query to limit the affected users (empty for all users):
var query = {
@ -22,7 +19,6 @@ var query = {
// specify fields we are interested in to limit retrieved data (empty if we're not reading data):
var fields = {
'flags.armoireEmpty':1
};
console.warn('Updating users...');
@ -32,12 +28,13 @@ dbUsers.findEach(query, fields, {batchSize:250}, function(err, user) {
if (err) { return exiting(1, 'ERROR! ' + err); }
if (!user) {
console.warn('All appropriate users found and modified.');
return displayData();
setTimeout(displayData, 300000);
return;
}
count++;
// specify user data to change:
var set = {'migration':migrationName, 'flags.armoireEmpty':false};
var set = {'flags.armoireEmpty':false};
dbUsers.update({_id:user._id}, {$set:set});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 488 B

View file

@ -547,7 +547,7 @@
"headSpecialBardHatText": "Bardic Cap",
"headSpecialBardHatNotes": "Stick a feather in your cap and call it \"productivity\"! Increases Intelligence by <%= int %>.",
"headSpecialLunarWarriorHelmText": "Elmo de Guerreiro Lunar",
"headSpecialLunarWarriorHelmNotes": "O poder da lua te fortalecerá na batalha! Aumenta a Força e Inteligência em <% = attrs%> cada.",
"headSpecialLunarWarriorHelmNotes": "O poder da lua te fortalecerá na batalha! Aumenta a Força e Inteligência em <%= attrs %> cada.",
"headSpecialNyeText": "Chapéu Festivo Absurdo",
"headSpecialNyeNotes": "Você recebeu um Chapéu Festivo Absurdo! Use-o com orgulho enquanto comemora o Ano Novo! Não confere benefícios.",
"headSpecialYetiText": "Elmo de Domador de Ieti",
@ -1031,4 +1031,4 @@
"eyewearMystery301405Notes": "Nenhum acessório é tão chique quanto um monóculo - exceto, talvez, óculos de proteção. Não confere benefícios. Item de Assinante de Julho de 3015.",
"eyewearArmoirePlagueDoctorMaskText": "Máscara de Médico da Peste",
"eyewearArmoirePlagueDoctorMaskNotes": "Uma autêntica máscara usada pelos médicos que lutam contra a Peste da Procrastinação. Não confere benefícios. Armário Encantado: Conjunto Médico da Peste (Item 2 de 3)."
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

After

Width:  |  Height:  |  Size: 135 KiB