这个提交包含在:
2020-07-13 13:48:27 +08:00
父节点 3e7c1a98b8
当前提交 a0106512cf
共有 2 个文件被更改,包括 5 次插入 和 3 次删除

查看文件

@ -18,6 +18,7 @@ exports.add={
}, },
GiveUserMoney:function(UserID,Moeny,GoTo){ GiveUserMoney:function(UserID,Moeny,GoTo){
Moeny = Money*通货膨胀系数;
if(GoTo == undefined){ if(GoTo == undefined){
GoTo = "无备注" GoTo = "无备注"
} }
@ -25,13 +26,14 @@ exports.add={
if(data[UserID]==undefined||null||NaN){ if(data[UserID]==undefined||null||NaN){
data[UserID] = Moeny; data[UserID] = Moeny;
}else{ }else{
data[UserID] = new Number(this.GetUserMoney(UserID) + new Number(Moeny)*通货膨胀系数 ); data[UserID] = new Number(this.GetUserMoney(UserID) + new Number(Moeny) );
} }
Core.frame.WriteSystemConfig("固定资产",data); Core.frame.WriteSystemConfig("固定资产",data);
return; return;
}, },
CostUserMoney:function(UserID,Moeny,GoTo){ CostUserMoney:function(UserID,Moeny,GoTo){
exports.add.Interfaces.GiveUserMoney(UserID,-(1/通货膨胀系数) * Moeny/通货膨胀系数, GoTo); Money = -(1/通货膨胀系数) * Moeny/通货膨胀系数;
exports.add.Interfaces.GiveUserMoney(UserID, Moeny, GoTo);
return; return;
}, },
GetUserTo:function(UserID){ GetUserTo:function(UserID){

查看文件

@ -1 +1 @@
{"固定资产":{"927980270":750},"利息":{},"领工资":{"927980270":"202061"},"签到":{"927980270":"202061"},"RedPacketPool":0,"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"},"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":1499,"863434095":2097,"927980270":123424033,"1109486943":1,"1285908631":71677249045757,"1732314252":null,"2298671728":-2000070435,"2645989614":null,"2868445034":2e+263,"3122609418":1000000000991,"3491504564":2,"3569808588":9775528239},"公会系统":{"927980270":"共学社"},"AIEnable":{"588932037":true,"776148636":true,"966138955":true}} {"固定资产":{},"利息":{},"领工资":{},"签到":{},"RedPacketPool":0,"SandBox":{},"目标":{},"AITalk":{"Core":true},"板砖":{},"公会系统":{"927980270":"共学社"},"AIEnable":{"588932037":true,"776148636":true,"966138955":true}}