Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Animals.py2
-rw-r--r--ecomundoactivity.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/Animals.py b/Animals.py
index b3a3a60..238cca1 100644
--- a/Animals.py
+++ b/Animals.py
@@ -155,7 +155,7 @@ class Rabbit(AbstractAnimal):
self._world = world
self.orden = 0
- self.edad = world.rabbit_data.madurezSexual
+ self.edad = 1
self.sexo = "F"
if (random.random() > 0.5):
self.sexo = "M"
diff --git a/ecomundoactivity.py b/ecomundoactivity.py
index 071936e..5f27847 100644
--- a/ecomundoactivity.py
+++ b/ecomundoactivity.py
@@ -94,12 +94,16 @@ def initAnimals():
y = int(random.random()*(World.CANT_TILES-1))
#print "Init Rabbit",x,y
animal = Animals.Rabbit(x,y,world)
+ animal.edad = world.rabbit_data.madurezSexual
+ animal.ultimaAlimentacion = animal.edad
world.animals.append(animal)
for n in range(world.initialFoxs):
x = int(random.random()*(World.CANT_TILES-1))
y = int(random.random()*(World.CANT_TILES-1))
#print "Init Fox",x,y
animal = Animals.Fox(x,y,world)
+ animal.edad = world.fox_data.madurezSexual
+ animal.ultimaAlimentacion = animal.edad
world.animals.append(animal)