Skip to content

Commit

Permalink
Fix issue 3, str + int bug
Browse files Browse the repository at this point in the history
  • Loading branch information
techno-sam committed Apr 8, 2021
1 parent 30f89df commit cf759db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def remove_seg():
#quit()
if food.energy>0:
for x in range(food.energy):
chance = CHANCE_FORMULA.replace("<SL>",str(len(segs)))
chance = int(CHANCE_FORMULA.replace("<SL>",str(len(segs))))
if random.randint(1,chance)==1:
info = add_seg_pos()
pos_to_add = info[0]
Expand Down

0 comments on commit cf759db

Please sign in to comment.