Skip to content

Commit

Permalink
Adjust default warning track
Browse files Browse the repository at this point in the history
Tempban now kicks in at 10 and stasis starts kicking in at 2. Getting
banned from auto-warnings should still be very difficult.
  • Loading branch information
skizzerz committed Feb 18, 2024
1 parent 70e195e commit 0d3e967
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
30 changes: 14 additions & 16 deletions src/defaultsettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1227,16 +1227,16 @@ warnings.sanction.scalestasis: &warnings.sanction.scalestasis
_default:
a:
_desc: Quadradic scaling factor
_type: int
_default: 0
_type: float
_default: 0.0
b:
_desc: Linear scaling factor
_type: int
_default: 1
_type: float
_default: 1.0
c:
_desc: Constant scaling factor
_type: int
_default: 0
_type: float
_default: 0.0

warnings.sanction: &warnings.sanction
_name: warnings.sanction
Expand Down Expand Up @@ -1302,18 +1302,16 @@ warnings: &warnings
_type: list
_merge: replace
_default:
- min: 6
max: 10
- min: 2
max: 9
stasis: 1
- min: 11
max: 15
scalestasis:
a: 0
b: 1
c: -8
- min: 16
max: 16
tempban: 8
a: 0.15
b: 0.21
c: -1
- min: 10
max: 10
tempban: 5
_items:
_type: *warnings.sanction

Expand Down
2 changes: 1 addition & 1 deletion src/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _get_auto_sanctions(sanctions, prev, cur):
a = sanc["scalestasis"]["a"]
b = sanc["scalestasis"]["b"]
c = sanc["scalestasis"]["c"]
amt = (a * cur * cur) + (b * cur) + c
amt = int((a * cur * cur) + (b * cur) + c)
if "stasis" not in sanctions:
sanctions["stasis"] = amt
else:
Expand Down

0 comments on commit 0d3e967

Please sign in to comment.