Implemented remaining core features
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
Template.registerHelper("detailHero", function(){
|
||||
if ( Session.equals("global.ui.detailHeroId", this._id) ) {
|
||||
Template.registerHelper("detailHero", function(suffix){
|
||||
var id = suffix? this._id + suffix : this._id;
|
||||
if ( Session.equals("global.ui.detailHeroId", id) ) {
|
||||
return "hero";
|
||||
}
|
||||
});
|
||||
@@ -4,5 +4,13 @@ Template.registerHelper("evaluate", function(charId, string){
|
||||
|
||||
Template.registerHelper("evaluateSigned", function(charId, string){
|
||||
var number = evaluate(charId, string);
|
||||
return number > 0? "+" + number : "" + number;
|
||||
if(_.isFinite(number)){
|
||||
return number > 0? "+" + number : "" + number;
|
||||
} else{
|
||||
return number;
|
||||
}
|
||||
});
|
||||
|
||||
Template.registerHelper("evaluateString", function(charId, string){
|
||||
return evaluateString(charId, string);
|
||||
});
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
Session.set("Mongol", {
|
||||
'collections': [
|
||||
"Characters",
|
||||
"Actions",
|
||||
"Attacks",
|
||||
"Classes",
|
||||
"Containers",
|
||||
"Items",
|
||||
"Features",
|
||||
"Effects",
|
||||
"Spells",
|
||||
"SpellLists",
|
||||
"Experiences",
|
||||
"Features",
|
||||
"Items",
|
||||
"Levels",
|
||||
"Notes",
|
||||
"Experiences"
|
||||
"Spells",
|
||||
"SpellLists"
|
||||
],
|
||||
'display': true,
|
||||
'opacity_normal': ".7",
|
||||
|
||||
Reference in New Issue
Block a user