View Single Post
  #15  
Old January 21st, 2020, 11:00 AM
estar estar is offline
Citizen: SOC-12
 
Join Date: Oct 2002
Posts: 184
Gallery : 0
Visit estar's Blog
estar has disabled reputation
Default

Fixed it. The issue was a misplaced curly bracket. However instead of checking age, I changed it to assign this.terms to dm directly.

Code:
    checkSurvival: function () {
        var dm = 0;
        var sv = roll(2);
		dm = this.terms;
        this.verboseHistory('Survival roll ' + sv + ' + ' + dm + ' vs ' + 5);
        if ((sv + dm) >= 5) {
            return true;
        } else {
            return false;
        }
    },
Reply With Quote