[quote=“troll from behind, post:6710, topic:42”]So how does the game determine if your gear gets damaged?
Does it test if the clothing gets damaged by compairing the damage that gets through to the bash/cut protection of the piece of clothing, possibly damaging the gear more if the damage getting through exceeds the clothings armor in multiples?
Doesn’t really have that much of an impact to gameplay, but one must know goddamned![/quote]
// if the post-mitigation amount is greater than the amount
if ((du.amount > effective_resist && !one_in(du.amount) && one_in(2)) ||
// or if it isn't, but 1/50 chance
(du.amount <= effective_resist && !armor.has_flag("STURDY")
&& !armor.is_power_armor() && one_in(200))) {
Though looking at that now some of the logic seems a little strange… not sure all of that is intended to work that way.