diff --git a/src/npc/descriptions/genericDescriptions.js b/src/npc/descriptions/genericDescriptions.js new file mode 100644 index 0000000000000000000000000000000000000000..35706f785b18f403f358e1034730369d3eb7ab86 --- /dev/null +++ b/src/npc/descriptions/genericDescriptions.js @@ -0,0 +1,17 @@ +/** + * @example const beautiful = beautiful(slave); `The slave's ${beautiful} face.` + * @param {App.Entity.SlaveState} slave + * @returns {string} + */ +globalThis.beautiful = function(slave) { + return slave.genes === "XX" ? `beautiful` : `handsome`; +}; + +/** + * @example const pretty = pretty(slave); `The slave's ${pretty} face.` + * @param {App.Entity.SlaveState} slave + * @returns {string} + */ +globalThis.pretty = function(slave) { + return slave.genes === "XX" ? `pretty` : `good-looking`; +};