Energy & Hydratation drain rate and speed + improvement to cheap traders
This commit is contained in:
parent
86b5bc4237
commit
5007b943e1
@ -67,8 +67,10 @@
|
|||||||
"EnableSkillBotReload": false,
|
"EnableSkillBotReload": false,
|
||||||
"EnableSkillBotSound": false,
|
"EnableSkillBotSound": false,
|
||||||
"RemoveScavKarma": false,
|
"RemoveScavKarma": false,
|
||||||
"EnergyDrainRate": false,
|
"EnergyDrainRate": 50.0,
|
||||||
"HydratationDrainRate": false
|
"EnergyDrainTime": 60,
|
||||||
|
"HydratationDrainRate": 50.0,
|
||||||
|
"HydratationDrainTime": 60
|
||||||
},
|
},
|
||||||
"traders": {
|
"traders": {
|
||||||
"AllQuestsAvailable": false,
|
"AllQuestsAvailable": false,
|
||||||
|
@ -46,7 +46,11 @@
|
|||||||
"AllSkillsMaster": "AllSkillsMaster option is incorrect, it must be a boolean in order to work (true or false). Check back readme.pdf to ensure you use the correct value.",
|
"AllSkillsMaster": "AllSkillsMaster option is incorrect, it must be a boolean in order to work (true or false). Check back readme.pdf to ensure you use the correct value.",
|
||||||
"EnableSkillBotReload": "EnableSkillBotReload option is incorrect, it must be a boolean in order to work (true or false). Check back readme.pdf to ensure you use the correct value.",
|
"EnableSkillBotReload": "EnableSkillBotReload option is incorrect, it must be a boolean in order to work (true or false). Check back readme.pdf to ensure you use the correct value.",
|
||||||
"EnableSkillBotSound": "EnableSkillBotSound option is incorrect, it must be a boolean in order to work (true or false). Check back readme.pdf to ensure you use the correct value.",
|
"EnableSkillBotSound": "EnableSkillBotSound option is incorrect, it must be a boolean in order to work (true or false). Check back readme.pdf to ensure you use the correct value.",
|
||||||
"DisableFallDamage": "DisableFallDamage option is incorrect, it must be a boolean in order to work (true or false). Check back readme.pdf to ensure you use the correct value."
|
"DisableFallDamage": "DisableFallDamage option is incorrect, it must be a boolean in order to work (true or false). Check back readme.pdf to ensure you use the correct value.",
|
||||||
|
"EnergyDrainRate": "EnergyDrainRate option is incorrect, it must be a boolean in order to work (false or number). Check back readme.pdf to ensure you use the correct value.",
|
||||||
|
"EnergyDrainTime": "EnergyDrainTime option is incorrect, it must be a boolean in order to work (false or number). Check back readme.pdf to ensure you use the correct value.",
|
||||||
|
"HydratationDrainRate": "HydratationDrainRate option is incorrect, it must be a boolean in order to work (false or number). Check back readme.pdf to ensure you use the correct value.",
|
||||||
|
"HydratationDrainTime": "HydratationDrainTime option is incorrect, it must be a boolean in order to work (false or number). Check back readme.pdf to ensure you use the correct value."
|
||||||
},
|
},
|
||||||
"traders": {
|
"traders": {
|
||||||
"AllQuestsAvailable": "AllQuestsAvailable option is incorrect, it must be a boolean in order to work (true or false). Check back readme.pdf to ensure you use the correct value.",
|
"AllQuestsAvailable": "AllQuestsAvailable option is incorrect, it must be a boolean in order to work (true or false). Check back readme.pdf to ensure you use the correct value.",
|
||||||
|
@ -11,6 +11,27 @@ class PlayerModifications {
|
|||||||
const database = DatabaseServer.tables;
|
const database = DatabaseServer.tables;
|
||||||
const globals = database.globals.config;
|
const globals = database.globals.config;
|
||||||
|
|
||||||
|
|
||||||
|
//Hydratation rate
|
||||||
|
if(typeof config.player.HydratationDrainRate === "number"){
|
||||||
|
globals.Health.Effects.Existence.HydrationDamage = config.player.HydratationDrainRate
|
||||||
|
}
|
||||||
|
|
||||||
|
//Hydratation rate
|
||||||
|
if(typeof config.player.HydratationDrainTime === "number"){
|
||||||
|
globals.Health.Effects.Existence.HydrationLoopTime = config.player.HydratationDrainTime
|
||||||
|
}
|
||||||
|
|
||||||
|
//Energy rate
|
||||||
|
if(typeof config.player.EnergyDrainRate === "number"){
|
||||||
|
globals.Health.Effects.Existence.EnergyDamage = config.player.EnergyDrainRate
|
||||||
|
}
|
||||||
|
|
||||||
|
//Energy rate
|
||||||
|
if(typeof config.player.EnergyDrainTime === "number"){
|
||||||
|
globals.Health.Effects.Existence.EnergyLoopTime = config.player.EnergyDrainTime
|
||||||
|
}
|
||||||
|
|
||||||
//Remove scav timer
|
//Remove scav timer
|
||||||
if (config.player.RemoveScavTimer === true) {
|
if (config.player.RemoveScavTimer === true) {
|
||||||
globals.SavagePlayCooldown = 1;
|
globals.SavagePlayCooldown = 1;
|
||||||
|
@ -84,13 +84,28 @@ class TradersModifications {
|
|||||||
for(const trader in traders){
|
for(const trader in traders){
|
||||||
for(const assort in traders[trader].assort.barter_scheme){
|
for(const assort in traders[trader].assort.barter_scheme){
|
||||||
let itemScheme = traders[trader].assort.barter_scheme[assort];
|
let itemScheme = traders[trader].assort.barter_scheme[assort];
|
||||||
if(itemScheme[0][0]._tpl === "5449016a4bdc2d6f028b456f"){ //Roubles
|
switch(itemScheme[0][0]._tpl){
|
||||||
|
case "5449016a4bdc2d6f028b456f": //Roubles
|
||||||
|
itemScheme[0][0].count = itemScheme[0][0].count * 0.01;
|
||||||
|
break;
|
||||||
|
case "5696686a4bdc2da3298b456a": //Dollars
|
||||||
|
itemScheme[0][0].count = itemScheme[0][0].count * 0.1;
|
||||||
|
break;
|
||||||
|
case "5696686a4bdc2da3298b456a": //Euros
|
||||||
|
itemScheme[0][0].count = itemScheme[0][0].count * 0.05;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Logger.error(`${itemScheme[0][0]} does not exist. A mod might cause it.`)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*if(itemScheme[0][0]._tpl === "5449016a4bdc2d6f028b456f"){ //Roubles
|
||||||
itemScheme[0][0].count = itemScheme[0][0].count * 0.01;
|
itemScheme[0][0].count = itemScheme[0][0].count * 0.01;
|
||||||
}else if(itemScheme[0][0]._tpl === "5696686a4bdc2da3298b456a"){ //Dollars
|
}else if(itemScheme[0][0]._tpl === "5696686a4bdc2da3298b456a"){ //Dollars
|
||||||
itemScheme[0][0].count = itemScheme[0][0].count * 0.1;
|
itemScheme[0][0].count = itemScheme[0][0].count * 0.1;
|
||||||
}else if(itemScheme[0][0]._tpl === "5696686a4bdc2da3298b456a"){ //euros
|
}else if(itemScheme[0][0]._tpl === "5696686a4bdc2da3298b456a"){ //euros
|
||||||
itemScheme[0][0].count = itemScheme[0][0].count * 0.05;
|
itemScheme[0][0].count = itemScheme[0][0].count * 0.05;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,18 @@ class Warnings {
|
|||||||
Logger.log(`Please, take care of reading the readme.pdf of the mod before using it. It contains all configurations explanations.`, "white", "red");
|
Logger.log(`Please, take care of reading the readme.pdf of the mod before using it. It contains all configurations explanations.`, "white", "red");
|
||||||
Logger.log(`[AIO Mod INFORMATION]`, "white", "red");
|
Logger.log(`[AIO Mod INFORMATION]`, "white", "red");
|
||||||
}
|
}
|
||||||
|
if (typeof config.player.HydratationDrainRate !== "number" && config.player.HydratationDrainRate != "false") {
|
||||||
|
OtherModitication.CustomWarning("AIO Mod", errors.player.HydratationDrainRate)
|
||||||
|
}
|
||||||
|
if (typeof config.player.HydratationDrainTime !== "number" && config.player.HydratationDrainTime != "false") {
|
||||||
|
OtherModitication.CustomWarning("AIO Mod", errors.player.HydratationDrainTime)
|
||||||
|
}
|
||||||
|
if (typeof config.player.EnergyDrainRate !== "number" && config.player.EnergyDrainRate != "false") {
|
||||||
|
OtherModitication.CustomWarning("AIO Mod", errors.player.EnergyDrainRate)
|
||||||
|
}
|
||||||
|
if (typeof config.player.EnergyDrainTime !== "number" && config.player.EnergyDrainTime != "false") {
|
||||||
|
OtherModitication.CustomWarning("AIO Mod", errors.player.EnergyDrainTime)
|
||||||
|
}
|
||||||
if (typeof config.items.ChangeIndividualItemProperty.activated !== "boolean") {
|
if (typeof config.items.ChangeIndividualItemProperty.activated !== "boolean") {
|
||||||
OtherModitication.CustomWarning("AIO Mod", errors.items.ChangeIndividualItemProperty.activated)
|
OtherModitication.CustomWarning("AIO Mod", errors.items.ChangeIndividualItemProperty.activated)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user