Beispiel #1
0
	def __init__(self, skills, mod_name):
		self.stats = {}
		self.name = mod_name
		self.skills = skills

		module_data = XmlRetrieval('module.xml')
		properties, effecting_skills = module_data.get_target(mod_name)
		self._add_stats(properties,effecting_skills)
Beispiel #2
0
    def __init__(self, char, ds_name):
        self.stats = {}
        self.skill_effects = char.skill_effect
        self.ds_name = ds_name

        dropsuit_data = XmlRetrieval("dropsuit.xml")
        properties, effecting_skills = dropsuit_data.get_target(ds_name)
        self._add_stats(properties, effecting_skills)
Beispiel #3
0
	def __init__(self, skills, weapon_name, module_list=[]):
		self.stats = {}
		self.name = weapon_name
		self.skills = skills
		self.module_list = module_list

		weapon_data = XmlRetrieval('weapon.xml')
		properties, effecting_skills = weapon_data.get_target(weapon_name)
		self._add_stats(properties,effecting_skills)
		self._add_module_bonus()
Beispiel #4
0
class WeaponLibrary(ModuleLibrary):
	def __init__(self):
		self.weapon_data = XmlRetrieval('weapon.xml')

		self.names = self.weapon_data.get_list()

	def get_parents(self):
		return self.weapon_data.get_parents()

	def get_children(self, parent):
		return self.weapon_data.get_children(parent)
Beispiel #5
0
class ModuleLibrary:
	def __init__(self):
		self.module_data = XmlRetrieval('module.xml')

		self.names = self.module_data.get_list()

	def get_names(self):
		""" Returns module names as a tuple. """
		return tuple(self.names)

	def get_parents(self):
		return self.module_data.get_parents()

	def get_children(self, parent):
		return self.module_data.get_children(parent)
Beispiel #6
0
    def __init__(self):
        dropsuit_data = XmlRetrieval("dropsuit.xml")

        self.names = dropsuit_data.get_list()
Beispiel #7
0
	def __init__(self):
		self.weapon_data = XmlRetrieval('weapon.xml')

		self.names = self.weapon_data.get_list()
Beispiel #8
0
	def __init__(self):
		self.module_data = XmlRetrieval('module.xml')

		self.names = self.module_data.get_list()