243 |
|
|
244 |
def __parsear_propiedades(self, doc_xml): |
def __parsear_propiedades(self, doc_xml): |
245 |
"""Extrae las propiedades globales de la sala.""" |
"""Extrae las propiedades globales de la sala.""" |
246 |
self.aura = int(doc_xml.childNodes[4].attributes["aura"].value) |
try: |
247 |
|
self.aura = int(doc_xml.childNodes[4].attributes["aura"].value) |
248 |
|
except: |
249 |
|
self.aura = 50 |
250 |
|
try: |
251 |
|
self.tipo = doc_xml.childNodes[4].attributes["tipo"].value |
252 |
|
except: |
253 |
|
self.tipo = 'sin_tipo' |
254 |
self.volumen = int(doc_xml.childNodes[4].attributes["volumen"].value) |
self.volumen = int(doc_xml.childNodes[4].attributes["volumen"].value) |
255 |
self.luz = int(doc_xml.childNodes[4].attributes["luz"].value) |
self.luz = int(doc_xml.childNodes[4].attributes["luz"].value) |
256 |
self.combate = doc_xml.childNodes[4].attributes["combate"].value |
try: |
257 |
|
self.combate = doc_xml.childNodes[4].attributes["combate"].value |
258 |
|
except: |
259 |
|
self.combate = 'si' |
260 |
|
try: |
261 |
|
self.subtipo = doc_xml.childNodes[4].attributes["subtipo"].value |
262 |
|
except: |
263 |
|
self.subtipo = 'sin_subtipo' |
264 |
self.ocultabilidad = int(doc_xml.childNodes[4].attributes["ocultabilidad"].value) |
self.ocultabilidad = int(doc_xml.childNodes[4].attributes["ocultabilidad"].value) |
265 |
|
|
266 |
|
|