Do not mix spaces and TABs for indentation.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20284 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
8a34bc3d67
commit
591b77cb83
|
@ -11,30 +11,30 @@ r = random.random()
|
|||
|
||||
if (r <= 0.26):
|
||||
if (me.__class__ is Crossfire.Player):
|
||||
isplayer = 1
|
||||
isplayer = 1
|
||||
elif (me.Alive == True):
|
||||
isplayer = 0
|
||||
isplayer = 0
|
||||
else:
|
||||
isplayer = 2
|
||||
isplayer = 2
|
||||
|
||||
if isplayer == 1:
|
||||
me.Map.Print("\nYou are swallowed whole by the %s!" % (worm.Name))
|
||||
map = Crossfire.ReadyMap(eatmap)
|
||||
if map:
|
||||
me.Teleport(map, eat_x, eat_y)
|
||||
else:
|
||||
Crossfire.Log(Crossfire.LogError, "There is no eat map")
|
||||
me.Map.Print("\nYou are swallowed whole by the %s!" % (worm.Name))
|
||||
map = Crossfire.ReadyMap(eatmap)
|
||||
if map:
|
||||
me.Teleport(map, eat_x, eat_y)
|
||||
else:
|
||||
Crossfire.Log(Crossfire.LogError, "There is no eat map")
|
||||
|
||||
elif isplayer == 0:
|
||||
me.Map.Print("\nThe %s is swallowed whole by the %s!" % (me.Name, worm.Name))
|
||||
me.Map.Print("\nThe %s is swallowed whole by the %s!" % (me.Name, worm.Name))
|
||||
|
||||
while (me.Inventory is not None):
|
||||
me.Inventory.InsertInto(worm)
|
||||
while (me.Inventory is not None):
|
||||
me.Inventory.InsertInto(worm)
|
||||
|
||||
mexists = Crossfire.WhoIsOther()
|
||||
if mexists:
|
||||
me.Remove()
|
||||
else:
|
||||
worm.Map.Print('doesnt exist')
|
||||
mexists = Crossfire.WhoIsOther()
|
||||
if mexists:
|
||||
me.Remove()
|
||||
else:
|
||||
worm.Map.Print('doesnt exist')
|
||||
else:
|
||||
me.Map.Print("\nThe %s misses the %s" % (worm.Name, me.Name))
|
||||
|
|
|
@ -15,4 +15,4 @@ t.close()
|
|||
b=a.split('\n')
|
||||
for c in b:
|
||||
print c + local_copy
|
||||
os.system('./convert.py '+c + local_copy)
|
||||
os.system('./convert.py '+c + local_copy)
|
||||
|
|
Loading…
Reference in New Issue