From 6cb92fd8789460e9bf72026777edfea4e0794518 Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Tue, 16 May 2023 03:30:55 +1000 Subject: [PATCH] Forgot to actually cap on gun because it rarely matters --- codegen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codegen.py b/codegen.py index 15c8437..4be4d96 100644 --- a/codegen.py +++ b/codegen.py @@ -129,9 +129,10 @@ def generate(officer=None): ind=lookup_piece(n[0],n[1]) rank,cap=min(rank,pro[n[2]][ind][0]),min(cap,pro[n[2]][ind][1]) out.append(ind) - cap=(cap-(cap<10)+(cap>10))//3 # Derp if gun: out.insert(1,lookup_piece(gun,tables.guns,True)) else: out.insert(1,tables.gunmaps_wrapped[out[0]]) + rank,cap=min(rank,pro['guns'][out[1]][0]),min(cap,pro['guns'][out[1]][1]) # Derp2, forgot to actually cap on gun + cap=(cap-(cap<10)+(cap>10))//3 # Derp out[-1]=tables.clas[out[0]].index(out[-1]) muxed=shared.muxhero(out[0],out[3],out[4]) meds=[]