Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
614284c73d | ||
|
|
6528fc8bab | ||
|
|
020930b2e4 | ||
|
|
dcd76e06e1 | ||
|
|
8a58002415 |
@@ -13,3 +13,5 @@ notices-for-facebook-graph-api-2
|
|||||||
1.3.0-split-minifiers-package
|
1.3.0-split-minifiers-package
|
||||||
1.4.0-remove-old-dev-bundle-link
|
1.4.0-remove-old-dev-bundle-link
|
||||||
1.4.1-add-shell-server-package
|
1.4.1-add-shell-server-package
|
||||||
|
1.4.3-split-account-service-packages
|
||||||
|
1.5-add-dynamic-import-package
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# but you can also edit it by hand.
|
# but you can also edit it by hand.
|
||||||
|
|
||||||
iron:router
|
iron:router
|
||||||
accounts-password@1.3.3
|
accounts-password@1.4.0
|
||||||
accounts-ui@1.1.9
|
accounts-ui@1.1.9
|
||||||
random@1.0.10
|
random@1.0.10
|
||||||
dburles:collection-helpers
|
dburles:collection-helpers
|
||||||
@@ -18,35 +18,37 @@ dburles:mongo-collection-instances
|
|||||||
percolate:migrations
|
percolate:migrations
|
||||||
ecwyne:mathjs
|
ecwyne:mathjs
|
||||||
useraccounts:polymer
|
useraccounts:polymer
|
||||||
accounts-google@1.0.11
|
accounts-google@1.2.0
|
||||||
splendido:accounts-meld
|
splendido:accounts-meld
|
||||||
email@1.1.18
|
email@1.2.3
|
||||||
meteorhacks:subs-manager
|
meteorhacks:subs-manager
|
||||||
chuangbo:marked
|
chuangbo:marked
|
||||||
reywood:iron-router-ga
|
reywood:iron-router-ga
|
||||||
meteor-base@1.0.4
|
meteor-base@1.1.0
|
||||||
mobile-experience@1.0.4
|
mobile-experience@1.0.4
|
||||||
mongo@1.1.14
|
mongo@1.2.0
|
||||||
blaze-html-templates
|
blaze-html-templates
|
||||||
session@1.1.7
|
session@1.1.7
|
||||||
jquery@1.11.10
|
jquery@1.11.10
|
||||||
tracker@1.1.1
|
tracker@1.1.3
|
||||||
logging@1.1.16
|
logging@1.1.17
|
||||||
reload@1.1.11
|
reload@1.1.11
|
||||||
ejson@1.0.13
|
ejson@1.0.14
|
||||||
spacebars
|
spacebars
|
||||||
check@1.2.4
|
check@1.2.5
|
||||||
useraccounts:iron-routing
|
useraccounts:iron-routing
|
||||||
wizonesolutions:canonical
|
wizonesolutions:canonical
|
||||||
standard-minifier-js@1.2.1
|
standard-minifier-js@2.1.1
|
||||||
shell-server@0.2.1
|
shell-server@0.2.4
|
||||||
seba:minifiers-autoprefixer
|
seba:minifiers-autoprefixer
|
||||||
nikogosovd:multiple-uihooks
|
nikogosovd:multiple-uihooks
|
||||||
templates:array
|
templates:array
|
||||||
ecmascript@0.6.1
|
ecmascript@0.8.2
|
||||||
es5-shim@4.6.15
|
es5-shim@4.6.15
|
||||||
differential:vulcanize
|
differential:vulcanize
|
||||||
reactive-dict
|
reactive-dict@1.1.9
|
||||||
percolate:synced-cron
|
percolate:synced-cron
|
||||||
ongoworks:speakingurl
|
ongoworks:speakingurl
|
||||||
service-configuration
|
service-configuration@1.0.11
|
||||||
|
google-config-ui
|
||||||
|
dynamic-import
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
METEOR@1.4.2.6
|
METEOR@1.5.2
|
||||||
|
|||||||
@@ -1,53 +1,57 @@
|
|||||||
accounts-base@1.2.14
|
accounts-base@1.3.3
|
||||||
accounts-google@1.0.11
|
accounts-google@1.2.0
|
||||||
accounts-oauth@1.1.15
|
accounts-oauth@1.1.15
|
||||||
accounts-password@1.3.3
|
accounts-password@1.4.0
|
||||||
accounts-ui@1.1.9
|
accounts-ui@1.1.9
|
||||||
accounts-ui-unstyled@1.1.13
|
accounts-ui-unstyled@1.2.1
|
||||||
aldeed:collection2@2.10.0
|
aldeed:collection2@2.10.0
|
||||||
aldeed:collection2-core@1.2.0
|
aldeed:collection2-core@1.2.0
|
||||||
aldeed:schema-deny@1.1.0
|
aldeed:schema-deny@1.1.0
|
||||||
aldeed:schema-index@1.1.1
|
aldeed:schema-index@1.1.1
|
||||||
aldeed:simple-schema@1.5.3
|
aldeed:simple-schema@1.5.3
|
||||||
allow-deny@1.0.5
|
allow-deny@1.0.9
|
||||||
autoupdate@1.3.12
|
autoupdate@1.3.12
|
||||||
babel-compiler@6.13.0
|
babel-compiler@6.20.0
|
||||||
babel-runtime@1.0.1
|
babel-runtime@1.0.1
|
||||||
base64@1.0.10
|
base64@1.0.10
|
||||||
binary-heap@1.0.10
|
binary-heap@1.0.10
|
||||||
blaze@2.3.0
|
blaze@2.3.2
|
||||||
blaze-html-templates@1.1.0
|
blaze-html-templates@1.1.2
|
||||||
blaze-tools@1.0.10
|
blaze-tools@1.0.10
|
||||||
boilerplate-generator@1.0.11
|
boilerplate-generator@1.2.0
|
||||||
caching-compiler@1.1.9
|
caching-compiler@1.1.9
|
||||||
caching-html-compiler@1.1.0
|
caching-html-compiler@1.1.2
|
||||||
callback-hook@1.0.10
|
callback-hook@1.0.10
|
||||||
check@1.2.4
|
check@1.2.5
|
||||||
chuangbo:marked@0.3.5_1
|
chuangbo:marked@0.3.5_1
|
||||||
coffeescript@1.11.1_4
|
coffeescript@1.11.1_4
|
||||||
dburles:collection-helpers@1.1.0
|
dburles:collection-helpers@1.1.0
|
||||||
dburles:mongo-collection-instances@0.3.5
|
dburles:mongo-collection-instances@0.3.5
|
||||||
ddp@1.2.5
|
ddp@1.3.1
|
||||||
ddp-client@1.3.2
|
ddp-client@2.1.3
|
||||||
ddp-common@1.2.8
|
ddp-common@1.2.9
|
||||||
ddp-rate-limiter@1.0.6
|
ddp-rate-limiter@1.0.7
|
||||||
ddp-server@1.3.12
|
ddp-server@2.0.2
|
||||||
deps@1.0.12
|
deps@1.0.12
|
||||||
diff-sequence@1.0.7
|
diff-sequence@1.0.7
|
||||||
differential:vulcanize@3.0.0
|
differential:vulcanize@3.0.0
|
||||||
ecmascript@0.6.1
|
dynamic-import@0.1.3
|
||||||
ecmascript-runtime@0.3.15
|
ecmascript@0.8.2
|
||||||
|
ecmascript-runtime@0.4.1
|
||||||
|
ecmascript-runtime-client@0.4.3
|
||||||
|
ecmascript-runtime-server@0.4.1
|
||||||
ecwyne:mathjs@0.25.0
|
ecwyne:mathjs@0.25.0
|
||||||
ejson@1.0.13
|
ejson@1.0.14
|
||||||
email@1.1.18
|
email@1.2.3
|
||||||
es5-shim@4.6.15
|
es5-shim@4.6.15
|
||||||
fastclick@1.0.13
|
fastclick@1.0.13
|
||||||
geojson-utils@1.0.10
|
geojson-utils@1.0.10
|
||||||
google@1.1.15
|
google-config-ui@1.0.0
|
||||||
|
google-oauth@1.2.4
|
||||||
hot-code-push@1.0.4
|
hot-code-push@1.0.4
|
||||||
html-tools@1.0.11
|
html-tools@1.0.11
|
||||||
htmljs@1.0.11
|
htmljs@1.0.11
|
||||||
http@1.2.10
|
http@1.2.12
|
||||||
id-map@1.0.9
|
id-map@1.0.9
|
||||||
iron:controller@1.0.12
|
iron:controller@1.0.12
|
||||||
iron:core@1.0.11
|
iron:core@1.0.11
|
||||||
@@ -55,45 +59,46 @@ iron:dynamic-template@1.0.12
|
|||||||
iron:layout@1.0.12
|
iron:layout@1.0.12
|
||||||
iron:location@1.0.11
|
iron:location@1.0.11
|
||||||
iron:middleware-stack@1.1.0
|
iron:middleware-stack@1.1.0
|
||||||
iron:router@1.1.1
|
iron:router@1.1.2
|
||||||
iron:url@1.0.11
|
iron:url@1.1.0
|
||||||
jquery@1.11.10
|
jquery@1.11.10
|
||||||
lai:collection-extensions@0.2.1_1
|
lai:collection-extensions@0.2.1_1
|
||||||
launch-screen@1.1.0
|
launch-screen@1.1.1
|
||||||
less@2.7.9
|
less@2.7.9
|
||||||
livedata@1.0.18
|
livedata@1.0.18
|
||||||
localstorage@1.0.12
|
localstorage@1.1.1
|
||||||
logging@1.1.16
|
logging@1.1.17
|
||||||
matb33:collection-hooks@0.8.4
|
matb33:collection-hooks@0.8.4
|
||||||
mdg:validation-error@0.5.1
|
mdg:validation-error@0.5.1
|
||||||
meteor@1.6.0
|
meteor@1.7.2
|
||||||
meteor-base@1.0.4
|
meteor-base@1.1.0
|
||||||
meteorhacks:subs-manager@1.6.4
|
meteorhacks:subs-manager@1.6.4
|
||||||
minifier-css@1.2.16
|
minifier-css@1.2.16
|
||||||
minifier-js@1.2.17
|
minifier-js@2.1.3
|
||||||
minimongo@1.0.19
|
minimongo@1.3.1
|
||||||
mobile-experience@1.0.4
|
mobile-experience@1.0.4
|
||||||
mobile-status-bar@1.0.13
|
mobile-status-bar@1.0.14
|
||||||
modules@0.7.7
|
modules@0.10.0
|
||||||
modules-runtime@0.7.8
|
modules-runtime@0.8.0
|
||||||
momentjs:moment@2.17.1
|
momentjs:moment@2.18.1
|
||||||
mongo@1.1.14
|
mongo@1.2.2
|
||||||
|
mongo-dev-server@1.0.1
|
||||||
mongo-id@1.0.6
|
mongo-id@1.0.6
|
||||||
nikogosovd:multiple-uihooks@0.1.8
|
nikogosovd:multiple-uihooks@0.1.8
|
||||||
npm-bcrypt@0.9.2
|
npm-bcrypt@0.9.3
|
||||||
npm-mongo@2.2.16_1
|
npm-mongo@2.2.30
|
||||||
oauth@1.1.12
|
oauth@1.1.13
|
||||||
oauth2@1.1.11
|
oauth2@1.1.11
|
||||||
observe-sequence@1.0.14
|
observe-sequence@1.0.16
|
||||||
ongoworks:speakingurl@9.0.0
|
ongoworks:speakingurl@9.0.0
|
||||||
ordered-dict@1.0.9
|
ordered-dict@1.0.9
|
||||||
percolate:migrations@0.9.8
|
percolate:migrations@0.9.8
|
||||||
percolate:synced-cron@1.3.2
|
percolate:synced-cron@1.3.2
|
||||||
promise@0.8.8
|
promise@0.9.0
|
||||||
raix:eventemitter@0.1.3
|
raix:eventemitter@0.1.3
|
||||||
random@1.0.10
|
random@1.0.10
|
||||||
rate-limit@1.0.6
|
rate-limit@1.0.8
|
||||||
reactive-dict@1.1.8
|
reactive-dict@1.1.9
|
||||||
reactive-var@1.0.11
|
reactive-var@1.0.11
|
||||||
reload@1.1.11
|
reload@1.1.11
|
||||||
retry@1.0.9
|
retry@1.0.9
|
||||||
@@ -103,27 +108,27 @@ seba:minifiers-autoprefixer@1.0.1
|
|||||||
service-configuration@1.0.11
|
service-configuration@1.0.11
|
||||||
session@1.1.7
|
session@1.1.7
|
||||||
sha@1.0.9
|
sha@1.0.9
|
||||||
shell-server@0.2.1
|
shell-server@0.2.4
|
||||||
softwarerero:accounts-t9n@1.3.7
|
softwarerero:accounts-t9n@1.3.11
|
||||||
spacebars@1.0.13
|
spacebars@1.0.15
|
||||||
spacebars-compiler@1.1.0
|
spacebars-compiler@1.1.3
|
||||||
splendido:accounts-emails-field@1.2.0
|
splendido:accounts-emails-field@1.2.0
|
||||||
splendido:accounts-meld@1.3.1
|
splendido:accounts-meld@1.3.1
|
||||||
srp@1.0.10
|
srp@1.0.10
|
||||||
standard-minifier-js@1.2.2
|
standard-minifier-js@2.1.1
|
||||||
templates:array@1.0.3
|
templates:array@1.0.3
|
||||||
templating@1.3.0
|
templating@1.3.2
|
||||||
templating-compiler@1.3.0
|
templating-compiler@1.3.3
|
||||||
templating-runtime@1.3.0
|
templating-runtime@1.3.2
|
||||||
templating-tools@1.1.0
|
templating-tools@1.1.2
|
||||||
tracker@1.1.1
|
tracker@1.1.3
|
||||||
ui@1.0.12
|
ui@1.0.13
|
||||||
underscore@1.0.10
|
underscore@1.0.10
|
||||||
url@1.0.11
|
url@1.1.0
|
||||||
useraccounts:core@1.14.2
|
useraccounts:core@1.14.2
|
||||||
useraccounts:iron-routing@1.14.2
|
useraccounts:iron-routing@1.14.2
|
||||||
useraccounts:polymer@1.14.2
|
useraccounts:polymer@1.14.2
|
||||||
webapp@1.3.12
|
webapp@1.3.19
|
||||||
webapp-hashing@1.0.9
|
webapp-hashing@1.0.9
|
||||||
wizonesolutions:canonical@0.0.5
|
wizonesolutions:canonical@0.0.5
|
||||||
zimme:collection-behaviours@1.1.3
|
zimme:collection-behaviours@1.1.3
|
||||||
|
|||||||
@@ -267,9 +267,11 @@ Template.spells.events({
|
|||||||
//loop through all returned spells
|
//loop through all returned spells
|
||||||
_.each(resultArray, (rawSpell, index) =>{
|
_.each(resultArray, (rawSpell, index) =>{
|
||||||
// Make the library spell into a regular spell
|
// Make the library spell into a regular spell
|
||||||
let spell = _.omit(rawSpell, "library", "attacks", "effects");
|
let spell = _.omit(rawSpell, "_id", "library", "attacks", "effects");
|
||||||
|
// Use the ID generated earlier for the first spell so we
|
||||||
|
// can animate to it
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
spell._id = spellId; //only do this for the first spell added
|
spell._id = spellId;
|
||||||
}
|
}
|
||||||
spell.charId = charId;
|
spell.charId = charId;
|
||||||
spell.parent = {
|
spell.parent = {
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ Template.healthCard.onRendered(function(){
|
|||||||
const id = Template.currentData()._id;
|
const id = Template.currentData()._id;
|
||||||
if (oldId !== id){
|
if (oldId !== id){
|
||||||
this.find("#hitPointSlider").resetOldValue();
|
this.find("#hitPointSlider").resetOldValue();
|
||||||
this.find("#temporaryHitPointSlider").resetOldValue();
|
var thpSlider = this.find("#temporaryHitPointSlider");
|
||||||
|
thpSlider && thpSlider.resetOldValue();
|
||||||
oldId = id;
|
oldId = id;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -17,11 +17,18 @@ characterExport = function(charId){
|
|||||||
return Characters.calculate.attributeValue(charId, attributeName);
|
return Characters.calculate.attributeValue(charId, attributeName);
|
||||||
};
|
};
|
||||||
var abilityMod = function(attributeName){
|
var abilityMod = function(attributeName){
|
||||||
return Characters.calculate.abilityMod(charId, attributeName)
|
return signedString(
|
||||||
|
Characters.calculate.abilityMod(charId, attributeName)
|
||||||
|
);
|
||||||
};
|
};
|
||||||
var skillMod = function(skillName){
|
var skillMod = function(skillName){
|
||||||
return Characters.calculate.skillMod(charId, skillName);
|
return signedString(
|
||||||
|
Characters.calculate.skillMod(charId, skillName)
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
var proficiency = function(skillName){
|
||||||
|
return Characters.calculate.proficiency(charId, skillName);
|
||||||
|
}
|
||||||
var damageMods = getDamageMods(charId);
|
var damageMods = getDamageMods(charId);
|
||||||
var character = {
|
var character = {
|
||||||
"Id": char._id,
|
"Id": char._id,
|
||||||
@@ -45,7 +52,7 @@ characterExport = function(charId){
|
|||||||
"Languages": getLanguages(charId),
|
"Languages": getLanguages(charId),
|
||||||
"Description": char.description || "",
|
"Description": char.description || "",
|
||||||
"Backstory": char.backstory || "",
|
"Backstory": char.backstory || "",
|
||||||
"Personality": char.Personality || "" ,
|
"Personality": char.personality || "" ,
|
||||||
"Bonds": char.bonds || "",
|
"Bonds": char.bonds || "",
|
||||||
"Ideals": char.ideals || "",
|
"Ideals": char.ideals || "",
|
||||||
"Flaws": char.flaws || "",
|
"Flaws": char.flaws || "",
|
||||||
@@ -69,12 +76,18 @@ characterExport = function(charId){
|
|||||||
"DamageResistances": damageMods.resistances,
|
"DamageResistances": damageMods.resistances,
|
||||||
"DamageImmunities": damageMods.immunities,
|
"DamageImmunities": damageMods.immunities,
|
||||||
|
|
||||||
"StrSave": skillMod("strengthSave"),
|
"StrengthSave": skillMod("strengthSave"),
|
||||||
"DexSave": skillMod("dexteritySave"),
|
"StrengthSaveProficiency": proficiency("strengthSave"),
|
||||||
"ConSave": skillMod("constitutionSave"),
|
"DexteritySave": skillMod("dexteritySave"),
|
||||||
"IntSave": skillMod("intelligenceSave"),
|
"DexteritySaveProficiency": proficiency("dexteritySave"),
|
||||||
"WisSave": skillMod("wisdomSave"),
|
"ConstitutionSave": skillMod("constitutionSave"),
|
||||||
"ChaSave": skillMod("charismaSave"),
|
"ConstitutionSaveProficiency": proficiency("constitutionSave"),
|
||||||
|
"intelligenceSave": skillMod("intelligenceSave"),
|
||||||
|
"intelligenceSaveProficiency": proficiency("intelligenceSave"),
|
||||||
|
"WisdomSave": skillMod("wisdomSave"),
|
||||||
|
"WisdomSaveProficiency": proficiency("wisdomSave"),
|
||||||
|
"CharismaSave": skillMod("charismaSave"),
|
||||||
|
"CharismaSaveProficiency": proficiency("charismaSave"),
|
||||||
|
|
||||||
"Level1SpellSlots": attributeValue("level1SpellSlots"),
|
"Level1SpellSlots": attributeValue("level1SpellSlots"),
|
||||||
"Level2SpellSlots": attributeValue("level2SpellSlots"),
|
"Level2SpellSlots": attributeValue("level2SpellSlots"),
|
||||||
@@ -89,6 +102,10 @@ characterExport = function(charId){
|
|||||||
"Rages": attributeValue("rages"),
|
"Rages": attributeValue("rages"),
|
||||||
"RageDamage": attributeValue("rageDamage"),
|
"RageDamage": attributeValue("rageDamage"),
|
||||||
"SorceryPoints": attributeValue("sorceryPoints"),
|
"SorceryPoints": attributeValue("sorceryPoints"),
|
||||||
|
|
||||||
|
"DeathSavePasses": char.deathSave.pass,
|
||||||
|
"DeathSaveFails": char.deathSave.fail,
|
||||||
|
"DeathSaveStable": char.deathSave.stable,
|
||||||
};
|
};
|
||||||
_.extend(character, getSkills(charId));
|
_.extend(character, getSkills(charId));
|
||||||
_.extend(character, getAttacks(charId));
|
_.extend(character, getAttacks(charId));
|
||||||
@@ -107,6 +124,7 @@ var getHitDiceString = function(charId){
|
|||||||
(d10 ? `${d10}d10 + ` : "") +
|
(d10 ? `${d10}d10 + ` : "") +
|
||||||
(d12 ? `${d12}d12 + ` : "") +
|
(d12 ? `${d12}d12 + ` : "") +
|
||||||
con;
|
con;
|
||||||
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
var getArmorString = function(charId){
|
var getArmorString = function(charId){
|
||||||
@@ -181,8 +199,13 @@ var getSkills = function(charId){
|
|||||||
];
|
];
|
||||||
var skills = {};
|
var skills = {};
|
||||||
_.each(allSkills, skill => {
|
_.each(allSkills, skill => {
|
||||||
var value = Characters.calculate.skillMod(charId, skill.name);
|
var value = signedString(
|
||||||
skills[skill.name] = value;
|
Characters.calculate.skillMod(charId, skill.name)
|
||||||
|
);
|
||||||
|
var prof = Characters.calculate.proficiency(charId, skill.name);
|
||||||
|
var name = skill.name.charAt(0).toUpperCase() + skill.name.slice(1);
|
||||||
|
skills[name] = value;
|
||||||
|
skills[name + "Proficiency"] = prof;
|
||||||
});
|
});
|
||||||
return skills;
|
return skills;
|
||||||
};
|
};
|
||||||
@@ -212,4 +235,8 @@ var getAttacks = function(charId){
|
|||||||
`${a.details}`;
|
`${a.details}`;
|
||||||
});
|
});
|
||||||
return attacks;
|
return attacks;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
var signedString = function(number) {
|
||||||
|
return number >= 0 ? "+" + number : "" + number;
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user