Scions of Darkness crash

Happened when I had about 3 units attacking an enemy outpost, or whatever those grey spiked things are.
Traceback (most recent call last):
  File "", line 19, in ?
  File "lib/", line 12, in main
  File "lib/modules/", line 27, in __init__
  File "lib/modules/", line 39, in run
  File "lib/modules/", line 661, in play_game
  File "lib/modules/", line 567, in update
  File "lib/modules/", line 253, in update
  File "lib/modules/", line 497, in damage
    amount-=random.randint(0, dodge)
  File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/", line 189, in randint
    return self.randrange(a, b+1)
  File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/", line 168, in randrange
    raise ValueError, "empty range for randrange()"
ValueError: empty range for randrange()

(log in to comment)


Dang! :(

That is an error I had creep up in the last release I was working on before the deadline, but didn't release anyways :/

I had thought it wasn't in the official release :(

It happens when one of the dodge/defense/attack values are 0 IIRC, so there should be a simple fix by making sure that the values are at least 0.

In the un-uploaded version I ended up just try:excepting out of all the attacks, which produced the very twisted result of the enemies being immortal, and you aren't, but you still have to collect stuff to win, but then if they get them first you are totally finished, 'cuz you cant get them back :P

If I have time later I'll try and get a good fix for that worked out, but I haven't even had time to play the other games yet ;)