Added Health Bar

This commit is contained in:
Thaum
2015-02-20 11:26:54 +00:00
parent f599bc4a46
commit 08f02d9b36
5 changed files with 34 additions and 6 deletions

View File

@@ -39,6 +39,11 @@ Template.features.events({
"tap .resetFeature": function(event){
var featureId = this._id;
Features.update(featureId, {$set: {used: 0}});
},
"change #hitPointSlider": function(event){
var value = event.currentTarget.value;
var adjustment = value - this.attributeBase("hitPoints");
Characters.update(this._id, {$set: {"hitPoints.adjustment": adjustment}});
}
});