通货膨胀*2
这个提交包含在:
6
Money.js
6
Money.js
@ -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;
|
||||||
},
|
},
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户