Skip to content

Commit

Permalink
change aliases for /alloc
Browse files Browse the repository at this point in the history
移除 allocation 指令,增加效果相同的 allocate,attrib 和 attribute 指令
使用动词替换名词作为指令的称呼我认为理所当然
把 attrib 和 attribute 定义为 alloc 的同义词是因为我想要添加在人生当中
知道自己现在属性的功能(web 版有的功能居然没有在命令行版中)
  • Loading branch information
mcendu authored and VickScarlet committed Oct 2, 2021
1 parent 274290c commit 40b1ba3
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions repl/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,13 @@ class App {

case 'a':
case 'alloc':
case 'allocation':
case 'allocate':
case 'attrib':
case 'attribute':
case '/alloc':
case '/allocation': return this.alloc(...command);
case '/allocate':
case '/attrib':
case '/attribute': return this.alloc(...command);

case 'rd':
case 'random':
Expand Down Expand Up @@ -200,17 +204,21 @@ class App {

case 'a':
case 'alloc':
case 'allocation':
case 'allocate':
case 'attrib':
case 'attribute':
case '/alloc':
case '/allocation': return `分配属性点
a, alloc, allocation
/alloc, /allocation 命令同等效果
case '/allocate':
case '/attrib':
case '/attribute': return `分配属性点
a, alloc, allocate, attrib, attribute
/alloc, /allocate, /attrib, /attribute 命令同等效果
Example: /allocation STR 1
/allocation INT -3
/allocation CHR +5
Example: /allocate STR 1
/allocate INT -3
/allocate CHR +5
参数解释 /allocation <TAG> <[+/-]value>
参数解释 /allocate <TAG> <[+/-]value>
<TAG> 表示要分配的属性标签
可选有
Expand Down Expand Up @@ -286,9 +294,13 @@ class App {
a
alloc
allocation
allocate
attrib
attribute
/alloc
/allocation 分配属性点 /allocation <TAG> <[+/-]value>
/allocate
/attrib
/attribute 分配属性点 /allocate <TAG> <[+/-]value>
n
next
Expand Down

0 comments on commit 40b1ba3

Please sign in to comment.