Delete Data File (+1)
这个提交包含在:
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"CurrentProjectSetting": null
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"ExpandedNodes": [
|
|
||||||
""
|
|
||||||
],
|
|
||||||
"SelectedNode": "\\AutoCreeper.ts",
|
|
||||||
"PreviewInSolutionExplorer": false
|
|
||||||
}
|
|
||||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"C_Cpp.default.browse.path": [
|
|
||||||
"D:/Codes2/Nodejs/node-v12.16.2/src/"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
"Config":{
|
|
||||||
"Name":"AiAPI使用教程",
|
|
||||||
"Author":"Lanshuye",
|
|
||||||
"Info":"这是针对AiAPI的使用介绍"
|
|
||||||
},
|
|
||||||
"Base":{
|
|
||||||
"Const":{
|
|
||||||
"AiAPI_Version":"\"0.0.1\""
|
|
||||||
},
|
|
||||||
"Function":{
|
|
||||||
"艾特":"((s)=>{return Core.frame.At(s)})"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Using":{
|
|
||||||
"你好":{
|
|
||||||
"Content":"{0},你好呀.",
|
|
||||||
"Execute":["[艾特 [取发送者QQ]]"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"Config":{
|
|
||||||
"Name":"StdAPI",
|
|
||||||
"Author":"Lanshuye",
|
|
||||||
"Info":"这是基本的JSAIAPI"
|
|
||||||
},
|
|
||||||
"Base":{
|
|
||||||
"Const":{
|
|
||||||
"取AiQQ":"((Info)=>{return Info.self_id})(收到)",
|
|
||||||
"取发送者QQ":"((Info)=>{return Info.user_id})(收到)"
|
|
||||||
},
|
|
||||||
"Function":{
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Using":{}
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"Config":{"Name":"Addons","Author":"User"},"Base":{"Const":{},"Function":{}},"Using":{"123":{"Content":"123123","Execute":[]},"测试":{"Content":"{0},测试","Execute":["[艾特 [取发送者QQ]]","","",""]},"测":{"Content":"","Execute":[""]}}}
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
/* Basic Options */
|
|
||||||
// "incremental": true, /* Enable incremental compilation */
|
|
||||||
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
|
||||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
||||||
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
||||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
||||||
// "checkJs": true, /* Report errors in .js files. */
|
|
||||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
||||||
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
||||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
||||||
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
||||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
||||||
// "outDir": "./", /* Redirect output structure to the directory. */
|
|
||||||
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
||||||
// "composite": true, /* Enable project compilation */
|
|
||||||
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
||||||
// "removeComments": true, /* Do not emit comments to output. */
|
|
||||||
// "noEmit": true, /* Do not emit outputs. */
|
|
||||||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
||||||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
||||||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
||||||
/* Strict Type-Checking Options */
|
|
||||||
"strict": true, /* Enable all strict type-checking options. */
|
|
||||||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
||||||
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
||||||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
||||||
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
||||||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
||||||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
||||||
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
||||||
|
|
||||||
/* Additional Checks */
|
|
||||||
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
||||||
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
||||||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
||||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
||||||
|
|
||||||
/* Module Resolution Options */
|
|
||||||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
||||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
||||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
||||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
||||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
||||||
// "types": [], /* Type declaration files to be included in compilation. */
|
|
||||||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
||||||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
||||||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
||||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
||||||
|
|
||||||
/* Source Map Options */
|
|
||||||
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
||||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
||||||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
||||||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
||||||
|
|
||||||
/* Experimental Options */
|
|
||||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
||||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"PVP":"PVP/Main.js",
|
|
||||||
"MUL":"PVP/Multi.js"
|
|
||||||
}
|
|
||||||
@ -1,96 +0,0 @@
|
|||||||
{
|
|
||||||
"PVP":{
|
|
||||||
"物品":{
|
|
||||||
"木制剑":{
|
|
||||||
"价格":30,
|
|
||||||
"加成":{
|
|
||||||
"我方":{
|
|
||||||
"Att":5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"类型":"剑",
|
|
||||||
"进阶":{
|
|
||||||
"许可":true,
|
|
||||||
"物品":"木制剑(+1)",
|
|
||||||
"消耗":15
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"木制剑(+1)":{
|
|
||||||
"价格":null,
|
|
||||||
"加成":{
|
|
||||||
"我方":{
|
|
||||||
"Att":7.5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"类型":"剑",
|
|
||||||
"进阶":{
|
|
||||||
"许可":false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"石制剑":{
|
|
||||||
"价格":50,
|
|
||||||
"加成":{
|
|
||||||
"我方":{
|
|
||||||
"Att":10
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"类型":"剑",
|
|
||||||
"进阶":{
|
|
||||||
"许可":false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"铁制剑":{
|
|
||||||
"价格":80,
|
|
||||||
"加成":{
|
|
||||||
"我方":{
|
|
||||||
"Att":20
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"类型":"剑",
|
|
||||||
"进阶":{
|
|
||||||
"许可":true,
|
|
||||||
"物品":"铁制剑(+1)",
|
|
||||||
"消耗":15
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"铁制剑(+1)":{
|
|
||||||
"价格":null,
|
|
||||||
"加成":{
|
|
||||||
"我方":{
|
|
||||||
"Att":25
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"类型":"剑",
|
|
||||||
"进阶":{
|
|
||||||
"许可":true,
|
|
||||||
"物品":"铁制剑(+2)",
|
|
||||||
"消耗":15
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"铁制剑(+2)":{
|
|
||||||
"价格":null,
|
|
||||||
"加成":{
|
|
||||||
"我方":{
|
|
||||||
"Att":30
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"类型":"剑",
|
|
||||||
"进阶":{
|
|
||||||
"许可":false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Prime":{
|
|
||||||
"价格":null,
|
|
||||||
"加成":{
|
|
||||||
"我方":{
|
|
||||||
"Att":10000
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"类型":"剑",
|
|
||||||
"进阶":{
|
|
||||||
"许可":false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"Team":[[],[{"Attacking":-1,"Owner":"927980270"},{"ID":"927980270","Attacked":false,"HP":100,"PP":100}]],"Player":{"927980270":{"Team":1,"ID":1}}}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"80000000":{"余额":1000,"装备":"木制剑","仓库":["木制剑"],"Playing":-1},"927980270":{"余额":9920,"装备":"Prime","仓库":["铁制剑(+2)","木制剑","铁制剑","Prime"]},"1061157809":{"余额":1000,"装备":"木制剑","仓库":["木制剑"],"Saving":true},"1850550844":{"余额":1000,"装备":"木制剑","仓库":["木制剑"],"Saving":false},"2868445034":{"余额":1000,"装备":"木制剑","仓库":["木制剑"]},"3069584300":{"余额":920,"装备":"铁制剑","仓库":["木制剑","铁制剑"],"Saving":true},"3117325564":{"余额":920,"装备":"木制剑","仓库":["木制剑","铁制剑"]},"3491504564":{"余额":920,"装备":"铁制剑","仓库":["木制剑","铁制剑"],"Saving":false,"Playing":2},"3569808588":{"余额":920,"装备":"铁制剑","仓库":["木制剑","铁制剑"],"Saving":false,"Playing":2},"#PVPROOM":[{},{"P1":{"ID":"3569808588","HP":70,"Hold":"Attacked"},"P2":{"ID":"3491504564","HP":85,"Hold":"DoAttacked"}},{"P1":{"ID":"3569808588","HP":100,"Hold":"DoAttacked"},"P2":{"ID":"3491504564","HP":101,"Hold":"Attacked"}},{"P1":{"ID":"927980270","HP":100,"Hold":"DoAttacked"},"P2":{"ID":"3069584300","HP":99,"Hold":"Attacked"}},{}]}
|
|
||||||
@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
"Plant":{
|
|
||||||
"豌豆射手":{
|
|
||||||
"Name":"豌豆射手",
|
|
||||||
"HP":1000,
|
|
||||||
"Power":100,
|
|
||||||
"Weapon":[
|
|
||||||
{
|
|
||||||
"Type":"Launcher",
|
|
||||||
"Settings":{
|
|
||||||
"Hurt":200
|
|
||||||
},
|
|
||||||
"Timer":2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"向日葵":{
|
|
||||||
"Name":"向日葵",
|
|
||||||
"HP":750,
|
|
||||||
"Power":50,
|
|
||||||
"Weapon":[
|
|
||||||
{
|
|
||||||
"Type":"PowerMaker",
|
|
||||||
"Settings":{
|
|
||||||
"Count":25
|
|
||||||
},
|
|
||||||
"Timer":5
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Zombie":{
|
|
||||||
"普通僵尸":{
|
|
||||||
"Name":"普通僵尸",
|
|
||||||
"HP":1000,
|
|
||||||
"Speed":2,
|
|
||||||
"Weapon":[
|
|
||||||
{
|
|
||||||
"Type":"Eat",
|
|
||||||
"Settings":{
|
|
||||||
"Hurt":100
|
|
||||||
},
|
|
||||||
"Timer":1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"Area":[],
|
|
||||||
"Power":0
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"CIS":{
|
|
||||||
"附属公会":"CIS",
|
|
||||||
"管理人员":{
|
|
||||||
"版主":"927980270",
|
|
||||||
"OP":[],
|
|
||||||
"允许公会管理":true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"Info":[{
|
|
||||||
"标题":"Test",
|
|
||||||
"作者":"927980270",
|
|
||||||
"权限":0,
|
|
||||||
"内容":"测试测试",
|
|
||||||
"回帖":[{
|
|
||||||
"作者":"927980270",
|
|
||||||
"内容":"Test * 2"
|
|
||||||
},{
|
|
||||||
"作者":"927980270",
|
|
||||||
"内容":"@0@Test * 3"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},{
|
|
||||||
"标题":"Test2",
|
|
||||||
"作者":"927980270",
|
|
||||||
"权限":100,
|
|
||||||
"内容":"Test",
|
|
||||||
"回帖":[]
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"CIS":{"Name":"电脑网络工作室的公会","Owner":927980270,"Admin":{"211624247":true,"927980270":true,"3569808588":true,"[CQ:at,qq=927980270":true},"Higher":"CIS","Info":"本公会是电脑网络工作室的官方公会","CreationByGroup":588932037,"Group":588932037,"Downer":["CII"]},"CII":{"Name":"CII","Owner":927980270,"Admin":{"927980270":true},"Higher":"CIS","Info":"","CreationByGroup":588932037,"Downer":[]},"沙城":{"Name":"沙城","Owner":1850550844,"Admin":{"1850550844":true},"Info":"暂无介绍","CreationByGroup":913423877,"Downer":[]}," 天一没了":{"Name":" 天一没了","Owner":863434095,"Admin":{"863434095":true,"员[CQ:at,qq=1192963842":true},"Info":"天一没了","CreationByGroup":588932037,"Downer":[]}}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"2868445034":true,
|
|
||||||
"927980270":true,
|
|
||||||
"3569808588":true,
|
|
||||||
"211624247":true,
|
|
||||||
"1732314252":true
|
|
||||||
}
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"时间:时":"new Date().getHours()",
|
|
||||||
"时间:分":"new Date().getMinutes()",
|
|
||||||
"时间:秒":"new Date().getSeconds()",
|
|
||||||
"时间":"((info)=>{return ZExec(`[时间:时]:[时间:分]:[时间:秒]`,info)})(info)",
|
|
||||||
"取Ai号码":"info.self_id",
|
|
||||||
"取发送者号码":"info.user_id",
|
|
||||||
"At(.*)":"((R)=>{return Core.frame.At(RegExp.$1)})(RegExp)"
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"当前时间":"[时间:时]时[时间:分]分[时间:秒]秒","取时间":"[时间]",".":".",".取UD灵魂类型":"恐惧(粉),邪念(暗黄),狡猾(肉),伪善(深绿),消极(深蓝),烦躁(银),放弃(深红),色欲(深紫),仇恨(黑),普通/怪物(灰),勇敢(橙),正义(黄),正直(蓝),友善(绿),毅力(紫),耐心(青),决心(红),纯洁(白),希望(金),智慧(草绿)",".取UD灵魂类型V2":"恐惧(粉)//r//n邪念(暗黄)//r//n狡猾(肉)//r//n伪善(深绿)//r//n消极(深蓝)//r//n烦躁(银)//r//n放弃(深红)//r//n仇恨(黑)//r//n普通(灰)//r//n勇敢(橙)//r//n正义(黄)//r//n正直(蓝)//r//n友善(绿)//r//n毅力(紫)//r//n耐心(青)//r//n决心(红)//r//n纯洁(白)","Ai作者":"主要开发者:蓝树叶(Jiang Chunwang);协助开发者:Along(Wang Yikai),屠苏(Sun Xuebin);电脑网络工作室(C)版权所有","UnderDeny":"https://docs.qq.com/doc/DRU1JTEtITkJpa3N1","你好":"你好呀","tyml":"tyml!!!","帮助":"https://docs.qq.com/doc/DRXNQU0ZtRlVBSFpn"}
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
{
|
|
||||||
"建筑":[
|
|
||||||
{
|
|
||||||
"名称":"指挥中心",
|
|
||||||
"血量":5000,
|
|
||||||
"造价":10000,
|
|
||||||
"内部名称":"ZHZX0",
|
|
||||||
"武器":[],
|
|
||||||
"附加参数":{
|
|
||||||
|
|
||||||
},
|
|
||||||
"内部变量":["_生产项目"]
|
|
||||||
},{
|
|
||||||
"名称":"兵营",
|
|
||||||
"血量":2000,
|
|
||||||
"造价":5000,
|
|
||||||
"内部名称":"BY0",
|
|
||||||
"武器":[],
|
|
||||||
"附加参数":{
|
|
||||||
|
|
||||||
},
|
|
||||||
"内部变量":[]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"Log":[{"Time":"2020-04-21T13:25:13.403Z","User":"927980270","Money":3178717,"GoTo":"抢劫3569808588"},{"Time":"2020-04-21T13:24:29.489Z","User":3569808588,"Money":500,"GoTo":"无备注"},{"Time":"2020-04-21T13:24:22.485Z","User":3569808588,"Money":500,"GoTo":"签到"},{"Time":"2020-04-21T13:23:35.528Z","User":"927980270","Money":500,"GoTo":"无备注"},{"Time":"2020-04-21T13:23:30.950Z","User":"927980270","Money":500,"GoTo":"签到"},{"Time":"2020-04-20T08:16:18.189Z","User":"927980270","Money":-5,"GoTo":"转账给0"},{"Time":"2020-04-20T08:15:49.418Z","User":"927980270","Money":-1,"GoTo":"转账给0"}]}"}]}
|
|
||||||
@ -1,53 +0,0 @@
|
|||||||
{
|
|
||||||
"远程执行测试": {
|
|
||||||
"Allow": false,
|
|
||||||
"FindIn": "fs",
|
|
||||||
"Path": "./RemoteMoudel.js"
|
|
||||||
},
|
|
||||||
"WebUI": {
|
|
||||||
"Allow": true,
|
|
||||||
"FindIn": "fs",
|
|
||||||
"Path": "./WebUI.js"
|
|
||||||
},
|
|
||||||
"UnderDeny": {
|
|
||||||
"Allow": true,
|
|
||||||
"FindIn": "fs",
|
|
||||||
"Path": "./UnderDeny.js"
|
|
||||||
},
|
|
||||||
"AutoCreeper": {
|
|
||||||
"Allow": false,
|
|
||||||
"FindIn": "fs",
|
|
||||||
"Path": "./AutoCreeper.js"
|
|
||||||
},
|
|
||||||
"怼人": {
|
|
||||||
"Allow": false,
|
|
||||||
"FindIn": "fs",
|
|
||||||
"Path": "./怼人.js"
|
|
||||||
},
|
|
||||||
"AbleSend": {
|
|
||||||
"Allow": false,
|
|
||||||
"FindIn": "fs",
|
|
||||||
"Path": "./AbleSend.js"
|
|
||||||
},
|
|
||||||
"保镖":{
|
|
||||||
"Allow":true,
|
|
||||||
"FindIn":"fs",
|
|
||||||
"Path":"./保镖.js"
|
|
||||||
},
|
|
||||||
"图片测试":{
|
|
||||||
"Allow":false,
|
|
||||||
"FindIn":"fs",
|
|
||||||
"Path":"./img.js"
|
|
||||||
},
|
|
||||||
"利刃":{
|
|
||||||
"Allow":true,
|
|
||||||
"FindIn":"fs",
|
|
||||||
"Path":"./API/Main.js",
|
|
||||||
"About":"利刃是一个全中文开发平台"
|
|
||||||
},
|
|
||||||
"复读机":{
|
|
||||||
"Allow":true,
|
|
||||||
"FindIn":"fs",
|
|
||||||
"Path":"./复读机.js"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"host":"110.253.240.211","user":927980270}
|
|
||||||
4
UD/.gitignore
vendored
4
UD/.gitignore
vendored
@ -1,4 +0,0 @@
|
|||||||
#GIT NOT UPDATE
|
|
||||||
node_modules
|
|
||||||
log
|
|
||||||
log2
|
|
||||||
11
UD/Build.bat
11
UD/Build.bat
@ -1,11 +0,0 @@
|
|||||||
@echo off
|
|
||||||
title Building
|
|
||||||
start cmd /c "tsc --build 2>log >log2"
|
|
||||||
ping 127.0.0.1 > nul
|
|
||||||
ping 127.0.0.1 > nul
|
|
||||||
ping 127.0.0.1 > nul
|
|
||||||
ping 127.0.0.1 > nul
|
|
||||||
type log
|
|
||||||
type log2
|
|
||||||
del D:\APPS\JSAICore\UnderDeny.js
|
|
||||||
copy .\UnderDeny.js D:\APPS\JSAICore\UnderDeny.js
|
|
||||||
56
UD/Core.d.ts
vendored
56
UD/Core.d.ts
vendored
@ -1,56 +0,0 @@
|
|||||||
import * as net from "net";
|
|
||||||
import * as Core from "./Core";
|
|
||||||
/**QQ用户类:一个QQ号对应的人*/export class QQUser{
|
|
||||||
/**岁数*/age:Number|number;
|
|
||||||
/**昵称*/nickname:String|string;
|
|
||||||
/**性别*/sex:"male"|"unkonw"|""|String|string|undefined;
|
|
||||||
/**QQ号*/user_id:number|Number;
|
|
||||||
/**地区*/area:String|null|undefined;
|
|
||||||
/**群名片*/card:String|string|undefined;
|
|
||||||
/**发言等级*/level:String|string|undefined;
|
|
||||||
/**群内角色*/role:"owner"|"user";
|
|
||||||
/**群头衔*/title:string|String;
|
|
||||||
}
|
|
||||||
/**消息类:一个消息对应的东西*/export class InfoType{
|
|
||||||
/**匿名信息*/anonymous:Object|null|undefined;
|
|
||||||
/**字体*/font:number|Number;
|
|
||||||
/**群号*/group_id:number|Number|undefined;
|
|
||||||
/**消息内容*/message:String|string;
|
|
||||||
/**消息号*/message_id:number|Number;
|
|
||||||
/**消息类型*/message_type:"group"|"privace";
|
|
||||||
/**未知*/post_type:String|string;
|
|
||||||
/**消息*/raw_message:String|string;
|
|
||||||
/**AiQQ*/self_id:number|Number|2142562417;
|
|
||||||
/**发送者*/sender:QQUser;
|
|
||||||
/**类型2*/sub_type:String|string;
|
|
||||||
/**时间戳*/time:number|Number;
|
|
||||||
/**发送者QQ*/user_id:number|Number;
|
|
||||||
}
|
|
||||||
/**原定于获取名称对应的QQ号,不过已经废弃了
|
|
||||||
* @param user_id 用户名称*/export function GetUser(user_id:String|string|Number|number):number;
|
|
||||||
/**HOOK:是否发送过消息*/export var HOOK:Boolean|boolean;
|
|
||||||
/**添加事件监听器
|
|
||||||
* @param callback 回调函数
|
|
||||||
*/export function AddListener(/**回调函数*/callback:((Connect:net.Socket,Info:InfoType)=>void)):void;
|
|
||||||
/**部分公开功能*/export namespace frame{
|
|
||||||
/**禁言某人
|
|
||||||
* @param connect 会话
|
|
||||||
* @param info 消息
|
|
||||||
* @param time 时长(单位:s)*/function Ban(connect:net.Socket,info:InfoType,time:number):void;
|
|
||||||
/**设置HOOK的内容
|
|
||||||
* @param value TURE|FALSE;*/function SetHOOK(value:Boolean|boolean):void;
|
|
||||||
/**发送消息
|
|
||||||
* @param connect 会话
|
|
||||||
* @param info 消息
|
|
||||||
* @param msg 发送内容*/function SendMsg(connect:net.Socket,info:InfoType,msg:String|string):void;
|
|
||||||
/** \@某人
|
|
||||||
* @param UserId QQ号
|
|
||||||
*/function At(UserId:number|Number):string;
|
|
||||||
/** 读取某个配置项目
|
|
||||||
* @param ConfigName 配置项名称
|
|
||||||
*/function ReadSystemConfig(ConfigName:String|string):any;
|
|
||||||
/**写入某个配置项目
|
|
||||||
* @param ConfigName 配置名称
|
|
||||||
* @param ConfigValue 配置内容
|
|
||||||
*/function WriteSystemConfig(ConfigName:String|string,ConfigValue:any):Boolean|boolean;
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
1
UD/OnlineAi.d.ts
vendored
1
UD/OnlineAi.d.ts
vendored
@ -1 +0,0 @@
|
|||||||
import * as Core from "./Core";
|
|
||||||
206
UD/UnderDeny.js
206
UD/UnderDeny.js
@ -1,206 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
|
||||||
if (mod && mod.__esModule) return mod;
|
|
||||||
var result = {};
|
|
||||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
||||||
result["default"] = mod;
|
|
||||||
return result;
|
|
||||||
};
|
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
||||||
//《UnderDeny》 For OnlineAi Version!!!
|
|
||||||
//Author:Lanshuye
|
|
||||||
//Version (OnlineAi) <ALL>
|
|
||||||
//Version (MoudelCE) <ALL>
|
|
||||||
//Version (This Mod) <1.0>
|
|
||||||
const Core = __importStar(require("./Core"));
|
|
||||||
const fs = __importStar(require("fs"));
|
|
||||||
class GameAction {
|
|
||||||
Execute(c, i, Temp_this) {
|
|
||||||
if (Temp_this.Type == "对话") {
|
|
||||||
Core.frame.SendMsg(c, i, `${Temp_this.Settings.对话_内容}`);
|
|
||||||
}
|
|
||||||
if (Temp_this.Type == "跳转") {
|
|
||||||
var data = fs.readFileSync("./UnderDenyData/Player.json");
|
|
||||||
var data_obj = JSON.parse(data.toString());
|
|
||||||
data_obj[i.user_id.toString()].Schedule = Temp_this.Settings.跳转_目标.valueOf();
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(data_obj), (err2) => { });
|
|
||||||
}
|
|
||||||
if (Temp_this.Type == "判断") {
|
|
||||||
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
|
|
||||||
var data_obj = JSON.parse(data.toString());
|
|
||||||
if (data_obj[i.user_id.toString()].Vars[Temp_this.Settings.判断_变量.valueOf()] == Temp_this.Settings.判断_依据.valueOf()) {
|
|
||||||
var temp = new GameAction();
|
|
||||||
var s = Temp_this.Settings.判断_执行;
|
|
||||||
for (var j = 0; j < s.length; j++) {
|
|
||||||
temp.Create(s[j]).Execute(c, i, temp.Create(s[j]));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (Temp_this.Type == "变量") {
|
|
||||||
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
|
|
||||||
var data_obj = JSON.parse(data.toString());
|
|
||||||
data_obj[i.user_id.toString()].Vars[Temp_this.Settings.变量_设置.valueOf()] = Temp_this.Settings.变量_内容.valueOf();
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(data_obj), (err2) => { });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (Temp_this.Type == "随机") {
|
|
||||||
var rom = Math.floor(Math.random() * 100);
|
|
||||||
if (rom < Temp_this.Settings.触发_几率.valueOf()) {
|
|
||||||
var temp = new GameAction();
|
|
||||||
var s = Temp_this.Settings.触发_回调;
|
|
||||||
for (var j = 0; j < s.length; j++) {
|
|
||||||
temp.Create(s[j]).Execute(c, i, temp.Create(s[j]));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if (Temp_this.Settings.触发_否则 != undefined || Temp_this.Settings.触发_否则 != null) {
|
|
||||||
var temp = new GameAction();
|
|
||||||
var s = Temp_this.Settings.触发_否则;
|
|
||||||
for (var j = 0; j < s.length; j++) {
|
|
||||||
temp.Create(s[j]).Execute(c, i, temp.Create(s[j]));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (Temp_this.Type == "战斗=>扣血") {
|
|
||||||
var data_obj = JSON.parse(fs.readFileSync("./UnderDenyData/Player.json").toString());
|
|
||||||
var Player = new PlayerData(data_obj[i.user_id.toString()].Info);
|
|
||||||
console.log(Temp_this.Settings);
|
|
||||||
Player.HP = Player.HP.valueOf() - Temp_this.Settings.战斗_扣血.valueOf();
|
|
||||||
Core.frame.SendMsg(c, i, `${Temp_this.Settings.战斗_目标}对你使用了${Temp_this.Settings.战斗_弹幕},造成${Temp_this.Settings.战斗_扣血}点伤害,你剩余${Player.HP}点血量。`);
|
|
||||||
data_obj[i.user_id.toString()].Info = Player;
|
|
||||||
if (Player.HP < 0) {
|
|
||||||
data_obj[i.user_id.toString()] = undefined;
|
|
||||||
Core.frame.SendMsg(c, i, `你失败了\r\n${Core.frame.At(i.user_id)}保持你的决心。`);
|
|
||||||
}
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(data_obj), (err2) => { });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
;
|
|
||||||
Create(that) {
|
|
||||||
if (that != undefined) {
|
|
||||||
this.Type = that.Type;
|
|
||||||
this.Settings = that.Settings;
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
constructor() {
|
|
||||||
this.Type = "";
|
|
||||||
this.Settings = {};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
class Item {
|
|
||||||
}
|
|
||||||
class PlayerData {
|
|
||||||
constructor(PlayerData) {
|
|
||||||
this.LOVE = PlayerData.LOVE;
|
|
||||||
this.EXP = PlayerData.EXP;
|
|
||||||
this.HP = PlayerData.HP;
|
|
||||||
this.Item = PlayerData.Item;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
class UDPlayer {
|
|
||||||
constructor(PlayerS) {
|
|
||||||
this.Schedule = PlayerS.Schedule;
|
|
||||||
this.Vars = PlayerS.Vars;
|
|
||||||
this.Info = new PlayerData(PlayerS.Info);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log(`[${new Date().toString()}][UnderDeny OA定制版]正在载入数据...`);
|
|
||||||
Core.AddListener((connect, info) => {
|
|
||||||
if (info.message.substr(0, 2) != "UD") {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var msg = new String(info.message.replace("UD", ""));
|
|
||||||
if (msg == "开始游戏") {
|
|
||||||
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
|
|
||||||
var PlayerData = JSON.parse(data.toString());
|
|
||||||
if (PlayerData[info.user_id.toString()] != undefined) {
|
|
||||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你还在进行游戏,发送\"UD重置\"才可以重新开始`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
PlayerData[info.user_id.toString()] = { Schedule: "Start", Vars: {}, Info: { LOVE: 0, EXP: 0, HP: 21, Item: [] } };
|
|
||||||
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
|
|
||||||
var data_obj = JSON.parse(data2.toString());
|
|
||||||
PlayerData[info.user_id.toString()].Vars = data_obj["Settings"]["init"];
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(PlayerData), (err2) => {
|
|
||||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},UD初始化完成。发送\"UD查看剧情\"来开始游戏吧`);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (msg == "重置") {
|
|
||||||
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
|
|
||||||
var PlayerData = JSON.parse(data.toString());
|
|
||||||
PlayerData[info.user_id.toString()] = undefined;
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(PlayerData), (err2) => {
|
|
||||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},重置成功!`);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (msg == "查看剧情") {
|
|
||||||
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
|
|
||||||
var PlayerData = JSON.parse(data.toString());
|
|
||||||
if (PlayerData[info.user_id.toString()] == undefined) {
|
|
||||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var ThisPlayer = new UDPlayer(PlayerData[info.user_id.toString()]);
|
|
||||||
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
|
|
||||||
var Data = JSON.parse(data2.toString());
|
|
||||||
var GameInfo = Data["Game"][ThisPlayer.Schedule.valueOf()].Info;
|
|
||||||
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions;
|
|
||||||
var YouCanDo = "<你可以选择的行动>\\r\\n";
|
|
||||||
Object.keys(GameAct).forEach(element => {
|
|
||||||
YouCanDo = `${YouCanDo}UD行动${element}\\r\\n`;
|
|
||||||
});
|
|
||||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)}\\r\\n${GameInfo}\\r\\n${YouCanDo}<UNDERDENY>`);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (msg == "进行存档") {
|
|
||||||
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
|
|
||||||
var PlayerData = JSON.parse(data.toString());
|
|
||||||
if (PlayerData[info.user_id.toString()] == undefined) {
|
|
||||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
|
|
||||||
var data2_obj = JSON.parse(data2.toString());
|
|
||||||
if (data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveAble != true) {
|
|
||||||
Core.frame.SendMsg(connect, info, "此时你无法存档。");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
PlayerData[`${info.user_id}_SAVE`] = PlayerData[info.user_id.toString()];
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(PlayerData), (err3) => { });
|
|
||||||
Core.frame.SendMsg(connect, info, data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveInfo);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (msg.substr(0, 2) == "行动") {
|
|
||||||
var action = msg.replace("行动", "");
|
|
||||||
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
|
|
||||||
var PlayerData = JSON.parse(data.toString());
|
|
||||||
if (PlayerData[info.user_id.toString()] == undefined) {
|
|
||||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var ThisPlayer = new UDPlayer(PlayerData[info.user_id.toString()]);
|
|
||||||
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
|
|
||||||
var Data = JSON.parse(data2.toString());
|
|
||||||
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions;
|
|
||||||
if (GameAct[action] == undefined) {
|
|
||||||
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},没有这个行动,请检查后再发送。`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var ActionGroup = GameAct[action];
|
|
||||||
var Act = new GameAction();
|
|
||||||
for (var i = 0; i < ActionGroup.length; i++) {
|
|
||||||
Act.Create(ActionGroup[i]).Execute(connect, info, Act.Create(ActionGroup[i]));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
223
UD/UnderDeny.ts
223
UD/UnderDeny.ts
@ -1,223 +0,0 @@
|
|||||||
//《UnderDeny》 For OnlineAi Version!!!
|
|
||||||
//Author:Lanshuye
|
|
||||||
//Version (OnlineAi) <ALL>
|
|
||||||
//Version (MoudelCE) <ALL>
|
|
||||||
//Version (This Mod) <1.0>
|
|
||||||
import * as Core from "./Core";
|
|
||||||
import * as fs from "fs";
|
|
||||||
import { Socket } from "net";
|
|
||||||
class GameAction{
|
|
||||||
Type:String;
|
|
||||||
Settings:{
|
|
||||||
对话_内容?:String;
|
|
||||||
对话_人物?:String;
|
|
||||||
跳转_目标?:String;
|
|
||||||
变量_设置?:String;
|
|
||||||
变量_内容?:String;
|
|
||||||
常量_设置?:String;
|
|
||||||
判断_变量?:String;
|
|
||||||
判断_依据?:String;
|
|
||||||
判断_执行?:GameAction[];
|
|
||||||
触发_几率?:Number;
|
|
||||||
触发_回调?:GameAction[];
|
|
||||||
触发_否则?:GameAction[];
|
|
||||||
战斗_目标?:String;
|
|
||||||
战斗_弹幕?:String;
|
|
||||||
战斗_扣血?:Number;
|
|
||||||
};
|
|
||||||
Execute(c:Socket,i:Core.InfoType,Temp_this:GameAction){
|
|
||||||
if(Temp_this.Type=="对话"){
|
|
||||||
Core.frame.SendMsg(c,i,`${Temp_this.Settings.对话_内容}`);
|
|
||||||
}
|
|
||||||
if(Temp_this.Type=="跳转"){
|
|
||||||
var data = fs.readFileSync("./UnderDenyData/Player.json");
|
|
||||||
var data_obj = JSON.parse(data.toString());
|
|
||||||
data_obj[i.user_id.toString()].Schedule = (Temp_this.Settings.跳转_目标 as String).valueOf();
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(data_obj),(err2)=>{});
|
|
||||||
}
|
|
||||||
if(Temp_this.Type=="判断"){
|
|
||||||
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
|
|
||||||
var data_obj = JSON.parse(data.toString());
|
|
||||||
if(data_obj[i.user_id.toString()].Vars[(Temp_this.Settings.判断_变量 as String).valueOf()] == (Temp_this.Settings.判断_依据 as String).valueOf()){
|
|
||||||
var temp = new GameAction();
|
|
||||||
var s = (Temp_this.Settings.判断_执行 as GameAction[]);
|
|
||||||
for(var j=0;j<s.length;j++){
|
|
||||||
temp.Create(s[j]).Execute(c,i,temp.Create(s[j]));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if(Temp_this.Type=="变量"){
|
|
||||||
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
|
|
||||||
var data_obj = JSON.parse(data.toString());
|
|
||||||
data_obj[i.user_id.toString()].Vars[(Temp_this.Settings.变量_设置 as String).valueOf()] = (Temp_this.Settings.变量_内容 as String).valueOf();
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(data_obj),(err2)=>{});
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if(Temp_this.Type=="随机"){
|
|
||||||
var rom = Math.floor(Math.random() * 100);
|
|
||||||
if(rom<(Temp_this.Settings.触发_几率 as Number).valueOf()){
|
|
||||||
var temp = new GameAction();
|
|
||||||
var s = (Temp_this.Settings.触发_回调 as GameAction[]);
|
|
||||||
for(var j=0;j<s.length;j++){
|
|
||||||
temp.Create(s[j]).Execute(c,i,temp.Create(s[j]));
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
if(Temp_this.Settings.触发_否则!=undefined||Temp_this.Settings.触发_否则!=null){
|
|
||||||
var temp = new GameAction();
|
|
||||||
var s = (Temp_this.Settings.触发_否则 as GameAction[]);
|
|
||||||
for(var j=0;j<s.length;j++){
|
|
||||||
temp.Create(s[j]).Execute(c,i,temp.Create(s[j]));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(Temp_this.Type=="战斗=>扣血"){
|
|
||||||
var data_obj = JSON.parse(fs.readFileSync("./UnderDenyData/Player.json").toString());
|
|
||||||
var Player = new PlayerData(data_obj[i.user_id.toString()].Info as PlayerData);
|
|
||||||
console.log(Temp_this.Settings);
|
|
||||||
Player.HP = Player.HP.valueOf() - (Temp_this.Settings.战斗_扣血 as Number).valueOf();
|
|
||||||
Core.frame.SendMsg(c,i,`${Temp_this.Settings.战斗_目标 as String}对你使用了${Temp_this.Settings.战斗_弹幕 as String},造成${(Temp_this.Settings.战斗_扣血 as Number)}点伤害,你剩余${Player.HP}点血量。`)
|
|
||||||
data_obj[i.user_id.toString()].Info = Player;
|
|
||||||
if(Player.HP<0){
|
|
||||||
data_obj[i.user_id.toString()] = undefined;
|
|
||||||
Core.frame.SendMsg(c,i,`你失败了\r\n${Core.frame.At(i.user_id)}保持你的决心。`);
|
|
||||||
}
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(data_obj),(err2)=>{});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
Create(that:GameAction):GameAction{
|
|
||||||
if(that!=undefined){
|
|
||||||
this.Type = that.Type;
|
|
||||||
this.Settings = that.Settings;
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
constructor(){
|
|
||||||
this.Type = "";
|
|
||||||
this.Settings = {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
class Item{
|
|
||||||
|
|
||||||
}
|
|
||||||
class PlayerData{
|
|
||||||
LOVE:Number;
|
|
||||||
EXP:Number;
|
|
||||||
HP:Number;
|
|
||||||
Item:Item[];
|
|
||||||
constructor(PlayerData:PlayerData){
|
|
||||||
this.LOVE = PlayerData.LOVE;
|
|
||||||
this.EXP = PlayerData.EXP;
|
|
||||||
this.HP = PlayerData.HP;
|
|
||||||
this.Item = PlayerData.Item;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
class UDPlayer{
|
|
||||||
Schedule:String;
|
|
||||||
Vars:Object;
|
|
||||||
Info:PlayerData;
|
|
||||||
constructor(PlayerS:UDPlayer){
|
|
||||||
this.Schedule = PlayerS.Schedule;
|
|
||||||
this.Vars = PlayerS.Vars;
|
|
||||||
this.Info = new PlayerData(PlayerS.Info as PlayerData);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log(`[${new Date().toString()}][UnderDeny OA定制版]正在载入数据...`)
|
|
||||||
Core.AddListener((connect,info)=>{
|
|
||||||
if(info.message.substr(0,2)!="UD"){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var msg:String = new String(info.message.replace("UD",""));
|
|
||||||
if(msg=="开始游戏"){
|
|
||||||
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
|
|
||||||
var PlayerData = JSON.parse(data.toString());
|
|
||||||
if(PlayerData[info.user_id.toString()]!=undefined){
|
|
||||||
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你还在进行游戏,发送\"UD重置\"才可以重新开始`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
PlayerData[info.user_id.toString()] = {Schedule:"Start",Vars:{},Info:{LOVE:0,EXP:0,HP:21,Item:[]}}
|
|
||||||
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
|
|
||||||
var data_obj = JSON.parse(data2.toString());
|
|
||||||
PlayerData[info.user_id.toString()].Vars = data_obj["Settings"]["init"];
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(PlayerData),(err2)=>{
|
|
||||||
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},UD初始化完成。发送\"UD查看剧情\"来开始游戏吧`);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if(msg=="重置"){
|
|
||||||
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
|
|
||||||
var PlayerData = JSON.parse(data.toString());
|
|
||||||
PlayerData[info.user_id.toString()] = undefined;
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(PlayerData),(err2)=>{
|
|
||||||
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},重置成功!`);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if(msg=="查看剧情"){
|
|
||||||
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
|
|
||||||
var PlayerData = JSON.parse(data.toString());
|
|
||||||
if(PlayerData[info.user_id.toString()]==undefined){
|
|
||||||
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var ThisPlayer =new UDPlayer(PlayerData[info.user_id.toString()] as UDPlayer);
|
|
||||||
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
|
|
||||||
var Data = JSON.parse(data2.toString());
|
|
||||||
var GameInfo = Data["Game"][ThisPlayer.Schedule.valueOf()].Info as String;
|
|
||||||
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions as Object;
|
|
||||||
var YouCanDo = "<你可以选择的行动>\\r\\n";
|
|
||||||
Object.keys(GameAct).forEach(element=>{
|
|
||||||
YouCanDo = `${YouCanDo}UD行动${element}\\r\\n`;
|
|
||||||
});
|
|
||||||
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)}\\r\\n${GameInfo}\\r\\n${YouCanDo}<UNDERDENY>`);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if(msg == "进行存档"){
|
|
||||||
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
|
|
||||||
var PlayerData = JSON.parse(data.toString());
|
|
||||||
if(PlayerData[info.user_id.toString()]==undefined){
|
|
||||||
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
|
|
||||||
var data2_obj = JSON.parse(data2.toString());
|
|
||||||
if(data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveAble!=true){
|
|
||||||
Core.frame.SendMsg(connect,info,"此时你无法存档。");
|
|
||||||
}else{
|
|
||||||
PlayerData[`${info.user_id}_SAVE`] = PlayerData[info.user_id.toString()];
|
|
||||||
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(PlayerData),(err3)=>{});
|
|
||||||
Core.frame.SendMsg(connect,info,data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveInfo);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if(msg.substr(0,2)=="行动"){
|
|
||||||
var action = msg.replace("行动","");
|
|
||||||
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
|
|
||||||
var PlayerData = JSON.parse(data.toString());
|
|
||||||
if(PlayerData[info.user_id.toString()]==undefined){
|
|
||||||
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var ThisPlayer =new UDPlayer(PlayerData[info.user_id.toString()] as UDPlayer);
|
|
||||||
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
|
|
||||||
var Data = JSON.parse(data2.toString());
|
|
||||||
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions;
|
|
||||||
if((GameAct[action] as any)==undefined){
|
|
||||||
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},没有这个行动,请检查后再发送。`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var ActionGroup = GameAct[action] as Array<GameAction>;
|
|
||||||
var Act:GameAction|undefined = new GameAction();
|
|
||||||
for(var i=0;i<ActionGroup.length;i++){
|
|
||||||
Act.Create(ActionGroup[i]).Execute(connect,info,Act.Create(ActionGroup[i]));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,428 +0,0 @@
|
|||||||
{
|
|
||||||
"Name":"UnderDeny",
|
|
||||||
"Author":["UnderDeny制作组","Computer Internet Studio"],
|
|
||||||
"Settings":{
|
|
||||||
"StartAt":"Start",
|
|
||||||
"JSTextGameCoreVersion":"[UnderDeny定制版]",
|
|
||||||
"init":{
|
|
||||||
"Skip":"false"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"AddonsSettings":{
|
|
||||||
"UD[Items]":{
|
|
||||||
"说明书":{
|
|
||||||
"ItemType":"物品",
|
|
||||||
"DeleteAble":false,
|
|
||||||
"Info":"*这是一本说明书。||*This is a book that can help you.",
|
|
||||||
"Use":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"*这是本说明书,可以教你如何游玩UD。\\r\\n要使用吗?||*This is a book that can help you.Would you like to use it?"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"选择",
|
|
||||||
"Settings":{
|
|
||||||
"选择_选项":["是","否"],
|
|
||||||
"选项_回调":[[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"使用“UD查看剧情”获取剧情信息。"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"使用“UD行动[XX]”来进行游戏。"
|
|
||||||
}
|
|
||||||
}],[]]
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"UD[Attack]":{
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Game":{
|
|
||||||
"Start":{
|
|
||||||
"Info":"从前有两个种族,人类与怪物,他们和平地相处着。||Long long ago,there were two races,humans and monsters.They lived peacefully.",
|
|
||||||
"Actions":{
|
|
||||||
"继续":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"但有一天,因为怪物对于人类和自己共享资源而不满,于是发起了战争。||But one day,Because monsters didn't agree to humans' idea about sharing resources.They started a war."
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"P1"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"跳过":[{
|
|
||||||
"Type":"判断",
|
|
||||||
"Settings":{
|
|
||||||
"判断_变量":"Skip",
|
|
||||||
"判断_依据":"false",
|
|
||||||
"判断_执行":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"给我好好听着.||Listen it!"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"变量",
|
|
||||||
"Settings":{
|
|
||||||
"变量_名称":"Skip",
|
|
||||||
"变量_内容":"true"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"P1":{
|
|
||||||
"Info":"但有一天,因为怪物对于人类和自己共享资源而不满,于是发起了战争。||But one day,Because monsters didn't agree to humans' idea about sharing resources.They started a war.",
|
|
||||||
"Actions":{
|
|
||||||
"继续":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"战争的最后人类打败了怪物,并将他们赶入了地底。||The end of the war was that monsters was failed by humans' attacking.They had to go to the place that under ground."
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"P2"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"P2":{
|
|
||||||
"Info":"战争的最后人类打败了怪物,并将他们赶入了地底。||The end of the war was that monsters was failed by humans' attacking.They had to go to the place that under ground.",
|
|
||||||
"Actions":{
|
|
||||||
"继续":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"人类派遣两位最为强大的魔法师,设置了封印,将怪物永远困在了地底。||Humans let the most powerful magician make seal that could keep monsters inseparable."
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"P3"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"P3":{
|
|
||||||
"Info":"人类派遣两位最为强大的魔法师,设置了封印,将怪物永远困在了地底。||Humans let the most powerful magician make seal that could keep monsters inseparable.",
|
|
||||||
"Actions":{
|
|
||||||
"继续":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"20XX年,一位人类不小心掉入了地底。||In the 20XX year,A human fell into the ground."
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"P4"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"P4":{
|
|
||||||
"Info":"20XX年,一位人类不小心掉入了地底。||In the 20XX year,A human fell into the underground.",
|
|
||||||
"Actions":{
|
|
||||||
"继续":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"你的旅途从此开始。||Your trip is begining now!"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"GUI"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"GUI":{
|
|
||||||
"Info":"Your trip is begining now!",
|
|
||||||
"Actions":{
|
|
||||||
"开始":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"#你掉入了地底,还好一堆金色的花接住了你。(你获得了0exp,你的lv上升了)||#You fell into the underground,thanks to the flowers that were glod keep caught you.(You got 0 exp,Your Love is being high.)"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"ROOM1"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"帮助":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"你正在使用《OnlineAi》的一个官方定制插件——《UnderDeny文字版 For OnlineAi》。\\r\\n本游戏的操作方式为\"UD行动[指令名称]\""
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ROOM1":{
|
|
||||||
"Info":"#你掉入了地底,还好一堆金色的花接住了你。(你获得了0exp,你的lv上升了)||#You fell into the underground,thanks to the flowers that were glod caught you.(You got 0 exp,Your Love is being high.)",
|
|
||||||
"Actions":{
|
|
||||||
"向上观望":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"想要重新爬上去是没有指望了。||It is not useful to climb up."
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"调查花堆":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"这堆金色的花接住了你,你可要好好感谢它。||The glod flowers caught you,You must thank them."
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"调查墙壁":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"黑黝黝的墙壁,没有什么特别的。||The black wall,nothing is special."
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"继续向前":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"你继续向前走。||You keep moving forward."
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"#你穿过一扇紫色大门,到达了第二个房间。\\r\\n#你看到了一朵金色的小花,你要干什么呢?||You go throught a big door that is purple,reach the second room.\\r\\nNow you see a flower that is glod.What will you do?"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"ROOM2.Before"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ROOM2.Before":{
|
|
||||||
"Info":"#你穿过一扇紫色大门,到达了第二个房间。\\r\\n#你看到了一朵金色的小花,你要干什么呢?||You go throught a big door that is purple,reach the second room.\\r\\nNow you see a flower that is glod.What will you do?",
|
|
||||||
"Actions":{
|
|
||||||
"调查墙壁":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"小花向你叫唤,你走了过去。||The flower is calling you,you walk over to it."
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"小花_对话1<ROOM2.Before>"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"小花:“哦,看看这里,又一个可怜的人类掉入了地底。你还好吗?孩子。哦,谢天谢地,要是你受了伤的话那就难弄了。”||The flower says oh,look at this.A poor human fell into the underground,too. Are you ok,kid?Oh,thanks!It will be diffclut If you hurt."
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"调查小花":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"小花:“哦,看看这里,又一个可怜的人类掉入了地底。你还好吗?孩子。哦,谢天谢地,要是你受了伤的话那就难弄了。”"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"小花_对话1<ROOM2.Before>"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"和小花说话":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"小花:“哦,看看这里,又一个可怜的人类掉入了地底。你还好吗?孩子。哦,谢天谢地,要是你受了伤的话那就难弄了。”||The flower says oh,look at this.A poor human fell into the underground,too. Are you ok,kid?Oh,thanks!It will be diffclut If you hurt."
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"小花_对话1<ROOM2.Before>"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"径直走开":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"小花非常生气的向你叫唤,是否走过去?||The flower is calling you angry.Do you want to go and see?"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"未调查小花的事件"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"愣住不动":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"小花向你叫唤,你走了过去。||The flower is calling you,you walk over to it."
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"小花_对话1<ROOM2.Before>"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"小花:“哦,看看这里,又一个可怜的人类掉入了地底。你还好吗?孩子。哦,谢天谢地,要是你受了伤的话那就难弄了。”"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"小花_对话1<ROOM2.Before>":{
|
|
||||||
"Info":"小花:“哦,看看这里,又一个可怜的人类掉入了地底。你还好吗?孩子。哦,谢天谢地,要是你受了伤的话那就难弄了。”||The flower says oh,look at this.A poor human fell into the underground,too. Are you ok,kid?Oh,thanks!It will be diffclut If you hurt.",
|
|
||||||
"Actions":{
|
|
||||||
"继续":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"*你告诉这朵小花自己没有事情。||*You tell this flower you are fine."
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"“哦,真是失理。我都忘记自我介绍了。你好,我叫小花,一朵名叫小花的小花。”||Oh,I am flower, a flower named flower"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"“很不幸,你掉入了地底,但幸运的是,地底的怪物都很善良。”||it is not lucky to fell into the underground,luckly the monsters are kind."
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"“虽然话说如此,但也不乏有一些讨厌的家伙,对于这种家伙,你只要教训他们一下就可以,但千万记住,千万不要杀了他们。”"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"“当他们得到应有的教训的时候,他们就不会惹事了,这个时候,就需要你饶恕他们。”"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"“要是他们用魔法攻击你,你只要躲开就可以了。就像这样。”"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"#小花对你发起攻击。"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"“看见了吗?这是你的灵魂,而我会用这些魔法颗粒来攻击你(小花的身边出现了3颗白色颗粒。)准备好了么?我要开始咯”"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"#魔法颗粒慢悠悠地飞了过来"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"小花_对话1_Part2"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"小花_对话1_Part2":{
|
|
||||||
"Info":"#魔法颗粒慢悠悠地飞了过来",
|
|
||||||
"SaveAble":true,
|
|
||||||
"SaveInfo":"看到小花,你充满了决心。",
|
|
||||||
"Actions":{
|
|
||||||
"尝试躲开":[{
|
|
||||||
"Type":"随机",
|
|
||||||
"Settings":{
|
|
||||||
"触发_几率":5,
|
|
||||||
"触发_回调":[{
|
|
||||||
"Type":"战斗=>扣血",
|
|
||||||
"Settings":{
|
|
||||||
"战斗_目标":"小花",
|
|
||||||
"战斗_弹幕":"魔法颗粒",
|
|
||||||
"战斗_扣血":1
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"小花:“我很抱歉不小心伤到了你,但是时间快到了,很抱歉我不能治疗你,我们下次见了,孩子。”"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"触发_否则":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"小花:“哦,你做的很棒,孩子。但是时间快到了,很抱歉我要走了,我们下次见了,孩子。”"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"#小花饶恕了你"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"#小花隐入地底。"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"不为所动":[{
|
|
||||||
"Type":"战斗=>扣血",
|
|
||||||
"Settings":{
|
|
||||||
"战斗_目标":"小花",
|
|
||||||
"战斗_弹幕":"魔法颗粒",
|
|
||||||
"战斗_扣血":"3"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"小花:“你刚才为什么没有躲避我的魔法呢,时间快到了,很抱歉我不能治疗你,我们下次见了,孩子。”"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"#小花饶恕了你"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"#小花隐入地底。"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"未调查小花的事件":{
|
|
||||||
"Info":"小花非常生气的向你叫唤,是否走过去?",
|
|
||||||
"Actions":{
|
|
||||||
"是":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"你向这朵会说话的金色小花走了过去。"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"小花_对话1<ROOM2.Before>"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"否":[{
|
|
||||||
"Type":"对话",
|
|
||||||
"Settings":{
|
|
||||||
"对话_内容":"你还是向这朵会说话的金色小花走了过去。"
|
|
||||||
}
|
|
||||||
},{
|
|
||||||
"Type":"跳转",
|
|
||||||
"Settings":{
|
|
||||||
"跳转_目标":"小花_对话1<ROOM2.Before>"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"小花离开后事件":{
|
|
||||||
"Info":""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,63 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
/* Basic Options */
|
|
||||||
// "incremental": true, /* Enable incremental compilation */
|
|
||||||
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
|
||||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
||||||
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
||||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
||||||
// "checkJs": true, /* Report errors in .js files. */
|
|
||||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
||||||
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
||||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
||||||
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
||||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
||||||
// "outDir": "./", /* Redirect output structure to the directory. */
|
|
||||||
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
||||||
// "composite": true, /* Enable project compilation */
|
|
||||||
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
||||||
// "removeComments": true, /* Do not emit comments to output. */
|
|
||||||
// "noEmit": true, /* Do not emit outputs. */
|
|
||||||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
||||||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
||||||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
||||||
|
|
||||||
/* Strict Type-Checking Options */
|
|
||||||
"strict": true, /* Enable all strict type-checking options. */
|
|
||||||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
||||||
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
||||||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
||||||
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
||||||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
||||||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
||||||
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
||||||
|
|
||||||
/* Additional Checks */
|
|
||||||
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
||||||
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
||||||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
||||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
||||||
|
|
||||||
/* Module Resolution Options */
|
|
||||||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
||||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
||||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
||||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
||||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
||||||
// "types": [], /* Type declaration files to be included in compilation. */
|
|
||||||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
||||||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
||||||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
||||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
||||||
|
|
||||||
/* Source Map Options */
|
|
||||||
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
||||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
||||||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
||||||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
||||||
|
|
||||||
/* Experimental Options */
|
|
||||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
||||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
UD文字版内核不同于JSTextGameCore。
|
|
||||||
UDTC和JTGC都使用CIS编写的TWS作为参数库(Type With Settings:类型和设置),所以在语法上内容相似,但实现机制完全不一致。
|
|
||||||
UDTC针对OnlineAi Core做了特别的优化适配,而JTGC只是一般插件。
|
|
||||||
UDTC针对JTGC的Items库和Attack库做了特别修改,
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"927980270":{"Schedule":"ROOM1","Vars":{"Skip":"false"},"Info":{"LOVE":0,"EXP":0,"HP":21,"Item":[]}},"3569808588":{"Schedule":"GUI","Vars":{"Skip":"false"},"Info":{"LOVE":0,"EXP":0,"HP":21,"Itea":[]}},"927980270_SAVE":{"Schedule":"小花_对话1_Part2","Vars":{"Skip":"false"},"Info":{"LOVE":0,"EXP":0,"HP":15}}}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
{"固定资产":{"0":6,"1":2,"123":123,"123456":357,"1234567":1,"80000000":82118874,"211624247":1139271340788.5,"297987174":10000,"369258147":123,"862869995":3956243115954547,"863434095":421136905896664,"927980270":3182933327187799,"1061157809":10000,"1095742087":550,"1109486943":300,"1152158504":291298869429629,"1192963842":255509805039066,"1285908631":9055808343758502,"1546872747":218228,"1732314252":1844783337698991,"1745937600":69713312152736,"1850550844":10000,"2142562417":1051,"2298671728":10393156,"2506941840":500,"2584087682":55835433248213,"2868445034":4044936926064890,"2955781335":10000,"3069584300":2637442016450439,"3117325564":30000,"3122609418":2977378620038106,"3162625498":10500,"3183671775":401532191666799,"3305137225":360242714,"3352461522":631405446674844,"3488450293":936092,"3491504564":10000,"3521519020":25000,"3569808588":24978407006742784,"2000@北北北橙":2000,"20003183671775":200,"3183671775转账JE200":2000},"利息":{"80000000":"20201","863434095":"20203","927980270":"20206","1095742087":"20203","1152158504":"20203","1192963842":"20203","1285908631":"20204","2868445034":"20202","3122609418":"20206","3569808588":"20203"},"领工资":{"80000000":"202016","862869995":"202063","863434095":"202042","927980270":"202066","1152158504":"202034","1192963842":"202045","1285908631":"202045","1546872747":"202033","1850550844":"202003","2298671728":"202034","2868445034":"202023","3069584300":"202032","3122609418":"202064","3162625498":"202011","3183671775":"202034","3491504564":"2019116","3569808588":"202044"},"签到":{"80000000":"202044","211624247":"2019110","862869995":"202063","863434095":"202045","927980270":"202062","1095742087":"202033","1109486943":"202030","1152158504":"202034","1192963842":"202045","1285908631":"202045","1546872747":"202033","1850550844":"202003","2142562417":"202033","2298671728":"202034","2506941840":"202033","2868445034":"202034","2955781335":"202016","3069584300":"202040","3117325564":"202016","3122609418":"202064","3162625498":"202044","3183671775":"202034","3352461522":"202032","3491504564":"2019116","3569808588":"202044"},"RedPacketPool":46879733784928280,"SandBox":{"aaa":"aaa","bbb":"123","s":"function(){console.log(1)}","a":"0","_F01":"function(){\r\nDebug.log(\"苏卡布列!\");\r\n}","temp":"true","AutoExec":"(connect,info)=>{\r\nconsole.log(info);\r\n}","e":"1","😊":"1","Fun2":"function(){\r\nDebug.log(SandBox.Fun2.toString());\r\n}"},"目标":{"862869995":"2868445034","1192963842":"2584087682JE20"},"公会系统":{"80000000":"[无工会]","863434095":" 天一没了","927980270":"CIS","1192963842":"天依没了","1850550844":"沙城"},"AITalk":{"80000000":false,"297987174":false,"862869995":false,"863434095":false,"927980270":false,"1061157809":false,"1192963842":false,"1285908631":false,"1546872747":false,"1732314252":false,"1850550844":false,"2142562417":false,"2298671728":false,"2323670899":true,"2500775460":false,"2868445034":false,"2955781335":false,"3162625498":false,"3183671775":false,"Core":true},"板砖":{"862869995":null,"863434095":2097,"927980270":123424033,"1109486943":1,"1285908631":71677249045757,"2298671728":-2000070435,"2868445034":2e+263,"3122609418":1000000000991,"3491504564":2,"3569808588":9775528239},"保镖":{"927980270":53,"1285908631":107,"1732314252":10,"3569808588":100},"AIEnable":{"162893044":true,"545541668":true,"588932037":true,"776148636":true,"784547558":true,"952588524":true,"963936042":true,"966138955":true,"1080010769":true},"保镖[2020 3 1]":{"927980270":10},"保镖[2020 3 2]":{"927980270":4,"3569808588":-1},"保镖[2020 3 3]":{"862869995":10,"863434095":14,"927980270":4,"1192963842":26,"2584087682":5,"3183671775":25,"3569808588":2},"保镖[2020 3 4]":{"863434095":5,"927980270":4,"1192963842":39,"2584087682":5,"3569808588":3},"保镖[2020 4 5]":{"863434095":5,"1192963842":20},"保镖[2020 4 4]":{"3569808588":4},"保镖[2020 4 2]":{"862869995":10,"863434095":-1,"927980270":10},"保镖[2020 6 4]":{"927980270":20}}
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"927980270":"927980270",
|
|
||||||
"admin123":"927980270",
|
|
||||||
"Lanshuye":"927980270"
|
|
||||||
}
|
|
||||||
1718
package-lock.json
自动生成的
1718
package-lock.json
自动生成的
文件差异内容过多而无法显示
加载差异
87
package.json
87
package.json
@ -1,87 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "jsaicore",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"description": "Something",
|
|
||||||
"main": "Core.js",
|
|
||||||
"dependencies": {
|
|
||||||
"@types/node": "^13.7.7",
|
|
||||||
"@types/puppeteer": "^2.0.1",
|
|
||||||
"@types/request": "^2.48.4",
|
|
||||||
"@types/uuid": "^7.0.3",
|
|
||||||
"@types/websocket": "^1.0.0",
|
|
||||||
"atob": "^2.1.2",
|
|
||||||
"btoa": "^1.2.1",
|
|
||||||
"bufferutil": "^4.0.1",
|
|
||||||
"bytenode": "^1.1.6",
|
|
||||||
"canvas": "^2.6.1",
|
|
||||||
"desktop-screenshot": "^0.1.1",
|
|
||||||
"gyp": "^0.5.0",
|
|
||||||
"iconv-lite": "^0.5.1",
|
|
||||||
"node-gyp": "^6.1.0",
|
|
||||||
"node-pre-gyp": "^0.14.0",
|
|
||||||
"puppeteer-core": "^2.1.1",
|
|
||||||
"readable-stream": "^3.6.0",
|
|
||||||
"rebuild": "^0.1.2",
|
|
||||||
"request": "^2.88.2",
|
|
||||||
"utf-8-validate": "^5.0.2",
|
|
||||||
"uuid": "^8.0.0",
|
|
||||||
"websocket": "^1.0.31",
|
|
||||||
"ws": "^7.2.5"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"typescript": "^3.8.3"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"start": "Run.bat",
|
|
||||||
"test": "Node OnlineAI.js",
|
|
||||||
"get": "npm install",
|
|
||||||
"build": "tsc --build&git add .&git commit -m \"@Build\"&git push origin master"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://gitee.com/computer_internet_inc/AICore.git"
|
|
||||||
},
|
|
||||||
"author": "Lanshuye",
|
|
||||||
"license": "SEE LICENSE IN LICENSE",
|
|
||||||
"bin": "D:\\APPS\\JSAICore\\OnlineAI.js",
|
|
||||||
"pkg": {
|
|
||||||
"scripts": [
|
|
||||||
"Debug.js",
|
|
||||||
"Money.js",
|
|
||||||
"RedPacket.js",
|
|
||||||
"抢劫.js",
|
|
||||||
"公会系统.js",
|
|
||||||
"AutoCreeper.js",
|
|
||||||
"Frame.js",
|
|
||||||
"AddOns.js",
|
|
||||||
"板砖.js",
|
|
||||||
"DocMaker.js",
|
|
||||||
"狗屁不通文章生成器.js",
|
|
||||||
"WebUI.js",
|
|
||||||
"CGI.js",
|
|
||||||
"OnlineAI.js",
|
|
||||||
"*.js",
|
|
||||||
"./Debug.js",
|
|
||||||
"./Money.js",
|
|
||||||
"./RedPacket.js",
|
|
||||||
"./抢劫.js",
|
|
||||||
"./公会系统.js",
|
|
||||||
"./AutoCreeper.js",
|
|
||||||
"./Frame.js",
|
|
||||||
"./AddOns.js",
|
|
||||||
"./板砖.js",
|
|
||||||
"./DocMaker.js",
|
|
||||||
"./狗屁不通文章生成器.js",
|
|
||||||
"./Addons/void.js"
|
|
||||||
],
|
|
||||||
"assets": [
|
|
||||||
"*.json",
|
|
||||||
"*",
|
|
||||||
"WebUI.html"
|
|
||||||
],
|
|
||||||
"targets": [
|
|
||||||
"node10-win-x86",
|
|
||||||
"node10-win-x64"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,63 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
/* Basic Options */
|
|
||||||
// "incremental": true, /* Enable incremental compilation */
|
|
||||||
"target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
|
||||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
||||||
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
||||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
||||||
// "checkJs": true, /* Report errors in .js files. */
|
|
||||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
||||||
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
||||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
||||||
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
||||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
||||||
// "outDir": "./", /* Redirect output structure to the directory. */
|
|
||||||
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
||||||
// "composite": true, /* Enable project compilation */
|
|
||||||
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
||||||
// "removeComments": true, /* Do not emit comments to output. */
|
|
||||||
// "noEmit": true, /* Do not emit outputs. */
|
|
||||||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
||||||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
||||||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
||||||
|
|
||||||
/* Strict Type-Checking Options */
|
|
||||||
"strict": true, /* Enable all strict type-checking options. */
|
|
||||||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
||||||
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
||||||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
||||||
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
||||||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
||||||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
||||||
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
||||||
|
|
||||||
/* Additional Checks */
|
|
||||||
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
||||||
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
||||||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
||||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
||||||
|
|
||||||
/* Module Resolution Options */
|
|
||||||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
||||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
||||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
||||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
||||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
||||||
// "types": [], /* Type declaration files to be included in compilation. */
|
|
||||||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
||||||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
||||||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
||||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
||||||
|
|
||||||
/* Source Map Options */
|
|
||||||
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
||||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
||||||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
||||||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
||||||
|
|
||||||
/* Experimental Options */
|
|
||||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
||||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,63 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
/* Basic Options */
|
|
||||||
// "incremental": true, /* Enable incremental compilation */
|
|
||||||
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
|
||||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
||||||
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
||||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
||||||
// "checkJs": true, /* Report errors in .js files. */
|
|
||||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
||||||
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
||||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
||||||
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
||||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
||||||
// "outDir": "./", /* Redirect output structure to the directory. */
|
|
||||||
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
||||||
// "composite": true, /* Enable project compilation */
|
|
||||||
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
||||||
// "removeComments": true, /* Do not emit comments to output. */
|
|
||||||
// "noEmit": true, /* Do not emit outputs. */
|
|
||||||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
||||||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
||||||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
||||||
|
|
||||||
/* Strict Type-Checking Options */
|
|
||||||
"strict": true, /* Enable all strict type-checking options. */
|
|
||||||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
||||||
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
||||||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
||||||
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
||||||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
||||||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
||||||
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
||||||
|
|
||||||
/* Additional Checks */
|
|
||||||
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
||||||
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
||||||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
||||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
||||||
|
|
||||||
/* Module Resolution Options */
|
|
||||||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
||||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
||||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
||||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
||||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
||||||
// "types": [], /* Type declaration files to be included in compilation. */
|
|
||||||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
||||||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
||||||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
||||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
||||||
|
|
||||||
/* Source Map Options */
|
|
||||||
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
||||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
||||||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
||||||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
||||||
|
|
||||||
/* Experimental Options */
|
|
||||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
||||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
在新工单中引用
屏蔽一个用户