mirror of
https://github.com/RussellChamp/GrimoireJS.git
synced 2026-10-27 22:42:32 +00:00
Updated the printing of deities and intelligent items
This commit is contained in:
1 parent
d8b4dd54e3
commit
9060276ee7
2 files changed
+16
-9
No files matched your search
+8
-8
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user