Adjustments for Int/Cha progression in Hideout (#737)
* Fixup of some skill handling in hideout * fix format * add limited backwards compat and fix repair int value * more logging and fixes * fix charisma gain from repair * revert divisor into multiplier * run csharpier format * undo formating/unnecessary files * add debug guards --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
This commit is contained in:
@@ -774,7 +774,10 @@ public class InsuranceController(
|
||||
}
|
||||
}
|
||||
|
||||
profileHelper.AddSkillPointsToPlayer(pmcData, SkillTypes.Charisma, itemsToInsureCount * 0.01);
|
||||
// give charisma skill points based on the total price of the insured items divded by 200000rub, multiplied by skill progress rate
|
||||
double intSkillPoints = (itemsToPay.Sum(c => c.Count ?? 0) / 200000);
|
||||
logger.Debug($"Insured {itemsToPay.Sum(c => c.Count ?? 0)} value, granting {intSkillPoints} {SkillTypes.Charisma} skill points.");
|
||||
profileHelper.AddSkillPointsToPlayer(pmcData, SkillTypes.Charisma, intSkillPoints, true);
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user