Add css and js implementation of previously naïve approach
Bonus: Learned some meteor :)
This commit is contained in:
@@ -6,4 +6,10 @@ Template.statCard.helpers({
|
||||
)
|
||||
);
|
||||
},
|
||||
advantage: function(){
|
||||
var charId = Template.parentData()._id;
|
||||
var advantage = Characters.calculate.advantage(charId, this.stat);
|
||||
if (advantage > 0) return "advantage";
|
||||
if (advantage < 0) return "disadvantage";
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user