diff --git a/deities.js b/deities.js index f5b788d..43d9be1 100644 --- a/deities.js +++ b/deities.js @@ -26,5 +26,12 @@ Grimoire.getDeities = function() { Grimoire.getDeity = function(alignment1, alignment2) { if(alignment1 === undefined) alignment1 = _.sample(['lawful', 'neutral', 'chaotic']); if(alignment2 === undefined) alignment2 = _.sample(['good', 'neutral', 'evil']); - return _.sample(Grimoire.getDeities()[alignment1][alignment2]); + var alignmentString = ""; + if(alignment1 === 'neutral' && alignment2 === 'neutral') { + alignmentString = ' (true neutral)'; + } + else { + alignmentString = ' (' + alignment1 + ' ' + alignment2 + ')'; + } + return _.sample(Grimoire.getDeities()[alignment1][alignment2]) + alignmentString; }; \ No newline at end of file diff --git a/intelligence.js b/intelligence.js index 31fb0f8..330ada3 100644 --- a/intelligence.js +++ b/intelligence.js @@ -346,20 +346,20 @@ Intelligence.getItemIntelligence = function(basePrice) { item.cost = cost; item.print = function() { var retStr = 'Alignment: ' + this.alignment + - '; Stats: Ego ' + this.ego + ' Int ' + this.intScore + ' Cha ' + this.chaScore + ' Wis ' + this.wisScore + - '; Communication: ' + this.communication.description; - this.languages.forEach(function(l, index) { retStr += ((index === 0) ? '; Languages: ' : ', ') + l;}); - retStr += '; Senses: ' + basicSenses.description + (!specialSenses.description) ? '' : (', ' + specialSenses.description); + ';Stats: Ego ' + this.ego + ' Int ' + this.intScore + ' Cha ' + this.chaScore + ' Wis ' + this.wisScore + + ';Communication: ' + this.communication.description; + this.languages.forEach(function(l, index) { retStr += ((index === 0) ? ';Languages: ' : ', ') + l;}); + retStr += ';Senses: ' + basicSenses.description + (!specialSenses.description) ? '' : (', ' + specialSenses.description); this.powers.forEach(function(p, index) { - retStr += ((index === 0) ? '; Powers: ' : ', ') + p.description; + retStr += ((index === 0) ? ';Powers: ' : ', ') + p.description; }); if(this.purpose.description) { - retStr += '; Purpose: ' + this.purpose.description; + retStr += ';Purpose: ' + this.purpose.description; this.dedicatedPowers.forEach(function(p, index) { - retStr += ((index === 0) ? ', Dedicated Powers: ' : ', ') + p.description; + retStr += ((index === 0) ? ';Dedicated Powers: ' : ', ') + p.description; }); } - retStr += '; Cost: ' + this.cost; + retStr += ';Cost: ' + this.cost; return retStr; };