Change sadness threshold to streak <= 2
This commit is contained in:
@@ -50,6 +50,11 @@ def port_html():
|
||||
}"""
|
||||
html = re.sub(r"\.badge\s*\{[^}]*\}", new_badge_css, html, flags=re.DOTALL)
|
||||
|
||||
# 4. Modify sad threshold and intensity scaling
|
||||
html = html.replace("const sad = target<5;", "const sad = target<=2;")
|
||||
html = html.replace("Math.max(target,5)/5", "Math.max(target,3)/3")
|
||||
html = html.replace("(4 - target) / 3", "(3 - target) / 3")
|
||||
|
||||
with open(dest_path, 'w', encoding='utf-8') as f:
|
||||
f.write(html)
|
||||
print("Ported successfully to public/streak-animation.html")
|
||||
|
||||
Reference in New Issue
Block a user