Browse Source

feat(xtintin): list.RandomGet 现在用 %0 而不是 %1 做参数了

dzp 1 year ago
parent
commit
e1b2d91b74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/lib/xtintin/list.tin

+ 1 - 1
plugins/lib/xtintin/list.tin

@@ -175,7 +175,7 @@ PaoTin++ © 2020~2023 的所有版权均由担子炮(dzp <danzipao@gmail.com>) 
 //    从列表中随机取出一个值。
 // };
 #func {list.RandomGet} {
-    #local list     {%1};
+    #local list     {%0};
 
     #local index {@math.Random{1;&list[]}};
     #return {$list[+$index]};