Skip to content

Commit

Permalink
v12: safe update
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Nov 17, 2023
1 parent 1af21ee commit 738dac8
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 29 deletions.
2 changes: 1 addition & 1 deletion master/dic/aya/master/last_time.dic
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
//last time用于鉴定当前时间是否错误
#globaldefine LAST_BUILD_TIME.YEAR 2023
#globaldefine LAST_BUILD_TIME.MOUNTH 08
#globaldefine LAST_BUILD_TIME.MOUNTH 11
5 changes: 3 additions & 2 deletions master/dic/communicate/talk/other_ghost.dic
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ StartCommunicate{
'\0\s[0]どもー。'
}
_varname_NumOfTry='OtherGhostTalk.'+STRDIGEST(res_reference0)+'.NumOfTry'
_gname_for_show = REPLACE(res_reference0,'\','\\')
if EVAL(_varname_NumOfTry)<4 {
if EVAL(_varname_NumOfTry)==3
'\0\s[0]...'
else
"\0\s[0]你好、%(res_reference0)。"
"\0\s[0]你好、%(_gname_for_show)。"
EVAL(_varname_NumOfTry+'++')
}
elseif RAND(MIN(EVAL(_varname_NumOfTry),100))==0{
"\0\s[0]你好、%(res_reference0)。"
"\0\s[0]你好、%(_gname_for_show)。"
EVAL(_varname_NumOfTry+'++')
}
else{
Expand Down
2 changes: 1 addition & 1 deletion master/dic/other/Miniuse.dic
Original file line number Diff line number Diff line change
Expand Up @@ -3263,7 +3263,7 @@ OnIconLoad{
OnOtherGhostClosed{
ghostexlist=REPLACE(ghostexlist,"%(reference0)",'')
ghostexlist=REPLACE(ghostexlist,',,','')
ghostexlist=RE_REPLACE(ghostexlist,',$','')
//ghostexlist=RE_REPLACE(ghostexlist,',$','')
ghostexcount=ARRAYSIZE(ghostexlist)
--
if 'Kyara' _in_ reference0{
Expand Down
4 changes: 2 additions & 2 deletions master/dic/system/VersionUpgrade.dic
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//by steve

#define VERSION_NOW 11
#define VERSION_NOW 12

VERSION_INIT:void{
VERSION = VERSION_NOW
Expand Down Expand Up @@ -298,7 +298,7 @@ VERSION_UPGRADE_11:void{
ERASEVAR('ssss')
ERASEVAR('sssss')
}
VERSION_UPGRADE_12:void{//building
VERSION_UPGRADE_12:void{
ERASEVAR('haveshell')
ERASEVAR('HP')
ERASEVAR('SP')
Expand Down
6 changes: 4 additions & 2 deletions master/dic/system/bootend.dic
Original file line number Diff line number Diff line change
Expand Up @@ -930,9 +930,10 @@ OnGhostChanging0{
}
//---- 不特定のゴースト -----------------------------------------------------------------------------------------------
else{
_gname_for_show = REPLACE(reference0,'\','\\')
ANY('\0\s[3]…\w9好的。','\0\s[3]…\w9那么、\w9再见了。\w9\w9\w9\s[26]\n我会等着的。')+ANY('','\w9\w9\1\s[10]再见啦。')
'\0\s[9]…\w9…\w9…\w9\w9\1\s[10]'+ANY('下次见','再见啦')+'。'
"\0\s[23]%(reference0)是吗…"
"\0\s[23]%(_gname_for_show)是吗…"
}
}
//---- 自动 -----------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -1355,6 +1356,7 @@ OnGhostChanged{
}
//---- 不特定のゴースト -----------------------------------------------------------------------------------------------
else{
_gname_for_show = REPLACE(reference0,'\','\\')
{
'\1\s[10]\0'
--
Expand All @@ -1366,7 +1368,7 @@ OnGhostChanged{
"欢迎回来、\w9%(username)。"
}
{
"\1\s[10]\0\s[23]%(reference0)的"
"\1\s[10]\0\s[23]%(_gname_for_show)的"
--
'肉屑'
'肉末'
Expand Down
44 changes: 23 additions & 21 deletions master/dic/system/event_response.dic
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,12 @@ OnInstallComplete{
elseif 'with' _in_ reference0
'复合物'
else
'未知物件'
"未知物件“%(REPLACE(reference0,'\','\\'))”"
--
"『%(reference1)』"
"『%(REPLACE(reference1,'\','\\'))』"
--
if reference2{
"与『%(reference2)』"
"与『%(REPLACE(reference2,'\','\\'))』"
}
--
'\n[150]'
Expand All @@ -442,20 +442,21 @@ OnInstallComplete{
--
'\n'
--
_target = SakuraScriptArgConverter(reference1)
if 'ghost' _in_ reference0 {
"/
\q[◇切换,OnChangeGhost,%(reference1)]\n/
\q[◇呼叫,OnCallGhost,%(reference1)]\n/
\q[◇切换,OnChangeGhost,%(_target)]\n/
\q[◇呼叫,OnCallGhost,%(_target)]\n/
\q[◇无用,Cancel]\n"
}
elseif 'shell' _in_ reference0{
"/
\q[◇切换,OnSilentChangeShell,%(reference1)]\n/
\q[◇切换,OnSilentChangeShell,%(_target)]\n/
\q[◇无用,Cancel]\n"
}
elseif 'balloon' _in_ reference0{
"/
\q[◇切换,OnChangeBalloon,%(reference1)]\n/
\q[◇切换,OnChangeBalloon,%(_target)]\n/
\q[◇无用,Cancel]\n"
}
}
Expand Down Expand Up @@ -513,12 +514,13 @@ OnInstallFailure{
OnInstallRefuse{
DiscordCustomSet.CustomDetail('认错人了')
--
"\0\s[20]这是…\w9\w9\n『%(reference0)收』。\w9\s[0]\n请直接交给本人。"
"\0\s[20]这是…\w9\w9\n『%(REPLACE(reference0,'\','\\'))收』。\w9\s[0]\n请直接交给本人。"
--
_target = SakuraScriptArgConverter(reference0)
if IsGhostExist(reference0) || IsSakuraExist(reference0)
"\n/
\q[◇切换,OnChangeGhost,%(reference0)]\n/
\q[◇呼叫,OnCallGhost,%(reference0)]\n/
\q[◇切换,OnChangeGhost,%(_target)]\n/
\q[◇呼叫,OnCallGhost,%(_target)]\n/
\q[◇无用,Cancel]\n"
else
'\1\s[11]不\w9\w9\n目前来说根本查无此人。'
Expand Down Expand Up @@ -973,7 +975,7 @@ OnURLDropping{
if reference0 == FullDataPackUrl
'\0\s[0]下载补全数据包并安装\w9\n'
else
"\0\s[0]下载%(reference0)并作为安装包安装\w9\n"
"\0\s[0]下载%(REPLACE(reference0,'\','\\'))并作为安装包安装\w9\n"
--
'\s[6]进行中\n'
}
Expand Down Expand Up @@ -1023,22 +1025,22 @@ Select.HEADLINECANCEL{
OnHeadlinesenseBegin{
DiscordCustomSet.CustomDetail('看报')
--
"\0\s[0]『%(reference0)』 的Headline确认…"
"\0\s[0]『%(REPLACE(reference0,'\','\\'))』 的Headline确认…"
}
//---- ヘッドライン読み上げ -------------------------------------------------------------
OnHeadlinesense.OnFind{
//---- はじめのセリフ
if reference2 == 'First' || reference2 == 'First and Last'{
//---- 最初のページ
"\0\b2\s[0]『%(reference0)』的Headline。"
"\0\b2\s[0]『%(REPLACE(reference0,'\','\\'))』的Headline。"
}
elseif reference2 == 'Next'{
//---- 真ん中あたりのページ
"\0\b2\s[0]『%(reference0)』的Headline。"
"\0\b2\s[0]『%(REPLACE(reference0,'\','\\'))』的Headline。"
}
elseif reference2 == 'Last'{
//---- 最后のページ
"\0\b2\s[0]『%(reference0)』的Headline。"
"\0\b2\s[0]『%(REPLACE(reference0,'\','\\'))』的Headline。"
}
--
//---- ヘッドライン本体
Expand Down Expand Up @@ -1072,7 +1074,7 @@ OnHeadlinesenseFailure{
'解析失败。'
}
else{
"对不起。\1\s[12]原因是“%(reference0)”"
"对不起。\1\s[12]原因是“%(REPLACE(reference0,'\','\\'))”"
}
}
//**** ファイル作成関连 *****************************************************************
Expand Down Expand Up @@ -1111,8 +1113,8 @@ OnNarCreated{
else
'\0\s[0]嗯。\n\w9'
--
"「%(reference0)」的nar档\n/
\_q「%(reference1)」\_q"
"「%(REPLACE(reference0,'\','\\'))」的nar档\n/
\_q「%(REPLACE(reference1,'\','\\'))」\_q"
--
'\w9\n完成了。'
}
Expand Down Expand Up @@ -1238,12 +1240,12 @@ OnURLQuery{
return
}
elseif reference3=='unknown' || !reference3{
"\0\s[6]未知URL,请使用下载器下载\n[150]\_qURL:%(reference0)\_q\n"
"\0\s[6]未知URL,请使用下载器下载\n[150]\_qURL:%(REPLACE(reference0,'\','\\'))\_q\n"
}
else{
"\0\s[0]自URL:%(reference0)\n/
"\0\s[0]自URL:%(REPLACE(reference0,'\','\\'))\n/
下载并安装%(reference3)?\n/
\q[◇确认,script:""\![execute,install,%(reference0)]""]\n/
\q[◇确认,script:""\![execute,install,%(SakuraScriptArgConverter(reference0))]""]\n/
"
}
--
Expand Down

0 comments on commit 738dac8

Please sign in to comment.