Open canerksk opened 1 year ago
Um, could be good idea to have this, I like that idea honestly, let us to customize armors more better than now, even can have an option under itemdef instead of defname to customize differently for every armor. Or we can have both defname for global settings and itemdef option to change it for specific armors.
Yes could be nice. Ini setting or a define in script.
The % coverage is just for the AC value in the status menu, it's not actually used in combat, that's why there is the rand 7,35.
What about an item property like "coverage"/""armorcoverage" that allows the user to customize the % armour value used? If this value is not set, the default values are used otherwise the value in "coverage"/"armorcoverage" is used
These percentages are different in most emulators. Can we improve these percentage calculations so that they can be adjusted with default? For example, wouldn't it be nice to be able to set the percentage protection for which region within the defname?
Also, I think there is a manually entered fixed randomness setting here,
7, 35
I think this value indicates the minimum and maximum values that provide protection to other body parts except the shield. This part seems to be a critical part for servers to adjust their combat mechanisms according to themselves, and I think it should not be fixed.
Of course, if the defname is not entered at all or is set to zero, it will still use its own values.
The places I mentioned are below;
int iArMax = iArmorRating * Calc_GetRandVal2(7,35) / 100;
For example, what if we could set it in defname like this?