Example #1
0
		def cuevaIFunY():
			if(not inv.getItem(Item.getItemId('cuchillo')) is None):
				log.add_event("Logre matar a la bestia... al menos tendre comida")
				log.add_event("Ademas encontre una radio!.. pero esta rota, igual la guardare")
				c = Item.create('comida')
				inv.addItem(c)

				r = Item.create('radio')
				inv.addItem(r)
				#inv.clean()
				addItem(world, 'radio')
				events.addEvent('radio_survive')
				Item.addNextFood(world)
				Item.addNextFood(world)
			elif(not inv.getItem(Item.getItemId('fuego')) is None):
				log.add_event("Logre ahuyentar al oso con el fuego")
				log.add_event("Y encontre comida para mi!")
				c = Item.create('comida')
				Item.addNextFood(world)
				Item.addNextFood(world)
				inv.addItem(c)
				inv.addItem(c)
				#inv.clean()
				events.addEvent('sobrevivir')
			else:
				log.add_event("Esto fue demasiado para mi....", 197)
				info.gameOver()
Example #2
0
		def balsaFunY():
			log.add_event("No tengo nada mejor que hacer con estos recursos, mejor los uso")
			events.addEvent('final_balsa')
			c = Item.create('balsa')
			inv.addItem(c)
			inv.deleteItem(Item.create('madera'))
			inv.deleteItem(Item.create('cuerda'))
			inv.clean()
			removeItem(world, 'balsa')
Example #3
0
 def ropeYes():
     log.add_event("Es una cuerda! Que suerte tengo")
     c = Item.create("cuerda")
     inv.addItem(c)
     removeItem(world, "cuerda")
     if not (inv.getItem(Item.getItemId("madera")) is None):
         Story.addItem(self.world, "balsa")
Example #4
0
 def woodYes():
     log.add_event("Esto me servira para muchas cosas...")
     c = Item.create("madera")
     inv.addItem(c)
     removeItem(world, "madera")
     if not (inv.getItem(Item.getItemId("cuerda")) is None):
         Story.addItem(self.world, "balsa")
Example #5
0
		def jabali2FunY():
			log.add_event("Mas alimento me ayudara a sobrevivir")
			c = Item.create('comida')
			inv.addItem(c)
			inv.addItem(c)
			inv.clean()
			events.addEvent('dead_man')
			addItem(world, 'dead_man')
			addItem(world, 'm_jabali')
			removeItem(world, 'b_jabali')
			Item.removeItem('b_jabali')
Example #6
0
		def jabaliFunY():
			log.add_event("Su alimento me ayudara a sobrevivir")
			c = Item.create('comida')
			inv.addItem(c)
			inv.addItem(c)
			inv.clean()

			removeItem(world, 'b_jabali')
			Item.removeItem('b_jabali')
			Item.addItem('b_jabali', 78, 154, '/')
			addItem(world, 'b_jabali')
Example #7
0
 def boarYes():
     if inv.getItem(Item.getItemId("cuchillo")) is None:
         # TODO Killed
         log.add_event("Esto fue demasiado para mi....", 197)
         self.info.gameOver()
     else:
         log.add_event("Por fin murio...")
         c = Item.create("comida")
         inv.addItem(c)
         inv.addItem(c)
         inv.addItem(c)
         removeItem(world, "m_jabali")
Example #8
0
		def jabaliMFunY():
			if(inv.getItem(Item.getItemId('cuchillo')) is None):
				log.add_event("Esto fue demasiado para mi....", 197)
				info.gameOver()

			else:
				log.add_event("Eso fue facil... creo")
				c = Item.create('comida')
				inv.addItem(c)
				inv.addItem(c)
				inv.clean()

			removeItem(world, 'm_jabali')
			Item.removeItem('m_jabali')
Example #9
0
 def bananaNo():
     log.add_event("Comi la banana que encontre")
     c = Item.create("comida")
     inv.addItem(c)
     removeItem(world, "banana")
     Player.useItem(c, inv)
Example #10
0
 def bananaYes():
     log.add_event("Guarde la banana para despues")
     c = Item.create("comida")
     inv.addItem(c)
     removeItem(world, "banana")
Example #11
0
 def fireYes():
     log.add_event("Esto me sera muy util")
     c = Item.create("fuego")
     inv.addItem(c)
     removeItem(world, "fuego")
Example #12
0
 def foodYes():
     log.add_event("Guarde el alimento para despues")
     c = Item.create("comida")
     inv.addItem(c)
     removeItem(world, "comida")
Example #13
0
 def balsaCFunY():
     log.add_event("No tengo nada mejor que hacer con estos recursos, mejor los uso")
     inv.deleteItem(Item.create("madera"))
     inv.deleteItem(Item.create("cuerda"))
     inv.addItem(Item.create("balsa"))
     self.addEvent("final_balsa")
Example #14
0
 def radioYes():
     log.add_event("Si! Esto me sacara de aqui!")
     c = Item.create("radio")
     inv.addItem(c)
     removeItem(world, "radio")
Example #15
0
 def dmYes():
     log.add_event("Hey! Tiene un cuchillo")
     c = Item.create("cuchillo")
     inv.addItem(c)
     removeItem(world, "dead_man")