View Single Post
  #16  
Old January 21st, 2020, 02:01 PM
ffilz ffilz is offline
Citizen: SOC-12
 
Join Date: Nov 2009
Posts: 326
Gallery : 0
ffilz Citizen
Default

Quote:
Originally Posted by estar View Post
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;
        }
    },
It should still compare against 9 not 5...
Reply With Quote