1
0
Fork 0
mirror of https://github.com/Oreolek/undum.git synced 2024-05-03 17:49:21 +03:00

Merge pull request #40 from sequitur/quality-list-null

Fixed 'null' in WordScaleQuality lists not behaving as you'd expect
This commit is contained in:
Ian Millington 2015-03-01 14:27:37 +00:00
commit 56c080c984

View file

@ -476,7 +476,8 @@
val = this.values.length - 1;
}
if (!this.useBonuses) mod = "";
return this.values[val] + mod;
if (this.values[val] === null) return null;
return this.values[val] + mod; // Type coercion
};
/* A specialization of WordScaleQuality that uses the FUDGE RPG's