Fix MaxTraderLevel
Fix ExamineExperience
Removed leftover log
This commit is contained in:
Ereshkigal 2021-06-30 16:19:00 +02:00
parent f7405893c9
commit 2d73d3c37b
2 changed files with 2 additions and 3 deletions

View File

@ -146,7 +146,7 @@ class itemsModification {
if (typeof config.items.IncreaseExamineExp == "number") { if (typeof config.items.IncreaseExamineExp == "number") {
if (base._props.ExamineExperience !== undefined) { if (base._props.ExamineExperience !== undefined) {
let calculation = Math.round((base._props.ExamineExperience + ((config.items.ExamineExperience / 100) * base._props.ExamineExperience))); let calculation = Math.round((base._props.ExamineExperience + ((config.items.IncreaseExamineExp / 100) * base._props.ExamineExperience)));
CoreMod.EditSimpleItemData(id, "ExamineExperience", calculation); CoreMod.EditSimpleItemData(id, "ExamineExperience", calculation);
} }
} }
@ -188,7 +188,6 @@ class itemsModification {
} else { } else {
for (let property in config.items.ChangeIndividualItemProperty.ItemList[k]) { for (let property in config.items.ChangeIndividualItemProperty.ItemList[k]) {
let value = config.items.ChangeIndividualItemProperty.ItemList[k][property] let value = config.items.ChangeIndividualItemProperty.ItemList[k][property]
Logger.log(value)
CoreMod.EditSimpleItemData(k, property, value); CoreMod.EditSimpleItemData(k, property, value);
} }
} }

View File

@ -108,7 +108,7 @@ class TradersModifications {
let loyaltyLevels = DatabaseServer.tables.traders[traderID].base.loyalty.loyaltyLevels; let loyaltyLevels = DatabaseServer.tables.traders[traderID].base.loyalty.loyaltyLevels;
// level up player // level up player
pmcData.Info.Level = PlzRefactorMeHelper.calculateLevel(pmcData); pmcData.Info.Level = PlayerController.calculateLevel(pmcData);
for (let level in loyaltyLevels) { for (let level in loyaltyLevels) {