tweak interface text and add command hint

指明在天赋抽卡、属性分配和继承天赋需要用的指令。
在英文单词和阿拉伯数字周围加了空格(因为好看!)
This commit is contained in:
Nathan Du
2021-09-21 21:04:24 +08:00
committed by 神戸小鳥
parent b18c41349d
commit fa6aa9bc7d

View File

@ -346,7 +346,7 @@ class App {
if(!s) return warn(`${number} 为未知天赋`);
if(this.#talentSelected.has(s)) continue;
if(this.#talentSelected.size == 3)
return warn('只能选3个天赋');
return warn('只能选3个天赋。请使用 \x1B[4m/unselect\x1B[24m 取消选择你不想要的天赋');
const exclusive = this.#life.exclusive(
Array.from(this.#talentSelected).map(({id})=>id),
@ -391,12 +391,12 @@ class App {
let description, list, check;
switch(this.#step) {
case this.Steps.TALENT:
description = '🎉 请选择3个天赋';
description = '🎉 请选择\x1B[4m/select\x1B[24m3 个天赋';
list = this.#randomTalents;
check = talent=>this.#talentSelected.has(talent);
break;
case this.Steps.SUMMARY:
description = '🎉 你可以选一个天赋继承';
description = '🎉 你可以选\x1B[4m/select\x1B[24m一个天赋继承';
list = Array.from(this.#talentSelected);
check = ({id})=>this.#talentExtend == id;
break;
@ -418,7 +418,7 @@ class App {
const warn = (a, b) => `${a}\n${this.style('warn', this.style('warn', b))}`;
switch(this.#step) {
case this.Steps.TALENT:
if(this.#talentSelected.size != 3) return warn(this.list(), `请选择3个天赋`);
if(this.#talentSelected.size != 3) return warn(this.list(), `请选择 3 个天赋`);
this.#step = this.Steps.PROPERTY;
this.#propertyAllocation.total = 20 + this.#life.getTalentAllocationAddition(
Array.from(this.#talentSelected).map(({id})=>id)
@ -487,6 +487,7 @@ class App {
prop() {
const { CHR, INT, STR, MNY } = this.#propertyAllocation;
return `🎉 属性分配
请使用 \x1B[4m/alloc\x1B[24m <TAG> <value> 分配属性
剩余点数 ${this.less()}
属性(TAG) 当前值