erik9631
Recruit

Hello.
I have been making a simple mod which allows you to edit hardcoded values inside the game from a config file.
During the development of this mod I have noticed that DefaultPerks class from my perspective and current understanding seem to be a colossal screw up.
First of all, all the values defined inside the class are floats, and they are multiplied by 100 to convert them to % during the skill bonus calculation process. I can't help myself but to poke at the fact that there are these few lines of code, which seem to be totally inconsistent with the rest of the definitions:
As you can see, with the TwoHandedExtraHP and Extra damage, the perks are meant to increase the hitpoints by 3% and damage by 1.5%
But looking at the actual values, isn't the health increased by 300% and damage by 150%?
In the TwoHandedPowerBasher, someone messed up the description and wrote %2 insteade of 2%, same for %5 and 5%
These are the ones I noticed but undoubtedly, there are more, but I haven't looked through all of them.
After dumping all the values, I realized that there are numerous which seem to have a value of 0, despite their description saying otherwise, here is a list:
Can somebody explain this to me?
I have been making a simple mod which allows you to edit hardcoded values inside the game from a config file.
During the development of this mod I have noticed that DefaultPerks class from my perspective and current understanding seem to be a colossal screw up.
First of all, all the values defined inside the class are floats, and they are multiplied by 100 to convert them to % during the skill bonus calculation process. I can't help myself but to poke at the fact that there are these few lines of code, which seem to be totally inconsistent with the rest of the definitions:
As you can see, with the TwoHandedExtraHP and Extra damage, the perks are meant to increase the hitpoints by 3% and damage by 1.5%
But looking at the actual values, isn't the health increased by 300% and damage by 150%?
In the TwoHandedPowerBasher, someone messed up the description and wrote %2 insteade of 2%, same for %5 and 5%
These are the ones I noticed but undoubtedly, there are more, but I haven't looked through all of them.
After dumping all the values, I realized that there are numerous which seem to have a value of 0, despite their description saying otherwise, here is a list:
插入代码块:
ThrowingPerfectAccuracy=0
CrossbowRecruiter=0
AthleticsInGoodShape=0
CrossbowCrossbowCavalry=0
ScoutingInvestigator=0
CrossbowWithoutHonor=0
PoleArmKeepAtBay=0
BowArcheryRenown=0
ThrowingExtra2=0
AthleticsSaltTheWound=0
ThrowingWellPrepared=0
AthleticsFuriousCharge=0
TradeExtra1=0
TradeExtra2=0
StewardStandUnited=0
ThrowingExtra1=0
BowRanger=0
TacticsOneStepAhead=0
CraftingSteelMaker=0
RogueryConcealedBlade=0
PoleArmSlaughter=0
StewardAgrarian=0
StewardAssessor=0
PolearmPushback=0
RidingBowExpert=0
CraftingSteelMaker2=0
CraftingCharcoalMaker=0
CrossbowBoneBolts=0
ThrowingConcealedCarry=0
RoguerySlaveTrader=0
TradeTravelingRumors=0
CrossbowVolleyCommander=0
AthleticsUnburdened=0
CraftingSteelMaker3=0
AthleticsExtra3=0
TradeEverythingHasAPrice=0
TradeLocalConnection=0
CraftingIronMaker=0
BowMountedArcher=0
RogueryEscapeArtist=0
CrossbowRenownedMarksman=0
AthleticsExtra2=0
AthleticsExtra1=0
OneHandedShieldBearer=0
RidingFilledToBrim=0
LeadershipDisciplinarian=0
PoleArmTightGrip=0
StewardReconstruction=0
MedicineDoctorsOath=0
RidingCrossbowExpert=0
RogueryMerryMen=0
Can somebody explain this to me?