通货膨胀*2

这个提交包含在:
2020-07-13 13:49:04 +08:00
父节点 a0106512cf
当前提交 485d20a5a0

查看文件

@ -2,7 +2,7 @@
const fs=require("fs"); const fs=require("fs");
const Core = require("./Core"); const Core = require("./Core");
const 通货膨胀系数 = 0.5; const 通货膨胀系数 = 0.9;
// 收入乘以这个数 // 收入乘以这个数
// 支出除以这个数 // 支出除以这个数
@ -18,7 +18,7 @@ exports.add={
}, },
GiveUserMoney:function(UserID,Moeny,GoTo){ GiveUserMoney:function(UserID,Moeny,GoTo){
Moeny = Money*通货膨胀系数; Moeny = Math.round(Money*通货膨胀系数);
if(GoTo == undefined){ if(GoTo == undefined){
GoTo = "无备注" GoTo = "无备注"
} }
@ -32,7 +32,7 @@ exports.add={
return; return;
}, },
CostUserMoney:function(UserID,Moeny,GoTo){ CostUserMoney:function(UserID,Moeny,GoTo){
Money = -(1/通货膨胀系数) * Moeny/通货膨胀系数; Money = Math.round(-(1/通货膨胀系数) * Moeny/通货膨胀系数);
exports.add.Interfaces.GiveUserMoney(UserID, Moeny, GoTo); exports.add.Interfaces.GiveUserMoney(UserID, Moeny, GoTo);
return; return;
}, },