update baseline guessing code

This commit is contained in:
b 2021-06-22 07:47:39 -07:00
parent 8d137eea00
commit feb13eba48
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -125,16 +125,16 @@ def guess_design_modifier(item, base_dps):
actual_modifier = (item_baseline - nominal_baseline) / nominal_baseline
explained_baseline = nominal_baseline * (1 + total_modifier)
delta = (item_baseline - explained_baseline) / nominal_baseline
if delta >= 0.04 and delta <= 0.06:
if delta >= 0.04 and delta < 0.075:
total_modifier += 0.05
explanation.append(("offensive", 0.05))
elif delta >= 0.08:
elif delta >= 0.075:
total_modifier += 0.1
explanation.append(("hyper_offensive", 0.1))
elif delta <= -0.04 and delta >= -0.06:
elif delta <= -0.04 and delta > -0.075:
total_modifier -= 0.05
explanation.append(("defensive", -0.05))
elif delta <= -0.08:
elif delta <= -0.075:
total_modifier -= 0.1
explanation.append(("hyper_defensive", -0.1))
if abs(delta) > 0.2: