Skip to content

Commit

Permalink
Merge pull request TK11235#149 from entyu/v1.10.0b0.1
Browse files Browse the repository at this point in the history
V1.10.0b0.1
  • Loading branch information
entyu authored Jan 15, 2023
2 parents bd109dd + bee7b45 commit 20ba146
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "udonarium_lily",
"version": "1.10.0b0",
"version": "1.10.0b0.1",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down
11 changes: 7 additions & 4 deletions src/app/class/chat-palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ export class ChatPalette extends ObjectNode {
checkTargetCharactor(text: string): boolean{
let istarget = text.match(/[tT][{]\s*([^{}]+)\s*[}]/g) ? true : false;

if( text.match(/^[tT][:]([^:]+)/g) ){
if( text.match(/^[sS]?[tT][:]([^:]+)/g) ){
istarget = true;
}
if( text.match(/\s[tT][:]([^:]+)/g) ){
if( text.match(/\s[sS]?[tT][:]([^:]+)/g) ){
istarget = true;
}
if( text.match(/^[tT][&]([^&]+)/g) ){
Expand Down Expand Up @@ -184,8 +184,11 @@ export class ChatPalette extends ObjectNode {
let element = target.rootDataElement.getFirstElementByName(name);
if (element) {
let targetElementText =''
if (useMax && element.isNumberResource) targetElementText = element.value + '';
targetElementText = element.isNumberResource ? element.currentValue + '' : element.value + '';
if (useMax && element.isNumberResource){
targetElementText = element.value + '';
}else{
targetElementText = element.isNumberResource ? element.currentValue + '' : element.value + '';
}
if ( targetElementText.match(/[{]\s*([^{}]+)\s*[}]/g)) {
targetElementText = targetElementText.replace(/[{]/g,'t{');
}
Expand Down
2 changes: 2 additions & 0 deletions src/app/class/dice-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ export class DiceBot extends GameObject {
let allEditList: ResourceEdit[] = null;

for (const chktxt of splitText) {
console.log('chktxt=' + chktxt);
if ( chktxt.match(/^(t?[:&][^:&])+/gi)){
//正常。処理無し
}else{
Expand All @@ -636,6 +637,7 @@ export class DiceBot extends GameObject {
}
resByCharacter.resourceCommand = res;
resByCharacter.object = oneMessageTargetContext.object;
console.log('テスト' + res + resByCharacter.object.name);
resourceByCharacter.push(resByCharacter);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/component/chat-window/chat-window.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ export class ChatWindowComponent implements OnInit, OnDestroy, AfterViewInit {

checkTargetCharactor(text: string): boolean{
let istarget = false;
if( text.match(/^[tT][:]([^:]+)/g) ){
if( text.match(/^[sS]?[tT][:]([^:]+)/g) ){
istarget = true;
}
if( text.match(/\s[tT][:]([^:]+)/g) ){
if( text.match(/\s[sS]?[tT][:]([^:]+)/g) ){
istarget = true;
}
if( text.match(/^[tT][&]([^&]+)/g) ){
Expand Down
6 changes: 5 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
</script>

<title>UdonariumLily 1.10.0b0</title>
<title>UdonariumLily 1.10.0b0.1</title>
<!--
0.02.0 立ち絵表示を12ポジションに、アクティブを手前に、他を薄く
Expand Down Expand Up @@ -338,6 +338,10 @@
1.10.0b0
・ターゲット機能を追加、リモコンと連動、t:HP+10、T{敏捷度}、などで対象のパラメータを指定可能
1.10.0b0.1
・ターゲットリソース操作時に「s」シークレットコマンドが効かなかった現象を修正
・ターゲット指定時、チャットパレットで^記号によるリソースの最大値参照が正常に行われなかった現象を修正
-->
<base href="./">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down

0 comments on commit 20ba146

Please sign in to comment.