code wiki / _hdl_build / _pv_an.nx
_pv_an.nx source
↩ module page · 9 lines · 331 B
1// AUTHORED BY THE NISHI BUILDER (pattern: PERMIL_VERDICT) -- baked band ladder, no Claude logic
2func _pv_an_verdict(count: i64) -> i64 {
3 if count < 0 { return 0 - 1 }
4 let permil: i64 = count * 1000 / 24
5 if permil >= 750 { return 9 }
6 if permil >= 300 { return 7 }
7 if permil >= 0 { return 0 }
8 return 0 - 1
9}