/[ambar]/ambar/personaje.py
ViewVC logotype

Diff of /ambar/personaje.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by amoyav, Thu May 9 05:31:17 2002 UTC revision 1.18 by pabloruiz, Wed Jul 3 11:42:22 2002 UTC
# Line 339  class Personaje: Line 339  class Personaje:
339          """          """
340          total = self.volumen          total = self.volumen
341          for objeto in self.inventario:          for objeto in self.inventario:
342              total += objeto['instancias'][0].volumen              try:
343                    total += objeto['instancias'][0].volumen
344                except:
345                    total += 0
346          for objeto in self.equipo:          for objeto in self.equipo:
347              total += objeto['instancias'][0].volumen              try:
348                    total += objeto['instancias'][0].volumen
349                except:
350                    total += 0
351          return total          return total
352                    
353                                                            

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26