mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2025-07-21 11:33:57 +08:00
change aliases for /alloc
移除 allocation 指令,增加效果相同的 allocate,attrib 和 attribute 指令 使用动词替换名词作为指令的称呼我认为理所当然 把 attrib 和 attribute 定义为 alloc 的同义词是因为我想要添加在人生当中 知道自己现在属性的功能(web 版有的功能居然没有在命令行版中)
This commit is contained in:
36
repl/app.js
36
repl/app.js
@@ -128,9 +128,13 @@ class App {
|
|||||||
|
|
||||||
case 'a':
|
case 'a':
|
||||||
case 'alloc':
|
case 'alloc':
|
||||||
case 'allocation':
|
case 'allocate':
|
||||||
|
case 'attrib':
|
||||||
|
case 'attribute':
|
||||||
case '/alloc':
|
case '/alloc':
|
||||||
case '/allocation': return this.alloc(...command);
|
case '/allocate':
|
||||||
|
case '/attrib':
|
||||||
|
case '/attribute': return this.alloc(...command);
|
||||||
|
|
||||||
case 'rd':
|
case 'rd':
|
||||||
case 'random':
|
case 'random':
|
||||||
@@ -200,17 +204,21 @@ class App {
|
|||||||
|
|
||||||
case 'a':
|
case 'a':
|
||||||
case 'alloc':
|
case 'alloc':
|
||||||
case 'allocation':
|
case 'allocate':
|
||||||
|
case 'attrib':
|
||||||
|
case 'attribute':
|
||||||
case '/alloc':
|
case '/alloc':
|
||||||
case '/allocation': return `分配属性点
|
case '/allocate':
|
||||||
a, alloc, allocation
|
case '/attrib':
|
||||||
/alloc, /allocation 命令同等效果
|
case '/attribute': return `分配属性点
|
||||||
|
a, alloc, allocate, attrib, attribute
|
||||||
|
/alloc, /allocate, /attrib, /attribute 命令同等效果
|
||||||
|
|
||||||
Example: /allocation STR 1
|
Example: /allocate STR 1
|
||||||
/allocation INT -3
|
/allocate INT -3
|
||||||
/allocation CHR +5
|
/allocate CHR +5
|
||||||
|
|
||||||
参数解释 /allocation <TAG> <[+/-]value>
|
参数解释 /allocate <TAG> <[+/-]value>
|
||||||
|
|
||||||
<TAG> 表示要分配的属性标签
|
<TAG> 表示要分配的属性标签
|
||||||
可选有
|
可选有
|
||||||
@@ -286,9 +294,13 @@ class App {
|
|||||||
|
|
||||||
a
|
a
|
||||||
alloc
|
alloc
|
||||||
allocation
|
allocate
|
||||||
|
attrib
|
||||||
|
attribute
|
||||||
/alloc
|
/alloc
|
||||||
/allocation 分配属性点 /allocation <TAG> <[+/-]value>
|
/allocate
|
||||||
|
/attrib
|
||||||
|
/attribute 分配属性点 /allocate <TAG> <[+/-]value>
|
||||||
|
|
||||||
n
|
n
|
||||||
next
|
next
|
||||||
|
Reference in New Issue
Block a user