diff --git a/module/actor/actor.js b/module/actor/actor.js index 0a5cd61..7784384 100644 --- a/module/actor/actor.js +++ b/module/actor/actor.js @@ -60,21 +60,20 @@ export class MothershipActor extends Actor { if (game.settings.get("mosh", "useCalm") && context === 'stress') { context = 'calm'; } - - let systemclass = this.system.class.value.toLowerCase(); - if (systemclass != "android"){ - systemclass = "human"; + let systemclass = "human"; + if (this.type === 'character') { + systemclass = this.system.class.value.toLowerCase(); } let locString = `Mosh.${type}.${context}.${action}.${systemclass}`; //check to see if this address exists in the library, return the action parameter if not if(game.i18n.has(locString, true)){ // You can pass false as the second argument to ignore english-language fallback. //log what was done - console.log(`Retrieved flavor text for ${type}:${context}:${action}`); + console.log(`Retrieved flavor text for ${locString}`); //return class appropriate text return game.i18n.localize(locString); } else { //log what was done - console.log(`Retrieved flavor text for ${type}:${context}:${action}, which did not have an entry`); + console.log(`Retrieved flavor text for ${locString}, which did not have an entry`); //return what we were asked return action; } diff --git a/templates/item/item-weapon-sheet.html b/templates/item/item-weapon-sheet.html index dd3ed36..a5076a5 100644 --- a/templates/item/item-weapon-sheet.html +++ b/templates/item/item-weapon-sheet.html @@ -91,18 +91,18 @@