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:
rootdarkarchon
2026-02-07 19:45:31 +01:00
committed by GitHub
parent 537ffad7f6
commit 9f189f2e15
6 changed files with 38 additions and 16 deletions
@@ -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;
}