Skip to content

Commit

Permalink
files update~
Browse files Browse the repository at this point in the history
  • Loading branch information
Taromatibot committed Nov 18, 2023
1 parent f07738b commit 45c31b1
Show file tree
Hide file tree
Showing 11 changed files with 142 additions and 2,814 deletions.
31 changes: 25 additions & 6 deletions Taromati2/ghost/master/dic/aya/master/file.dic
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,36 @@ MAKELINK{
else
MAKEFILELINK(_argv)
}
//GETENV
GETENVEX{
SPLIT(GETENV(_argv[0]),';')
}
//get program path
GetProgramPath.base{
_p=GETENVEX('PATH')
foreach _p;_i{
if FILEEXIST(_i+'/'+_argv[0])
return _i+'/'+_argv[0]
}
''
}
GetProgramPath{
_p=GETENVEX('PATHEXT')
foreach _p;_i{
_v=GetProgramPath.base(_argv[0]+_i)
if _v!=''
return _v
}
''
}
//git
GHOST.INgit{
_dir='.'
while FILEEXIST(_dir){
if FILEEXIST(_dir+'/.git/config'){
1
return
}
else{
if FILEEXIST(_dir+'/.git/config')
return 1
else
_dir+='/..'
}
}
0
}
Expand Down
2 changes: 1 addition & 1 deletion Taromati2/ghost/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 10
#globaldefine LAST_BUILD_TIME.MOUNTH 11
5 changes: 3 additions & 2 deletions Taromati2/ghost/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
Loading

0 comments on commit 45c31b1

Please sign in to comment.