mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +00:00
can't use None due to the math
This commit is contained in:
parent
3f6b2fd87b
commit
1a9ca12bcf
1 changed files with 0 additions and 12 deletions
|
@ -101,18 +101,6 @@ for ent in entity_list:
|
||||||
weapon = ent.classname[7:]
|
weapon = ent.classname[7:]
|
||||||
weapons[weapon] += 1
|
weapons[weapon] += 1
|
||||||
|
|
||||||
# convert 0 to None
|
|
||||||
for key in weapons.keys ():
|
|
||||||
if not weapons[key]:
|
|
||||||
weapons[key] = None
|
|
||||||
for key in artifacts.keys ():
|
|
||||||
if not artifacts[key]:
|
|
||||||
artifacts[key] = None
|
|
||||||
for key in items.keys ():
|
|
||||||
for i in range (len (items[key])):
|
|
||||||
if not items[key][i]:
|
|
||||||
items[key][i] = None
|
|
||||||
|
|
||||||
print "Lightning Gun :", weapons["lightning"]
|
print "Lightning Gun :", weapons["lightning"]
|
||||||
print "6 cells :", items["cells"][0]
|
print "6 cells :", items["cells"][0]
|
||||||
print "12 cells :", items["cells"][1]
|
print "12 cells :", items["cells"][1]
|
||||||
|
|
Loading…
Reference in a new issue